Skip to content

Commit

Permalink
Added support for IP Space
Browse files Browse the repository at this point in the history
  • Loading branch information
unasra committed Jan 16, 2024
1 parent ee33668 commit 4d4cc88
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 8 deletions.
40 changes: 40 additions & 0 deletions ipam/api_ip_space.go

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

24 changes: 16 additions & 8 deletions ipam/docs/IpSpaceAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Name | Type | Description | Notes

## IpSpaceCreate

> IpamsvcCreateIPSpaceResponse IpSpaceCreate(ctx).Body(body).Execute()
> IpamsvcCreateIPSpaceResponse IpSpaceCreate(ctx).Body(body).Inherit(inherit).Execute()
Create the IP space.

Expand All @@ -174,10 +174,11 @@ import (

func main() {
body := *openapiclient.NewIpamsvcIPSpace("Name_example") // IpamsvcIPSpace |
inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IpSpaceAPI.IpSpaceCreate(context.Background()).Body(body).Execute()
resp, r, err := apiClient.IpSpaceAPI.IpSpaceCreate(context.Background()).Body(body).Inherit(inherit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpSpaceAPI.IpSpaceCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -199,6 +200,7 @@ Other parameters are passed through a pointer to a apiIpSpaceCreateRequest struc
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**IpamsvcIPSpace**](IpamsvcIPSpace.md) | |
**inherit** | **string** | This parameter is used for getting inheritance_sources. |

### Return type

Expand Down Expand Up @@ -288,7 +290,7 @@ Name | Type | Description | Notes

## IpSpaceList

> IpamsvcListIPSpaceResponse IpSpaceList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute()
> IpamsvcListIPSpaceResponse IpSpaceList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute()
Retrieve IP spaces.

Expand All @@ -315,10 +317,11 @@ func main() {
orderBy := "orderBy_example" // string | A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. (optional)
torderBy := "torderBy_example" // string | This parameter is used for sorting by tags. (optional)
tfilter := "tfilter_example" // string | This parameter is used for filtering by tags. (optional)
inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IpSpaceAPI.IpSpaceList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute()
resp, r, err := apiClient.IpSpaceAPI.IpSpaceList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpSpaceAPI.IpSpaceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -347,6 +350,7 @@ Name | Type | Description | Notes
**orderBy** | **string** | A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. |
**torderBy** | **string** | This parameter is used for sorting by tags. |
**tfilter** | **string** | This parameter is used for filtering by tags. |
**inherit** | **string** | This parameter is used for getting inheritance_sources. |

### Return type

Expand All @@ -368,7 +372,7 @@ Name | Type | Description | Notes

## IpSpaceRead

> IpamsvcReadIPSpaceResponse IpSpaceRead(ctx, id).Fields(fields).Execute()
> IpamsvcReadIPSpaceResponse IpSpaceRead(ctx, id).Fields(fields).Inherit(inherit).Execute()
Retrieve the IP space.

Expand All @@ -389,10 +393,11 @@ import (
func main() {
id := "id_example" // string | An application specific resource identity of a resource
fields := "fields_example" // string | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. (optional)
inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IpSpaceAPI.IpSpaceRead(context.Background(), id).Fields(fields).Execute()
resp, r, err := apiClient.IpSpaceAPI.IpSpaceRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpSpaceAPI.IpSpaceRead``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -419,6 +424,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**fields** | **string** | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. |
**inherit** | **string** | This parameter is used for getting inheritance_sources. |

### Return type

Expand All @@ -440,7 +446,7 @@ Name | Type | Description | Notes

## IpSpaceUpdate

> IpamsvcUpdateIPSpaceResponse IpSpaceUpdate(ctx, id).Body(body).Execute()
> IpamsvcUpdateIPSpaceResponse IpSpaceUpdate(ctx, id).Body(body).Inherit(inherit).Execute()
Update the IP space.

Expand All @@ -461,10 +467,11 @@ import (
func main() {
id := "id_example" // string | An application specific resource identity of a resource
body := *openapiclient.NewIpamsvcIPSpace("Name_example") // IpamsvcIPSpace |
inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IpSpaceAPI.IpSpaceUpdate(context.Background(), id).Body(body).Execute()
resp, r, err := apiClient.IpSpaceAPI.IpSpaceUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpSpaceAPI.IpSpaceUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -491,6 +498,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**body** | [**IpamsvcIPSpace**](IpamsvcIPSpace.md) | |
**inherit** | **string** | This parameter is used for getting inheritance_sources. |

### Return type

Expand Down

0 comments on commit 4d4cc88

Please sign in to comment.