Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated schemas for ipam-federation in go client #51

Merged
merged 3 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions ipamfederation/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.openapi-generator-ignore
README.md
api/openapi.yaml
api_federated_block.go
Expand Down Expand Up @@ -72,11 +71,4 @@ model_update_federated_block_response.go
model_update_federated_realm_response.go
model_update_overlapping_block_response.go
model_update_reserved_block_response.go
test/api_federated_block_test.go
test/api_federated_realm_test.go
test/api_next_available_federated_block_test.go
test/api_next_available_overlapping_block_test.go
test/api_next_available_reserved_block_test.go
test/api_overlapping_block_test.go
test/api_reserved_block_test.go
utils.go
2 changes: 1 addition & 1 deletion ipamfederation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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 */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have been https://, maybe you can remove the http scheme from the schema and regenerate.


Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
9 changes: 8 additions & 1 deletion ipamfederation/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ info:
title: IPAM Federation API
version: v1
servers:
- url: /api/ddi/v1
- url: http://csp.infoblox.com/api/ddi/v1
- url: https://csp.infoblox.com/api/ddi/v1
security:
- ApiKeyAuth: []
paths:
Expand Down Expand Up @@ -123,6 +124,8 @@ paths:
summary: Create the federated block.
tags:
- federated_block
x-tf-resource: federated_block
x-tf-datasource: federated_blocks
x-sdk-default-tags: true
x-codegen-request-body-name: body
/federation/federated_block/{id}:
Expand Down Expand Up @@ -557,6 +560,8 @@ paths:
summary: Create the federated realm.
tags:
- federated_realm
x-tf-resource: federated_realm
x-tf-datasource: federated_realms
x-sdk-default-tags: true
x-codegen-request-body-name: body
/federation/federated_realm/{id}:
Expand Down Expand Up @@ -1347,6 +1352,8 @@ components:
format: date-time
readOnly: true
type: string
required:
- federated_realm
title: FederatedBlock
type: object
federationFederatedRealm:
Expand Down
9 changes: 2 additions & 7 deletions ipamfederation/docs/FederatedBlock.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Cidr** | Pointer to **int64** | The CIDR of the federated block. This is required, if _address_ does not specify it in its input. | [optional]
**Comment** | Pointer to **string** | The description for the federated block. May contain 0 to 1024 characters. Can include UTF-8. | [optional]
**CreatedAt** | Pointer to **time.Time** | Time when the object has been created. | [optional] [readonly]
**FederatedRealm** | Pointer to **string** | The resource identifier. | [optional]
**FederatedRealm** | **string** | The resource identifier. |
**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly]
**Name** | Pointer to **string** | The name of the federated block. May contain 1 to 256 characters. Can include UTF-8. | [optional]
**Parent** | Pointer to **string** | The resource identifier. | [optional]
Expand All @@ -21,7 +21,7 @@ Name | Type | Description | Notes

### NewFederatedBlock

`func NewFederatedBlock() *FederatedBlock`
`func NewFederatedBlock(federatedRealm string, ) *FederatedBlock`

NewFederatedBlock instantiates a new FederatedBlock object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -180,11 +180,6 @@ and a boolean to check if the value has been set.

SetFederatedRealm sets FederatedRealm field to given value.

### HasFederatedRealm

`func (o *FederatedBlock) HasFederatedRealm() bool`

HasFederatedRealm returns a boolean if a field has been set.

### GetId

Expand Down
6 changes: 3 additions & 3 deletions ipamfederation/docs/FederatedBlockAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FederatedBlockAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down Expand Up @@ -34,7 +34,7 @@ import (
)

func main() {
body := *ipamfederation.NewFederatedBlock() // FederatedBlock |
body := *ipamfederation.NewFederatedBlock("FederatedRealm_example") // FederatedBlock |

apiClient := ipamfederation.NewAPIClient()
resp, r, err := apiClient.FederatedBlockAPI.Create(context.Background()).Body(body).Execute()
Expand Down Expand Up @@ -310,7 +310,7 @@ import (

func main() {
id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource
body := *ipamfederation.NewFederatedBlock() // FederatedBlock |
body := *ipamfederation.NewFederatedBlock("FederatedRealm_example") // FederatedBlock |

apiClient := ipamfederation.NewAPIClient()
resp, r, err := apiClient.FederatedBlockAPI.Update(context.Background(), id).Body(body).Execute()
Expand Down
2 changes: 1 addition & 1 deletion ipamfederation/docs/FederatedRealmAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FederatedRealmAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion ipamfederation/docs/NextAvailableFederatedBlockAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NextAvailableFederatedBlockAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion ipamfederation/docs/NextAvailableOverlappingBlockAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NextAvailableOverlappingBlockAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion ipamfederation/docs/NextAvailableReservedBlockAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NextAvailableReservedBlockAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion ipamfederation/docs/OverlappingBlockAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OverlappingBlockAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion ipamfederation/docs/ReservedBlockAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ReservedBlockAPI

All URIs are relative to */api/ddi/v1*
All URIs are relative to *http://csp.infoblox.com/api/ddi/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
57 changes: 35 additions & 22 deletions ipamfederation/model_federated_block.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading