pingaccess-sdk-go

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: MIT

README

PingAccess SDK Go

  • Gitter Coverage Quality Gate Status Build Status

This project was created to support the terraform-provider-pingaccess and other experimental projects.

The SDK is currently generated, however the PingAccess API docs have several mistakes which are handled and documented below

Missing Models

PolicyItem, this was removed from the documentation between 6.0.1 and 6.0.2.0 this is the reference object for rules on the ApplicationView and ResourceView.

type PolicyItem struct {
	Id   json.Number `json:"id,omitempty"`
	Type *string     `json:"type,omitempty"`
}

Part of the KeyPair GetKeypairsCreatableGeneralNamesCommand response, this is also missing from the API docs.

type SanType struct {
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
}

Part of the Config Export API used by the JsonWebKey, haven't tested this so empty struct for now.

type PublicKey struct {
}

Missing Model Fields

  • AcmeServerView has undefined field id which has been assigned the type string
  • AccessTokenValidatorView has undefined field id which has been assigned the type json.Number
  • AcmeAccountView has undefined field id which has been assigned the type string
  • AcmeCertificateRequestView has undefined field id which has been assigned the type string
  • AgentView has undefined field id which has been assigned the type json.Number
  • ApplicationView has undefined field id which has been assigned the type json.Number
  • AuthnReqListView has undefined field id which has been assigned the type json.Number
  • AvailabilityProfileView has undefined field id which has been assigned the type json.Number
  • EngineListenerView has undefined field id which has been assigned the type json.Number
  • EngineView has undefined field id which has been assigned the type json.Number
  • ExportData has undefined field id which has been assigned the type json.Number
  • GlobalUnprotectedResourceView has undefined field id which has been assigned the type json.Number
  • HsmProviderView has undefined field id which has been assigned the type json.Number
  • HttpClientProxyView has undefined field id which has been assigned the type json.Number
  • HttpsListenerView has undefined field id which has been assigned the type json.Number
  • IdentityMappingView has undefined field id which has been assigned the type json.Number
  • LoadBalancingStrategyView has undefined field id which has been assigned the type json.Number
  • RejectionHandlerView has undefined field id which has been assigned the type json.Number
  • ReplicaAdminView has undefined field id which has been assigned the type json.Number
  • ResourceOrderView has undefined field id which has been assigned the type json.Number
  • ResourceView has undefined field id which has been assigned the type json.Number
  • RuleSetView has undefined field id which has been assigned the type json.Number
  • RuleView has undefined field id which has been assigned the type json.Number
  • SharedSecretView has undefined field id which has been assigned the type json.Number
  • SiteAuthenticatorView has undefined field id which has been assigned the type json.Number
  • SiteView has undefined field id which has been assigned the type json.Number
  • ThirdPartyServiceView has undefined field id which has been assigned the type string
  • TrustedCertificateGroupView has undefined field id which has been assigned the type json.Number
  • UserPasswordView has undefined field id which has been assigned the type json.Number
  • UserView has undefined field id which has been assigned the type json.Number
  • VirtualHostView has undefined field id which has been assigned the type json.Number
  • WebSessionView has undefined field id which has been assigned the type json.Number

Many of the API's do not document the ID field for each of the API's and use several different types:

  • int literal
  • string numeric literal ("1")
  • string uuid

Incorrent Model Fields

  • ChainCertificateView
    • expires Type: int not string
    • validFrom Type: int not string
  • KeyPairView
    • expires Type: int not string
    • validFrom Type: int not string
  • TrustedCertView
    • expires Type: int not string
    • validFrom Type: int not string

Using the SDK

go get github.com/iwarapter/pingaccess-sdk-go@master

Testing the SDK

In order to test the provider, you can run make test.

$ make test

This will run the acceptance tests by initializing a local docker container to execute the functional tests against.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL