Skip to content

Commit

Permalink
Addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutipathak2 committed May 10, 2024
1 parent 41b796f commit 16d2d91
Show file tree
Hide file tree
Showing 50 changed files with 24 additions and 6,441 deletions.
4 changes: 4 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/infobloxopen/bloxone-go-client/ipam"
"github.com/infobloxopen/bloxone-go-client/keys"
"github.com/infobloxopen/bloxone-go-client/option"
"github.com/infobloxopen/bloxone-go-client/upgradepolicy"
)

// APIClient is an aggregation of different BloxOne API clients.
Expand All @@ -24,6 +25,7 @@ type APIClient struct {
DNSForwardingProxyAPI *dfp.APIClient
FWAPI *fw.APIClient
AnycastAPI *anycast.APIClient
UpgradePolicyClientAPI *upgradepolicy.APIClient
}

// NewAPIClient creates a new BloxOne API Client.
Expand All @@ -38,6 +40,7 @@ type APIClient struct {
// - DNSForwardingProxyAPI
// - FWAPI
// - AnycastAPI
// - UpgradePolicyClientAPI
//
// The client can be configured with a variadic option. The following options are available:
// - WithClientName(string) sets the name of the client using the SDK.
Expand All @@ -57,5 +60,6 @@ func NewAPIClient(options ...option.ClientOption) *APIClient {
DNSForwardingProxyAPI: dfp.NewAPIClient(options...),
FWAPI: fw.NewAPIClient(options...),
AnycastAPI: anycast.NewAPIClient(options...),
UpgradePolicyClientAPI: upgradepolicy.NewAPIClient(options...),
}
}
2 changes: 2 additions & 0 deletions upgradepolicy/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.openapi-generator-ignore
README.md
api/openapi.yaml
api_upgrade_policy_v2.go
Expand Down Expand Up @@ -47,4 +48,5 @@ model_update_batch_maintenance_window.go
model_update_maintenance_window.go
model_update_maintenance_window_request.go
model_update_maintenance_window_response.go
test/api_upgrade_policy_v2_test.go
utils.go
2 changes: 1 addition & 1 deletion upgradepolicy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ This will add the tags `tag1=value1` and `tag2=value2` to all API requests that

## Documentation for API Endpoints

All URIs are relative to *http://localhost/api/upgrade_policy*
All URIs are relative to *http://csp.infoblox.com/api/upgrade_policy*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
3 changes: 2 additions & 1 deletion upgradepolicy/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ info:
title: Schedule Software/Config Updates
version: v2
servers:
- url: /api/upgrade_policy/
- url: http://csp.infoblox.com/api/upgrade_policy/
- url: https://csp.infoblox.com/api/upgrade_policy/
security:
- ApiKeyAuth: []
paths:
Expand Down
56 changes: 0 additions & 56 deletions upgradepolicy/docs/ServiceV2ApplyConfigNowRequest.md

This file was deleted.

56 changes: 0 additions & 56 deletions upgradepolicy/docs/ServiceV2ApplyConfigNowResponse.md

This file was deleted.

108 changes: 0 additions & 108 deletions upgradepolicy/docs/ServiceV2ApplyConfigNowStatus.md

This file was deleted.

108 changes: 0 additions & 108 deletions upgradepolicy/docs/ServiceV2BatchMaintenanceWindow.md

This file was deleted.

Loading

0 comments on commit 16d2d91

Please sign in to comment.