diff --git a/dns_config/api_auth_zone.go b/dns_config/api_auth_zone.go index a9cdf68..bbce25e 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.go @@ -243,6 +243,7 @@ type ApiAuthZoneCreateRequest struct { ctx context.Context ApiService AuthZoneAPI body *ConfigAuthZone + inherit *string } func (r ApiAuthZoneCreateRequest) Body(body ConfigAuthZone) ApiAuthZoneCreateRequest { @@ -250,6 +251,12 @@ func (r ApiAuthZoneCreateRequest) Body(body ConfigAuthZone) ApiAuthZoneCreateReq return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAuthZoneCreateRequest) Inherit(inherit string) ApiAuthZoneCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiAuthZoneCreateRequest) Execute() (*ConfigCreateAuthZoneResponse, *http.Response, error) { return r.ApiService.AuthZoneCreateExecute(r) } @@ -295,6 +302,9 @@ func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) ( return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -474,6 +484,7 @@ type ApiAuthZoneListRequest struct { orderBy *string tfilter *string torderBy *string + inherit *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. @@ -524,6 +535,12 @@ func (r ApiAuthZoneListRequest) TorderBy(torderBy string) ApiAuthZoneListRequest return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAuthZoneListRequest) Inherit(inherit string) ApiAuthZoneListRequest { + r.inherit = &inherit + return r +} + func (r ApiAuthZoneListRequest) Execute() (*ConfigListAuthZoneResponse, *http.Response, error) { return r.ApiService.AuthZoneListExecute(r) } @@ -590,6 +607,9 @@ func (a *AuthZoneAPIService) AuthZoneListExecute(r ApiAuthZoneListRequest) (*Con if r.torderBy != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -657,6 +677,7 @@ type ApiAuthZoneReadRequest struct { ApiService AuthZoneAPI id string fields *string + inherit *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. @@ -665,6 +686,12 @@ func (r ApiAuthZoneReadRequest) Fields(fields string) ApiAuthZoneReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAuthZoneReadRequest) Inherit(inherit string) ApiAuthZoneReadRequest { + r.inherit = &inherit + return r +} + func (r ApiAuthZoneReadRequest) Execute() (*ConfigReadAuthZoneResponse, *http.Response, error) { return r.ApiService.AuthZoneReadExecute(r) } @@ -713,6 +740,9 @@ func (a *AuthZoneAPIService) AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*Con if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -780,6 +810,7 @@ type ApiAuthZoneUpdateRequest struct { ApiService AuthZoneAPI id string body *ConfigAuthZone + inherit *string } func (r ApiAuthZoneUpdateRequest) Body(body ConfigAuthZone) ApiAuthZoneUpdateRequest { @@ -787,6 +818,12 @@ func (r ApiAuthZoneUpdateRequest) Body(body ConfigAuthZone) ApiAuthZoneUpdateReq return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAuthZoneUpdateRequest) Inherit(inherit string) ApiAuthZoneUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiAuthZoneUpdateRequest) Execute() (*ConfigUpdateAuthZoneResponse, *http.Response, error) { return r.ApiService.AuthZoneUpdateExecute(r) } @@ -835,6 +872,9 @@ func (a *AuthZoneAPIService) AuthZoneUpdateExecute(r ApiAuthZoneUpdateRequest) ( return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/dns_config/api_host.go b/dns_config/api_host.go index e2a7e05..d93609c 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.go @@ -85,6 +85,7 @@ type ApiHostListRequest struct { orderBy *string tfilter *string torderBy *string + inherit *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. @@ -135,6 +136,12 @@ func (r ApiHostListRequest) TorderBy(torderBy string) ApiHostListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiHostListRequest) Inherit(inherit string) ApiHostListRequest { + r.inherit = &inherit + return r +} + func (r ApiHostListRequest) Execute() (*ConfigListHostResponse, *http.Response, error) { return r.ApiService.HostListExecute(r) } @@ -201,6 +208,9 @@ func (a *HostAPIService) HostListExecute(r ApiHostListRequest) (*ConfigListHostR if r.torderBy != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -268,6 +278,7 @@ type ApiHostReadRequest struct { ApiService HostAPI id string fields *string + inherit *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. @@ -276,6 +287,12 @@ func (r ApiHostReadRequest) Fields(fields string) ApiHostReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiHostReadRequest) Inherit(inherit string) ApiHostReadRequest { + r.inherit = &inherit + return r +} + func (r ApiHostReadRequest) Execute() (*ConfigReadHostResponse, *http.Response, error) { return r.ApiService.HostReadExecute(r) } @@ -324,6 +341,9 @@ func (a *HostAPIService) HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostR if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -391,6 +411,7 @@ type ApiHostUpdateRequest struct { ApiService HostAPI id string body *ConfigHost + inherit *string } func (r ApiHostUpdateRequest) Body(body ConfigHost) ApiHostUpdateRequest { @@ -398,6 +419,12 @@ func (r ApiHostUpdateRequest) Body(body ConfigHost) ApiHostUpdateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiHostUpdateRequest) Inherit(inherit string) ApiHostUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiHostUpdateRequest) Execute() (*ConfigUpdateHostResponse, *http.Response, error) { return r.ApiService.HostUpdateExecute(r) } @@ -446,6 +473,9 @@ func (a *HostAPIService) HostUpdateExecute(r ApiHostUpdateRequest) (*ConfigUpdat return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/dns_config/api_server.go b/dns_config/api_server.go index e311ff3..b715a7f 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.go @@ -108,6 +108,7 @@ type ApiServerCreateRequest struct { ctx context.Context ApiService ServerAPI body *ConfigServer + inherit *string } func (r ApiServerCreateRequest) Body(body ConfigServer) ApiServerCreateRequest { @@ -115,6 +116,12 @@ func (r ApiServerCreateRequest) Body(body ConfigServer) ApiServerCreateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerCreateRequest) Inherit(inherit string) ApiServerCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiServerCreateRequest) Execute() (*ConfigCreateServerResponse, *http.Response, error) { return r.ApiService.ServerCreateExecute(r) } @@ -160,6 +167,9 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Confi return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -339,6 +349,7 @@ type ApiServerListRequest struct { orderBy *string tfilter *string torderBy *string + inherit *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. @@ -389,6 +400,12 @@ func (r ApiServerListRequest) TorderBy(torderBy string) ApiServerListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerListRequest) Inherit(inherit string) ApiServerListRequest { + r.inherit = &inherit + return r +} + func (r ApiServerListRequest) Execute() (*ConfigListServerResponse, *http.Response, error) { return r.ApiService.ServerListExecute(r) } @@ -455,6 +472,9 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*ConfigLis if r.torderBy != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -522,6 +542,7 @@ type ApiServerReadRequest struct { ApiService ServerAPI id string fields *string + inherit *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. @@ -530,6 +551,12 @@ func (r ApiServerReadRequest) Fields(fields string) ApiServerReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerReadRequest) Inherit(inherit string) ApiServerReadRequest { + r.inherit = &inherit + return r +} + func (r ApiServerReadRequest) Execute() (*ConfigReadServerResponse, *http.Response, error) { return r.ApiService.ServerReadExecute(r) } @@ -578,6 +605,9 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*ConfigRea if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -645,6 +675,7 @@ type ApiServerUpdateRequest struct { ApiService ServerAPI id string body *ConfigServer + inherit *string } func (r ApiServerUpdateRequest) Body(body ConfigServer) ApiServerUpdateRequest { @@ -652,6 +683,12 @@ func (r ApiServerUpdateRequest) Body(body ConfigServer) ApiServerUpdateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerUpdateRequest) Inherit(inherit string) ApiServerUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiServerUpdateRequest) Execute() (*ConfigUpdateServerResponse, *http.Response, error) { return r.ApiService.ServerUpdateExecute(r) } @@ -700,6 +737,9 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Confi return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/dns_config/api_view.go b/dns_config/api_view.go index e141cc0..9e9e206 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.go @@ -245,6 +245,7 @@ type ApiViewCreateRequest struct { ctx context.Context ApiService ViewAPI body *ConfigView + inherit *string } func (r ApiViewCreateRequest) Body(body ConfigView) ApiViewCreateRequest { @@ -252,6 +253,12 @@ func (r ApiViewCreateRequest) Body(body ConfigView) ApiViewCreateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiViewCreateRequest) Inherit(inherit string) ApiViewCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiViewCreateRequest) Execute() (*ConfigCreateViewResponse, *http.Response, error) { return r.ApiService.ViewCreateExecute(r) } @@ -297,6 +304,9 @@ func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreat return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -476,6 +486,7 @@ type ApiViewListRequest struct { orderBy *string tfilter *string torderBy *string + inherit *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. @@ -526,6 +537,12 @@ func (r ApiViewListRequest) TorderBy(torderBy string) ApiViewListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiViewListRequest) Inherit(inherit string) ApiViewListRequest { + r.inherit = &inherit + return r +} + func (r ApiViewListRequest) Execute() (*ConfigListViewResponse, *http.Response, error) { return r.ApiService.ViewListExecute(r) } @@ -592,6 +609,9 @@ func (a *ViewAPIService) ViewListExecute(r ApiViewListRequest) (*ConfigListViewR if r.torderBy != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -659,6 +679,7 @@ type ApiViewReadRequest struct { ApiService ViewAPI id string fields *string + inherit *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. @@ -667,6 +688,12 @@ func (r ApiViewReadRequest) Fields(fields string) ApiViewReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiViewReadRequest) Inherit(inherit string) ApiViewReadRequest { + r.inherit = &inherit + return r +} + func (r ApiViewReadRequest) Execute() (*ConfigReadViewResponse, *http.Response, error) { return r.ApiService.ViewReadExecute(r) } @@ -715,6 +742,9 @@ func (a *ViewAPIService) ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewR if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -782,6 +812,7 @@ type ApiViewUpdateRequest struct { ApiService ViewAPI id string body *ConfigView + inherit *string } func (r ApiViewUpdateRequest) Body(body ConfigView) ApiViewUpdateRequest { @@ -789,6 +820,12 @@ func (r ApiViewUpdateRequest) Body(body ConfigView) ApiViewUpdateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiViewUpdateRequest) Inherit(inherit string) ApiViewUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiViewUpdateRequest) Execute() (*ConfigUpdateViewResponse, *http.Response, error) { return r.ApiService.ViewUpdateExecute(r) } @@ -837,6 +874,9 @@ func (a *ViewAPIService) ViewUpdateExecute(r ApiViewUpdateRequest) (*ConfigUpdat return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/dns_config/client.go b/dns_config/client.go index 95b6d87..2df6699 100644 --- a/dns_config/client.go +++ b/dns_config/client.go @@ -1,7 +1,7 @@ /* DNS Configuration API -The DNS application is a BloxOne DDI service that provides cloud-based DNS configuration with on-prem host serving DNS protocol. It is part of the full-featured BloxOne DDI solution that enables customers the ability to deploy large numbers of protocol servers in the delivery of DNS and DHCP throughout their enterprise network. +The DNS application is a BloxOne DDI service that provides cloud-based DNS configuration with on-prem host serving DNS protocol. It is part of the full-featured BloxOne DDI solution that enables customers the ability to deploy large numbers of protocol servers in the delivery of DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -11,7 +11,7 @@ API version: v1 package dns_config import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/api/ddi/v1" @@ -19,30 +19,30 @@ var ServiceBasePath = "/api/ddi/v1" // APIClient manages communication with the DNS Configuration API API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services - AclAPI AclAPI - AuthNsgAPI AuthNsgAPI - AuthZoneAPI AuthZoneAPI - CacheFlushAPI CacheFlushAPI + AclAPI AclAPI + AuthNsgAPI AuthNsgAPI + AuthZoneAPI AuthZoneAPI + CacheFlushAPI CacheFlushAPI ConvertDomainNameAPI ConvertDomainNameAPI - ConvertRnameAPI ConvertRnameAPI - DelegationAPI DelegationAPI - ForwardNsgAPI ForwardNsgAPI - ForwardZoneAPI ForwardZoneAPI - GlobalAPI GlobalAPI - HostAPI HostAPI - LbdnAPI LbdnAPI - ServerAPI ServerAPI - ViewAPI ViewAPI + ConvertRnameAPI ConvertRnameAPI + DelegationAPI DelegationAPI + ForwardNsgAPI ForwardNsgAPI + ForwardZoneAPI ForwardZoneAPI + GlobalAPI GlobalAPI + HostAPI HostAPI + LbdnAPI LbdnAPI + ServerAPI ServerAPI + ViewAPI ViewAPI } // NewAPIClient creates a new API client. Requires a userAgent string describing your application. // optionally a custom http.Client to allow for advanced features such as caching. func NewAPIClient(cfg *internal.Configuration) *APIClient { c := &APIClient{} - c.APIClient = internal.NewAPIClient(cfg) + c.APIClient = internal.NewAPIClient(cfg) // API Services c.AclAPI = (*AclAPIService)(&c.Common) diff --git a/dns_config/docs/AuthZoneAPI.md b/dns_config/docs/AuthZoneAPI.md index 44b23fb..281a8f2 100644 --- a/dns_config/docs/AuthZoneAPI.md +++ b/dns_config/docs/AuthZoneAPI.md @@ -81,7 +81,7 @@ Name | Type | Description | Notes ## AuthZoneCreate -> ConfigCreateAuthZoneResponse AuthZoneCreate(ctx).Body(body).Execute() +> ConfigCreateAuthZoneResponse AuthZoneCreate(ctx).Body(body).Inherit(inherit).Execute() Create the AuthZone object. @@ -101,10 +101,11 @@ import ( func main() { body := *openapiclient.NewConfigAuthZone() // ConfigAuthZone | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthZoneAPI.AuthZoneCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.AuthZoneAPI.AuthZoneCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AuthZoneAPI.AuthZoneCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -126,6 +127,7 @@ Other parameters are passed through a pointer to a apiAuthZoneCreateRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigAuthZone**](ConfigAuthZone.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -215,7 +217,7 @@ Name | Type | Description | Notes ## AuthZoneList -> ConfigListAuthZoneResponse AuthZoneList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() +> ConfigListAuthZoneResponse AuthZoneList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() List AuthZone objects. @@ -242,10 +244,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) tfilter := "tfilter_example" // string | This parameter is used for filtering by tags. (optional) torderBy := "torderBy_example" // string | This parameter is used for sorting 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.AuthZoneAPI.AuthZoneList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.AuthZoneAPI.AuthZoneList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AuthZoneAPI.AuthZoneList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -274,6 +277,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. | **tfilter** | **string** | This parameter is used for filtering by tags. | **torderBy** | **string** | This parameter is used for sorting by tags. | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -295,7 +299,7 @@ Name | Type | Description | Notes ## AuthZoneRead -> ConfigReadAuthZoneResponse AuthZoneRead(ctx, id).Fields(fields).Execute() +> ConfigReadAuthZoneResponse AuthZoneRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Read the AuthZone object. @@ -316,10 +320,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.AuthZoneAPI.AuthZoneRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.AuthZoneAPI.AuthZoneRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AuthZoneAPI.AuthZoneRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -346,6 +351,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 @@ -367,7 +373,7 @@ Name | Type | Description | Notes ## AuthZoneUpdate -> ConfigUpdateAuthZoneResponse AuthZoneUpdate(ctx, id).Body(body).Execute() +> ConfigUpdateAuthZoneResponse AuthZoneUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the AuthZone object. @@ -388,10 +394,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewConfigAuthZone() // ConfigAuthZone | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthZoneAPI.AuthZoneUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.AuthZoneAPI.AuthZoneUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AuthZoneAPI.AuthZoneUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -418,6 +425,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigAuthZone**](ConfigAuthZone.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/dns_config/docs/ConfigInheritedACLItems.md b/dns_config/docs/ConfigInheritedACLItems.md index 27a2619..543a7ce 100644 --- a/dns_config/docs/ConfigInheritedACLItems.md +++ b/dns_config/docs/ConfigInheritedACLItems.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Optional. Inheritance setting for a field. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**[]ConfigACLItem**](ConfigACLItem.md) | Inherited value. | [optional] [readonly] ## Methods diff --git a/dns_config/docs/ConfigInheritedCustomRootNSBlock.md b/dns_config/docs/ConfigInheritedCustomRootNSBlock.md index 3cb2422..c74c62a 100644 --- a/dns_config/docs/ConfigInheritedCustomRootNSBlock.md +++ b/dns_config/docs/ConfigInheritedCustomRootNSBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**ConfigCustomRootNSBlock**](ConfigCustomRootNSBlock.md) | | [optional] ## Methods diff --git a/dns_config/docs/ConfigInheritedDNSSECValidationBlock.md b/dns_config/docs/ConfigInheritedDNSSECValidationBlock.md index 0a59814..57f76e1 100644 --- a/dns_config/docs/ConfigInheritedDNSSECValidationBlock.md +++ b/dns_config/docs/ConfigInheritedDNSSECValidationBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**ConfigDNSSECValidationBlock**](ConfigDNSSECValidationBlock.md) | | [optional] ## Methods diff --git a/dns_config/docs/ConfigInheritedECSBlock.md b/dns_config/docs/ConfigInheritedECSBlock.md index e79f1ee..39852cf 100644 --- a/dns_config/docs/ConfigInheritedECSBlock.md +++ b/dns_config/docs/ConfigInheritedECSBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**ConfigECSBlock**](ConfigECSBlock.md) | | [optional] ## Methods diff --git a/dns_config/docs/ConfigInheritedForwardersBlock.md b/dns_config/docs/ConfigInheritedForwardersBlock.md index 0991656..277050e 100644 --- a/dns_config/docs/ConfigInheritedForwardersBlock.md +++ b/dns_config/docs/ConfigInheritedForwardersBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**ConfigForwardersBlock**](ConfigForwardersBlock.md) | | [optional] ## Methods diff --git a/dns_config/docs/ConfigInheritedKerberosKeys.md b/dns_config/docs/ConfigInheritedKerberosKeys.md index 43d4e37..e537394 100644 --- a/dns_config/docs/ConfigInheritedKerberosKeys.md +++ b/dns_config/docs/ConfigInheritedKerberosKeys.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Optional. Inheritance setting for a field. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**[]ConfigKerberosKey**](ConfigKerberosKey.md) | Inherited value. | [optional] [readonly] ## Methods diff --git a/dns_config/docs/ConfigInheritedSortListItems.md b/dns_config/docs/ConfigInheritedSortListItems.md index 339fbf9..d0bb177 100644 --- a/dns_config/docs/ConfigInheritedSortListItems.md +++ b/dns_config/docs/ConfigInheritedSortListItems.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Optional. Inheritance setting for a field. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**[]ConfigSortListItem**](ConfigSortListItem.md) | Inherited value. | [optional] [readonly] ## Methods diff --git a/dns_config/docs/ConfigInheritedZoneAuthorityMNameBlock.md b/dns_config/docs/ConfigInheritedZoneAuthorityMNameBlock.md index c782a3f..4b2dfef 100644 --- a/dns_config/docs/ConfigInheritedZoneAuthorityMNameBlock.md +++ b/dns_config/docs/ConfigInheritedZoneAuthorityMNameBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | Human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**ConfigZoneAuthorityMNameBlock**](ConfigZoneAuthorityMNameBlock.md) | | [optional] ## Methods diff --git a/dns_config/docs/HostAPI.md b/dns_config/docs/HostAPI.md index 7286d84..6ab2076 100644 --- a/dns_config/docs/HostAPI.md +++ b/dns_config/docs/HostAPI.md @@ -12,7 +12,7 @@ Method | HTTP request | Description ## HostList -> ConfigListHostResponse HostList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() +> ConfigListHostResponse HostList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() List DNS Host objects. @@ -39,10 +39,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) tfilter := "tfilter_example" // string | This parameter is used for filtering by tags. (optional) torderBy := "torderBy_example" // string | This parameter is used for sorting 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.HostAPI.HostList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.HostAPI.HostList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `HostAPI.HostList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -71,6 +72,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. | **tfilter** | **string** | This parameter is used for filtering by tags. | **torderBy** | **string** | This parameter is used for sorting by tags. | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -92,7 +94,7 @@ Name | Type | Description | Notes ## HostRead -> ConfigReadHostResponse HostRead(ctx, id).Fields(fields).Execute() +> ConfigReadHostResponse HostRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Read the DNS Host object. @@ -113,10 +115,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.HostAPI.HostRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.HostAPI.HostRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `HostAPI.HostRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -143,6 +146,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 @@ -164,7 +168,7 @@ Name | Type | Description | Notes ## HostUpdate -> ConfigUpdateHostResponse HostUpdate(ctx, id).Body(body).Execute() +> ConfigUpdateHostResponse HostUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the DNS Host object. @@ -185,10 +189,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewConfigHost() // ConfigHost | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.HostAPI.HostUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.HostAPI.HostUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `HostAPI.HostUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -215,6 +220,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigHost**](ConfigHost.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/dns_config/docs/Inheritance2InheritedBool.md b/dns_config/docs/Inheritance2InheritedBool.md index e54af5a..19a7854 100644 --- a/dns_config/docs/Inheritance2InheritedBool.md +++ b/dns_config/docs/Inheritance2InheritedBool.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **bool** | The inherited value. | [optional] [readonly] ## Methods diff --git a/dns_config/docs/Inheritance2InheritedString.md b/dns_config/docs/Inheritance2InheritedString.md index 9dffe6b..b7d0707 100644 --- a/dns_config/docs/Inheritance2InheritedString.md +++ b/dns_config/docs/Inheritance2InheritedString.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **string** | The inherited value. | [optional] [readonly] ## Methods diff --git a/dns_config/docs/Inheritance2InheritedUInt32.md b/dns_config/docs/Inheritance2InheritedUInt32.md index 2420707..ebe5512 100644 --- a/dns_config/docs/Inheritance2InheritedUInt32.md +++ b/dns_config/docs/Inheritance2InheritedUInt32.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **int64** | The inherited value. | [optional] [readonly] ## Methods diff --git a/dns_config/docs/ServerAPI.md b/dns_config/docs/ServerAPI.md index bd0b879..6890503 100644 --- a/dns_config/docs/ServerAPI.md +++ b/dns_config/docs/ServerAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## ServerCreate -> ConfigCreateServerResponse ServerCreate(ctx).Body(body).Execute() +> ConfigCreateServerResponse ServerCreate(ctx).Body(body).Inherit(inherit).Execute() Create the Server object. @@ -34,10 +34,11 @@ import ( func main() { body := *openapiclient.NewConfigServer("Name_example") // ConfigServer | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServerAPI.ServerCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.ServerAPI.ServerCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -59,6 +60,7 @@ Other parameters are passed through a pointer to a apiServerCreateRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigServer**](ConfigServer.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -148,7 +150,7 @@ Name | Type | Description | Notes ## ServerList -> ConfigListServerResponse ServerList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() +> ConfigListServerResponse ServerList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() List Server objects. @@ -175,10 +177,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) tfilter := "tfilter_example" // string | This parameter is used for filtering by tags. (optional) torderBy := "torderBy_example" // string | This parameter is used for sorting 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.ServerAPI.ServerList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.ServerAPI.ServerList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -207,6 +210,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. | **tfilter** | **string** | This parameter is used for filtering by tags. | **torderBy** | **string** | This parameter is used for sorting by tags. | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -228,7 +232,7 @@ Name | Type | Description | Notes ## ServerRead -> ConfigReadServerResponse ServerRead(ctx, id).Fields(fields).Execute() +> ConfigReadServerResponse ServerRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Read the Server object. @@ -249,10 +253,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.ServerAPI.ServerRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.ServerAPI.ServerRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -279,6 +284,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 @@ -300,7 +306,7 @@ Name | Type | Description | Notes ## ServerUpdate -> ConfigUpdateServerResponse ServerUpdate(ctx, id).Body(body).Execute() +> ConfigUpdateServerResponse ServerUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the Server object. @@ -321,10 +327,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewConfigServer("Name_example") // ConfigServer | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServerAPI.ServerUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.ServerAPI.ServerUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -351,6 +358,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigServer**](ConfigServer.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/dns_config/docs/ViewAPI.md b/dns_config/docs/ViewAPI.md index f5e155a..77ed864 100644 --- a/dns_config/docs/ViewAPI.md +++ b/dns_config/docs/ViewAPI.md @@ -81,7 +81,7 @@ Name | Type | Description | Notes ## ViewCreate -> ConfigCreateViewResponse ViewCreate(ctx).Body(body).Execute() +> ConfigCreateViewResponse ViewCreate(ctx).Body(body).Inherit(inherit).Execute() Create the View object. @@ -101,10 +101,11 @@ import ( func main() { body := *openapiclient.NewConfigView("Name_example") // ConfigView | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ViewAPI.ViewCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.ViewAPI.ViewCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ViewAPI.ViewCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -126,6 +127,7 @@ Other parameters are passed through a pointer to a apiViewCreateRequest struct v Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigView**](ConfigView.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -215,7 +217,7 @@ Name | Type | Description | Notes ## ViewList -> ConfigListViewResponse ViewList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() +> ConfigListViewResponse ViewList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() List View objects. @@ -242,10 +244,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) tfilter := "tfilter_example" // string | This parameter is used for filtering by tags. (optional) torderBy := "torderBy_example" // string | This parameter is used for sorting 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.ViewAPI.ViewList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.ViewAPI.ViewList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ViewAPI.ViewList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -274,6 +277,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. | **tfilter** | **string** | This parameter is used for filtering by tags. | **torderBy** | **string** | This parameter is used for sorting by tags. | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -295,7 +299,7 @@ Name | Type | Description | Notes ## ViewRead -> ConfigReadViewResponse ViewRead(ctx, id).Fields(fields).Execute() +> ConfigReadViewResponse ViewRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Read the View object. @@ -316,10 +320,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.ViewAPI.ViewRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.ViewAPI.ViewRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ViewAPI.ViewRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -346,6 +351,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 @@ -367,7 +373,7 @@ Name | Type | Description | Notes ## ViewUpdate -> ConfigUpdateViewResponse ViewUpdate(ctx, id).Body(body).Execute() +> ConfigUpdateViewResponse ViewUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the View object. @@ -388,10 +394,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewConfigView("Name_example") // ConfigView | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ViewAPI.ViewUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.ViewAPI.ViewUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ViewAPI.ViewUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -418,6 +425,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**ConfigView**](ConfigView.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/dns_config/utils.go b/dns_config/utils.go index a23d0eb..092960a 100644 --- a/dns_config/utils.go +++ b/dns_config/utils.go @@ -1,7 +1,7 @@ /* DNS Configuration API -The DNS application is a BloxOne DDI service that provides cloud-based DNS configuration with on-prem host serving DNS protocol. It is part of the full-featured BloxOne DDI solution that enables customers the ability to deploy large numbers of protocol servers in the delivery of DNS and DHCP throughout their enterprise network. +The DNS application is a BloxOne DDI service that provides cloud-based DNS configuration with on-prem host serving DNS protocol. It is part of the full-featured BloxOne DDI solution that enables customers the ability to deploy large numbers of protocol servers in the delivery of DNS and DHCP throughout their enterprise network. API version: v1 */ diff --git a/dns_data/api_record.go b/dns_data/api_record.go index db18237..844179e 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.go @@ -124,6 +124,7 @@ type ApiRecordCreateRequest struct { ctx context.Context ApiService RecordAPI body *DataRecord + inherit *string } func (r ApiRecordCreateRequest) Body(body DataRecord) ApiRecordCreateRequest { @@ -131,6 +132,12 @@ func (r ApiRecordCreateRequest) Body(body DataRecord) ApiRecordCreateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRecordCreateRequest) Inherit(inherit string) ApiRecordCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiRecordCreateRequest) Execute() (*DataCreateRecordResponse, *http.Response, error) { return r.ApiService.RecordCreateExecute(r) } @@ -176,6 +183,9 @@ func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataC return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -355,6 +365,7 @@ type ApiRecordListRequest struct { orderBy *string tfilter *string torderBy *string + inherit *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. @@ -405,6 +416,12 @@ func (r ApiRecordListRequest) TorderBy(torderBy string) ApiRecordListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRecordListRequest) Inherit(inherit string) ApiRecordListRequest { + r.inherit = &inherit + return r +} + func (r ApiRecordListRequest) Execute() (*DataListRecordResponse, *http.Response, error) { return r.ApiService.RecordListExecute(r) } @@ -471,6 +488,9 @@ func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListR if r.torderBy != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -538,6 +558,7 @@ type ApiRecordReadRequest struct { ApiService RecordAPI id string fields *string + inherit *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. @@ -546,6 +567,12 @@ func (r ApiRecordReadRequest) Fields(fields string) ApiRecordReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRecordReadRequest) Inherit(inherit string) ApiRecordReadRequest { + r.inherit = &inherit + return r +} + func (r ApiRecordReadRequest) Execute() (*DataReadRecordResponse, *http.Response, error) { return r.ApiService.RecordReadExecute(r) } @@ -594,6 +621,9 @@ func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadR if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -785,6 +815,7 @@ type ApiRecordUpdateRequest struct { ApiService RecordAPI id string body *DataRecord + inherit *string } func (r ApiRecordUpdateRequest) Body(body DataRecord) ApiRecordUpdateRequest { @@ -792,6 +823,12 @@ func (r ApiRecordUpdateRequest) Body(body DataRecord) ApiRecordUpdateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRecordUpdateRequest) Inherit(inherit string) ApiRecordUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiRecordUpdateRequest) Execute() (*DataUpdateRecordResponse, *http.Response, error) { return r.ApiService.RecordUpdateExecute(r) } @@ -840,6 +877,9 @@ func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataU return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/dns_data/client.go b/dns_data/client.go index 5c1c0ee..086bb57 100644 --- a/dns_data/client.go +++ b/dns_data/client.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -11,7 +11,7 @@ API version: v1 package dns_data import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/api/ddi/v1" @@ -19,7 +19,7 @@ var ServiceBasePath = "/api/ddi/v1" // APIClient manages communication with the DNS Data API API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services RecordAPI RecordAPI @@ -29,7 +29,7 @@ type APIClient struct { // optionally a custom http.Client to allow for advanced features such as caching. func NewAPIClient(cfg *internal.Configuration) *APIClient { c := &APIClient{} - c.APIClient = internal.NewAPIClient(cfg) + c.APIClient = internal.NewAPIClient(cfg) // API Services c.RecordAPI = (*RecordAPIService)(&c.Common) diff --git a/dns_data/docs/Inheritance2InheritedUInt32.md b/dns_data/docs/Inheritance2InheritedUInt32.md index 2420707..ebe5512 100644 --- a/dns_data/docs/Inheritance2InheritedUInt32.md +++ b/dns_data/docs/Inheritance2InheritedUInt32.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **int64** | The inherited value. | [optional] [readonly] ## Methods diff --git a/dns_data/docs/RecordAPI.md b/dns_data/docs/RecordAPI.md index ead5a1c..9a09e0e 100644 --- a/dns_data/docs/RecordAPI.md +++ b/dns_data/docs/RecordAPI.md @@ -15,7 +15,7 @@ Method | HTTP request | Description ## RecordCreate -> DataCreateRecordResponse RecordCreate(ctx).Body(body).Execute() +> DataCreateRecordResponse RecordCreate(ctx).Body(body).Inherit(inherit).Execute() Create the DNS resource record. @@ -35,10 +35,11 @@ import ( func main() { body := *openapiclient.NewDataRecord(map[string]interface{}(123)) // DataRecord | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RecordAPI.RecordCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.RecordAPI.RecordCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RecordAPI.RecordCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -60,6 +61,7 @@ Other parameters are passed through a pointer to a apiRecordCreateRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**DataRecord**](DataRecord.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -149,7 +151,7 @@ Name | Type | Description | Notes ## RecordList -> DataListRecordResponse RecordList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() +> DataListRecordResponse RecordList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() Retrieve DNS resource records. @@ -176,10 +178,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) tfilter := "tfilter_example" // string | This parameter is used for filtering by tags. (optional) torderBy := "torderBy_example" // string | This parameter is used for sorting 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.RecordAPI.RecordList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.RecordAPI.RecordList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RecordAPI.RecordList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -208,6 +211,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. | **tfilter** | **string** | This parameter is used for filtering by tags. | **torderBy** | **string** | This parameter is used for sorting by tags. | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -229,7 +233,7 @@ Name | Type | Description | Notes ## RecordRead -> DataReadRecordResponse RecordRead(ctx, id).Fields(fields).Execute() +> DataReadRecordResponse RecordRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Retrieve the DNS resource record. @@ -250,10 +254,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.RecordAPI.RecordRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.RecordAPI.RecordRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RecordAPI.RecordRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -280,6 +285,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 @@ -373,7 +379,7 @@ Name | Type | Description | Notes ## RecordUpdate -> DataUpdateRecordResponse RecordUpdate(ctx, id).Body(body).Execute() +> DataUpdateRecordResponse RecordUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the DNS resource record. @@ -394,10 +400,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewDataRecord(map[string]interface{}(123)) // DataRecord | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RecordAPI.RecordUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.RecordAPI.RecordUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RecordAPI.RecordUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -424,6 +431,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**DataRecord**](DataRecord.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/dns_data/utils.go b/dns_data/utils.go index d20341f..f7a1eb6 100644 --- a/dns_data/utils.go +++ b/dns_data/utils.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ diff --git a/ipam/api_address_block.go b/ipam/api_address_block.go index b8f4988..7c2fe49 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -344,6 +344,7 @@ type ApiAddressBlockCreateRequest struct { ctx context.Context ApiService AddressBlockAPI body *IpamsvcAddressBlock + inherit *string } func (r ApiAddressBlockCreateRequest) Body(body IpamsvcAddressBlock) ApiAddressBlockCreateRequest { @@ -351,6 +352,12 @@ func (r ApiAddressBlockCreateRequest) Body(body IpamsvcAddressBlock) ApiAddressB return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAddressBlockCreateRequest) Inherit(inherit string) ApiAddressBlockCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiAddressBlockCreateRequest) Execute() (*IpamsvcCreateAddressBlockResponse, *http.Response, error) { return r.ApiService.AddressBlockCreateExecute(r) } @@ -396,6 +403,9 @@ func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCrea return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1038,6 +1048,7 @@ type ApiAddressBlockListRequest struct { orderBy *string torderBy *string tfilter *string + inherit *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. @@ -1088,6 +1099,12 @@ func (r ApiAddressBlockListRequest) Tfilter(tfilter string) ApiAddressBlockListR return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAddressBlockListRequest) Inherit(inherit string) ApiAddressBlockListRequest { + r.inherit = &inherit + return r +} + func (r ApiAddressBlockListRequest) Execute() (*IpamsvcListAddressBlockResponse, *http.Response, error) { return r.ApiService.AddressBlockListExecute(r) } @@ -1154,6 +1171,9 @@ func (a *AddressBlockAPIService) AddressBlockListExecute(r ApiAddressBlockListRe if r.tfilter != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1670,6 +1690,7 @@ type ApiAddressBlockReadRequest struct { ApiService AddressBlockAPI id string fields *string + inherit *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. @@ -1678,6 +1699,12 @@ func (r ApiAddressBlockReadRequest) Fields(fields string) ApiAddressBlockReadReq return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAddressBlockReadRequest) Inherit(inherit string) ApiAddressBlockReadRequest { + r.inherit = &inherit + return r +} + func (r ApiAddressBlockReadRequest) Execute() (*IpamsvcReadAddressBlockResponse, *http.Response, error) { return r.ApiService.AddressBlockReadExecute(r) } @@ -1726,6 +1753,9 @@ func (a *AddressBlockAPIService) AddressBlockReadExecute(r ApiAddressBlockReadRe if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1793,6 +1823,7 @@ type ApiAddressBlockUpdateRequest struct { ApiService AddressBlockAPI id string body *IpamsvcAddressBlock + inherit *string } func (r ApiAddressBlockUpdateRequest) Body(body IpamsvcAddressBlock) ApiAddressBlockUpdateRequest { @@ -1800,6 +1831,12 @@ func (r ApiAddressBlockUpdateRequest) Body(body IpamsvcAddressBlock) ApiAddressB return r } +// This parameter is used for getting inheritance_sources. +func (r ApiAddressBlockUpdateRequest) Inherit(inherit string) ApiAddressBlockUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiAddressBlockUpdateRequest) Execute() (*IpamsvcUpdateAddressBlockResponse, *http.Response, error) { return r.ApiService.AddressBlockUpdateExecute(r) } @@ -1848,6 +1885,9 @@ func (a *AddressBlockAPIService) AddressBlockUpdateExecute(r ApiAddressBlockUpda return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/ipam/api_fixed_address.go b/ipam/api_fixed_address.go index 72319f8..bd87f9a 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -108,6 +108,7 @@ type ApiFixedAddressCreateRequest struct { ctx context.Context ApiService FixedAddressAPI body *IpamsvcFixedAddress + inherit *string } func (r ApiFixedAddressCreateRequest) Body(body IpamsvcFixedAddress) ApiFixedAddressCreateRequest { @@ -115,6 +116,12 @@ func (r ApiFixedAddressCreateRequest) Body(body IpamsvcFixedAddress) ApiFixedAdd return r } +// This parameter is used for getting inheritance_sources. +func (r ApiFixedAddressCreateRequest) Inherit(inherit string) ApiFixedAddressCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiFixedAddressCreateRequest) Execute() (*IpamsvcCreateFixedAddressResponse, *http.Response, error) { return r.ApiService.FixedAddressCreateExecute(r) } @@ -160,6 +167,9 @@ func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCrea return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -339,6 +349,7 @@ type ApiFixedAddressListRequest struct { pageToken *string torderBy *string tfilter *string + inherit *string } // A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | @@ -389,6 +400,12 @@ func (r ApiFixedAddressListRequest) Tfilter(tfilter string) ApiFixedAddressListR return r } +// This parameter is used for getting inheritance_sources. +func (r ApiFixedAddressListRequest) Inherit(inherit string) ApiFixedAddressListRequest { + r.inherit = &inherit + return r +} + func (r ApiFixedAddressListRequest) Execute() (*IpamsvcListFixedAddressResponse, *http.Response, error) { return r.ApiService.FixedAddressListExecute(r) } @@ -455,6 +472,9 @@ func (a *FixedAddressAPIService) FixedAddressListExecute(r ApiFixedAddressListRe if r.tfilter != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -522,6 +542,7 @@ type ApiFixedAddressReadRequest struct { ApiService FixedAddressAPI id string fields *string + inherit *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. @@ -530,6 +551,12 @@ func (r ApiFixedAddressReadRequest) Fields(fields string) ApiFixedAddressReadReq return r } +// This parameter is used for getting inheritance_sources. +func (r ApiFixedAddressReadRequest) Inherit(inherit string) ApiFixedAddressReadRequest { + r.inherit = &inherit + return r +} + func (r ApiFixedAddressReadRequest) Execute() (*IpamsvcReadFixedAddressResponse, *http.Response, error) { return r.ApiService.FixedAddressReadExecute(r) } @@ -578,6 +605,9 @@ func (a *FixedAddressAPIService) FixedAddressReadExecute(r ApiFixedAddressReadRe if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -645,6 +675,7 @@ type ApiFixedAddressUpdateRequest struct { ApiService FixedAddressAPI id string body *IpamsvcFixedAddress + inherit *string } func (r ApiFixedAddressUpdateRequest) Body(body IpamsvcFixedAddress) ApiFixedAddressUpdateRequest { @@ -652,6 +683,12 @@ func (r ApiFixedAddressUpdateRequest) Body(body IpamsvcFixedAddress) ApiFixedAdd return r } +// This parameter is used for getting inheritance_sources. +func (r ApiFixedAddressUpdateRequest) Inherit(inherit string) ApiFixedAddressUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiFixedAddressUpdateRequest) Execute() (*IpamsvcUpdateFixedAddressResponse, *http.Response, error) { return r.ApiService.FixedAddressUpdateExecute(r) } @@ -700,6 +737,9 @@ func (a *FixedAddressAPIService) FixedAddressUpdateExecute(r ApiFixedAddressUpda return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/ipam/api_range.go b/ipam/api_range.go index 11faf19..e2499bf 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -140,6 +140,7 @@ type ApiRangeCreateRequest struct { ctx context.Context ApiService RangeAPI body *IpamsvcRange + inherit *string } func (r ApiRangeCreateRequest) Body(body IpamsvcRange) ApiRangeCreateRequest { @@ -147,6 +148,12 @@ func (r ApiRangeCreateRequest) Body(body IpamsvcRange) ApiRangeCreateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRangeCreateRequest) Inherit(inherit string) ApiRangeCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiRangeCreateRequest) Execute() (*IpamsvcCreateRangeResponse, *http.Response, error) { return r.ApiService.RangeCreateExecute(r) } @@ -192,6 +199,9 @@ func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcC return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -510,6 +520,7 @@ type ApiRangeListRequest struct { pageToken *string torderBy *string tfilter *string + inherit *string } // A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | @@ -560,6 +571,12 @@ func (r ApiRangeListRequest) Tfilter(tfilter string) ApiRangeListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRangeListRequest) Inherit(inherit string) ApiRangeListRequest { + r.inherit = &inherit + return r +} + func (r ApiRangeListRequest) Execute() (*IpamsvcListRangeResponse, *http.Response, error) { return r.ApiService.RangeListExecute(r) } @@ -626,6 +643,9 @@ func (a *RangeAPIService) RangeListExecute(r ApiRangeListRequest) (*IpamsvcListR if r.tfilter != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -826,6 +846,7 @@ type ApiRangeReadRequest struct { ApiService RangeAPI id string fields *string + inherit *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. @@ -834,6 +855,12 @@ func (r ApiRangeReadRequest) Fields(fields string) ApiRangeReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRangeReadRequest) Inherit(inherit string) ApiRangeReadRequest { + r.inherit = &inherit + return r +} + func (r ApiRangeReadRequest) Execute() (*IpamsvcReadRangeResponse, *http.Response, error) { return r.ApiService.RangeReadExecute(r) } @@ -882,6 +909,9 @@ func (a *RangeAPIService) RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadR if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -949,6 +979,7 @@ type ApiRangeUpdateRequest struct { ApiService RangeAPI id string body *IpamsvcRange + inherit *string } func (r ApiRangeUpdateRequest) Body(body IpamsvcRange) ApiRangeUpdateRequest { @@ -956,6 +987,12 @@ func (r ApiRangeUpdateRequest) Body(body IpamsvcRange) ApiRangeUpdateRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiRangeUpdateRequest) Inherit(inherit string) ApiRangeUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiRangeUpdateRequest) Execute() (*IpamsvcUpdateRangeResponse, *http.Response, error) { return r.ApiService.RangeUpdateExecute(r) } @@ -1004,6 +1041,9 @@ func (a *RangeAPIService) RangeUpdateExecute(r ApiRangeUpdateRequest) (*IpamsvcU return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/ipam/api_server.go b/ipam/api_server.go index da8f43f..e43ccf9 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -108,6 +108,7 @@ type ApiServerCreateRequest struct { ctx context.Context ApiService ServerAPI body *IpamsvcServer + inherit *string } func (r ApiServerCreateRequest) Body(body IpamsvcServer) ApiServerCreateRequest { @@ -115,6 +116,12 @@ func (r ApiServerCreateRequest) Body(body IpamsvcServer) ApiServerCreateRequest return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerCreateRequest) Inherit(inherit string) ApiServerCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiServerCreateRequest) Execute() (*IpamsvcCreateServerResponse, *http.Response, error) { return r.ApiService.ServerCreateExecute(r) } @@ -160,6 +167,9 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Ipams return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -339,6 +349,7 @@ type ApiServerListRequest struct { pageToken *string torderBy *string tfilter *string + inherit *string } // A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | @@ -389,6 +400,12 @@ func (r ApiServerListRequest) Tfilter(tfilter string) ApiServerListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerListRequest) Inherit(inherit string) ApiServerListRequest { + r.inherit = &inherit + return r +} + func (r ApiServerListRequest) Execute() (*IpamsvcListServerResponse, *http.Response, error) { return r.ApiService.ServerListExecute(r) } @@ -455,6 +472,9 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*IpamsvcLi if r.tfilter != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -522,6 +542,7 @@ type ApiServerReadRequest struct { ApiService ServerAPI id string fields *string + inherit *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. @@ -530,6 +551,12 @@ func (r ApiServerReadRequest) Fields(fields string) ApiServerReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerReadRequest) Inherit(inherit string) ApiServerReadRequest { + r.inherit = &inherit + return r +} + func (r ApiServerReadRequest) Execute() (*IpamsvcReadServerResponse, *http.Response, error) { return r.ApiService.ServerReadExecute(r) } @@ -578,6 +605,9 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*IpamsvcRe if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -645,6 +675,7 @@ type ApiServerUpdateRequest struct { ApiService ServerAPI id string body *IpamsvcServer + inherit *string } func (r ApiServerUpdateRequest) Body(body IpamsvcServer) ApiServerUpdateRequest { @@ -652,6 +683,12 @@ func (r ApiServerUpdateRequest) Body(body IpamsvcServer) ApiServerUpdateRequest return r } +// This parameter is used for getting inheritance_sources. +func (r ApiServerUpdateRequest) Inherit(inherit string) ApiServerUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiServerUpdateRequest) Execute() (*IpamsvcUpdateServerResponse, *http.Response, error) { return r.ApiService.ServerUpdateExecute(r) } @@ -700,6 +737,9 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Ipams return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/ipam/api_subnet.go b/ipam/api_subnet.go index 9f331f1..bcbd2eb 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -280,6 +280,7 @@ type ApiSubnetCreateRequest struct { ctx context.Context ApiService SubnetAPI body *IpamsvcSubnet + inherit *string } func (r ApiSubnetCreateRequest) Body(body IpamsvcSubnet) ApiSubnetCreateRequest { @@ -287,6 +288,12 @@ func (r ApiSubnetCreateRequest) Body(body IpamsvcSubnet) ApiSubnetCreateRequest return r } +// This parameter is used for getting inheritance_sources. +func (r ApiSubnetCreateRequest) Inherit(inherit string) ApiSubnetCreateRequest { + r.inherit = &inherit + return r +} + func (r ApiSubnetCreateRequest) Execute() (*IpamsvcCreateSubnetResponse, *http.Response, error) { return r.ApiService.SubnetCreateExecute(r) } @@ -332,6 +339,9 @@ func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*Ipams return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -650,6 +660,7 @@ type ApiSubnetListRequest struct { orderBy *string torderBy *string tfilter *string + inherit *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. @@ -700,6 +711,12 @@ func (r ApiSubnetListRequest) Tfilter(tfilter string) ApiSubnetListRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiSubnetListRequest) Inherit(inherit string) ApiSubnetListRequest { + r.inherit = &inherit + return r +} + func (r ApiSubnetListRequest) Execute() (*IpamsvcListSubnetResponse, *http.Response, error) { return r.ApiService.SubnetListExecute(r) } @@ -766,6 +783,9 @@ func (a *SubnetAPIService) SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcLi if r.tfilter != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -966,6 +986,7 @@ type ApiSubnetReadRequest struct { ApiService SubnetAPI id string fields *string + inherit *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. @@ -974,6 +995,12 @@ func (r ApiSubnetReadRequest) Fields(fields string) ApiSubnetReadRequest { return r } +// This parameter is used for getting inheritance_sources. +func (r ApiSubnetReadRequest) Inherit(inherit string) ApiSubnetReadRequest { + r.inherit = &inherit + return r +} + func (r ApiSubnetReadRequest) Execute() (*IpamsvcReadSubnetResponse, *http.Response, error) { return r.ApiService.SubnetReadExecute(r) } @@ -1022,6 +1049,9 @@ func (a *SubnetAPIService) SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcRe if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1089,6 +1119,7 @@ type ApiSubnetUpdateRequest struct { ApiService SubnetAPI id string body *IpamsvcSubnet + inherit *string } func (r ApiSubnetUpdateRequest) Body(body IpamsvcSubnet) ApiSubnetUpdateRequest { @@ -1096,6 +1127,12 @@ func (r ApiSubnetUpdateRequest) Body(body IpamsvcSubnet) ApiSubnetUpdateRequest return r } +// This parameter is used for getting inheritance_sources. +func (r ApiSubnetUpdateRequest) Inherit(inherit string) ApiSubnetUpdateRequest { + r.inherit = &inherit + return r +} + func (r ApiSubnetUpdateRequest) Execute() (*IpamsvcUpdateSubnetResponse, *http.Response, error) { return r.ApiService.SubnetUpdateExecute(r) } @@ -1144,6 +1181,9 @@ func (a *SubnetAPIService) SubnetUpdateExecute(r ApiSubnetUpdateRequest) (*Ipams return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") } + if r.inherit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_inherit", r.inherit, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/ipam/client.go b/ipam/client.go index 8650416..ab22f7e 100644 --- a/ipam/client.go +++ b/ipam/client.go @@ -11,7 +11,7 @@ API version: v1 package ipam import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/api/ddi/v1" @@ -19,36 +19,36 @@ var ServiceBasePath = "/api/ddi/v1" // APIClient manages communication with the IP Address Management API API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services - AddressAPI AddressAPI - AddressBlockAPI AddressBlockAPI - AsmAPI AsmAPI - DhcpHostAPI DhcpHostAPI - DnsUsageAPI DnsUsageAPI - FilterAPI FilterAPI - FixedAddressAPI FixedAddressAPI - GlobalAPI GlobalAPI - HaGroupAPI HaGroupAPI + AddressAPI AddressAPI + AddressBlockAPI AddressBlockAPI + AsmAPI AsmAPI + DhcpHostAPI DhcpHostAPI + DnsUsageAPI DnsUsageAPI + FilterAPI FilterAPI + FixedAddressAPI FixedAddressAPI + GlobalAPI GlobalAPI + HaGroupAPI HaGroupAPI HardwareFilterAPI HardwareFilterAPI - IpSpaceAPI IpSpaceAPI - IpamHostAPI IpamHostAPI - LeasesCommandAPI LeasesCommandAPI - OptionCodeAPI OptionCodeAPI - OptionFilterAPI OptionFilterAPI - OptionGroupAPI OptionGroupAPI - OptionSpaceAPI OptionSpaceAPI - RangeAPI RangeAPI - ServerAPI ServerAPI - SubnetAPI SubnetAPI + IpSpaceAPI IpSpaceAPI + IpamHostAPI IpamHostAPI + LeasesCommandAPI LeasesCommandAPI + OptionCodeAPI OptionCodeAPI + OptionFilterAPI OptionFilterAPI + OptionGroupAPI OptionGroupAPI + OptionSpaceAPI OptionSpaceAPI + RangeAPI RangeAPI + ServerAPI ServerAPI + SubnetAPI SubnetAPI } // NewAPIClient creates a new API client. Requires a userAgent string describing your application. // optionally a custom http.Client to allow for advanced features such as caching. func NewAPIClient(cfg *internal.Configuration) *APIClient { c := &APIClient{} - c.APIClient = internal.NewAPIClient(cfg) + c.APIClient = internal.NewAPIClient(cfg) // API Services c.AddressAPI = (*AddressAPIService)(&c.Common) diff --git a/ipam/docs/AddressBlockAPI.md b/ipam/docs/AddressBlockAPI.md index e7d8f4c..b8e83b8 100644 --- a/ipam/docs/AddressBlockAPI.md +++ b/ipam/docs/AddressBlockAPI.md @@ -93,7 +93,7 @@ Name | Type | Description | Notes ## AddressBlockCreate -> IpamsvcCreateAddressBlockResponse AddressBlockCreate(ctx).Body(body).Execute() +> IpamsvcCreateAddressBlockResponse AddressBlockCreate(ctx).Body(body).Inherit(inherit).Execute() Create the address block. @@ -113,10 +113,11 @@ import ( func main() { body := *openapiclient.NewIpamsvcAddressBlock() // IpamsvcAddressBlock | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AddressBlockAPI.AddressBlockCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.AddressBlockAPI.AddressBlockCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AddressBlockAPI.AddressBlockCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -138,6 +139,7 @@ Other parameters are passed through a pointer to a apiAddressBlockCreateRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcAddressBlock**](IpamsvcAddressBlock.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -459,7 +461,7 @@ Name | Type | Description | Notes ## AddressBlockList -> IpamsvcListAddressBlockResponse AddressBlockList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() +> IpamsvcListAddressBlockResponse AddressBlockList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() Retrieve the address blocks. @@ -486,10 +488,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.AddressBlockAPI.AddressBlockList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() + resp, r, err := apiClient.AddressBlockAPI.AddressBlockList(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 `AddressBlockAPI.AddressBlockList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -518,6 +521,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 @@ -771,7 +775,7 @@ Name | Type | Description | Notes ## AddressBlockRead -> IpamsvcReadAddressBlockResponse AddressBlockRead(ctx, id).Fields(fields).Execute() +> IpamsvcReadAddressBlockResponse AddressBlockRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Retrieve the address block. @@ -792,10 +796,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.AddressBlockAPI.AddressBlockRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.AddressBlockAPI.AddressBlockRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AddressBlockAPI.AddressBlockRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -822,6 +827,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 @@ -843,7 +849,7 @@ Name | Type | Description | Notes ## AddressBlockUpdate -> IpamsvcUpdateAddressBlockResponse AddressBlockUpdate(ctx, id).Body(body).Execute() +> IpamsvcUpdateAddressBlockResponse AddressBlockUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the address block. @@ -864,10 +870,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewIpamsvcAddressBlock() // IpamsvcAddressBlock | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AddressBlockAPI.AddressBlockUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.AddressBlockAPI.AddressBlockUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AddressBlockAPI.AddressBlockUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -894,6 +901,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcAddressBlock**](IpamsvcAddressBlock.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/ipam/docs/FixedAddressAPI.md b/ipam/docs/FixedAddressAPI.md index f4225ee..bdd9ded 100644 --- a/ipam/docs/FixedAddressAPI.md +++ b/ipam/docs/FixedAddressAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## FixedAddressCreate -> IpamsvcCreateFixedAddressResponse FixedAddressCreate(ctx).Body(body).Execute() +> IpamsvcCreateFixedAddressResponse FixedAddressCreate(ctx).Body(body).Inherit(inherit).Execute() Create the fixed address. @@ -34,10 +34,11 @@ import ( func main() { body := *openapiclient.NewIpamsvcFixedAddress("Address_example", "MatchType_example", "MatchValue_example") // IpamsvcFixedAddress | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.FixedAddressAPI.FixedAddressCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.FixedAddressAPI.FixedAddressCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FixedAddressAPI.FixedAddressCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -59,6 +60,7 @@ Other parameters are passed through a pointer to a apiFixedAddressCreateRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcFixedAddress**](IpamsvcFixedAddress.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -148,7 +150,7 @@ Name | Type | Description | Notes ## FixedAddressList -> IpamsvcListFixedAddressResponse FixedAddressList(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() +> IpamsvcListFixedAddressResponse FixedAddressList(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() Retrieve fixed addresses. @@ -175,10 +177,11 @@ func main() { pageToken := "pageToken_example" // string | The service-defined string used to identify a page of resources. A null value indicates the first page. (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.FixedAddressAPI.FixedAddressList(context.Background()).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() + resp, r, err := apiClient.FixedAddressAPI.FixedAddressList(context.Background()).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FixedAddressAPI.FixedAddressList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -207,6 +210,7 @@ Name | Type | Description | Notes **pageToken** | **string** | The service-defined string used to identify a page of resources. A null value indicates the first page. | **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 @@ -228,7 +232,7 @@ Name | Type | Description | Notes ## FixedAddressRead -> IpamsvcReadFixedAddressResponse FixedAddressRead(ctx, id).Fields(fields).Execute() +> IpamsvcReadFixedAddressResponse FixedAddressRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Retrieve the fixed address. @@ -249,10 +253,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.FixedAddressAPI.FixedAddressRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.FixedAddressAPI.FixedAddressRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FixedAddressAPI.FixedAddressRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -279,6 +284,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 @@ -300,7 +306,7 @@ Name | Type | Description | Notes ## FixedAddressUpdate -> IpamsvcUpdateFixedAddressResponse FixedAddressUpdate(ctx, id).Body(body).Execute() +> IpamsvcUpdateFixedAddressResponse FixedAddressUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the fixed address. @@ -321,10 +327,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewIpamsvcFixedAddress("Address_example", "MatchType_example", "MatchValue_example") // IpamsvcFixedAddress | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.FixedAddressAPI.FixedAddressUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.FixedAddressAPI.FixedAddressUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FixedAddressAPI.FixedAddressUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -351,6 +358,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcFixedAddress**](IpamsvcFixedAddress.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/ipam/docs/InheritanceInheritedBool.md b/ipam/docs/InheritanceInheritedBool.md index cce2628..0bb5c46 100644 --- a/ipam/docs/InheritanceInheritedBool.md +++ b/ipam/docs/InheritanceInheritedBool.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **bool** | The inherited value. | [optional] [readonly] ## Methods diff --git a/ipam/docs/InheritanceInheritedFloat.md b/ipam/docs/InheritanceInheritedFloat.md index 94a4de8..167a86c 100644 --- a/ipam/docs/InheritanceInheritedFloat.md +++ b/ipam/docs/InheritanceInheritedFloat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **float32** | The inherited value. | [optional] [readonly] ## Methods diff --git a/ipam/docs/InheritanceInheritedIdentifier.md b/ipam/docs/InheritanceInheritedIdentifier.md index 481a6c7..da0818b 100644 --- a/ipam/docs/InheritanceInheritedIdentifier.md +++ b/ipam/docs/InheritanceInheritedIdentifier.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **string** | The resource identifier. | [optional] ## Methods diff --git a/ipam/docs/InheritanceInheritedString.md b/ipam/docs/InheritanceInheritedString.md index 9a05060..3b3efa2 100644 --- a/ipam/docs/InheritanceInheritedString.md +++ b/ipam/docs/InheritanceInheritedString.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **string** | The inherited value. | [optional] [readonly] ## Methods diff --git a/ipam/docs/InheritanceInheritedUInt32.md b/ipam/docs/InheritanceInheritedUInt32.md index fa22ae0..ec41b0b 100644 --- a/ipam/docs/InheritanceInheritedUInt32.md +++ b/ipam/docs/InheritanceInheritedUInt32.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting for a field. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **int64** | The inherited value. | [optional] [readonly] ## Methods diff --git a/ipam/docs/InheritedDHCPConfigFilterList.md b/ipam/docs/InheritedDHCPConfigFilterList.md index 2621d17..2c29536 100644 --- a/ipam/docs/InheritedDHCPConfigFilterList.md +++ b/ipam/docs/InheritedDHCPConfigFilterList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to **[]string** | The resource identifier. | [optional] ## Methods diff --git a/ipam/docs/InheritedDHCPConfigIgnoreItemList.md b/ipam/docs/InheritedDHCPConfigIgnoreItemList.md index cc07f12..15b3b7f 100644 --- a/ipam/docs/InheritedDHCPConfigIgnoreItemList.md +++ b/ipam/docs/InheritedDHCPConfigIgnoreItemList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**[]IpamsvcIgnoreItem**](IpamsvcIgnoreItem.md) | The inherited value. | [optional] [readonly] ## Methods diff --git a/ipam/docs/IpamsvcInheritedAsmEnableBlock.md b/ipam/docs/IpamsvcInheritedAsmEnableBlock.md index e7657df..8dc7a12 100644 --- a/ipam/docs/IpamsvcInheritedAsmEnableBlock.md +++ b/ipam/docs/IpamsvcInheritedAsmEnableBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcAsmEnableBlock**](IpamsvcAsmEnableBlock.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcInheritedAsmGrowthBlock.md b/ipam/docs/IpamsvcInheritedAsmGrowthBlock.md index 0c63171..b3ff12b 100644 --- a/ipam/docs/IpamsvcInheritedAsmGrowthBlock.md +++ b/ipam/docs/IpamsvcInheritedAsmGrowthBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcAsmGrowthBlock**](IpamsvcAsmGrowthBlock.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcInheritedDDNSBlock.md b/ipam/docs/IpamsvcInheritedDDNSBlock.md index a184de2..695d7ec 100644 --- a/ipam/docs/IpamsvcInheritedDDNSBlock.md +++ b/ipam/docs/IpamsvcInheritedDDNSBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcDDNSBlock**](IpamsvcDDNSBlock.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcInheritedDDNSHostnameBlock.md b/ipam/docs/IpamsvcInheritedDDNSHostnameBlock.md index 6febbf6..91c1e59 100644 --- a/ipam/docs/IpamsvcInheritedDDNSHostnameBlock.md +++ b/ipam/docs/IpamsvcInheritedDDNSHostnameBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcDDNSHostnameBlock**](IpamsvcDDNSHostnameBlock.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcInheritedDDNSUpdateBlock.md b/ipam/docs/IpamsvcInheritedDDNSUpdateBlock.md index da1cfe7..4a0e2e5 100644 --- a/ipam/docs/IpamsvcInheritedDDNSUpdateBlock.md +++ b/ipam/docs/IpamsvcInheritedDDNSUpdateBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcDDNSUpdateBlock**](IpamsvcDDNSUpdateBlock.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcInheritedDHCPOption.md b/ipam/docs/IpamsvcInheritedDHCPOption.md index 71ef256..076bbda 100644 --- a/ipam/docs/IpamsvcInheritedDHCPOption.md +++ b/ipam/docs/IpamsvcInheritedDHCPOption.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _block_: Don't use the inherited value. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcInheritedDHCPOptionItem**](IpamsvcInheritedDHCPOptionItem.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcInheritedHostnameRewriteBlock.md b/ipam/docs/IpamsvcInheritedHostnameRewriteBlock.md index 52a53c1..e64253d 100644 --- a/ipam/docs/IpamsvcInheritedHostnameRewriteBlock.md +++ b/ipam/docs/IpamsvcInheritedHostnameRewriteBlock.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **string** | The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _override_: Use the value set in the object. Defaults to _inherit_. | [optional] **DisplayName** | Pointer to **string** | The human-readable display name for the object referred to by _source_. | [optional] [readonly] -**Source** | Pointer to **string** | The resource identifier. | [optional] +**Source** | Pointer to **string** | The resource identifier. | [optional] [readonly] **Value** | Pointer to [**IpamsvcHostnameRewriteBlock**](IpamsvcHostnameRewriteBlock.md) | | [optional] ## Methods diff --git a/ipam/docs/IpamsvcRange.md b/ipam/docs/IpamsvcRange.md index fa286aa..ffedfc4 100644 --- a/ipam/docs/IpamsvcRange.md +++ b/ipam/docs/IpamsvcRange.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | The name of the range. May contain 1 to 256 characters. Can include UTF-8. | [optional] **Parent** | Pointer to **string** | The resource identifier. | [optional] **Protocol** | Pointer to **string** | The type of protocol (_ip4_ or _ip6_). | [optional] [readonly] -**Space** | **string** | The resource identifier. | +**Space** | Pointer to **string** | The resource identifier. | [optional] **Start** | **string** | The start IP address of the range. | **Tags** | Pointer to **map[string]interface{}** | The tags for the range in JSON format. | [optional] **Threshold** | Pointer to [**IpamsvcUtilizationThreshold**](IpamsvcUtilizationThreshold.md) | | [optional] @@ -31,7 +31,7 @@ Name | Type | Description | Notes ### NewIpamsvcRange -`func NewIpamsvcRange(end string, space string, start string, ) *IpamsvcRange` +`func NewIpamsvcRange(end string, start string, ) *IpamsvcRange` NewIpamsvcRange instantiates a new IpamsvcRange object This constructor will assign default values to properties that have it defined, @@ -435,6 +435,11 @@ and a boolean to check if the value has been set. SetSpace sets Space field to given value. +### HasSpace + +`func (o *IpamsvcRange) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. ### GetStart diff --git a/ipam/docs/RangeAPI.md b/ipam/docs/RangeAPI.md index e64e81e..3064ca3 100644 --- a/ipam/docs/RangeAPI.md +++ b/ipam/docs/RangeAPI.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ## RangeCreate -> IpamsvcCreateRangeResponse RangeCreate(ctx).Body(body).Execute() +> IpamsvcCreateRangeResponse RangeCreate(ctx).Body(body).Inherit(inherit).Execute() Create the range. @@ -36,10 +36,11 @@ import ( func main() { body := *openapiclient.NewIpamsvcRange("End_example", "Start_example") // IpamsvcRange | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RangeAPI.RangeCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.RangeAPI.RangeCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RangeAPI.RangeCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -61,6 +62,7 @@ Other parameters are passed through a pointer to a apiRangeCreateRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcRange**](IpamsvcRange.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -224,7 +226,7 @@ Name | Type | Description | Notes ## RangeList -> IpamsvcListRangeResponse RangeList(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() +> IpamsvcListRangeResponse RangeList(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() Retrieve ranges. @@ -251,10 +253,11 @@ func main() { pageToken := "pageToken_example" // string | The service-defined string used to identify a page of resources. A null value indicates the first page. (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.RangeAPI.RangeList(context.Background()).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() + resp, r, err := apiClient.RangeAPI.RangeList(context.Background()).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RangeAPI.RangeList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -283,6 +286,7 @@ Name | Type | Description | Notes **pageToken** | **string** | The service-defined string used to identify a page of resources. A null value indicates the first page. | **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 @@ -378,7 +382,7 @@ Name | Type | Description | Notes ## RangeRead -> IpamsvcReadRangeResponse RangeRead(ctx, id).Fields(fields).Execute() +> IpamsvcReadRangeResponse RangeRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Retrieve the range. @@ -399,10 +403,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.RangeAPI.RangeRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.RangeAPI.RangeRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RangeAPI.RangeRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -429,6 +434,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 @@ -450,7 +456,7 @@ Name | Type | Description | Notes ## RangeUpdate -> IpamsvcUpdateRangeResponse RangeUpdate(ctx, id).Body(body).Execute() +> IpamsvcUpdateRangeResponse RangeUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the range. @@ -471,10 +477,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewIpamsvcRange("End_example", "Start_example") // IpamsvcRange | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RangeAPI.RangeUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.RangeAPI.RangeUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RangeAPI.RangeUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -501,6 +508,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcRange**](IpamsvcRange.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/ipam/docs/ServerAPI.md b/ipam/docs/ServerAPI.md index 98433ee..4d35a6d 100644 --- a/ipam/docs/ServerAPI.md +++ b/ipam/docs/ServerAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## ServerCreate -> IpamsvcCreateServerResponse ServerCreate(ctx).Body(body).Execute() +> IpamsvcCreateServerResponse ServerCreate(ctx).Body(body).Inherit(inherit).Execute() Create the DHCP configuration profile. @@ -34,10 +34,11 @@ import ( func main() { body := *openapiclient.NewIpamsvcServer("Name_example") // IpamsvcServer | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServerAPI.ServerCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.ServerAPI.ServerCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -59,6 +60,7 @@ Other parameters are passed through a pointer to a apiServerCreateRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcServer**](IpamsvcServer.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -148,7 +150,7 @@ Name | Type | Description | Notes ## ServerList -> IpamsvcListServerResponse ServerList(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() +> IpamsvcListServerResponse ServerList(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() Retrieve DHCP configuration profiles. @@ -175,10 +177,11 @@ func main() { pageToken := "pageToken_example" // string | The service-defined string used to identify a page of resources. A null value indicates the first page. (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.ServerAPI.ServerList(context.Background()).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() + resp, r, err := apiClient.ServerAPI.ServerList(context.Background()).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -207,6 +210,7 @@ Name | Type | Description | Notes **pageToken** | **string** | The service-defined string used to identify a page of resources. A null value indicates the first page. | **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 @@ -228,7 +232,7 @@ Name | Type | Description | Notes ## ServerRead -> IpamsvcReadServerResponse ServerRead(ctx, id).Fields(fields).Execute() +> IpamsvcReadServerResponse ServerRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Retrieve the DHCP configuration profile. @@ -249,10 +253,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.ServerAPI.ServerRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.ServerAPI.ServerRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -279,6 +284,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 @@ -300,7 +306,7 @@ Name | Type | Description | Notes ## ServerUpdate -> IpamsvcUpdateServerResponse ServerUpdate(ctx, id).Body(body).Execute() +> IpamsvcUpdateServerResponse ServerUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the DHCP configuration profile. @@ -321,10 +327,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewIpamsvcServer("Name_example") // IpamsvcServer | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServerAPI.ServerUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.ServerAPI.ServerUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServerAPI.ServerUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -351,6 +358,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcServer**](IpamsvcServer.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/ipam/docs/SubnetAPI.md b/ipam/docs/SubnetAPI.md index 9c41d0c..e258927 100644 --- a/ipam/docs/SubnetAPI.md +++ b/ipam/docs/SubnetAPI.md @@ -89,7 +89,7 @@ Name | Type | Description | Notes ## SubnetCreate -> IpamsvcCreateSubnetResponse SubnetCreate(ctx).Body(body).Execute() +> IpamsvcCreateSubnetResponse SubnetCreate(ctx).Body(body).Inherit(inherit).Execute() Create the subnet. @@ -109,10 +109,11 @@ import ( func main() { body := *openapiclient.NewIpamsvcSubnet() // IpamsvcSubnet | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SubnetAPI.SubnetCreate(context.Background()).Body(body).Execute() + resp, r, err := apiClient.SubnetAPI.SubnetCreate(context.Background()).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SubnetAPI.SubnetCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -134,6 +135,7 @@ Other parameters are passed through a pointer to a apiSubnetCreateRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcSubnet**](IpamsvcSubnet.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type @@ -297,7 +299,7 @@ Name | Type | Description | Notes ## SubnetList -> IpamsvcListSubnetResponse SubnetList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() +> IpamsvcListSubnetResponse SubnetList(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Inherit(inherit).Execute() Retrieve subnets. @@ -324,10 +326,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.SubnetAPI.SubnetList(context.Background()).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() + resp, r, err := apiClient.SubnetAPI.SubnetList(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 `SubnetAPI.SubnetList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -356,6 +359,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 @@ -451,7 +455,7 @@ Name | Type | Description | Notes ## SubnetRead -> IpamsvcReadSubnetResponse SubnetRead(ctx, id).Fields(fields).Execute() +> IpamsvcReadSubnetResponse SubnetRead(ctx, id).Fields(fields).Inherit(inherit).Execute() Retrieve the subnet. @@ -472,10 +476,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.SubnetAPI.SubnetRead(context.Background(), id).Fields(fields).Execute() + resp, r, err := apiClient.SubnetAPI.SubnetRead(context.Background(), id).Fields(fields).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SubnetAPI.SubnetRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -502,6 +507,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 @@ -523,7 +529,7 @@ Name | Type | Description | Notes ## SubnetUpdate -> IpamsvcUpdateSubnetResponse SubnetUpdate(ctx, id).Body(body).Execute() +> IpamsvcUpdateSubnetResponse SubnetUpdate(ctx, id).Body(body).Inherit(inherit).Execute() Update the subnet. @@ -544,10 +550,11 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource body := *openapiclient.NewIpamsvcSubnet() // IpamsvcSubnet | + inherit := "inherit_example" // string | This parameter is used for getting inheritance_sources. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SubnetAPI.SubnetUpdate(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.SubnetAPI.SubnetUpdate(context.Background(), id).Body(body).Inherit(inherit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SubnetAPI.SubnetUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -574,6 +581,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**IpamsvcSubnet**](IpamsvcSubnet.md) | | + **inherit** | **string** | This parameter is used for getting inheritance_sources. | ### Return type diff --git a/ipam/model_ipamsvc_range.go b/ipam/model_ipamsvc_range.go index 0faf6f5..be9f8b4 100644 --- a/ipam/model_ipamsvc_range.go +++ b/ipam/model_ipamsvc_range.go @@ -12,7 +12,6 @@ package ipam import ( "encoding/json" - "fmt" "time" ) @@ -63,8 +62,6 @@ type IpamsvcRange struct { UtilizationV6 *IpamsvcUtilizationV6 `json:"utilization_v6,omitempty"` } -type _IpamsvcRange IpamsvcRange - // NewIpamsvcRange instantiates a new IpamsvcRange object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -847,42 +844,6 @@ func (o IpamsvcRange) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IpamsvcRange) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "end", - "start", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varIpamsvcRange := _IpamsvcRange{} - - err = json.Unmarshal(bytes, &varIpamsvcRange) - - if err != nil { - return err - } - - *o = IpamsvcRange(varIpamsvcRange) - - return err -} - type NullableIpamsvcRange struct { value *IpamsvcRange isSet bool