From 5579733fbf51612bbc820f80b61f422e67937522 Mon Sep 17 00:00:00 2001 From: Hayden Roszell Date: Wed, 16 Aug 2023 16:25:26 -0700 Subject: [PATCH] Regenerate documentation and add support for untrusted root --- .gitignore | 4 +- Makefile | 47 +++ README.md | 117 +++---- api/keyfactor/api_agent_pool.go | 4 +- api/keyfactor/api_certificate.go | 60 ++-- api/keyfactor/api_certificate_collection.go | 36 +-- api/keyfactor/api_enrollment.go | 76 ++--- api/keyfactor/api_key.go | 26 +- api/keyfactor/api_pam_provider.go | 48 +-- .../api_security_role_permissions.go | 300 +++++++++--------- api/keyfactor/client.go | 112 ++++++- api/keyfactor/configuration.go | 34 +- docs/AgentApi.md | 32 +- docs/AgentBlueprintApi.md | 28 +- docs/AgentPoolApi.md | 24 +- docs/AuditLogApi.md | 20 +- docs/CSRGenerationApi.md | 20 +- docs/CertificateApi.md | 84 ++--- docs/CertificateAuthorityApi.md | 28 +- docs/CertificateCollectionApi.md | 28 +- docs/CertificateStoreApi.md | 48 +-- docs/CertificateStoreContainerApi.md | 8 +- docs/CertificateStoreTypeApi.md | 28 +- docs/CustomJobTypeApi.md | 20 +- docs/DeniedAlertApi.md | 20 +- docs/EnrollmentApi.md | 44 +-- docs/ExpirationAlertApi.md | 36 +-- docs/IssuedAlertApi.md | 28 +- docs/KeyApi.md | 28 +- docs/KeyRotationAlertApi.md | 36 +-- docs/LicenseApi.md | 4 +- docs/LogonApi.md | 20 +- docs/MacEnrollmentApi.md | 8 +- docs/MetadataFieldApi.md | 32 +- docs/MonitoringApi.md | 32 +- docs/OrchestratorJobApi.md | 32 +- docs/PAMProviderApi.md | 28 +- docs/PendingAlertApi.md | 36 +-- docs/ReportsApi.md | 60 ++-- docs/SMTPApi.md | 12 +- docs/SecurityApi.md | 12 +- docs/SecurityRolePermissionsApi.md | 40 +-- docs/SecurityRolesApi.md | 12 +- docs/ServerApi.md | 32 +- docs/ServerGroupApi.md | 36 +-- docs/ServiceAccountApi.md | 32 +- docs/SslApi.md | 80 ++--- docs/StatusApi.md | 4 +- docs/TemplateApi.md | 28 +- docs/UserApi.md | 24 +- docs/WorkflowApi.md | 20 +- docs/WorkflowDefinitionApi.md | 40 +-- docs/WorkflowInstanceApi.md | 32 +- go.sum | 11 + test/api_pam_provider_test.go | 62 ++++ 55 files changed, 1191 insertions(+), 962 deletions(-) create mode 100644 Makefile create mode 100644 go.sum diff --git a/.gitignore b/.gitignore index d4c48d5..1842516 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,5 @@ _testmain.go .idea .openapi-generator -Keyfactor-v10-patched.swagger.yaml -Makefile \ No newline at end of file +.DS_Store +*.yaml \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..432ea4d --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +GO_PACKAGE_NAME = keyfactor +GIT_USER_ID = Keyfactor +GIT_REPO_NAME = keyfactor-go-client-sdk +OPENAPI_YAML = Keyfactor-v10-patched.swagger.yaml +OPENAPI_GENERATOR_VERSION = 6.3.0 +OPENAPI_TEMPLATE_DIR = .openapi-generator/templates/go + +init: + @echo "Initializing..." + @wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$(OPENAPI_GENERATOR_VERSION)/openapi-generator-cli-$(OPENAPI_GENERATOR_VERSION).jar -O openapi-generator-cli.jar + +deinit: + @echo "Cleaning up..." + @rm openapi-generator-cli.jar + @rm api/openapi.yaml + +generate: clean init + @echo "Generating..." + @if [ -d $(OPENAPI_TEMPLATE_DIR) ]; \ + then \ + java -jar openapi-generator-cli.jar generate -i $(OPENAPI_YAML) -p packageName=$(GO_PACKAGE_NAME) $(OPENAPI_ARGS) -g go -p isGoSubmodule=false -p disallowAdditionalPropertiesIfNotPresent=false --git-user-id $(GIT_USER_ID) --git-repo-id $(GIT_REPO_NAME) -t $(OPENAPI_TEMPLATE_DIR); \ + else \ + java -jar openapi-generator-cli.jar generate -i $(OPENAPI_YAML) -p packageName=$(GO_PACKAGE_NAME) $(OPENAPI_ARGS) -g go -p isGoSubmodule=false -p disallowAdditionalPropertiesIfNotPresent=false --git-user-id $(GIT_USER_ID) --git-repo-id $(GIT_REPO_NAME); \ + fi + @mkdir ./api/$(GO_PACKAGE_NAME) || (echo /api/$(GO_PACKAGE_NAME) exists) + @mv -f ./*.go ./api/$(GO_PACKAGE_NAME) || (echo no files to move) + @rm .travis.yml || (echo no .travis.yml to remove) + @rm .openapi-generator-ignore || (echo no .openapi-generator-ignore to remove) + @rm git_push.sh || (echo no git_push.sh to remove) + @make deinit + @echo "Done." + +clean: + @echo "Cleaning..." + @rm -rf ./api/$(GO_PACKAGE_NAME) || (echo no ./api/$(GO_PACKAGE_NAME) to remove) + @rm -rf ./go.mod || (echo no ./go.mod to remove) + @rm -rf ./go.sum || (echo no ./go.sum to remove) + @rm -rf ./docs || (echo no ./docs to remove) + @rm -rf ./test || (echo no ./test to remove) + +template: init + @mkdir -p $(OPENAPI_TEMPLATE_DIR) + @echo "Generating Templates..." + @java -jar openapi-generator-cli.jar author template -g go -o $(OPENAPI_TEMPLATE_DIR) + @echo "Cleaning up..." + @rm openapi-generator-cli.jar + @echo "Done." \ No newline at end of file diff --git a/README.md b/README.md index 3a97021..7fc129f 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,6 @@ This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. -# Support for the Keyfactor Go Client SDK - -We welcome contributions. - -The Keyfactor Command Go Client SDK is open source and community supported, meaning that there is no SLA applicable for these tools. - -To report a problem or suggest a new feature, use the [Issues](https://github.com/Keyfactor/keyfactor-go-client-sdk/issues) tab. If you want to contribute actual bug fixes or proposed enhancements, use the [Pull requests](https://github.com/Keyfactor/keyfactor-go-client-sdk/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. @@ -22,61 +14,73 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat Install the following dependencies: ```shell -go get github.com/stretchr/testify/assert -go get golang.org/x/net/context +go get "github.com/Keyfactor/keyfactor-go-client-sdk" ``` Put the package under your project folder and add the following in import: ```golang -import keyfactor "github.com/Keyfactor/keyfactor-go-client-sdk" +import "github.com/Keyfactor/keyfactor-go-client-sdk/api/keyfactor" ``` -To use a proxy, set the environment variable `HTTP_PROXY`: - -```golang -os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +## Configuration + +The `keyfactor.NewConfiguration()` method is used to configure the Keyfactor Go Client SDK. The client can be configured +by passing a map of configuration options to the `NewConfiguration()` method, or by passing a blank map and setting +the configuration options individually on the returned `Configuration` object. + +The following configuration options are available: +```go +// Create a configuration map +config := make(map[string]string) +config["host"] = "keyfactor.example.com" +config["username"] = "admin" +config["password"] = "password" +config["domain"] = "example.com" // optional +config["caCertificatePath"] = "/path/to/local/certificate" // optional + +// Create a configuration object +ejbcaConfiguration := keyfactor.NewConfiguration(config) +if ejbcaConfiguration == nil { + // handle error +} + +// Create a client +client := keyfactor.NewAPIClient(config) +if client == nil { + // handle error +} ``` -## Configuration of Server URL - -Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. +or -### Select Server Configuration +```go +// Create a configuration object +ejbcaConfiguration := keyfactor.NewConfiguration(make(map[string]string)) -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +// Set configuration options individually +ejbcaConfiguration.Host = "keyfactor.example.com" +ejbcaConfiguration.BasicAuth.UserName = "admin" +ejbcaConfiguration.BasicAuth.Password = "password" +ejbcaConfiguration.CaCertificatePath = "/path/to/local/certificate" // optional -```golang -ctx := context.WithValue(context.Background(), keyfactor.ContextServerIndex, 1) +// Create a client +client := keyfactor.NewAPIClient(ejbcaConfiguration) +if client == nil { + // handle error +} ``` -### Templated Server URL +The root CA certificate can also be configured by passing a slice of `*x509.Certificate` objects to the `ejbca.Configuration.SetCaCertificates()` method. +```go +// Create a configuration object +ejbcaConfiguration := keyfactor.NewConfiguration(make(map[string]string)) -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +// Set the root CA certificate +ejbcaConfiguration.SetCaCertificates([]*x509.Certificate{caCertificate}) -```golang -ctx := context.WithValue(context.Background(), keyfactor.ContextServerVariables, map[string]string{ - "basePath": "v2", -}) -``` - -Note, enum values are always validated and all unused variables are silently ignored. - -### URLs Configuration per Operation - -Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. - -```golang -ctx := context.WithValue(context.Background(), keyfactor.ContextOperationServerIndices, map[string]int{ - "{classname}Service.{nickname}": 2, -}) -ctx = context.WithValue(context.Background(), keyfactor.ContextOperationServerVariables, map[string]map[string]string{ - "{classname}Service.{nickname}": { - "port": "8443", - }, -}) +// Create a client +client := keyfactor.NewAPIClient(ejbcaConfiguration) ``` ## Documentation for API Endpoints @@ -767,25 +771,6 @@ Class | Method | HTTP request | Description - [ModelsWorkflowProcessedCertificateRequest](docs/ModelsWorkflowProcessedCertificateRequest.md) -## Documentation For Authorization - - - -### basicAuth - -- **Type**: HTTP basic authentication - -Example - -```golang -auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ - UserName: "username", - Password: "password", -}) -r, err := client.Service.Operation(auth, args) -``` - - ## Documentation for Utility Methods Due to the fact that model structure members are all pointers, this package contains diff --git a/api/keyfactor/api_agent_pool.go b/api/keyfactor/api_agent_pool.go index 9d40b6c..eff9020 100644 --- a/api/keyfactor/api_agent_pool.go +++ b/api/keyfactor/api_agent_pool.go @@ -65,7 +65,7 @@ func (r ApiAgentPoolCreateAgentPoolRequest) Execute() (*ModelsAgentsAgentPool, * /* AgentPoolCreateAgentPool Creates an agent pool with the provided properties -- DiscoverAgentsCount = An integer specifying the number of agents that can perform discovery jobs +- DiscoverAgentsCount = An integer specifying the number of agents that can perform discovery jobs - MonitorAgentsCount = An integer specifying the number of agents that can perform monitoring jobs @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -772,7 +772,7 @@ func (r ApiAgentPoolUpdateAgentPoolRequest) Execute() (*ModelsAgentsAgentPool, * /* AgentPoolUpdateAgentPool Updates an existing agent pool with the provided properties -- DiscoverAgentsCount = An integer specifying the number of agents that can perform discovery jobs +- DiscoverAgentsCount = An integer specifying the number of agents that can perform discovery jobs - MonitorAgentsCount = An integer specifying the number of agents that can perform monitoring jobs @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). diff --git a/api/keyfactor/api_certificate.go b/api/keyfactor/api_certificate.go index da1d7ef..b4a14c8 100644 --- a/api/keyfactor/api_certificate.go +++ b/api/keyfactor/api_certificate.go @@ -1176,9 +1176,9 @@ func (r ApiCertificateDownloadCertificateAsyncRequest) Execute() (*ModelsCertifi /* CertificateDownloadCertificateAsync 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 +*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(). @@ -2259,9 +2259,9 @@ func (r ApiCertificateRecoverCertificateAsyncRequest) Execute() (*ModelsRecovery /* CertificateRecoverCertificateAsync 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 +*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(). @@ -2402,18 +2402,18 @@ func (r ApiCertificateRevokeRequest) Execute() (*ModelsRevocationRevocationRespo /* CertificateRevoke 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 | +### 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(). @@ -2554,18 +2554,18 @@ func (r ApiCertificateRevokeAllRequest) Execute() (*ModelsRevocationRevocationRe /* CertificateRevokeAll Revokes the certificates associated with the provided query and Collection Id 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 | +### 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(). diff --git a/api/keyfactor/api_certificate_collection.go b/api/keyfactor/api_certificate_collection.go index 73bd446..62758e8 100644 --- a/api/keyfactor/api_certificate_collection.go +++ b/api/keyfactor/api_certificate_collection.go @@ -65,12 +65,12 @@ func (r ApiCertificateCollectionCopyFromExistingCollectionRequest) Execute() (*K /* CertificateCollectionCopyFromExistingCollection 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 | +### 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(). @@ -204,12 +204,12 @@ func (r ApiCertificateCollectionCreateCollectionRequest) Execute() (*KeyfactorAp /* CertificateCollectionCreateCollection 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 | +### 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(). @@ -887,12 +887,12 @@ func (r ApiCertificateCollectionUpdateCollectionRequest) Execute() (*KeyfactorAp /* CertificateCollectionUpdateCollection 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 | +### 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(). diff --git a/api/keyfactor/api_enrollment.go b/api/keyfactor/api_enrollment.go index 77cce11..8ebb32c 100644 --- a/api/keyfactor/api_enrollment.go +++ b/api/keyfactor/api_enrollment.go @@ -197,11 +197,11 @@ func (r ApiEnrollmentAvailableRenewalIdRequest) Execute() (*ModelsEnrollmentAvai /* EnrollmentAvailableRenewalId Returns the type of renewal available for a given certificate. -### Available Renewal Types ### -| Value | Description | -|--------------------|---------------------------| -| 0 | None | -| 1 | Seeded PFX | +### 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(). @@ -968,21 +968,21 @@ func (r ApiEnrollmentPostCSREnrollRequest) Execute() (*ModelsEnrollmentCSREnroll /* EnrollmentPostCSREnroll 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 | +### 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(). @@ -1127,24 +1127,24 @@ func (r ApiEnrollmentPostPFXEnrollRequest) Execute() (*ModelsEnrollmentPFXEnroll /* EnrollmentPostPFXEnroll 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 | +### 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(). diff --git a/api/keyfactor/api_key.go b/api/keyfactor/api_key.go index 5adb868..fcce80a 100644 --- a/api/keyfactor/api_key.go +++ b/api/keyfactor/api_key.go @@ -297,19 +297,19 @@ func (r ApiKeyGenerateKeyRequest) Execute() (*ModelsSSHKeysKeyResponse, *http.Re /* KeyGenerateKey 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 | +### 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(). diff --git a/api/keyfactor/api_pam_provider.go b/api/keyfactor/api_pam_provider.go index 6cf4224..5a9428f 100644 --- a/api/keyfactor/api_pam_provider.go +++ b/api/keyfactor/api_pam_provider.go @@ -65,10 +65,10 @@ func (r ApiPAMProviderCreatePamProviderRequest) Execute() (*CSSCMSDataModelModel /* PAMProviderCreatePamProvider Creates a new PAM provider with the associated properties -### PAM Provider Data Types ### -| Value | Description | -|--------------------|---------------------------| -| 1 | string | +### 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(). @@ -202,10 +202,10 @@ func (r ApiPAMProviderCreatePamProviderTypeRequest) Execute() (*KeyfactorApiPAMP /* PAMProviderCreatePamProviderType Creates a new PAM provider type with the associated properties -### PAM Provider Data Types ### -| Value | Description | -|--------------------|---------------------------| -| 1 | string | +### 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(). @@ -445,10 +445,10 @@ func (r ApiPAMProviderGetPamProviderRequest) Execute() (*CSSCMSDataModelModelsPr /* PAMProviderGetPamProvider Returns a single PAM Provider that matches the associated id -### PAM Provider Data Types ### -| Value | Description | -|--------------------|---------------------------| -| 1 | string | +### 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(). @@ -573,10 +573,10 @@ func (r ApiPAMProviderGetPamProviderTypesRequest) Execute() ([]CSSCMSDataModelMo /* PAMProviderGetPamProviderTypes Returns all PAM providers in the Keyfactor instance -### PAM Provider Data Types ### -| Value | Description | -|--------------------|---------------------------| -| 1 | string | +### 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(). @@ -733,10 +733,10 @@ func (r ApiPAMProviderGetPamProvidersRequest) Execute() ([]CSSCMSDataModelModels /* PAMProviderGetPamProviders Returns all PAM providers according to the provided filter and output parameters -### PAM Provider Data Types ### -| Value | Description | -|--------------------|---------------------------| -| 1 | string | +### 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(). @@ -880,10 +880,10 @@ func (r ApiPAMProviderUpdatePamProviderRequest) Execute() (*CSSCMSDataModelModel /* PAMProviderUpdatePamProvider Updates an existing PAM provider according to the provided properties -### PAM Provider Data Types ### -| Value | Description | -|--------------------|---------------------------| -| 1 | string | +### 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(). diff --git a/api/keyfactor/api_security_role_permissions.go b/api/keyfactor/api_security_role_permissions.go index 571bed9..39bc4e4 100644 --- a/api/keyfactor/api_security_role_permissions.go +++ b/api/keyfactor/api_security_role_permissions.go @@ -66,13 +66,13 @@ func (r ApiSecurityRolePermissionsAddCollectionPermissionsRequest) Execute() ([] /* SecurityRolePermissionsAddCollectionPermissions 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 | +### 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(). @@ -210,11 +210,11 @@ func (r ApiSecurityRolePermissionsAddContainerPermissionsRequest) Execute() ([]K /* SecurityRolePermissionsAddContainerPermissions Adds container permissions to the security role that matches the id. -### Valid Permissions ### -| Permission | Requisite Permissions | -|---------------|-----------------------| -| Read | | -| Schedule | Read | +### 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(). @@ -352,69 +352,69 @@ func (r ApiSecurityRolePermissionsAddGlobalPermissionsRequest) Execute() ([]Keyf /* SecurityRolePermissionsAddGlobalPermissions 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 | -| Monitoring | Read | -| Monitoring | Modify | -| Monitoring | Test | -| 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 | +### 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 | +| Monitoring | Read | +| Monitoring | Modify | +| Monitoring | Test | +| 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(). @@ -1044,13 +1044,13 @@ func (r ApiSecurityRolePermissionsSetCollectionPermissionsRequest) Execute() ([] /* SecurityRolePermissionsSetCollectionPermissions 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 | +### 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(). @@ -1188,11 +1188,11 @@ func (r ApiSecurityRolePermissionsSetContainerPermissionsRequest) Execute() ([]K /* SecurityRolePermissionsSetContainerPermissions Sets container permissions to the security role that matches the id. -### Valid Permissions ### -| Permission | Requisite Permissions | -|---------------|-----------------------| -| Read | | -| Schedule | Read | +### 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(). @@ -1330,69 +1330,69 @@ func (r ApiSecurityRolePermissionsSetGlobalPermissionsRequest) Execute() ([]Keyf /* SecurityRolePermissionsSetGlobalPermissions 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 | -| Monitoring | Read | -| Monitoring | Modify | -| Monitoring | Test | -| 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 | +### 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 | +| Monitoring | Read | +| Monitoring | Modify | +| Monitoring | Test | +| 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(). diff --git a/api/keyfactor/client.go b/api/keyfactor/client.go index 34666d5..f591ff2 100644 --- a/api/keyfactor/client.go +++ b/api/keyfactor/client.go @@ -22,7 +22,10 @@ package keyfactor import ( "bytes" "context" + "crypto/tls" + "crypto/x509" "encoding/json" + "encoding/pem" "encoding/xml" "errors" "fmt" @@ -149,9 +152,14 @@ type service struct { // 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 *Configuration) *APIClient { + var err error + if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } + if cfg.HTTPClient, err = buildHttpClient(cfg); err != nil { + debugMessage(cfg.Debug, "Failed to build HTTP client: %s", err.Error()) + return nil + } + } c := &APIClient{} c.cfg = cfg @@ -203,6 +211,48 @@ func NewAPIClient(cfg *Configuration) *APIClient { return c } +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") @@ -221,6 +271,64 @@ func cleanHostname(hostname string) (string, error) { } } +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) } diff --git a/api/keyfactor/configuration.go b/api/keyfactor/configuration.go index adb0b09..c672b2a 100644 --- a/api/keyfactor/configuration.go +++ b/api/keyfactor/configuration.go @@ -20,6 +20,7 @@ API version: v1 package keyfactor import ( + "crypto/x509" "fmt" "net/http" "os" @@ -53,12 +54,10 @@ var ( ContextOperationServerVariables = contextKey("serverOperationVariables") envCommandHostname = "KEYFACTOR_HOSTNAME" - + EnvCommandUsername = "KEYFACTOR_USERNAME" EnvCommandPassword = "KEYFACTOR_PASSWORD" - - EnvCommandDomain = "KEYFACTOR_DOMAIN" ) // BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth @@ -82,12 +81,14 @@ type ServerVariable struct { // 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"` - HTTPClient *http.Client + 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"` + HTTPClient *http.Client + caCertificates []*x509.Certificate } // NewConfiguration returns a new Configuration object @@ -105,6 +106,7 @@ func NewConfiguration(config map[string]string) *Configuration { confUser := config["username"] confPass := config["password"] confDomain := config["domain"] + confCaPath := config["caCertificatePath"] // Get hostname from environment variable if confHost == "" { @@ -118,6 +120,7 @@ func NewConfiguration(config map[string]string) *Configuration { cfg.Host = hostnameCleaned } else { fmt.Errorf("%s is not a valid URL: %s", hostname, err) + return nil } } @@ -141,6 +144,13 @@ func NewConfiguration(config map[string]string) *Configuration { cfg.BasicAuth.Password = confPass } + // Get caCertificatePath from environment variable + if confCaPath == "" { + cfg.CaCertificatePath = os.Getenv("KEYFACTOR_CA_CERTIFICATE_PATH") + } else { + cfg.CaCertificatePath = confCaPath + } + return cfg } @@ -148,3 +158,9 @@ func NewConfiguration(config map[string]string) *Configuration { 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/docs/AgentApi.md b/docs/AgentApi.md index 9bf9237..4ca44f8 100644 --- a/docs/AgentApi.md +++ b/docs/AgentApi.md @@ -38,7 +38,7 @@ func main() { agentIds := []string{"Property_example"} // []string | List of Agent Ids to Approve xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentApprove(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -69,7 +69,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -104,7 +104,7 @@ func main() { agentIds := []string{"Property_example"} // []string | List of Agent Ids to Disapprove xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentDisapprove(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -135,7 +135,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -170,7 +170,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentFetchLogs(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -205,7 +205,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -240,7 +240,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentGetAgentDetail(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -277,7 +277,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -316,7 +316,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentGetAgents(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -353,7 +353,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -388,7 +388,7 @@ func main() { agentIds := []string{"Property_example"} // []string | List of Agent Ids to Reset xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentReset0(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -419,7 +419,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -454,7 +454,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentReset1(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -489,7 +489,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -524,7 +524,7 @@ func main() { authCertReenrollmentRequest := *openapiclient.NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest("Status_example") // KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest | Object containing orchestrator ids and the new status those orchestrators should have xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentApi.AgentSetAuthCertificateReenrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AuthCertReenrollmentRequest(authCertReenrollmentRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -557,7 +557,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/AgentBlueprintApi.md b/docs/AgentBlueprintApi.md index af948c6..c59020f 100644 --- a/docs/AgentBlueprintApi.md +++ b/docs/AgentBlueprintApi.md @@ -38,7 +38,7 @@ func main() { agentIds := []string{"00000000-0000-0000-0000-000000000000"} // []string | Agents to apply the blueprints to xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintApplyBlueprint(context.Background()).TemplateId(templateId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -105,7 +105,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintDeleteBlueprint(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGenerateBlueprint(context.Background()).AgentId(agentId).Name(name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprint(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -282,7 +282,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -320,7 +320,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprints(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -356,7 +356,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -395,7 +395,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintJobs(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -436,7 +436,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -475,7 +475,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintStores(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -516,7 +516,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/AgentPoolApi.md b/docs/AgentPoolApi.md index 98506e7..ab73e5c 100644 --- a/docs/AgentPoolApi.md +++ b/docs/AgentPoolApi.md @@ -38,7 +38,7 @@ func main() { agentPool := *openapiclient.NewModelsAgentsAgentPool("Name_example") // ModelsAgentsAgentPool | Agent pool properties to be applied to the new pool xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentPoolApi.AgentPoolCreateAgentPool(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentPool(agentPool).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -71,7 +71,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -106,7 +106,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentPoolApi.AgentPoolDeleteAgentPool(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -141,7 +141,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentPoolApi.AgentPoolGetAgentPoolById(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -213,7 +213,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -252,7 +252,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentPoolApi.AgentPoolGetAgentPools(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -289,7 +289,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -328,7 +328,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentPoolApi.AgentPoolGetDefaultAgentPoolAgents(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -365,7 +365,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -402,7 +402,7 @@ func main() { agentPool := *openapiclient.NewModelsAgentsAgentPool("Name_example") // ModelsAgentsAgentPool | Agent pool properties to be applied to the existing pool xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AgentPoolApi.AgentPoolUpdateAgentPool(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentPool(agentPool).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -435,7 +435,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/AuditLogApi.md b/docs/AuditLogApi.md index 093a9ff..e9dac92 100644 --- a/docs/AuditLogApi.md +++ b/docs/AuditLogApi.md @@ -39,7 +39,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AuditLogApi.AuditLogDownloadCSV(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -76,7 +76,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -111,7 +111,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AuditLogApi.AuditLogGetAuditLog(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -148,7 +148,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -187,7 +187,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AuditLogApi.AuditLogGetAuditLogs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -224,7 +224,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -263,7 +263,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AuditLogApi.AuditLogGetRelatedEntities(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -300,7 +300,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -337,7 +337,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.AuditLogApi.AuditLogValidateAuditLog(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -374,7 +374,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CSRGenerationApi.md b/docs/CSRGenerationApi.md index 5caf8ca..99f7717 100644 --- a/docs/CSRGenerationApi.md +++ b/docs/CSRGenerationApi.md @@ -35,7 +35,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSR(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -105,7 +105,7 @@ func main() { ids := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers for the CSRs to be deleted xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSRs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -136,7 +136,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -171,7 +171,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CSRGenerationApi.CSRGenerationDownload(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -208,7 +208,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -247,7 +247,7 @@ func main() { sqSortField := "sqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) sqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CSRGenerationApi.CSRGenerationGetPendingCSRs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() if err != nil { @@ -284,7 +284,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -319,7 +319,7 @@ func main() { context := *openapiclient.NewModelsEnrollmentCSRGenerationRequest("Subject_example", "KeyType_example", int32(123)) // ModelsEnrollmentCSRGenerationRequest | 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 xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CSRGenerationApi.CSRGenerationPostGenerate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Context(context).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -352,7 +352,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CertificateApi.md b/docs/CertificateApi.md index 53d9fe7..e00218d 100644 --- a/docs/CertificateApi.md +++ b/docs/CertificateApi.md @@ -51,7 +51,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest() // KeyfactorApiModelsCertificatesAnalyzeCertificateRequest | The certificate to analyze xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateAnalyzeCert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -124,7 +124,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateCertificateHistory(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -166,7 +166,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -204,7 +204,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateCompareMetadata(context.Background()).CertificateId(certificateId).MetadataFieldName(metadataFieldName).Value(value).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -240,7 +240,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -278,7 +278,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateDeleteByQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Sq(sq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -310,7 +310,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -346,7 +346,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateDeleteCertificate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -382,7 +382,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -420,7 +420,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateDeleteCertificates(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -452,7 +452,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -488,7 +488,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateDeletePrivateKeys0(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -520,7 +520,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -556,7 +556,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateDeletePrivateKeys1(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -592,7 +592,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -630,7 +630,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateDownloadCertificateAsync(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Rq(rq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -664,7 +664,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -703,7 +703,7 @@ func main() { verbose := int32(56) // int32 | (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateGetCertificate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).Verbose(verbose).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -744,7 +744,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -780,7 +780,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateGetCertificateLocations(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -818,7 +818,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -854,7 +854,7 @@ func main() { collectionId := int32(56) // int32 | The Id of the collection the certificate belongs in. Defaults to no collection (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateGetCertificateSecurity(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -892,7 +892,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -928,7 +928,7 @@ func main() { collectionId := int32(56) // int32 | An optional parameter for the collectin Id the certificate is in. Defaults to no collection (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateIdentityAudit(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -966,7 +966,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1001,7 +1001,7 @@ func main() { req := *openapiclient.NewModelsCertificateImportRequestModel("Certificate_example") // ModelsCertificateImportRequestModel | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificatePostImportCertificate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1034,7 +1034,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1080,7 +1080,7 @@ func main() { pqIncludeRevoked := true // bool | Select 'true' to include revoked certificates in the results (optional) pqIncludeExpired := true // bool | Select 'true' to include expired certificates in the results (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateQueryCertificates(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).Verbose(verbose).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).PqIncludeRevoked(pqIncludeRevoked).PqIncludeExpired(pqIncludeExpired).Execute() if err != nil { @@ -1124,7 +1124,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1163,7 +1163,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateRecoverCertificateAsync(context.Background()).XCertificateformat(xCertificateformat).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Rq(rq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1198,7 +1198,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1235,7 +1235,7 @@ func main() { request := *openapiclient.NewModelsRevokeCertificateRequest() // ModelsRevokeCertificateRequest | Contains the Keyfactor certificate identifiers and revocation data xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateRevoke(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1268,7 +1268,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1306,7 +1306,7 @@ func main() { collectionId := int32(56) // int32 | A collection Id to be used for permissions and part of the query to revoke certificates (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateRevokeAll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1340,7 +1340,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1376,7 +1376,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateUpdateAllMetadata(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataUpdate(metadataUpdate).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1408,7 +1408,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1444,7 +1444,7 @@ func main() { collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateUpdateMetadata(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataUpdate(metadataUpdate).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1476,7 +1476,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1512,7 +1512,7 @@ func main() { collectionId := int32(56) // int32 | An optional parameter for the collectin Id the certificate is in. Defaults to no collection (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateApi.CertificateValidateCertificate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1550,7 +1550,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CertificateAuthorityApi.md b/docs/CertificateAuthorityApi.md index f8e6964..ab56990 100644 --- a/docs/CertificateAuthorityApi.md +++ b/docs/CertificateAuthorityApi.md @@ -37,7 +37,7 @@ func main() { ca := *openapiclient.NewModelsCertificateAuthoritiesCertificateAuthorityRequest() // ModelsCertificateAuthoritiesCertificateAuthorityRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityCreateCA(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -105,7 +105,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityDeleteCA(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -175,7 +175,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCa(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -212,7 +212,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -251,7 +251,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCas(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -288,7 +288,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -323,7 +323,7 @@ func main() { crlrequest := *openapiclient.NewModelsCRLRequestModel("CertificateAuthorityLogicalName_example") // ModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityPublishCRL(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Crlrequest(crlrequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -389,7 +389,7 @@ func main() { ca := *openapiclient.NewModelsCertificateAuthoritiesCertificateAuthorityRequest() // ModelsCertificateAuthoritiesCertificateAuthorityRequest | The CA being tested. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityTestCertificateAuthority(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -422,7 +422,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -457,7 +457,7 @@ func main() { ca := *openapiclient.NewModelsCertificateAuthoritiesCertificateAuthorityRequest() // ModelsCertificateAuthoritiesCertificateAuthorityRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityUpdateCA(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -490,7 +490,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CertificateCollectionApi.md b/docs/CertificateCollectionApi.md index fc9968e..f5ef85b 100644 --- a/docs/CertificateCollectionApi.md +++ b/docs/CertificateCollectionApi.md @@ -39,7 +39,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest(int32(123), "Name_example") // KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest | Information related to the certificate collection query xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionCopyFromExistingCollection(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -109,7 +109,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest("Name_example") // KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest | Information related to the certificate collection query xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionCreateCollection(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -177,7 +177,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection0(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -214,7 +214,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -249,7 +249,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection1(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -286,7 +286,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -325,7 +325,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollections(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -362,7 +362,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -400,7 +400,7 @@ func main() { collectionPermissions := []openapiclient.ModelsCollectionRolePermissions{*openapiclient.NewModelsCollectionRolePermissions()} // []ModelsCollectionRolePermissions | The collection Permissions object ['Read', 'EditMetadata', 'Recover', 'Revoke', 'Delete'] xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionSetCollectionPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -436,7 +436,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -473,7 +473,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest(int32(123), "Name_example") // KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest | Information related to the certificate collection query xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionUpdateCollection(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -506,7 +506,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CertificateStoreApi.md b/docs/CertificateStoreApi.md index 37e6a40..e0aa733 100644 --- a/docs/CertificateStoreApi.md +++ b/docs/CertificateStoreApi.md @@ -42,7 +42,7 @@ func main() { addRequest := *openapiclient.NewKeyfactorApiModelsCertificateStoresAddCertificateRequest(int32(123), []openapiclient.ModelsCertificateStoreEntry{*openapiclient.NewModelsCertificateStoreEntry("00000000-0000-0000-0000-000000000000")}, *openapiclient.NewKeyfactorCommonSchedulingKeyfactorSchedule()) // KeyfactorApiModelsCertificateStoresAddCertificateRequest | Configuration details of the management job xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreAddCertificate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AddRequest(addRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -110,7 +110,7 @@ func main() { keystores := []openapiclient.KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{*openapiclient.NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest()} // []KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest | Certificate stores to be approved xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreApprovePending(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Keystores(keystores).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -141,7 +141,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { discoveryJobRequest := *openapiclient.NewModelsDiscoveryJobRequest(int32(123)) // ModelsDiscoveryJobRequest | Configuration properties of the discovery job xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreConfigureDiscoveryJob(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DiscoveryJobRequest(discoveryJobRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -207,7 +207,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -242,7 +242,7 @@ func main() { request := *openapiclient.NewModelsCertificateStoreCreateServerRequest(*openapiclient.NewModelsKeyfactorAPISecret(), *openapiclient.NewModelsKeyfactorAPISecret(), false, int32(123), "Name_example") // ModelsCertificateStoreCreateServerRequest | Certificate store server to be created with the provided properties xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreCreateCertificateStoreServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -275,7 +275,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -310,7 +310,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStore(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -345,7 +345,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -382,7 +382,7 @@ func main() { ids := []string{"00000000-0000-0000-0000-000000000000"} // []string | Array of Keyfactor identifiers (GUID) for the certificate stores to be deleted xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStores(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -413,7 +413,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -452,7 +452,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreGetCertificateStoreInventory(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -493,7 +493,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -528,7 +528,7 @@ func main() { removalRequest := *openapiclient.NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest([]openapiclient.ModelsCertificateLocationSpecifier{*openapiclient.NewModelsCertificateLocationSpecifier()}, *openapiclient.NewKeyfactorCommonSchedulingKeyfactorSchedule()) // KeyfactorApiModelsCertificateStoresRemoveCertificateRequest | Configuration details of the management job xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreRemoveCertificate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RemovalRequest(removalRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -561,7 +561,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -596,7 +596,7 @@ func main() { futureSchedule := *openapiclient.NewModelsCertStoresSchedule([]string{"00000000-0000-0000-0000-000000000000"}) // ModelsCertStoresSchedule | Certificate store identifiers and the desired schedule xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).FutureSchedule(futureSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -627,7 +627,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -662,7 +662,7 @@ func main() { reenroll := *openapiclient.NewKeyfactorApiModelsCertificateStoresReenrollmentRequest() // KeyfactorApiModelsCertificateStoresReenrollmentRequest | An object that contains a Keystore Id, a Agent Guid, a string SubjectName and string Alias xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreScheduleForReenrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Reenroll(reenroll).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -693,7 +693,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -728,7 +728,7 @@ func main() { passwordRequest := *openapiclient.NewModelsCertStoreNewPasswordRequest("00000000-0000-0000-0000-000000000000", map[string]interface{}(123)) // ModelsCertStoreNewPasswordRequest | Identifier of the certificate store and the password to be applied to it xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreSetPassword(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PasswordRequest(passwordRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -759,7 +759,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -794,7 +794,7 @@ func main() { request := *openapiclient.NewModelsCertificateStoreUpdateServerRequest(int32(123), *openapiclient.NewModelsKeyfactorAPISecret(), *openapiclient.NewModelsKeyfactorAPISecret(), false, "Name_example") // ModelsCertificateStoreUpdateServerRequest | Server to be updated with the provided properties xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreApi.CertificateStoreUpdateCertificateStoreServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -827,7 +827,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CertificateStoreContainerApi.md b/docs/CertificateStoreContainerApi.md index 2c35a49..bda1f7f 100644 --- a/docs/CertificateStoreContainerApi.md +++ b/docs/CertificateStoreContainerApi.md @@ -32,7 +32,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerDeleteCertificateStoreContainers(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -106,7 +106,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerGetAllCertificateStoreContainers(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -143,7 +143,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CertificateStoreTypeApi.md b/docs/CertificateStoreTypeApi.md index 91600da..c9bd55a 100644 --- a/docs/CertificateStoreTypeApi.md +++ b/docs/CertificateStoreTypeApi.md @@ -37,7 +37,7 @@ func main() { certStoreType := *openapiclient.NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest("Name_example", "ShortName_example") // KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest | Certificate store type properties for the new type xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeCreateCertificateStoreType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CertStoreType(certStoreType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -107,7 +107,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreType(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -179,7 +179,7 @@ func main() { ids := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers of the certificate store types to be deleted xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType0(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -282,7 +282,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -317,7 +317,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType1(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -393,7 +393,7 @@ func main() { cstquerySortField := "cstquerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) cstquerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CstqueryQueryString(cstqueryQueryString).CstqueryPageReturned(cstqueryPageReturned).CstqueryReturnLimit(cstqueryReturnLimit).CstquerySortField(cstquerySortField).CstquerySortAscending(cstquerySortAscending).Execute() if err != nil { @@ -430,7 +430,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -465,7 +465,7 @@ func main() { certStoreType := *openapiclient.NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest(int32(123), "Name_example", "ShortName_example") // KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest | Certificate store type properties to be updated xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeUpdateCertificateStoreType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CertStoreType(certStoreType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -498,7 +498,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/CustomJobTypeApi.md b/docs/CustomJobTypeApi.md index 86bf74b..6c66482 100644 --- a/docs/CustomJobTypeApi.md +++ b/docs/CustomJobTypeApi.md @@ -35,7 +35,7 @@ func main() { jobType := *openapiclient.NewModelsOrchestratorJobsJobTypeCreateRequest("JobTypeName_example") // ModelsOrchestratorJobsJobTypeCreateRequest | job type properties to be applied to the new job type xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeCreateJobType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeDeleteJobType(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -173,7 +173,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypeById(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -249,7 +249,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -286,7 +286,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -321,7 +321,7 @@ func main() { jobType := *openapiclient.NewModelsOrchestratorJobsJobTypeUpdateRequest("00000000-0000-0000-0000-000000000000", "JobTypeName_example") // ModelsOrchestratorJobsJobTypeUpdateRequest | job type properties to be applied to the existing job type xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeUpdateJobType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/DeniedAlertApi.md b/docs/DeniedAlertApi.md index c51b2c2..b1286a1 100644 --- a/docs/DeniedAlertApi.md +++ b/docs/DeniedAlertApi.md @@ -35,7 +35,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest | Information for the new alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.DeniedAlertApi.DeniedAlertAddDeniedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.DeniedAlertApi.DeniedAlertDeleteDeniedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -173,7 +173,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest | Information for the denied alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.DeniedAlertApi.DeniedAlertEditDeniedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -206,7 +206,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -241,7 +241,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -317,7 +317,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/EnrollmentApi.md b/docs/EnrollmentApi.md index 104e5c0..d914d8d 100644 --- a/docs/EnrollmentApi.md +++ b/docs/EnrollmentApi.md @@ -41,7 +41,7 @@ func main() { request := *openapiclient.NewModelsEnrollmentExistingEnrollmentManagementRequest() // ModelsEnrollmentExistingEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentAddToExistingCertStores(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -74,7 +74,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -112,7 +112,7 @@ func main() { collectionId := int32(56) // int32 | The collection id for the given certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalId(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -150,7 +150,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -186,7 +186,7 @@ func main() { collectionId := int32(56) // int32 | The collection id for the given certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalThumbprint(context.Background(), thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -224,7 +224,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -258,7 +258,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentGetMyCSRContext(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -290,7 +290,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -324,7 +324,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentGetMyPFXContext(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -356,7 +356,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -391,7 +391,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentGetTemplateEnrollmentSettings(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -428,7 +428,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -463,7 +463,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest("Password_example") // KeyfactorApiModelsEnrollmentEnrollmentManagementRequest | 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 xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentInstallPFXToCertStore(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -496,7 +496,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -534,7 +534,7 @@ func main() { request := *openapiclient.NewModelsEnrollmentCSREnrollmentRequest("CSR_example") // ModelsEnrollmentCSREnrollmentRequest | Information needed to perform the CSR Enrollment xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentPostCSREnroll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -568,7 +568,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -606,7 +606,7 @@ func main() { request := *openapiclient.NewModelsEnrollmentPFXEnrollmentRequest() // ModelsEnrollmentPFXEnrollmentRequest | The information needed to perform the PFX Enrollment xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentPostPFXEnroll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -640,7 +640,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -677,7 +677,7 @@ func main() { csr := *openapiclient.NewModelsCSRContents("CSR_example") // ModelsCSRContents | CSR to be parsed xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentPostParsedCSR(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Csr(csr).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -710,7 +710,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -746,7 +746,7 @@ func main() { collectionId := int32(56) // int32 | The collection id for the given certificate (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.EnrollmentApi.EnrollmentRenew(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -780,7 +780,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/ExpirationAlertApi.md b/docs/ExpirationAlertApi.md index d4c7baf..6cf6803 100644 --- a/docs/ExpirationAlertApi.md +++ b/docs/ExpirationAlertApi.md @@ -39,7 +39,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest | Information for the new alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertAddExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -107,7 +107,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertDeleteExpirationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -177,7 +177,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest | Information for the expiration alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertEditExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -313,7 +313,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -350,7 +350,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -389,7 +389,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -426,7 +426,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -460,7 +460,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -492,7 +492,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -527,7 +527,7 @@ func main() { expirationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest() // KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest | Information about the expiration alert test xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertTestAllExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ExpirationAlertTestRequest(expirationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -560,7 +560,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -595,7 +595,7 @@ func main() { expirationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest() // KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest | Information about the expiration alert test xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertTestExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ExpirationAlertTestRequest(expirationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -628,7 +628,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/IssuedAlertApi.md b/docs/IssuedAlertApi.md index 80fe90b..0ef60cd 100644 --- a/docs/IssuedAlertApi.md +++ b/docs/IssuedAlertApi.md @@ -37,7 +37,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest | Information for the new alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertAddIssuedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -105,7 +105,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertDeleteIssuedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -175,7 +175,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest | Information for the issued alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertEditIssuedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -208,7 +208,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -243,7 +243,7 @@ func main() { newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -276,7 +276,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -311,7 +311,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -348,7 +348,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -387,7 +387,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -424,7 +424,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -458,7 +458,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.IssuedAlertApi.IssuedAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -490,7 +490,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/KeyApi.md b/docs/KeyApi.md index 9d2cee2..c7f89f0 100644 --- a/docs/KeyApi.md +++ b/docs/KeyApi.md @@ -37,7 +37,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyDeleteUnmanagedKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -107,7 +107,7 @@ func main() { ids := []int32{int32(123)} // []int32 | Keyfactor identifers of the Keys to be deleted xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyDeleteUnmanagedKeys(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -175,7 +175,7 @@ func main() { generationRequest := *openapiclient.NewModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example") // ModelsSSHKeysKeyGenerationRequest | Object containing information about the key to be generated xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyGenerateKey(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GenerationRequest(generationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -208,7 +208,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -244,7 +244,7 @@ func main() { includePrivateKey := true // bool | Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyGetMyKey(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorKeyPassphrase(xKeyfactorKeyPassphrase).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -313,7 +313,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyGetUnmanagedKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -350,7 +350,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -389,7 +389,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyGetUnmanagedKeys(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -426,7 +426,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -461,7 +461,7 @@ func main() { keyUpdateRequest := *openapiclient.NewModelsSSHKeysKeyUpdateRequest(int32(123), "Email_example") // ModelsSSHKeysKeyUpdateRequest | Updated state of the SSH key xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyApi.KeyUpdate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyUpdateRequest(keyUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -494,7 +494,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/KeyRotationAlertApi.md b/docs/KeyRotationAlertApi.md index 9d8eafd..17f504c 100644 --- a/docs/KeyRotationAlertApi.md +++ b/docs/KeyRotationAlertApi.md @@ -39,7 +39,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest | Information for the new alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertAddKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -107,7 +107,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertDeleteKeyRotationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -177,7 +177,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest | Information for the key rotation alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertEditKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -313,7 +313,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -350,7 +350,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -389,7 +389,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -426,7 +426,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -460,7 +460,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -492,7 +492,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -527,7 +527,7 @@ func main() { keyRotationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest() // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest | Information about the key rotation alert test xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertTestAllKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyRotationAlertTestRequest(keyRotationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -560,7 +560,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -595,7 +595,7 @@ func main() { keyRotationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest() // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest | Parameters used to test the alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertTestKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyRotationAlertTestRequest(keyRotationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -628,7 +628,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/LicenseApi.md b/docs/LicenseApi.md index 2a07fb0..4df5ac4 100644 --- a/docs/LicenseApi.md +++ b/docs/LicenseApi.md @@ -30,7 +30,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.LicenseApi.LicenseGetCurrentLicense(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -62,7 +62,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/LogonApi.md b/docs/LogonApi.md index dfb8bf4..23aaac9 100644 --- a/docs/LogonApi.md +++ b/docs/LogonApi.md @@ -35,7 +35,7 @@ func main() { logon := *openapiclient.NewModelsSSHLogonsLogonCreationRequest("Username_example", int32(123)) // ModelsSSHLogonsLogonCreationRequest | Logon properties to be applied to the new logon xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.LogonApi.LogonCreateLogon(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Logon(logon).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.LogonApi.LogonDelete(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -173,7 +173,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.LogonApi.LogonGetLogon(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { logon := *openapiclient.NewModelsSSHLogonsLogonAccessRequest(int32(123)) // ModelsSSHLogonsLogonAccessRequest | Users to add the existing logon xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.LogonApi.LogonLogonAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Logon(logon).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -317,7 +317,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.LogonApi.LogonQueryLogons(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/MacEnrollmentApi.md b/docs/MacEnrollmentApi.md index 96898a6..6f519b4 100644 --- a/docs/MacEnrollmentApi.md +++ b/docs/MacEnrollmentApi.md @@ -32,7 +32,7 @@ func main() { macEnrollmentSettings := *openapiclient.NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel() // KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MacEnrollmentApi.MacEnrollmentEditMacEnrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MacEnrollmentSettings(macEnrollmentSettings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -99,7 +99,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MacEnrollmentApi.MacEnrollmentMacEnrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -131,7 +131,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/MetadataFieldApi.md b/docs/MetadataFieldApi.md index 76b5444..0f4c7c4 100644 --- a/docs/MetadataFieldApi.md +++ b/docs/MetadataFieldApi.md @@ -40,7 +40,7 @@ func main() { metadataFieldType := *openapiclient.NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest("Name_example", "Description_example", int32(123)) // KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest | Properties of the metadata field type to be created xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldCreateMetadataField(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataFieldType(metadataFieldType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -109,7 +109,7 @@ func main() { force := true // bool | Forces deletion of the metadata field type even if in-use (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataField(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -145,7 +145,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -183,7 +183,7 @@ func main() { force := true // bool | Forces deletion of the metadata field type even if in-use (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataFields(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -215,7 +215,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -254,7 +254,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetAllMetadataFields(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -291,7 +291,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -326,7 +326,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField0(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -363,7 +363,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -398,7 +398,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField1(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -435,7 +435,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -470,7 +470,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataFieldInUse(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -507,7 +507,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -544,7 +544,7 @@ func main() { metadataFieldType := *openapiclient.NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest(int32(123), "Name_example", "Description_example", int32(123)) // KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest | Properties of the metadata field type to be updated xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MetadataFieldApi.MetadataFieldUpdateMetadataField(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataFieldType(metadataFieldType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -577,7 +577,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/MonitoringApi.md b/docs/MonitoringApi.md index f96f9c9..670d5ca 100644 --- a/docs/MonitoringApi.md +++ b/docs/MonitoringApi.md @@ -38,7 +38,7 @@ func main() { endpoint := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest("Name_example", "EndpointType_example", "Location_example", *openapiclient.NewKeyfactorApiModelsMonitoringDashboardRequest(false)) // KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest | Information for the new endpoint xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringAddRevocationMonitoring(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -71,7 +71,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -106,7 +106,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringDeleteRevocationMonitoring(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -141,7 +141,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { endpoint := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest("Name_example", "EndpointType_example", "Location_example", *openapiclient.NewKeyfactorApiModelsMonitoringDashboardRequest(false)) // KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest | Information for the endpoint xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringEditRevocationMonitoring(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -209,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -244,7 +244,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoring(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -281,7 +281,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -320,7 +320,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoringEndpoints(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -357,7 +357,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -392,7 +392,7 @@ func main() { endpoint := *openapiclient.NewKeyfactorApiModelsMonitoringOCSPParametersRequest() // KeyfactorApiModelsMonitoringOCSPParametersRequest | Information for the new endpoint xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringResolveOCSP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -460,7 +460,7 @@ func main() { revocationMonitoringAlertTestRequest := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest() // KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest | Information about the revocation monitoring alert test xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringTestAllRevocationMonitoringAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RevocationMonitoringAlertTestRequest(revocationMonitoringAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -493,7 +493,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -528,7 +528,7 @@ func main() { revocationMonitoringAlertTestRequest := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest() // KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest | Information about the revocation monitoring alert test xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.MonitoringApi.MonitoringTestRevocationMonitoringAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RevocationMonitoringAlertTestRequest(revocationMonitoringAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -561,7 +561,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/OrchestratorJobApi.md b/docs/OrchestratorJobApi.md index 7803b74..913968b 100644 --- a/docs/OrchestratorJobApi.md +++ b/docs/OrchestratorJobApi.md @@ -38,7 +38,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest() // KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest | Information to identify the jobs to acknowledge, either a query or a list of job identifiers xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobAcknowledgeJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -69,7 +69,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -104,7 +104,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobGetCustomJobResultData(context.Background()).JobHistoryId(jobHistoryId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -137,7 +137,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobGetJobHistory(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -213,7 +213,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -252,7 +252,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobGetScheduledJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -289,7 +289,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -324,7 +324,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest() // KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest | Information to identify the jobs to reschedule, either a query or a list of job identifiers xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobRescheduleJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -355,7 +355,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -390,7 +390,7 @@ func main() { req := *openapiclient.NewModelsOrchestratorJobsScheduleBulkJobRequest([]string{"00000000-0000-0000-0000-000000000000"}, "JobTypeName_example") // ModelsOrchestratorJobsScheduleBulkJobRequest | Information to use to schedule the jobs, including the type of custom job, agents to use, and job-specific parameters. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobScheduleBulkJob(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -423,7 +423,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -458,7 +458,7 @@ func main() { req := *openapiclient.NewModelsOrchestratorJobsScheduleJobRequest("00000000-0000-0000-0000-000000000000", "JobTypeName_example") // ModelsOrchestratorJobsScheduleJobRequest | Information to use to schedule the job, including the type of custom job, agent to use, and job-specific parameters. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobScheduleJob(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -491,7 +491,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -526,7 +526,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest() // KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest | Information to identify the orchestrator jobs to unschedule, either a query or a list of job identifiers xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobUnscheduleJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -557,7 +557,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/PAMProviderApi.md b/docs/PAMProviderApi.md index 67664bd..dbf9c6f 100644 --- a/docs/PAMProviderApi.md +++ b/docs/PAMProviderApi.md @@ -39,7 +39,7 @@ func main() { provider := *openapiclient.NewCSSCMSDataModelModelsProvider("Name_example", *openapiclient.NewCSSCMSDataModelModelsProviderType()) // CSSCMSDataModelModelsProvider | PAM provider properties to be used xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderCreatePamProvider(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Provider(provider).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -109,7 +109,7 @@ func main() { type_ := *openapiclient.NewKeyfactorApiPAMProviderTypeCreateRequest("Name_example") // KeyfactorApiPAMProviderTypeCreateRequest | PAM provider type properties to be used xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderCreatePamProviderType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Type_(type_).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -177,7 +177,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderDeletePamProvider(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -212,7 +212,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -249,7 +249,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderGetPamProvider(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -286,7 +286,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -322,7 +322,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderGetPamProviderTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -395,7 +395,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderGetPamProviders(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -432,7 +432,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -469,7 +469,7 @@ func main() { provider := *openapiclient.NewCSSCMSDataModelModelsProvider("Name_example", *openapiclient.NewCSSCMSDataModelModelsProviderType()) // CSSCMSDataModelModelsProvider | PAM provider properties to be used xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PAMProviderApi.PAMProviderUpdatePamProvider(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Provider(provider).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -502,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/PendingAlertApi.md b/docs/PendingAlertApi.md index 1ca6d5b..3de2d5c 100644 --- a/docs/PendingAlertApi.md +++ b/docs/PendingAlertApi.md @@ -39,7 +39,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest | Information for the new alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertAddPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -107,7 +107,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertDeletePendingAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -177,7 +177,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest | Information for the pending alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertEditPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -313,7 +313,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -350,7 +350,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -389,7 +389,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -426,7 +426,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -460,7 +460,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -492,7 +492,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -527,7 +527,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest() // KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest | Information for the pending alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertTestAllPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -560,7 +560,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -595,7 +595,7 @@ func main() { req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest() // KeyfactorApiModelsAlertsPendingPendingAlertTestRequest | Information for the pending alert xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.PendingAlertApi.PendingAlertTestPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -628,7 +628,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md index edd3ef3..732dc61 100644 --- a/docs/ReportsApi.md +++ b/docs/ReportsApi.md @@ -45,7 +45,7 @@ func main() { request := *openapiclient.NewModelsCustomReportCreationRequest("CustomURL_example", "DisplayName_example", "Description_example") // ModelsCustomReportCreationRequest | Report Information xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsCreateCustomReport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -78,7 +78,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -114,7 +114,7 @@ func main() { schedule := *openapiclient.NewModelsReportSchedule() // ModelsReportSchedule | Report Schedule xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsCreateReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Schedule(schedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -152,7 +152,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -187,7 +187,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsDeleteReport(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -222,7 +222,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -257,7 +257,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsDeleteReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -292,7 +292,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -327,7 +327,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsGetCustomReport(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -364,7 +364,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -399,7 +399,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsGetReport(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -436,7 +436,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -471,7 +471,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsGetReportParameters(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -508,7 +508,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -543,7 +543,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsGetReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -580,7 +580,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -620,7 +620,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsGetReportSchedules(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -662,7 +662,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -701,7 +701,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsQueryCustomReports(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -738,7 +738,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -777,7 +777,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsQueryReports(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -814,7 +814,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -849,7 +849,7 @@ func main() { request := *openapiclient.NewModelsCustomReportUpdateRequest(int32(123)) // ModelsCustomReportUpdateRequest | Report Information xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsUpdateCustomReport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -882,7 +882,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -917,7 +917,7 @@ func main() { request := *openapiclient.NewModelsReportRequestModel() // ModelsReportRequestModel | This object is used to update the Favorite, In Navigator and the Remove Duplicates if the 'Uses Collections' is true. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsUpdateReport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -950,7 +950,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -986,7 +986,7 @@ func main() { request := []openapiclient.ModelsReportParametersRequest{*openapiclient.NewModelsReportParametersRequest()} // []ModelsReportParametersRequest | A List of the parameters to be updated xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsUpdateReportParameters(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1024,7 +1024,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1060,7 +1060,7 @@ func main() { schedule := *openapiclient.NewModelsReportSchedule() // ModelsReportSchedule | Report Schedule xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ReportsApi.ReportsUpdateReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Schedule(schedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1098,7 +1098,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/SMTPApi.md b/docs/SMTPApi.md index 221a478..22622f4 100644 --- a/docs/SMTPApi.md +++ b/docs/SMTPApi.md @@ -32,7 +32,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SMTPApi.SMTPSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -99,7 +99,7 @@ func main() { smtpProfile := *openapiclient.NewKeyfactorAPIModelsSMTPSMTPTestRequest() // KeyfactorAPIModelsSMTPSMTPTestRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SMTPApi.SMTPTestSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -132,7 +132,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -167,7 +167,7 @@ func main() { smtpProfile := *openapiclient.NewKeyfactorAPIModelsSMTPSMTPRequest() // KeyfactorAPIModelsSMTPSMTPRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SMTPApi.SMTPUpdateSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -200,7 +200,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/SecurityApi.md b/docs/SecurityApi.md index 443ffbc..5c81193 100644 --- a/docs/SecurityApi.md +++ b/docs/SecurityApi.md @@ -33,7 +33,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityApi.SecurityDeleteSecurityIdentity(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityApi.SecurityIdentityPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -175,7 +175,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityApi.SecurityLookupIdentity(context.Background()).AccountName(accountName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -208,7 +208,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/SecurityRolePermissionsApi.md b/docs/SecurityRolePermissionsApi.md index efa1d47..3bfb7bc 100644 --- a/docs/SecurityRolePermissionsApi.md +++ b/docs/SecurityRolePermissionsApi.md @@ -43,7 +43,7 @@ func main() { collectionPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest | Collections permissions xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddCollectionPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -81,7 +81,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -119,7 +119,7 @@ func main() { containerPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesContainerPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest()} // []KeyfactorApiModelsSecurityRolesContainerPermissionRequest | Container permissions xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddContainerPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ContainerPermissions(containerPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -157,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -195,7 +195,7 @@ func main() { globalPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest | Global permissions xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddGlobalPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GlobalPermissions(globalPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -233,7 +233,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -268,7 +268,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetCollectionPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -305,7 +305,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -340,7 +340,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetContainerPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -377,7 +377,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -412,7 +412,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetGlobalPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -449,7 +449,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -484,7 +484,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -521,7 +521,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -559,7 +559,7 @@ func main() { collectionPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest | Collections permissions xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetCollectionPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -597,7 +597,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -635,7 +635,7 @@ func main() { containerPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesContainerPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest()} // []KeyfactorApiModelsSecurityRolesContainerPermissionRequest | Container permissions xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetContainerPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ContainerPermissions(containerPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -673,7 +673,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -711,7 +711,7 @@ func main() { globalPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest | Global permissions xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetGlobalPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GlobalPermissions(globalPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -749,7 +749,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/SecurityRolesApi.md b/docs/SecurityRolesApi.md index abe2c59..4ca6e58 100644 --- a/docs/SecurityRolesApi.md +++ b/docs/SecurityRolesApi.md @@ -33,7 +33,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolesApi.SecurityRolesDeleteSecurityRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolesApi.SecurityRolesGetIdentitiesWithRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { identities := *openapiclient.NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest() // KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest | Lists of Identity IDs to remove or add to the role xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SecurityRolesApi.SecurityRolesUpdateIdentitiesWithRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Identities(identities).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -214,7 +214,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/ServerApi.md b/docs/ServerApi.md index 0c70f54..c3d7618 100644 --- a/docs/ServerApi.md +++ b/docs/ServerApi.md @@ -38,7 +38,7 @@ func main() { serverAccess := *openapiclient.NewModelsSSHAccessServerAccessRequest(int32(123), []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerAccessRequest | Logons and users to be applied to the existing server xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerAddAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerAccess(serverAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -71,7 +71,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -106,7 +106,7 @@ func main() { creationRequest := *openapiclient.NewModelsSSHServersServerCreationRequest("00000000-0000-0000-0000-000000000000", "Hostname_example", "00000000-0000-0000-0000-000000000000") // ModelsSSHServersServerCreationRequest | Server properties to be applied to the newserver xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerCreateServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CreationRequest(creationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -139,7 +139,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -174,7 +174,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerDelete(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -209,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -244,7 +244,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerGet(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -281,7 +281,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -316,7 +316,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerGetAccess(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -353,7 +353,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -392,7 +392,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerQueryServers(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -429,7 +429,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -464,7 +464,7 @@ func main() { serverAccess := *openapiclient.NewModelsSSHAccessServerAccessRequest(int32(123), []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerAccessRequest | Logons and users to be removed from the existing server xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerRemoveAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerAccess(serverAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -497,7 +497,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -532,7 +532,7 @@ func main() { updateRequest := *openapiclient.NewModelsSSHServersServerUpdateRequest(int32(123)) // ModelsSSHServersServerUpdateRequest | Server properties to be applied to the existing server xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerApi.ServerUpdateServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -565,7 +565,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/ServerGroupApi.md b/docs/ServerGroupApi.md index 48a77b8..9ad89af 100644 --- a/docs/ServerGroupApi.md +++ b/docs/ServerGroupApi.md @@ -39,7 +39,7 @@ func main() { accessRequest := *openapiclient.NewModelsSSHAccessServerGroupAccessRequest("00000000-0000-0000-0000-000000000000", []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerGroupAccessRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupAddAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccessRequest(accessRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -107,7 +107,7 @@ func main() { serverGroupCreationRequest := *openapiclient.NewModelsSSHServerGroupsServerGroupCreationRequest("OwnerName_example", "GroupName_example") // ModelsSSHServerGroupsServerGroupCreationRequest | Server group properties to be applied to the new group xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupCreateServerGroup(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerGroupCreationRequest(serverGroupCreationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -175,7 +175,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupDelete(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -245,7 +245,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupGetAccess(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -282,7 +282,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -317,7 +317,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupGetGroup(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -354,7 +354,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -389,7 +389,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupGetGroupByName(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -426,7 +426,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -465,7 +465,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupQueryServerGroups(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -502,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -537,7 +537,7 @@ func main() { accessRequest := *openapiclient.NewModelsSSHAccessServerGroupAccessRequest("00000000-0000-0000-0000-000000000000", []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerGroupAccessRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupRemoveAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccessRequest(accessRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -570,7 +570,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -605,7 +605,7 @@ func main() { updateRequest := *openapiclient.NewModelsSSHServerGroupsServerGroupUpdateRequest("00000000-0000-0000-0000-000000000000", "OwnerName_example", "GroupName_example", false) // ModelsSSHServerGroupsServerGroupUpdateRequest | Server group properties to be applied to the existing group xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServerGroupApi.ServerGroupUpdateServerGroup(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -638,7 +638,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/ServiceAccountApi.md b/docs/ServiceAccountApi.md index 4c8203c..67214c9 100644 --- a/docs/ServiceAccountApi.md +++ b/docs/ServiceAccountApi.md @@ -38,7 +38,7 @@ func main() { serviceAccount := *openapiclient.NewModelsSSHServiceAccountsServiceAccountCreationRequest(*openapiclient.NewModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example"), *openapiclient.NewModelsSSHServiceAccountsServiceAccountUserCreationRequest("Username_example"), "ClientHostname_example", "00000000-0000-0000-0000-000000000000") // ModelsSSHServiceAccountsServiceAccountCreationRequest | ServiceAccount properties to be applied to the new ServiceAccount xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountCreateServiceAccount(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServiceAccount(serviceAccount).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -71,7 +71,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -106,7 +106,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccount(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -141,7 +141,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -176,7 +176,7 @@ func main() { ids := []int32{int32(123)} // []int32 | Keyfactor identifers of the ServiceAccounts to be deleted xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccounts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -207,7 +207,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -242,7 +242,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountGet(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -279,7 +279,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -315,7 +315,7 @@ func main() { includePrivateKey := true // bool | Whether or not to include the private key in the response (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountGetServiceAccountKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -353,7 +353,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -392,7 +392,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountQueryServiceAccounts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -429,7 +429,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -465,7 +465,7 @@ func main() { rotationRequest := *openapiclient.NewModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example") // ModelsSSHKeysKeyGenerationRequest | xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountRotateServiceAccountKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RotationRequest(rotationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -503,7 +503,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -538,7 +538,7 @@ func main() { updateRequest := *openapiclient.NewModelsSSHServiceAccountsServiceAccountUpdateRequest(*openapiclient.NewModelsSSHKeysKeyUpdateRequest(int32(123), "Email_example"), int32(123)) // ModelsSSHServiceAccountsServiceAccountUpdateRequest | The id of the service account and the updated state of the SSH key. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.ServiceAccountApi.ServiceAccountUpdateServiceAccount(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -571,7 +571,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/SslApi.md b/docs/SslApi.md index cb6f22b..624fd72 100644 --- a/docs/SslApi.md +++ b/docs/SslApi.md @@ -50,7 +50,7 @@ func main() { networkRanges := *openapiclient.NewModelsSSLNetworkRangesRequest("00000000-0000-0000-0000-000000000000", []string{"Ranges_example"}) // ModelsSSLNetworkRangesRequest | Network definition identifier and the ranges to be added xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslAddNetworkRanges(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRanges(networkRanges).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -81,7 +81,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -116,7 +116,7 @@ func main() { network := *openapiclient.NewKeyfactorApiModelsSslCreateNetworkRequest("Name_example", "AgentPoolName_example", "Description_example") // KeyfactorApiModelsSslCreateNetworkRequest | Properties of the network definition to be created xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslCreateNetwork(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Network(network).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -149,7 +149,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -184,7 +184,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslEndpoint(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -221,7 +221,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -261,7 +261,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslEndpointHistory(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -303,7 +303,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -338,7 +338,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslGetNetwork(context.Background(), identifier).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -375,7 +375,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -410,7 +410,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslGetNetworkRangesForNetwork(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -447,7 +447,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -486,7 +486,7 @@ func main() { sqSortField := "sqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) sqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslGetNetworks(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() if err != nil { @@ -523,7 +523,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -559,7 +559,7 @@ func main() { sslScanRequest := *openapiclient.NewModelsSSLImmediateSslScanRequest(false, false) // ModelsSSLImmediateSslScanRequest | Request for an immediate SSL Scan xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslImmediateSslScan(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SslScanRequest(sslScanRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -595,7 +595,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -630,7 +630,7 @@ func main() { query := "query_example" // string | Query to filter the endpoints for which the status should be set (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslMonitorAll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -661,7 +661,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -696,7 +696,7 @@ func main() { requests := []openapiclient.ModelsSSLEndpointStatusRequest{*openapiclient.NewModelsSSLEndpointStatusRequest("00000000-0000-0000-0000-000000000000", false)} // []ModelsSSLEndpointStatusRequest | Endpoints and statuses to be set for each xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslMonitoringStatus(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Requests(requests).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -727,7 +727,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -768,7 +768,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslNetworkScanParts(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryJobType(pagedQueryJobType).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -811,7 +811,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -846,7 +846,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslRemoveAllNetworkRanges(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -881,7 +881,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -916,7 +916,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslRemoveNetwork(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -951,7 +951,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -990,7 +990,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslResults(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -1027,7 +1027,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1062,7 +1062,7 @@ func main() { query := "query_example" // string | Query to filter the endpoints for which the status should be set (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslReviewAll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1093,7 +1093,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1128,7 +1128,7 @@ func main() { endpointReviewedStatus := []openapiclient.ModelsSSLEndpointStatusRequest{*openapiclient.NewModelsSSLEndpointStatusRequest("00000000-0000-0000-0000-000000000000", false)} // []ModelsSSLEndpointStatusRequest | Endpoints and statuses for each xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslReviewedStatus(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).EndpointReviewedStatus(endpointReviewedStatus).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1159,7 +1159,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1194,7 +1194,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslScanPart(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1231,7 +1231,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1266,7 +1266,7 @@ func main() { networkRanges := *openapiclient.NewModelsSSLNetworkRangesRequest("00000000-0000-0000-0000-000000000000", []string{"Ranges_example"}) // ModelsSSLNetworkRangesRequest | Network range defitions and the network to which they should be set xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslSetNetworkRanges(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRanges(networkRanges).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1297,7 +1297,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1332,7 +1332,7 @@ func main() { network := *openapiclient.NewKeyfactorApiModelsSslUpdateNetworkRequest("00000000-0000-0000-0000-000000000000", "Name_example", "AgentPoolName_example", "Description_example") // KeyfactorApiModelsSslUpdateNetworkRequest | Properties of the network definition to be updated xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslUpdateNetwork(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Network(network).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1365,7 +1365,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -1400,7 +1400,7 @@ func main() { networkRangesToVerify := []string{"Property_example"} // []string | List of the network range definitions to verify xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.SslApi.SslValidateNetworkRanges(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRangesToVerify(networkRangesToVerify).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -1431,7 +1431,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/StatusApi.md b/docs/StatusApi.md index 77c4161..cfe035e 100644 --- a/docs/StatusApi.md +++ b/docs/StatusApi.md @@ -30,7 +30,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.StatusApi.StatusGetEndpoints(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -62,7 +62,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/TemplateApi.md b/docs/TemplateApi.md index 1c617cc..e41101d 100644 --- a/docs/TemplateApi.md +++ b/docs/TemplateApi.md @@ -36,7 +36,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateGetGlobalSettings(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateGetTemplate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -179,7 +179,7 @@ func main() { sqSortField := "sqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) sqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateGetTemplates(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() if err != nil { @@ -216,7 +216,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -250,7 +250,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateGetValidSubjectParts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -282,7 +282,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -317,7 +317,7 @@ func main() { configurationTenantRequest := *openapiclient.NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest() // KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest | Configuration tenant to import from xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateImport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ConfigurationTenantRequest(configurationTenantRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -348,7 +348,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -383,7 +383,7 @@ func main() { settings := *openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest([]openapiclient.KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{*openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest("SubjectPart_example")}, []openapiclient.KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{*openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest("SubjectPart_example")}, *openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest([]int32{int32(123)}, []string{"ECCValidCurves_example"}, false, false, false)) // KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest | The new global template settings. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateUpdateGlobalSettings(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Settings(settings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -416,7 +416,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -451,7 +451,7 @@ func main() { template := *openapiclient.NewModelsTemplateUpdateRequest() // ModelsTemplateUpdateRequest | Properties of the certificate template to be updated xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.TemplateApi.TemplateUpdateTemplate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Template(template).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -484,7 +484,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/UserApi.md b/docs/UserApi.md index 6585587..de2e2cc 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -36,7 +36,7 @@ func main() { sshUserCreationRequest := *openapiclient.NewModelsSSHUsersSshUserCreationRequest("Username_example") // ModelsSSHUsersSshUserCreationRequest | SSH user to be created. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.UserApi.UserCreateUser(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SshUserCreationRequest(sshUserCreationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -69,7 +69,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -104,7 +104,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.UserApi.UserDeleteUser(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -139,7 +139,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -174,7 +174,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.UserApi.UserGetUser(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -211,7 +211,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -251,7 +251,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.UserApi.UserQueryUsers(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -289,7 +289,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -324,7 +324,7 @@ func main() { sshUserUpdateRequest := *openapiclient.NewModelsSSHUsersSshUserUpdateRequest(int32(123)) // ModelsSSHUsersSshUserUpdateRequest | The new state of the SSH user to update. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.UserApi.UserUpdateUser(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SshUserUpdateRequest(sshUserUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -357,7 +357,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -392,7 +392,7 @@ func main() { userRequest := *openapiclient.NewModelsSSHUsersSshUserUpdateRequest(int32(123)) // ModelsSSHUsersSshUserUpdateRequest | Logons to add the existing user xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.UserApi.UserUserAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UserRequest(userRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/WorkflowApi.md b/docs/WorkflowApi.md index adc8922..a9636fa 100644 --- a/docs/WorkflowApi.md +++ b/docs/WorkflowApi.md @@ -35,7 +35,7 @@ func main() { requestIds := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers of the certificate requests xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowApi.WorkflowApprovePendingRequests(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RequestIds(requestIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -103,7 +103,7 @@ func main() { request := *openapiclient.NewModelsWorkflowDenialRequest() // ModelsWorkflowDenialRequest | Keyfactor identifiers of the certificate requests to be denied and any denial comments xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowApi.WorkflowDenyPendingRequests(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -136,7 +136,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -175,7 +175,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowApi.WorkflowGet(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -212,7 +212,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -247,7 +247,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowApi.WorkflowGetCertificateRequestDetails(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -284,7 +284,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -323,7 +323,7 @@ func main() { pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowApi.WorkflowGetDenied(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() if err != nil { @@ -360,7 +360,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/WorkflowDefinitionApi.md b/docs/WorkflowDefinitionApi.md index 5535e84..7e4aa07 100644 --- a/docs/WorkflowDefinitionApi.md +++ b/docs/WorkflowDefinitionApi.md @@ -43,7 +43,7 @@ func main() { request := []openapiclient.KeyfactorApiModelsWorkflowsDefinitionStepRequest{*openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionStepRequest()} // []KeyfactorApiModelsWorkflowsDefinitionStepRequest | A collection of {KeyfactorApi.Models.Workflows.DefinitionStepRequest} defining the steps to set on the definition. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -81,7 +81,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -116,7 +116,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest() // KeyfactorApiModelsWorkflowsDefinitionCreateRequest | A {KeyfactorApi.Models.Workflows.DefinitionCreateRequest} with the display name, description, key and type of the definition. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -149,7 +149,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -184,7 +184,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionDelete(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -219,7 +219,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -256,7 +256,7 @@ func main() { exportable := true // bool | Indicates if the response should be cleansed of role ids for export. (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGet(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -295,7 +295,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -330,7 +330,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema(context.Background(), extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -367,7 +367,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -402,7 +402,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -439,7 +439,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -478,7 +478,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -515,7 +515,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -554,7 +554,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -591,7 +591,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -630,7 +630,7 @@ func main() { querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() if err != nil { @@ -667,7 +667,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -703,7 +703,7 @@ func main() { request := *openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest() // KeyfactorApiModelsWorkflowsDefinitionUpdateRequest | The {KeyfactorApi.Models.Workflows.DefinitionUpdateRequest} holding the updated DispalyName and Description. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -741,7 +741,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/docs/WorkflowInstanceApi.md b/docs/WorkflowInstanceApi.md index 62bd5ca..e638099 100644 --- a/docs/WorkflowInstanceApi.md +++ b/docs/WorkflowInstanceApi.md @@ -38,7 +38,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceDeleteInstance(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -108,7 +108,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceGet(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -145,7 +145,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -184,7 +184,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -221,7 +221,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -260,7 +260,7 @@ func main() { pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesAssignedToMe(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() if err != nil { @@ -297,7 +297,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -336,7 +336,7 @@ func main() { instanceQuerySortField := "instanceQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) instanceQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesStartedByMe(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).InstanceQueryQueryString(instanceQueryQueryString).InstanceQueryPageReturned(instanceQueryPageReturned).InstanceQueryReturnLimit(instanceQueryReturnLimit).InstanceQuerySortField(instanceQuerySortField).InstanceQuerySortAscending(instanceQuerySortAscending).Execute() if err != nil { @@ -373,7 +373,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -409,7 +409,7 @@ func main() { version := int32(56) // int32 | The version of the definition to restart the instance against. Defaults to the published version. (optional) xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceRestart(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Version(version).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -445,7 +445,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -481,7 +481,7 @@ func main() { signal := *openapiclient.NewKeyfactorApiModelsWorkflowsSignalRequest() // KeyfactorApiModelsWorkflowsSignalRequest | The signal to receive. xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceSignal(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Signal(signal).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -517,7 +517,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers @@ -552,7 +552,7 @@ func main() { xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") - configuration := openapiclient.NewConfiguration() + configuration := openapiclient.NewConfiguration(make(map[string]string)) apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceStop(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() if err != nil { @@ -587,7 +587,7 @@ Name | Type | Description | Notes ### Authorization -[basicAuth](../README.md#basicAuth) +[basicAuth](../README.md#Configuration) ### HTTP request headers diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..c966c8d --- /dev/null +++ b/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/test/api_pam_provider_test.go b/test/api_pam_provider_test.go index c93ac97..f8cc3a8 100644 --- a/test/api_pam_provider_test.go +++ b/test/api_pam_provider_test.go @@ -22,6 +22,18 @@ func Test_keyfactor_PAMProviderApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test PAMProviderApiService PAMProviderCreatePamProvider", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderCreatePamProvider(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PAMProviderApiService PAMProviderCreatePamProviderType", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -47,4 +59,54 @@ func Test_keyfactor_PAMProviderApiService(t *testing.T) { }) + t.Run("Test PAMProviderApiService PAMProviderGetPamProvider", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProvider(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PAMProviderApiService PAMProviderGetPamProviderTypes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProviderTypes(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PAMProviderApiService PAMProviderGetPamProviders", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProviders(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PAMProviderApiService PAMProviderUpdatePamProvider", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderUpdatePamProvider(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + }