Skip to content

Commit

Permalink
added changes to client file
Browse files Browse the repository at this point in the history
  • Loading branch information
unasra committed Sep 9, 2024
1 parent 7ac7952 commit 67cd07d
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package client

import (
"github.com/infobloxopen/bloxone-go-client/anycast"
"github.com/infobloxopen/bloxone-go-client/clouddiscovery"
"github.com/infobloxopen/bloxone-go-client/dfp"
"github.com/infobloxopen/bloxone-go-client/dnsconfig"
"github.com/infobloxopen/bloxone-go-client/dnsdata"
Expand All @@ -18,25 +19,27 @@ import (

// APIClient is an aggregation of different BloxOne API clients.
type APIClient struct {
IPAddressManagementAPI *ipam.APIClient
IPAMFederationAPI *ipamfederation.APIClient
DNSConfigurationAPI *dnsconfig.APIClient
DNSDataAPI *dnsdata.APIClient
HostActivationAPI *infraprovision.APIClient
InfraManagementAPI *inframgmt.APIClient
KeysAPI *keys.APIClient
DNSForwardingProxyAPI *dfp.APIClient
FWAPI *fw.APIClient
AnycastAPI *anycast.APIClient
RedirectAPI *redirect.APIClient
UpgradePolicyClientAPI *upgradepolicy.APIClient
IPAddressManagementAPI *ipam.APIClient
IPAMFederationAPI *ipamfederation.APIClient
DiscoveryConfigurationAPIV2 *clouddiscovery.APIClient
DNSConfigurationAPI *dnsconfig.APIClient
DNSDataAPI *dnsdata.APIClient
HostActivationAPI *infraprovision.APIClient
InfraManagementAPI *inframgmt.APIClient
KeysAPI *keys.APIClient
DNSForwardingProxyAPI *dfp.APIClient
FWAPI *fw.APIClient
AnycastAPI *anycast.APIClient
RedirectAPI *redirect.APIClient
UpgradePolicyClientAPI *upgradepolicy.APIClient
}

// NewAPIClient creates a new BloxOne API Client.
// This is an aggregation of different BloxOne API clients.
// The following clients are available:
// - IPAddressManagementAPI
// - IPAMFederationAPI
// - DiscoveryConfigurationAPIV2
// - DNSConfigurationAPI
// - DNSDataAPI
// - HostActivationAPI
Expand All @@ -56,17 +59,18 @@ type APIClient struct {
// - WithDebug() sets the debug mode.
func NewAPIClient(options ...option.ClientOption) *APIClient {
return &APIClient{
IPAddressManagementAPI: ipam.NewAPIClient(options...),
IPAMFederationAPI: ipamfederation.NewAPIClient(options...),
DNSConfigurationAPI: dnsconfig.NewAPIClient(options...),
DNSDataAPI: dnsdata.NewAPIClient(options...),
HostActivationAPI: infraprovision.NewAPIClient(options...),
InfraManagementAPI: inframgmt.NewAPIClient(options...),
KeysAPI: keys.NewAPIClient(options...),
DNSForwardingProxyAPI: dfp.NewAPIClient(options...),
FWAPI: fw.NewAPIClient(options...),
AnycastAPI: anycast.NewAPIClient(options...),
RedirectAPI: redirect.NewAPIClient(options...),
UpgradePolicyClientAPI: upgradepolicy.NewAPIClient(options...),
IPAddressManagementAPI: ipam.NewAPIClient(options...),
IPAMFederationAPI: ipamfederation.NewAPIClient(options...),
DiscoveryConfigurationAPIV2: clouddiscovery.NewAPIClient(options...),
DNSConfigurationAPI: dnsconfig.NewAPIClient(options...),
DNSDataAPI: dnsdata.NewAPIClient(options...),
HostActivationAPI: infraprovision.NewAPIClient(options...),
InfraManagementAPI: inframgmt.NewAPIClient(options...),
KeysAPI: keys.NewAPIClient(options...),
DNSForwardingProxyAPI: dfp.NewAPIClient(options...),
FWAPI: fw.NewAPIClient(options...),
AnycastAPI: anycast.NewAPIClient(options...),
RedirectAPI: redirect.NewAPIClient(options...),
UpgradePolicyClientAPI: upgradepolicy.NewAPIClient(options...),
}
}

0 comments on commit 67cd07d

Please sign in to comment.