diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index 6f71193..a6ee629 100644 --- a/dns_config/api_acl.go +++ b/dns_config/api_acl.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type AclAPI interface { /* - AclCreate Create the ACL object. + AclCreate Create the ACL object. - Use this method to create an ACL object. -ACL object (_dns/acl_) represents a named Access Control List. + Use this method to create an ACL object. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAclCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAclCreateRequest */ AclCreate(ctx context.Context) ApiAclCreateRequest @@ -40,14 +39,14 @@ ACL object (_dns/acl_) represents a named Access Control List. AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateACLResponse, *http.Response, error) /* - AclDelete Move the ACL object to Recyclebin. + AclDelete Move the ACL object to Recyclebin. - Use this method to move an ACL object to Recyclebin. -ACL object (_dns/acl_) represents a named Access Control List. + Use this method to move an ACL object to Recyclebin. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAclDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAclDeleteRequest */ AclDelete(ctx context.Context, id string) ApiAclDeleteRequest @@ -55,13 +54,13 @@ ACL object (_dns/acl_) represents a named Access Control List. AclDeleteExecute(r ApiAclDeleteRequest) (*http.Response, error) /* - AclList List ACL objects. + AclList List ACL objects. - Use this method to list ACL objects. -ACL object (_dns/acl_) represents a named Access Control List. + Use this method to list ACL objects. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAclListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAclListRequest */ AclList(ctx context.Context) ApiAclListRequest @@ -70,14 +69,14 @@ ACL object (_dns/acl_) represents a named Access Control List. AclListExecute(r ApiAclListRequest) (*ConfigListACLResponse, *http.Response, error) /* - AclRead Read the ACL object. + AclRead Read the ACL object. - Use this method to read an ACL object. -ACL object (_dns/acl_) represents a named Access Control List. + Use this method to read an ACL object. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAclReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAclReadRequest */ AclRead(ctx context.Context, id string) ApiAclReadRequest @@ -86,14 +85,14 @@ ACL object (_dns/acl_) represents a named Access Control List. AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLResponse, *http.Response, error) /* - AclUpdate Update the ACL object. + AclUpdate Update the ACL object. - Use this method to update an ACL object. -ACL object (_dns/acl_) represents a named Access Control List. + Use this method to update an ACL object. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAclUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAclUpdateRequest */ AclUpdate(ctx context.Context, id string) ApiAclUpdateRequest @@ -106,9 +105,9 @@ ACL object (_dns/acl_) represents a named Access Control List. type AclAPIService internal.Service type ApiAclCreateRequest struct { - ctx context.Context + ctx context.Context ApiService AclAPI - body *ConfigACL + body *ConfigACL } func (r ApiAclCreateRequest) Body(body ConfigACL) ApiAclCreateRequest { @@ -126,24 +125,25 @@ AclCreate Create the ACL object. Use this method to create an ACL object. ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAclCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAclCreateRequest */ func (a *AclAPIService) AclCreate(ctx context.Context) ApiAclCreateRequest { return ApiAclCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateACLResponse +// +// @return ConfigCreateACLResponse func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateACLResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateACLResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AclAPIService.AclCreate") @@ -225,9 +225,9 @@ func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateAC } type ApiAclDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService AclAPI - id string + id string } func (r ApiAclDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ AclDelete Move the ACL object to Recyclebin. Use this method to move an ACL object to Recyclebin. ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAclDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAclDeleteRequest */ func (a *AclAPIService) AclDelete(ctx context.Context, id string) ApiAclDeleteRequest { return ApiAclDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *AclAPIService) AclDeleteExecute(r ApiAclDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AclAPIService.AclDelete") @@ -329,49 +329,49 @@ func (a *AclAPIService) AclDeleteExecute(r ApiAclDeleteRequest) (*http.Response, } type ApiAclListRequest struct { - ctx context.Context + ctx context.Context ApiService AclAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiAclListRequest) Fields(fields string) ApiAclListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiAclListRequest) Filter(filter string) ApiAclListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiAclListRequest) Offset(offset int32) ApiAclListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiAclListRequest) Limit(limit int32) ApiAclListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiAclListRequest) PageToken(pageToken string) ApiAclListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiAclListRequest) OrderBy(orderBy string) ApiAclListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ AclList List ACL objects. Use this method to list ACL objects. ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAclListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAclListRequest */ func (a *AclAPIService) AclList(ctx context.Context) ApiAclListRequest { return ApiAclListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListACLResponse +// +// @return ConfigListACLResponse func (a *AclAPIService) AclListExecute(r ApiAclListRequest) (*ConfigListACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListACLResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListACLResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AclAPIService.AclList") @@ -517,13 +518,13 @@ func (a *AclAPIService) AclListExecute(r ApiAclListRequest) (*ConfigListACLRespo } type ApiAclReadRequest struct { - ctx context.Context + ctx context.Context ApiService AclAPI - id string - fields *string + id string + 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. +// 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. func (r ApiAclReadRequest) Fields(fields string) ApiAclReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ AclRead Read the ACL object. Use this method to read an ACL object. ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAclReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAclReadRequest */ func (a *AclAPIService) AclRead(ctx context.Context, id string) ApiAclReadRequest { return ApiAclReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadACLResponse +// +// @return ConfigReadACLResponse func (a *AclAPIService) AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadACLResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadACLResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AclAPIService.AclRead") @@ -639,10 +641,10 @@ func (a *AclAPIService) AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLRespo } type ApiAclUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService AclAPI - id string - body *ConfigACL + id string + body *ConfigACL } func (r ApiAclUpdateRequest) Body(body ConfigACL) ApiAclUpdateRequest { @@ -660,26 +662,27 @@ AclUpdate Update the ACL object. Use this method to update an ACL object. ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAclUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAclUpdateRequest */ func (a *AclAPIService) AclUpdate(ctx context.Context, id string) ApiAclUpdateRequest { return ApiAclUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateACLResponse +// +// @return ConfigUpdateACLResponse func (a *AclAPIService) AclUpdateExecute(r ApiAclUpdateRequest) (*ConfigUpdateACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateACLResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateACLResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AclAPIService.AclUpdate") diff --git a/dns_config/api_auth_nsg.go b/dns_config/api_auth_nsg.go index 3f65db9..87ac335 100644 --- a/dns_config/api_auth_nsg.go +++ b/dns_config/api_auth_nsg.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type AuthNsgAPI interface { /* - AuthNsgCreate Create the AuthNSG object. + AuthNsgCreate Create the AuthNSG object. - Use this method to create an AuthNSG object. -The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to create an AuthNSG object. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthNsgCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthNsgCreateRequest */ AuthNsgCreate(ctx context.Context) ApiAuthNsgCreateRequest @@ -40,14 +39,14 @@ The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for autho AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*ConfigCreateAuthNSGResponse, *http.Response, error) /* - AuthNsgDelete Move the AuthNSG object to Recyclebin. + AuthNsgDelete Move the AuthNSG object to Recyclebin. - Use this method to move an AuthNSG object to Recyclebin. -The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to move an AuthNSG object to Recyclebin. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthNsgDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthNsgDeleteRequest */ AuthNsgDelete(ctx context.Context, id string) ApiAuthNsgDeleteRequest @@ -55,13 +54,13 @@ The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for autho AuthNsgDeleteExecute(r ApiAuthNsgDeleteRequest) (*http.Response, error) /* - AuthNsgList List AuthNSG objects. + AuthNsgList List AuthNSG objects. - Use this method to list AuthNSG objects. -The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to list AuthNSG objects. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthNsgListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthNsgListRequest */ AuthNsgList(ctx context.Context) ApiAuthNsgListRequest @@ -70,14 +69,14 @@ The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for autho AuthNsgListExecute(r ApiAuthNsgListRequest) (*ConfigListAuthNSGResponse, *http.Response, error) /* - AuthNsgRead Read the AuthNSG object. + AuthNsgRead Read the AuthNSG object. - Use this method to read an AuthNSG object. -The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to read an AuthNSG object. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthNsgReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthNsgReadRequest */ AuthNsgRead(ctx context.Context, id string) ApiAuthNsgReadRequest @@ -86,14 +85,14 @@ The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for autho AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*ConfigReadAuthNSGResponse, *http.Response, error) /* - AuthNsgUpdate Update the AuthNSG object. + AuthNsgUpdate Update the AuthNSG object. - Use this method to update an AuthNSG object. -The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to update an AuthNSG object. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthNsgUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthNsgUpdateRequest */ AuthNsgUpdate(ctx context.Context, id string) ApiAuthNsgUpdateRequest @@ -106,9 +105,9 @@ The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for autho type AuthNsgAPIService internal.Service type ApiAuthNsgCreateRequest struct { - ctx context.Context + ctx context.Context ApiService AuthNsgAPI - body *ConfigAuthNSG + body *ConfigAuthNSG } func (r ApiAuthNsgCreateRequest) Body(body ConfigAuthNSG) ApiAuthNsgCreateRequest { @@ -126,24 +125,25 @@ AuthNsgCreate Create the AuthNSG object. Use this method to create an AuthNSG object. The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthNsgCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthNsgCreateRequest */ func (a *AuthNsgAPIService) AuthNsgCreate(ctx context.Context) ApiAuthNsgCreateRequest { return ApiAuthNsgCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateAuthNSGResponse +// +// @return ConfigCreateAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*ConfigCreateAuthNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateAuthNSGResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateAuthNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthNsgAPIService.AuthNsgCreate") @@ -225,9 +225,9 @@ func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*Co } type ApiAuthNsgDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService AuthNsgAPI - id string + id string } func (r ApiAuthNsgDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ AuthNsgDelete Move the AuthNSG object to Recyclebin. Use this method to move an AuthNSG object to Recyclebin. The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthNsgDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthNsgDeleteRequest */ func (a *AuthNsgAPIService) AuthNsgDelete(ctx context.Context, id string) ApiAuthNsgDeleteRequest { return ApiAuthNsgDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *AuthNsgAPIService) AuthNsgDeleteExecute(r ApiAuthNsgDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthNsgAPIService.AuthNsgDelete") @@ -329,49 +329,49 @@ func (a *AuthNsgAPIService) AuthNsgDeleteExecute(r ApiAuthNsgDeleteRequest) (*ht } type ApiAuthNsgListRequest struct { - ctx context.Context + ctx context.Context ApiService AuthNsgAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiAuthNsgListRequest) Fields(fields string) ApiAuthNsgListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiAuthNsgListRequest) Filter(filter string) ApiAuthNsgListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiAuthNsgListRequest) Offset(offset int32) ApiAuthNsgListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiAuthNsgListRequest) Limit(limit int32) ApiAuthNsgListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiAuthNsgListRequest) PageToken(pageToken string) ApiAuthNsgListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiAuthNsgListRequest) OrderBy(orderBy string) ApiAuthNsgListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ AuthNsgList List AuthNSG objects. Use this method to list AuthNSG objects. The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthNsgListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthNsgListRequest */ func (a *AuthNsgAPIService) AuthNsgList(ctx context.Context) ApiAuthNsgListRequest { return ApiAuthNsgListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListAuthNSGResponse +// +// @return ConfigListAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgListExecute(r ApiAuthNsgListRequest) (*ConfigListAuthNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListAuthNSGResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListAuthNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthNsgAPIService.AuthNsgList") @@ -517,13 +518,13 @@ func (a *AuthNsgAPIService) AuthNsgListExecute(r ApiAuthNsgListRequest) (*Config } type ApiAuthNsgReadRequest struct { - ctx context.Context + ctx context.Context ApiService AuthNsgAPI - id string - fields *string + id string + 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. +// 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. func (r ApiAuthNsgReadRequest) Fields(fields string) ApiAuthNsgReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ AuthNsgRead Read the AuthNSG object. Use this method to read an AuthNSG object. The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthNsgReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthNsgReadRequest */ func (a *AuthNsgAPIService) AuthNsgRead(ctx context.Context, id string) ApiAuthNsgReadRequest { return ApiAuthNsgReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadAuthNSGResponse +// +// @return ConfigReadAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*ConfigReadAuthNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadAuthNSGResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadAuthNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthNsgAPIService.AuthNsgRead") @@ -639,10 +641,10 @@ func (a *AuthNsgAPIService) AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*Config } type ApiAuthNsgUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService AuthNsgAPI - id string - body *ConfigAuthNSG + id string + body *ConfigAuthNSG } func (r ApiAuthNsgUpdateRequest) Body(body ConfigAuthNSG) ApiAuthNsgUpdateRequest { @@ -660,26 +662,27 @@ AuthNsgUpdate Update the AuthNSG object. Use this method to update an AuthNSG object. The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthNsgUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthNsgUpdateRequest */ func (a *AuthNsgAPIService) AuthNsgUpdate(ctx context.Context, id string) ApiAuthNsgUpdateRequest { return ApiAuthNsgUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateAuthNSGResponse +// +// @return ConfigUpdateAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgUpdateExecute(r ApiAuthNsgUpdateRequest) (*ConfigUpdateAuthNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateAuthNSGResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateAuthNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthNsgAPIService.AuthNsgUpdate") diff --git a/dns_config/api_auth_zone.go b/dns_config/api_auth_zone.go index 1d4cf6b..7399faf 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type AuthZoneAPI interface { /* - AuthZoneCopy Copies the __AuthZone__ object. + AuthZoneCopy Copies the __AuthZone__ object. - Use this method to copy an __AuthZone__ object to a different __View__. -This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to copy an __AuthZone__ object to a different __View__. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneCopyRequest */ AuthZoneCopy(ctx context.Context) ApiAuthZoneCopyRequest @@ -40,13 +39,13 @@ This object (_dns/auth_zone_) represents an authoritative zone. AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*ConfigCopyAuthZoneResponse, *http.Response, error) /* - AuthZoneCreate Create the AuthZone object. + AuthZoneCreate Create the AuthZone object. - Use this method to create an AuthZone object. -This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to create an AuthZone object. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneCreateRequest */ AuthZoneCreate(ctx context.Context) ApiAuthZoneCreateRequest @@ -55,14 +54,14 @@ This object (_dns/auth_zone_) represents an authoritative zone. AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) (*ConfigCreateAuthZoneResponse, *http.Response, error) /* - AuthZoneDelete Moves the AuthZone object to Recyclebin. + AuthZoneDelete Moves the AuthZone object to Recyclebin. - Use this method to move an AuthZone object to Recyclebin. -This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to move an AuthZone object to Recyclebin. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthZoneDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthZoneDeleteRequest */ AuthZoneDelete(ctx context.Context, id string) ApiAuthZoneDeleteRequest @@ -70,13 +69,13 @@ This object (_dns/auth_zone_) represents an authoritative zone. AuthZoneDeleteExecute(r ApiAuthZoneDeleteRequest) (*http.Response, error) /* - AuthZoneList List AuthZone objects. + AuthZoneList List AuthZone objects. - Use this method to list AuthZone objects. -This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to list AuthZone objects. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneListRequest */ AuthZoneList(ctx context.Context) ApiAuthZoneListRequest @@ -85,14 +84,14 @@ This object (_dns/auth_zone_) represents an authoritative zone. AuthZoneListExecute(r ApiAuthZoneListRequest) (*ConfigListAuthZoneResponse, *http.Response, error) /* - AuthZoneRead Read the AuthZone object. + AuthZoneRead Read the AuthZone object. - Use this method to read an AuthZone object. -This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to read an AuthZone object. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthZoneReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthZoneReadRequest */ AuthZoneRead(ctx context.Context, id string) ApiAuthZoneReadRequest @@ -101,14 +100,14 @@ This object (_dns/auth_zone_) represents an authoritative zone. AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*ConfigReadAuthZoneResponse, *http.Response, error) /* - AuthZoneUpdate Update the AuthZone object. + AuthZoneUpdate Update the AuthZone object. - Use this method to update an AuthZone object. -This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to update an AuthZone object. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthZoneUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthZoneUpdateRequest */ AuthZoneUpdate(ctx context.Context, id string) ApiAuthZoneUpdateRequest @@ -121,9 +120,9 @@ This object (_dns/auth_zone_) represents an authoritative zone. type AuthZoneAPIService internal.Service type ApiAuthZoneCopyRequest struct { - ctx context.Context + ctx context.Context ApiService AuthZoneAPI - body *ConfigCopyAuthZone + body *ConfigCopyAuthZone } func (r ApiAuthZoneCopyRequest) Body(body ConfigCopyAuthZone) ApiAuthZoneCopyRequest { @@ -141,24 +140,25 @@ AuthZoneCopy Copies the __AuthZone__ object. Use this method to copy an __AuthZone__ object to a different __View__. This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneCopyRequest */ func (a *AuthZoneAPIService) AuthZoneCopy(ctx context.Context) ApiAuthZoneCopyRequest { return ApiAuthZoneCopyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCopyAuthZoneResponse +// +// @return ConfigCopyAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*ConfigCopyAuthZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCopyAuthZoneResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCopyAuthZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthZoneAPIService.AuthZoneCopy") @@ -240,10 +240,10 @@ func (a *AuthZoneAPIService) AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*Con } type ApiAuthZoneCreateRequest struct { - ctx context.Context + ctx context.Context ApiService AuthZoneAPI - body *ConfigAuthZone - inherit *string + body *ConfigAuthZone + inherit *string } func (r ApiAuthZoneCreateRequest) Body(body ConfigAuthZone) ApiAuthZoneCreateRequest { @@ -267,24 +267,25 @@ AuthZoneCreate Create the AuthZone object. Use this method to create an AuthZone object. This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneCreateRequest */ func (a *AuthZoneAPIService) AuthZoneCreate(ctx context.Context) ApiAuthZoneCreateRequest { return ApiAuthZoneCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateAuthZoneResponse +// +// @return ConfigCreateAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) (*ConfigCreateAuthZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateAuthZoneResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateAuthZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthZoneAPIService.AuthZoneCreate") @@ -369,9 +370,9 @@ func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) ( } type ApiAuthZoneDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService AuthZoneAPI - id string + id string } func (r ApiAuthZoneDeleteRequest) Execute() (*http.Response, error) { @@ -384,24 +385,24 @@ AuthZoneDelete Moves the AuthZone object to Recyclebin. Use this method to move an AuthZone object to Recyclebin. This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthZoneDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthZoneDeleteRequest */ func (a *AuthZoneAPIService) AuthZoneDelete(ctx context.Context, id string) ApiAuthZoneDeleteRequest { return ApiAuthZoneDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *AuthZoneAPIService) AuthZoneDeleteExecute(r ApiAuthZoneDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthZoneAPIService.AuthZoneDelete") @@ -473,50 +474,50 @@ func (a *AuthZoneAPIService) AuthZoneDeleteExecute(r ApiAuthZoneDeleteRequest) ( } type ApiAuthZoneListRequest struct { - ctx context.Context + ctx context.Context ApiService AuthZoneAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - 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. + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. func (r ApiAuthZoneListRequest) Fields(fields string) ApiAuthZoneListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiAuthZoneListRequest) Filter(filter string) ApiAuthZoneListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiAuthZoneListRequest) Offset(offset int32) ApiAuthZoneListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiAuthZoneListRequest) Limit(limit int32) ApiAuthZoneListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiAuthZoneListRequest) PageToken(pageToken string) ApiAuthZoneListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiAuthZoneListRequest) OrderBy(orderBy string) ApiAuthZoneListRequest { r.orderBy = &orderBy return r @@ -550,24 +551,25 @@ AuthZoneList List AuthZone objects. Use this method to list AuthZone objects. This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneListRequest */ func (a *AuthZoneAPIService) AuthZoneList(ctx context.Context) ApiAuthZoneListRequest { return ApiAuthZoneListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListAuthZoneResponse +// +// @return ConfigListAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneListExecute(r ApiAuthZoneListRequest) (*ConfigListAuthZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListAuthZoneResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListAuthZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthZoneAPIService.AuthZoneList") @@ -671,14 +673,14 @@ func (a *AuthZoneAPIService) AuthZoneListExecute(r ApiAuthZoneListRequest) (*Con } type ApiAuthZoneReadRequest struct { - ctx context.Context + ctx context.Context ApiService AuthZoneAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiAuthZoneReadRequest) Fields(fields string) ApiAuthZoneReadRequest { r.fields = &fields return r @@ -700,26 +702,27 @@ AuthZoneRead Read the AuthZone object. Use this method to read an AuthZone object. This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthZoneReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthZoneReadRequest */ func (a *AuthZoneAPIService) AuthZoneRead(ctx context.Context, id string) ApiAuthZoneReadRequest { return ApiAuthZoneReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadAuthZoneResponse +// +// @return ConfigReadAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*ConfigReadAuthZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadAuthZoneResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadAuthZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthZoneAPIService.AuthZoneRead") @@ -803,11 +806,11 @@ func (a *AuthZoneAPIService) AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*Con } type ApiAuthZoneUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService AuthZoneAPI - id string - body *ConfigAuthZone - inherit *string + id string + body *ConfigAuthZone + inherit *string } func (r ApiAuthZoneUpdateRequest) Body(body ConfigAuthZone) ApiAuthZoneUpdateRequest { @@ -831,26 +834,27 @@ AuthZoneUpdate Update the AuthZone object. Use this method to update an AuthZone object. This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAuthZoneUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAuthZoneUpdateRequest */ func (a *AuthZoneAPIService) AuthZoneUpdate(ctx context.Context, id string) ApiAuthZoneUpdateRequest { return ApiAuthZoneUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateAuthZoneResponse +// +// @return ConfigUpdateAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneUpdateExecute(r ApiAuthZoneUpdateRequest) (*ConfigUpdateAuthZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateAuthZoneResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateAuthZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AuthZoneAPIService.AuthZoneUpdate") diff --git a/dns_config/api_cache_flush.go b/dns_config/api_cache_flush.go index dd8ec23..5d107ae 100644 --- a/dns_config/api_cache_flush.go +++ b/dns_config/api_cache_flush.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 */ @@ -17,20 +17,19 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type CacheFlushAPI interface { /* - CacheFlushCreate Create the Cache Flush object. + CacheFlushCreate Create the Cache Flush object. - Use this method to create a Cache Flush object. -The Cache Flush object is for removing entries from the DNS cache on a host. The host must be available and running DNS for this to succeed. + Use this method to create a Cache Flush object. + The Cache Flush object is for removing entries from the DNS cache on a host. The host must be available and running DNS for this to succeed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCacheFlushCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCacheFlushCreateRequest */ CacheFlushCreate(ctx context.Context) ApiCacheFlushCreateRequest @@ -43,9 +42,9 @@ The Cache Flush object is for removing entries from the DNS cache on a host. The type CacheFlushAPIService internal.Service type ApiCacheFlushCreateRequest struct { - ctx context.Context + ctx context.Context ApiService CacheFlushAPI - body *ConfigCacheFlush + body *ConfigCacheFlush } func (r ApiCacheFlushCreateRequest) Body(body ConfigCacheFlush) ApiCacheFlushCreateRequest { @@ -63,24 +62,25 @@ CacheFlushCreate Create the Cache Flush object. Use this method to create a Cache Flush object. The Cache Flush object is for removing entries from the DNS cache on a host. The host must be available and running DNS for this to succeed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCacheFlushCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCacheFlushCreateRequest */ func (a *CacheFlushAPIService) CacheFlushCreate(ctx context.Context) ApiCacheFlushCreateRequest { return ApiCacheFlushCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CacheFlushAPIService) CacheFlushCreateExecute(r ApiCacheFlushCreateRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "CacheFlushAPIService.CacheFlushCreate") diff --git a/dns_config/api_convert_domain_name.go b/dns_config/api_convert_domain_name.go index 35fb79e..3c9e5b0 100644 --- a/dns_config/api_convert_domain_name.go +++ b/dns_config/api_convert_domain_name.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ConvertDomainNameAPI interface { /* - ConvertDomainNameConvert Convert the object. + ConvertDomainNameConvert Convert the object. - Use this method to convert between Internationalized Domain Name (IDN) and ASCII domain name (Punycode). + Use this method to convert between Internationalized Domain Name (IDN) and ASCII domain name (Punycode). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param domainName Input domain name in either of IDN or punycode representations. - @return ApiConvertDomainNameConvertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param domainName Input domain name in either of IDN or punycode representations. + @return ApiConvertDomainNameConvertRequest */ ConvertDomainNameConvert(ctx context.Context, domainName string) ApiConvertDomainNameConvertRequest @@ -44,7 +43,7 @@ type ConvertDomainNameAPI interface { type ConvertDomainNameAPIService internal.Service type ApiConvertDomainNameConvertRequest struct { - ctx context.Context + ctx context.Context ApiService ConvertDomainNameAPI domainName string } @@ -58,26 +57,27 @@ ConvertDomainNameConvert Convert the object. Use this method to convert between Internationalized Domain Name (IDN) and ASCII domain name (Punycode). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param domainName Input domain name in either of IDN or punycode representations. - @return ApiConvertDomainNameConvertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param domainName Input domain name in either of IDN or punycode representations. + @return ApiConvertDomainNameConvertRequest */ func (a *ConvertDomainNameAPIService) ConvertDomainNameConvert(ctx context.Context, domainName string) ApiConvertDomainNameConvertRequest { return ApiConvertDomainNameConvertRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, domainName: domainName, } } // Execute executes the request -// @return ConfigConvertDomainNameResponse +// +// @return ConfigConvertDomainNameResponse func (a *ConvertDomainNameAPIService) ConvertDomainNameConvertExecute(r ApiConvertDomainNameConvertRequest) (*ConfigConvertDomainNameResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigConvertDomainNameResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigConvertDomainNameResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ConvertDomainNameAPIService.ConvertDomainNameConvert") diff --git a/dns_config/api_convert_rname.go b/dns_config/api_convert_rname.go index 1e14fac..317d931 100644 --- a/dns_config/api_convert_rname.go +++ b/dns_config/api_convert_rname.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ConvertRnameAPI interface { /* - ConvertRnameConvertRName Convert the object. + ConvertRnameConvertRName Convert the object. - Use this method to convert email address to the master file RNAME format. + Use this method to convert email address to the master file RNAME format. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param emailAddress Input email address. - @return ApiConvertRnameConvertRNameRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param emailAddress Input email address. + @return ApiConvertRnameConvertRNameRequest */ ConvertRnameConvertRName(ctx context.Context, emailAddress string) ApiConvertRnameConvertRNameRequest @@ -44,8 +43,8 @@ type ConvertRnameAPI interface { type ConvertRnameAPIService internal.Service type ApiConvertRnameConvertRNameRequest struct { - ctx context.Context - ApiService ConvertRnameAPI + ctx context.Context + ApiService ConvertRnameAPI emailAddress string } @@ -58,26 +57,27 @@ ConvertRnameConvertRName Convert the object. Use this method to convert email address to the master file RNAME format. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param emailAddress Input email address. - @return ApiConvertRnameConvertRNameRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param emailAddress Input email address. + @return ApiConvertRnameConvertRNameRequest */ func (a *ConvertRnameAPIService) ConvertRnameConvertRName(ctx context.Context, emailAddress string) ApiConvertRnameConvertRNameRequest { return ApiConvertRnameConvertRNameRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, emailAddress: emailAddress, } } // Execute executes the request -// @return ConfigConvertRNameResponse +// +// @return ConfigConvertRNameResponse func (a *ConvertRnameAPIService) ConvertRnameConvertRNameExecute(r ApiConvertRnameConvertRNameRequest) (*ConfigConvertRNameResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigConvertRNameResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigConvertRNameResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ConvertRnameAPIService.ConvertRnameConvertRName") diff --git a/dns_config/api_delegation.go b/dns_config/api_delegation.go index 71d3606..3599ee3 100644 --- a/dns_config/api_delegation.go +++ b/dns_config/api_delegation.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type DelegationAPI interface { /* - DelegationCreate Create the Delegation object. + DelegationCreate Create the Delegation object. - Use this method to create a Delegation object. -This object (_dns/delegation_) represents a zone delegation. + Use this method to create a Delegation object. + This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDelegationCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDelegationCreateRequest */ DelegationCreate(ctx context.Context) ApiDelegationCreateRequest @@ -40,14 +39,14 @@ This object (_dns/delegation_) represents a zone delegation. DelegationCreateExecute(r ApiDelegationCreateRequest) (*ConfigCreateDelegationResponse, *http.Response, error) /* - DelegationDelete Moves the Delegation object to Recyclebin. + DelegationDelete Moves the Delegation object to Recyclebin. - Use this method to move a Delegation object to Recyclebin. -This object (_dns/delegation_) represents a zone delegation. + Use this method to move a Delegation object to Recyclebin. + This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDelegationDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDelegationDeleteRequest */ DelegationDelete(ctx context.Context, id string) ApiDelegationDeleteRequest @@ -55,13 +54,13 @@ This object (_dns/delegation_) represents a zone delegation. DelegationDeleteExecute(r ApiDelegationDeleteRequest) (*http.Response, error) /* - DelegationList List Delegation objects. + DelegationList List Delegation objects. - Use this method to list Delegation objects. -This object (_dns/delegation_) represents a zone delegation. + Use this method to list Delegation objects. + This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDelegationListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDelegationListRequest */ DelegationList(ctx context.Context) ApiDelegationListRequest @@ -70,14 +69,14 @@ This object (_dns/delegation_) represents a zone delegation. DelegationListExecute(r ApiDelegationListRequest) (*ConfigListDelegationResponse, *http.Response, error) /* - DelegationRead Read the Delegation object. + DelegationRead Read the Delegation object. - Use this method to read a Delegation object. -This object (_dns/delegation)_ represents a zone delegation. + Use this method to read a Delegation object. + This object (_dns/delegation)_ represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDelegationReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDelegationReadRequest */ DelegationRead(ctx context.Context, id string) ApiDelegationReadRequest @@ -86,14 +85,14 @@ This object (_dns/delegation)_ represents a zone delegation. DelegationReadExecute(r ApiDelegationReadRequest) (*ConfigReadDelegationResponse, *http.Response, error) /* - DelegationUpdate Update the Delegation object. + DelegationUpdate Update the Delegation object. - Use this method to update a Delegation object. -This object (_dns/delegation_) represents a zone delegation. + Use this method to update a Delegation object. + This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDelegationUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDelegationUpdateRequest */ DelegationUpdate(ctx context.Context, id string) ApiDelegationUpdateRequest @@ -106,9 +105,9 @@ This object (_dns/delegation_) represents a zone delegation. type DelegationAPIService internal.Service type ApiDelegationCreateRequest struct { - ctx context.Context + ctx context.Context ApiService DelegationAPI - body *ConfigDelegation + body *ConfigDelegation } func (r ApiDelegationCreateRequest) Body(body ConfigDelegation) ApiDelegationCreateRequest { @@ -126,24 +125,25 @@ DelegationCreate Create the Delegation object. Use this method to create a Delegation object. This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDelegationCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDelegationCreateRequest */ func (a *DelegationAPIService) DelegationCreate(ctx context.Context) ApiDelegationCreateRequest { return ApiDelegationCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateDelegationResponse +// +// @return ConfigCreateDelegationResponse func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequest) (*ConfigCreateDelegationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateDelegationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.DelegationCreate") @@ -225,9 +225,9 @@ func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequ } type ApiDelegationDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService DelegationAPI - id string + id string } func (r ApiDelegationDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ DelegationDelete Moves the Delegation object to Recyclebin. Use this method to move a Delegation object to Recyclebin. This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDelegationDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDelegationDeleteRequest */ func (a *DelegationAPIService) DelegationDelete(ctx context.Context, id string) ApiDelegationDeleteRequest { return ApiDelegationDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *DelegationAPIService) DelegationDeleteExecute(r ApiDelegationDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.DelegationDelete") @@ -329,49 +329,49 @@ func (a *DelegationAPIService) DelegationDeleteExecute(r ApiDelegationDeleteRequ } type ApiDelegationListRequest struct { - ctx context.Context + ctx context.Context ApiService DelegationAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiDelegationListRequest) Fields(fields string) ApiDelegationListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiDelegationListRequest) Filter(filter string) ApiDelegationListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiDelegationListRequest) Offset(offset int32) ApiDelegationListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiDelegationListRequest) Limit(limit int32) ApiDelegationListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiDelegationListRequest) PageToken(pageToken string) ApiDelegationListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiDelegationListRequest) OrderBy(orderBy string) ApiDelegationListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ DelegationList List Delegation objects. Use this method to list Delegation objects. This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDelegationListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDelegationListRequest */ func (a *DelegationAPIService) DelegationList(ctx context.Context) ApiDelegationListRequest { return ApiDelegationListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListDelegationResponse +// +// @return ConfigListDelegationResponse func (a *DelegationAPIService) DelegationListExecute(r ApiDelegationListRequest) (*ConfigListDelegationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListDelegationResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.DelegationList") @@ -517,13 +518,13 @@ func (a *DelegationAPIService) DelegationListExecute(r ApiDelegationListRequest) } type ApiDelegationReadRequest struct { - ctx context.Context + ctx context.Context ApiService DelegationAPI - id string - fields *string + id string + 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. +// 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. func (r ApiDelegationReadRequest) Fields(fields string) ApiDelegationReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ DelegationRead Read the Delegation object. Use this method to read a Delegation object. This object (_dns/delegation)_ represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDelegationReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDelegationReadRequest */ func (a *DelegationAPIService) DelegationRead(ctx context.Context, id string) ApiDelegationReadRequest { return ApiDelegationReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadDelegationResponse +// +// @return ConfigReadDelegationResponse func (a *DelegationAPIService) DelegationReadExecute(r ApiDelegationReadRequest) (*ConfigReadDelegationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadDelegationResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.DelegationRead") @@ -639,10 +641,10 @@ func (a *DelegationAPIService) DelegationReadExecute(r ApiDelegationReadRequest) } type ApiDelegationUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService DelegationAPI - id string - body *ConfigDelegation + id string + body *ConfigDelegation } func (r ApiDelegationUpdateRequest) Body(body ConfigDelegation) ApiDelegationUpdateRequest { @@ -660,26 +662,27 @@ DelegationUpdate Update the Delegation object. Use this method to update a Delegation object. This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDelegationUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDelegationUpdateRequest */ func (a *DelegationAPIService) DelegationUpdate(ctx context.Context, id string) ApiDelegationUpdateRequest { return ApiDelegationUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateDelegationResponse +// +// @return ConfigUpdateDelegationResponse func (a *DelegationAPIService) DelegationUpdateExecute(r ApiDelegationUpdateRequest) (*ConfigUpdateDelegationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateDelegationResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.DelegationUpdate") diff --git a/dns_config/api_forward_nsg.go b/dns_config/api_forward_nsg.go index 6a4b875..b27a0ea 100644 --- a/dns_config/api_forward_nsg.go +++ b/dns_config/api_forward_nsg.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ForwardNsgAPI interface { /* - ForwardNsgCreate Create the ForwardNSG object. + ForwardNsgCreate Create the ForwardNSG object. - Use this method to create a ForwardNSG object. -The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to create a ForwardNSG object. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardNsgCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardNsgCreateRequest */ ForwardNsgCreate(ctx context.Context) ApiForwardNsgCreateRequest @@ -40,14 +39,14 @@ The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward z ForwardNsgCreateExecute(r ApiForwardNsgCreateRequest) (*ConfigCreateForwardNSGResponse, *http.Response, error) /* - ForwardNsgDelete Move the ForwardNSG object to Recyclebin. + ForwardNsgDelete Move the ForwardNSG object to Recyclebin. - Use this method to move a ForwardNSG object to Recyclebin. -The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to move a ForwardNSG object to Recyclebin. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardNsgDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardNsgDeleteRequest */ ForwardNsgDelete(ctx context.Context, id string) ApiForwardNsgDeleteRequest @@ -55,13 +54,13 @@ The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward z ForwardNsgDeleteExecute(r ApiForwardNsgDeleteRequest) (*http.Response, error) /* - ForwardNsgList List ForwardNSG objects. + ForwardNsgList List ForwardNSG objects. - Use this method to list ForwardNSG objects. -The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to list ForwardNSG objects. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardNsgListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardNsgListRequest */ ForwardNsgList(ctx context.Context) ApiForwardNsgListRequest @@ -70,14 +69,14 @@ The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward z ForwardNsgListExecute(r ApiForwardNsgListRequest) (*ConfigListForwardNSGResponse, *http.Response, error) /* - ForwardNsgRead Read the ForwardNSG object. + ForwardNsgRead Read the ForwardNSG object. - Use this method to read a ForwardNSG object. -The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to read a ForwardNSG object. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardNsgReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardNsgReadRequest */ ForwardNsgRead(ctx context.Context, id string) ApiForwardNsgReadRequest @@ -86,14 +85,14 @@ The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward z ForwardNsgReadExecute(r ApiForwardNsgReadRequest) (*ConfigReadForwardNSGResponse, *http.Response, error) /* - ForwardNsgUpdate Update the ForwardNSG object. + ForwardNsgUpdate Update the ForwardNSG object. - Use this method to update a ForwardNSG object. -The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to update a ForwardNSG object. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardNsgUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardNsgUpdateRequest */ ForwardNsgUpdate(ctx context.Context, id string) ApiForwardNsgUpdateRequest @@ -106,9 +105,9 @@ The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward z type ForwardNsgAPIService internal.Service type ApiForwardNsgCreateRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardNsgAPI - body *ConfigForwardNSG + body *ConfigForwardNSG } func (r ApiForwardNsgCreateRequest) Body(body ConfigForwardNSG) ApiForwardNsgCreateRequest { @@ -126,24 +125,25 @@ ForwardNsgCreate Create the ForwardNSG object. Use this method to create a ForwardNSG object. The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardNsgCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardNsgCreateRequest */ func (a *ForwardNsgAPIService) ForwardNsgCreate(ctx context.Context) ApiForwardNsgCreateRequest { return ApiForwardNsgCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateForwardNSGResponse +// +// @return ConfigCreateForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequest) (*ConfigCreateForwardNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateForwardNSGResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateForwardNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardNsgAPIService.ForwardNsgCreate") @@ -225,9 +225,9 @@ func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequ } type ApiForwardNsgDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardNsgAPI - id string + id string } func (r ApiForwardNsgDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ ForwardNsgDelete Move the ForwardNSG object to Recyclebin. Use this method to move a ForwardNSG object to Recyclebin. The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardNsgDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardNsgDeleteRequest */ func (a *ForwardNsgAPIService) ForwardNsgDelete(ctx context.Context, id string) ApiForwardNsgDeleteRequest { return ApiForwardNsgDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *ForwardNsgAPIService) ForwardNsgDeleteExecute(r ApiForwardNsgDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardNsgAPIService.ForwardNsgDelete") @@ -329,49 +329,49 @@ func (a *ForwardNsgAPIService) ForwardNsgDeleteExecute(r ApiForwardNsgDeleteRequ } type ApiForwardNsgListRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardNsgAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiForwardNsgListRequest) Fields(fields string) ApiForwardNsgListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiForwardNsgListRequest) Filter(filter string) ApiForwardNsgListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiForwardNsgListRequest) Offset(offset int32) ApiForwardNsgListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiForwardNsgListRequest) Limit(limit int32) ApiForwardNsgListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiForwardNsgListRequest) PageToken(pageToken string) ApiForwardNsgListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiForwardNsgListRequest) OrderBy(orderBy string) ApiForwardNsgListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ ForwardNsgList List ForwardNSG objects. Use this method to list ForwardNSG objects. The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardNsgListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardNsgListRequest */ func (a *ForwardNsgAPIService) ForwardNsgList(ctx context.Context) ApiForwardNsgListRequest { return ApiForwardNsgListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListForwardNSGResponse +// +// @return ConfigListForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgListExecute(r ApiForwardNsgListRequest) (*ConfigListForwardNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListForwardNSGResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListForwardNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardNsgAPIService.ForwardNsgList") @@ -517,13 +518,13 @@ func (a *ForwardNsgAPIService) ForwardNsgListExecute(r ApiForwardNsgListRequest) } type ApiForwardNsgReadRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardNsgAPI - id string - fields *string + id string + 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. +// 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. func (r ApiForwardNsgReadRequest) Fields(fields string) ApiForwardNsgReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ ForwardNsgRead Read the ForwardNSG object. Use this method to read a ForwardNSG object. The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardNsgReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardNsgReadRequest */ func (a *ForwardNsgAPIService) ForwardNsgRead(ctx context.Context, id string) ApiForwardNsgReadRequest { return ApiForwardNsgReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadForwardNSGResponse +// +// @return ConfigReadForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgReadExecute(r ApiForwardNsgReadRequest) (*ConfigReadForwardNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadForwardNSGResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadForwardNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardNsgAPIService.ForwardNsgRead") @@ -639,10 +641,10 @@ func (a *ForwardNsgAPIService) ForwardNsgReadExecute(r ApiForwardNsgReadRequest) } type ApiForwardNsgUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardNsgAPI - id string - body *ConfigForwardNSG + id string + body *ConfigForwardNSG } func (r ApiForwardNsgUpdateRequest) Body(body ConfigForwardNSG) ApiForwardNsgUpdateRequest { @@ -660,26 +662,27 @@ ForwardNsgUpdate Update the ForwardNSG object. Use this method to update a ForwardNSG object. The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardNsgUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardNsgUpdateRequest */ func (a *ForwardNsgAPIService) ForwardNsgUpdate(ctx context.Context, id string) ApiForwardNsgUpdateRequest { return ApiForwardNsgUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateForwardNSGResponse +// +// @return ConfigUpdateForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgUpdateExecute(r ApiForwardNsgUpdateRequest) (*ConfigUpdateForwardNSGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateForwardNSGResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateForwardNSGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardNsgAPIService.ForwardNsgUpdate") diff --git a/dns_config/api_forward_zone.go b/dns_config/api_forward_zone.go index b22f6e1..050208e 100644 --- a/dns_config/api_forward_zone.go +++ b/dns_config/api_forward_zone.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ForwardZoneAPI interface { /* - ForwardZoneCopy Copies the __ForwardZone__ object. + ForwardZoneCopy Copies the __ForwardZone__ object. - Use this method to copy an __ForwardZone__ object to a different __View__. -This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to copy an __ForwardZone__ object to a different __View__. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneCopyRequest */ ForwardZoneCopy(ctx context.Context) ApiForwardZoneCopyRequest @@ -40,13 +39,13 @@ This object (_dns/forward_zone_) represents a forwarding zone. ForwardZoneCopyExecute(r ApiForwardZoneCopyRequest) (*ConfigCopyForwardZoneResponse, *http.Response, error) /* - ForwardZoneCreate Create the ForwardZone object. + ForwardZoneCreate Create the ForwardZone object. - Use this method to create a ForwardZone object. -This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to create a ForwardZone object. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneCreateRequest */ ForwardZoneCreate(ctx context.Context) ApiForwardZoneCreateRequest @@ -55,14 +54,14 @@ This object (_dns/forward_zone_) represents a forwarding zone. ForwardZoneCreateExecute(r ApiForwardZoneCreateRequest) (*ConfigCreateForwardZoneResponse, *http.Response, error) /* - ForwardZoneDelete Move the Forward Zone object to Recyclebin. + ForwardZoneDelete Move the Forward Zone object to Recyclebin. - Use this method to move a Forward Zone object to Recyclebin. -This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to move a Forward Zone object to Recyclebin. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardZoneDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardZoneDeleteRequest */ ForwardZoneDelete(ctx context.Context, id string) ApiForwardZoneDeleteRequest @@ -70,13 +69,13 @@ This object (_dns/forward_zone_) represents a forwarding zone. ForwardZoneDeleteExecute(r ApiForwardZoneDeleteRequest) (*http.Response, error) /* - ForwardZoneList List Forward Zone objects. + ForwardZoneList List Forward Zone objects. - Use this method to list Forward Zone objects. -This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to list Forward Zone objects. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneListRequest */ ForwardZoneList(ctx context.Context) ApiForwardZoneListRequest @@ -85,14 +84,14 @@ This object (_dns/forward_zone_) represents a forwarding zone. ForwardZoneListExecute(r ApiForwardZoneListRequest) (*ConfigListForwardZoneResponse, *http.Response, error) /* - ForwardZoneRead Read the Forward Zone object. + ForwardZoneRead Read the Forward Zone object. - Use this method to read a Forward Zone object. -This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to read a Forward Zone object. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardZoneReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardZoneReadRequest */ ForwardZoneRead(ctx context.Context, id string) ApiForwardZoneReadRequest @@ -101,14 +100,14 @@ This object (_dns/forward_zone_) represents a forwarding zone. ForwardZoneReadExecute(r ApiForwardZoneReadRequest) (*ConfigReadForwardZoneResponse, *http.Response, error) /* - ForwardZoneUpdate Update the Forward Zone object. + ForwardZoneUpdate Update the Forward Zone object. - Use this method to update a Forward Zone object. -This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to update a Forward Zone object. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardZoneUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardZoneUpdateRequest */ ForwardZoneUpdate(ctx context.Context, id string) ApiForwardZoneUpdateRequest @@ -121,9 +120,9 @@ This object (_dns/forward_zone_) represents a forwarding zone. type ForwardZoneAPIService internal.Service type ApiForwardZoneCopyRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardZoneAPI - body *ConfigCopyForwardZone + body *ConfigCopyForwardZone } func (r ApiForwardZoneCopyRequest) Body(body ConfigCopyForwardZone) ApiForwardZoneCopyRequest { @@ -141,24 +140,25 @@ ForwardZoneCopy Copies the __ForwardZone__ object. Use this method to copy an __ForwardZone__ object to a different __View__. This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneCopyRequest */ func (a *ForwardZoneAPIService) ForwardZoneCopy(ctx context.Context) ApiForwardZoneCopyRequest { return ApiForwardZoneCopyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCopyForwardZoneResponse +// +// @return ConfigCopyForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneCopyExecute(r ApiForwardZoneCopyRequest) (*ConfigCopyForwardZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCopyForwardZoneResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCopyForwardZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardZoneAPIService.ForwardZoneCopy") @@ -240,9 +240,9 @@ func (a *ForwardZoneAPIService) ForwardZoneCopyExecute(r ApiForwardZoneCopyReque } type ApiForwardZoneCreateRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardZoneAPI - body *ConfigForwardZone + body *ConfigForwardZone } func (r ApiForwardZoneCreateRequest) Body(body ConfigForwardZone) ApiForwardZoneCreateRequest { @@ -260,24 +260,25 @@ ForwardZoneCreate Create the ForwardZone object. Use this method to create a ForwardZone object. This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneCreateRequest */ func (a *ForwardZoneAPIService) ForwardZoneCreate(ctx context.Context) ApiForwardZoneCreateRequest { return ApiForwardZoneCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateForwardZoneResponse +// +// @return ConfigCreateForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateRequest) (*ConfigCreateForwardZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateForwardZoneResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateForwardZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardZoneAPIService.ForwardZoneCreate") @@ -359,9 +360,9 @@ func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateR } type ApiForwardZoneDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardZoneAPI - id string + id string } func (r ApiForwardZoneDeleteRequest) Execute() (*http.Response, error) { @@ -374,24 +375,24 @@ ForwardZoneDelete Move the Forward Zone object to Recyclebin. Use this method to move a Forward Zone object to Recyclebin. This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardZoneDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardZoneDeleteRequest */ func (a *ForwardZoneAPIService) ForwardZoneDelete(ctx context.Context, id string) ApiForwardZoneDeleteRequest { return ApiForwardZoneDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *ForwardZoneAPIService) ForwardZoneDeleteExecute(r ApiForwardZoneDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardZoneAPIService.ForwardZoneDelete") @@ -463,49 +464,49 @@ func (a *ForwardZoneAPIService) ForwardZoneDeleteExecute(r ApiForwardZoneDeleteR } type ApiForwardZoneListRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardZoneAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiForwardZoneListRequest) Fields(fields string) ApiForwardZoneListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiForwardZoneListRequest) Filter(filter string) ApiForwardZoneListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiForwardZoneListRequest) Offset(offset int32) ApiForwardZoneListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiForwardZoneListRequest) Limit(limit int32) ApiForwardZoneListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiForwardZoneListRequest) PageToken(pageToken string) ApiForwardZoneListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiForwardZoneListRequest) OrderBy(orderBy string) ApiForwardZoneListRequest { r.orderBy = &orderBy return r @@ -533,24 +534,25 @@ ForwardZoneList List Forward Zone objects. Use this method to list Forward Zone objects. This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneListRequest */ func (a *ForwardZoneAPIService) ForwardZoneList(ctx context.Context) ApiForwardZoneListRequest { return ApiForwardZoneListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListForwardZoneResponse +// +// @return ConfigListForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneListExecute(r ApiForwardZoneListRequest) (*ConfigListForwardZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListForwardZoneResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListForwardZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardZoneAPIService.ForwardZoneList") @@ -651,13 +653,13 @@ func (a *ForwardZoneAPIService) ForwardZoneListExecute(r ApiForwardZoneListReque } type ApiForwardZoneReadRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardZoneAPI - id string - fields *string + id string + 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. +// 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. func (r ApiForwardZoneReadRequest) Fields(fields string) ApiForwardZoneReadRequest { r.fields = &fields return r @@ -673,26 +675,27 @@ ForwardZoneRead Read the Forward Zone object. Use this method to read a Forward Zone object. This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardZoneReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardZoneReadRequest */ func (a *ForwardZoneAPIService) ForwardZoneRead(ctx context.Context, id string) ApiForwardZoneReadRequest { return ApiForwardZoneReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadForwardZoneResponse +// +// @return ConfigReadForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneReadExecute(r ApiForwardZoneReadRequest) (*ConfigReadForwardZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadForwardZoneResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadForwardZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardZoneAPIService.ForwardZoneRead") @@ -773,10 +776,10 @@ func (a *ForwardZoneAPIService) ForwardZoneReadExecute(r ApiForwardZoneReadReque } type ApiForwardZoneUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService ForwardZoneAPI - id string - body *ConfigForwardZone + id string + body *ConfigForwardZone } func (r ApiForwardZoneUpdateRequest) Body(body ConfigForwardZone) ApiForwardZoneUpdateRequest { @@ -794,26 +797,27 @@ ForwardZoneUpdate Update the Forward Zone object. Use this method to update a Forward Zone object. This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiForwardZoneUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiForwardZoneUpdateRequest */ func (a *ForwardZoneAPIService) ForwardZoneUpdate(ctx context.Context, id string) ApiForwardZoneUpdateRequest { return ApiForwardZoneUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateForwardZoneResponse +// +// @return ConfigUpdateForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneUpdateExecute(r ApiForwardZoneUpdateRequest) (*ConfigUpdateForwardZoneResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateForwardZoneResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateForwardZoneResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ForwardZoneAPIService.ForwardZoneUpdate") diff --git a/dns_config/api_global.go b/dns_config/api_global.go index ab1c845..0c98b92 100644 --- a/dns_config/api_global.go +++ b/dns_config/api_global.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type GlobalAPI interface { /* - GlobalRead Read the Global configuration object. + GlobalRead Read the Global configuration object. - Use this method to read the Global configuration object. -Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to read the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalReadRequest */ GlobalRead(ctx context.Context) ApiGlobalReadRequest @@ -40,14 +39,14 @@ Service operates on Global singleton object that represents parent configuration GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigReadGlobalResponse, *http.Response, error) /* - GlobalRead2 Read the Global configuration object. + GlobalRead2 Read the Global configuration object. - Use this method to read the Global configuration object. -Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to read the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalRead2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalRead2Request */ GlobalRead2(ctx context.Context, id string) ApiGlobalRead2Request @@ -56,13 +55,13 @@ Service operates on Global singleton object that represents parent configuration GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigReadGlobalResponse, *http.Response, error) /* - GlobalUpdate Update the Global configuration object. + GlobalUpdate Update the Global configuration object. - Use this method to update the Global configuration object. -Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to update the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalUpdateRequest */ GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequest @@ -71,14 +70,14 @@ Service operates on Global singleton object that represents parent configuration GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*ConfigUpdateGlobalResponse, *http.Response, error) /* - GlobalUpdate2 Update the Global configuration object. + GlobalUpdate2 Update the Global configuration object. - Use this method to update the Global configuration object. -Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to update the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalUpdate2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalUpdate2Request */ GlobalUpdate2(ctx context.Context, id string) ApiGlobalUpdate2Request @@ -91,12 +90,12 @@ Service operates on Global singleton object that represents parent configuration type GlobalAPIService internal.Service type ApiGlobalReadRequest struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - fields *string + 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. +// 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. func (r ApiGlobalReadRequest) Fields(fields string) ApiGlobalReadRequest { r.fields = &fields return r @@ -112,24 +111,25 @@ GlobalRead Read the Global configuration object. Use this method to read the Global configuration object. Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalReadRequest */ func (a *GlobalAPIService) GlobalRead(ctx context.Context) ApiGlobalReadRequest { return ApiGlobalReadRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigReadGlobalResponse +// +// @return ConfigReadGlobalResponse func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigReadGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadGlobalResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalRead") @@ -209,13 +209,13 @@ func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigRea } type ApiGlobalRead2Request struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - id string - fields *string + id string + 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. +// 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. func (r ApiGlobalRead2Request) Fields(fields string) ApiGlobalRead2Request { r.fields = &fields return r @@ -231,26 +231,27 @@ GlobalRead2 Read the Global configuration object. Use this method to read the Global configuration object. Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalRead2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalRead2Request */ func (a *GlobalAPIService) GlobalRead2(ctx context.Context, id string) ApiGlobalRead2Request { return ApiGlobalRead2Request{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadGlobalResponse +// +// @return ConfigReadGlobalResponse func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigReadGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadGlobalResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalRead2") @@ -331,9 +332,9 @@ func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigR } type ApiGlobalUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - body *ConfigGlobal + body *ConfigGlobal } func (r ApiGlobalUpdateRequest) Body(body ConfigGlobal) ApiGlobalUpdateRequest { @@ -351,24 +352,25 @@ GlobalUpdate Update the Global configuration object. Use this method to update the Global configuration object. Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalUpdateRequest */ func (a *GlobalAPIService) GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequest { return ApiGlobalUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigUpdateGlobalResponse +// +// @return ConfigUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*ConfigUpdateGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateGlobalResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalUpdate") @@ -450,10 +452,10 @@ func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*Confi } type ApiGlobalUpdate2Request struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - id string - body *ConfigGlobal + id string + body *ConfigGlobal } func (r ApiGlobalUpdate2Request) Body(body ConfigGlobal) ApiGlobalUpdate2Request { @@ -471,26 +473,27 @@ GlobalUpdate2 Update the Global configuration object. Use this method to update the Global configuration object. Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalUpdate2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalUpdate2Request */ func (a *GlobalAPIService) GlobalUpdate2(ctx context.Context, id string) ApiGlobalUpdate2Request { return ApiGlobalUpdate2Request{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateGlobalResponse +// +// @return ConfigUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdate2Execute(r ApiGlobalUpdate2Request) (*ConfigUpdateGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateGlobalResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalUpdate2") diff --git a/dns_config/api_host.go b/dns_config/api_host.go index 60efa78..5a21638 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type HostAPI interface { /* - HostList List DNS Host objects. + HostList List DNS Host objects. - Use this method to list DNS Host objects. -A DNS Host object associates DNS configuration with hosts. + Use this method to list DNS Host objects. + A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostListRequest */ HostList(ctx context.Context) ApiHostListRequest @@ -40,14 +39,14 @@ A DNS Host object associates DNS configuration with hosts. HostListExecute(r ApiHostListRequest) (*ConfigListHostResponse, *http.Response, error) /* - HostRead Read the DNS Host object. + HostRead Read the DNS Host object. - Use this method to read a DNS Host object. -A DNS Host object associates DNS configuration with hosts. + Use this method to read a DNS Host object. + A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostReadRequest */ HostRead(ctx context.Context, id string) ApiHostReadRequest @@ -56,14 +55,14 @@ A DNS Host object associates DNS configuration with hosts. HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostResponse, *http.Response, error) /* - HostUpdate Update the DNS Host object. + HostUpdate Update the DNS Host object. - Use this method to update a DNS Host object. -A DNS Host object associates DNS configuration with hosts. + Use this method to update a DNS Host object. + A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostUpdateRequest */ HostUpdate(ctx context.Context, id string) ApiHostUpdateRequest @@ -76,50 +75,50 @@ A DNS Host object associates DNS configuration with hosts. type HostAPIService internal.Service type ApiHostListRequest struct { - ctx context.Context + ctx context.Context ApiService HostAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string - inherit *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. +// 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. func (r ApiHostListRequest) Fields(fields string) ApiHostListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiHostListRequest) Filter(filter string) ApiHostListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiHostListRequest) Offset(offset int32) ApiHostListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiHostListRequest) Limit(limit int32) ApiHostListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiHostListRequest) PageToken(pageToken string) ApiHostListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiHostListRequest) OrderBy(orderBy string) ApiHostListRequest { r.orderBy = &orderBy return r @@ -153,24 +152,25 @@ HostList List DNS Host objects. Use this method to list DNS Host objects. A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostListRequest */ func (a *HostAPIService) HostList(ctx context.Context) ApiHostListRequest { return ApiHostListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListHostResponse +// +// @return ConfigListHostResponse func (a *HostAPIService) HostListExecute(r ApiHostListRequest) (*ConfigListHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostAPIService.HostList") @@ -274,14 +274,14 @@ func (a *HostAPIService) HostListExecute(r ApiHostListRequest) (*ConfigListHostR } type ApiHostReadRequest struct { - ctx context.Context + ctx context.Context ApiService HostAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiHostReadRequest) Fields(fields string) ApiHostReadRequest { r.fields = &fields return r @@ -303,26 +303,27 @@ HostRead Read the DNS Host object. Use this method to read a DNS Host object. A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostReadRequest */ func (a *HostAPIService) HostRead(ctx context.Context, id string) ApiHostReadRequest { return ApiHostReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadHostResponse +// +// @return ConfigReadHostResponse func (a *HostAPIService) HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostAPIService.HostRead") @@ -406,11 +407,11 @@ func (a *HostAPIService) HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostR } type ApiHostUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService HostAPI - id string - body *ConfigHost - inherit *string + id string + body *ConfigHost + inherit *string } func (r ApiHostUpdateRequest) Body(body ConfigHost) ApiHostUpdateRequest { @@ -434,26 +435,27 @@ HostUpdate Update the DNS Host object. Use this method to update a DNS Host object. A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostUpdateRequest */ func (a *HostAPIService) HostUpdate(ctx context.Context, id string) ApiHostUpdateRequest { return ApiHostUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateHostResponse +// +// @return ConfigUpdateHostResponse func (a *HostAPIService) HostUpdateExecute(r ApiHostUpdateRequest) (*ConfigUpdateHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateHostResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostAPIService.HostUpdate") diff --git a/dns_config/api_lbdn.go b/dns_config/api_lbdn.go index 0b6a1ba..964f9a3 100644 --- a/dns_config/api_lbdn.go +++ b/dns_config/api_lbdn.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 */ @@ -18,19 +18,18 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type LbdnAPI interface { /* - LbdnCreate Create the __LBDN__ object. + LbdnCreate Create the __LBDN__ object. - Use this method to create a __LBDN__ object. + Use this method to create a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLbdnCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLbdnCreateRequest */ LbdnCreate(ctx context.Context) ApiLbdnCreateRequest @@ -39,13 +38,13 @@ type LbdnAPI interface { LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreateLBDNResponse, *http.Response, error) /* - LbdnDelete Delete the __LBDN__ object. + LbdnDelete Delete the __LBDN__ object. - Use this method to delete a __LBDN__ object. + Use this method to delete a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiLbdnDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiLbdnDeleteRequest */ LbdnDelete(ctx context.Context, id string) ApiLbdnDeleteRequest @@ -53,12 +52,12 @@ type LbdnAPI interface { LbdnDeleteExecute(r ApiLbdnDeleteRequest) (*http.Response, error) /* - LbdnList List __LBDN__ objects. + LbdnList List __LBDN__ objects. - Use this method to list __LBDN__ objects. + Use this method to list __LBDN__ objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLbdnListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLbdnListRequest */ LbdnList(ctx context.Context) ApiLbdnListRequest @@ -67,13 +66,13 @@ type LbdnAPI interface { LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNResponse, *http.Response, error) /* - LbdnRead Read the __LBDN__ object. + LbdnRead Read the __LBDN__ object. - Use this method to read a __LBDN__ object. + Use this method to read a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiLbdnReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiLbdnReadRequest */ LbdnRead(ctx context.Context, id string) ApiLbdnReadRequest @@ -82,13 +81,13 @@ type LbdnAPI interface { LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNResponse, *http.Response, error) /* - LbdnUpdate Update the __LBDN__ object. + LbdnUpdate Update the __LBDN__ object. - Use this method to update a __LBDN__ object. + Use this method to update a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiLbdnUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiLbdnUpdateRequest */ LbdnUpdate(ctx context.Context, id string) ApiLbdnUpdateRequest @@ -101,9 +100,9 @@ type LbdnAPI interface { type LbdnAPIService internal.Service type ApiLbdnCreateRequest struct { - ctx context.Context + ctx context.Context ApiService LbdnAPI - body *ConfigLBDN + body *ConfigLBDN } func (r ApiLbdnCreateRequest) Body(body ConfigLBDN) ApiLbdnCreateRequest { @@ -120,24 +119,25 @@ LbdnCreate Create the __LBDN__ object. Use this method to create a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLbdnCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLbdnCreateRequest */ func (a *LbdnAPIService) LbdnCreate(ctx context.Context) ApiLbdnCreateRequest { return ApiLbdnCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateLBDNResponse +// +// @return ConfigCreateLBDNResponse func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreateLBDNResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateLBDNResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateLBDNResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "LbdnAPIService.LbdnCreate") @@ -219,9 +219,9 @@ func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreat } type ApiLbdnDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService LbdnAPI - id string + id string } func (r ApiLbdnDeleteRequest) Execute() (*http.Response, error) { @@ -233,24 +233,24 @@ LbdnDelete Delete the __LBDN__ object. Use this method to delete a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiLbdnDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiLbdnDeleteRequest */ func (a *LbdnAPIService) LbdnDelete(ctx context.Context, id string) ApiLbdnDeleteRequest { return ApiLbdnDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *LbdnAPIService) LbdnDeleteExecute(r ApiLbdnDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "LbdnAPIService.LbdnDelete") @@ -322,49 +322,49 @@ func (a *LbdnAPIService) LbdnDeleteExecute(r ApiLbdnDeleteRequest) (*http.Respon } type ApiLbdnListRequest struct { - ctx context.Context + ctx context.Context ApiService LbdnAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiLbdnListRequest) Fields(fields string) ApiLbdnListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiLbdnListRequest) Filter(filter string) ApiLbdnListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiLbdnListRequest) Offset(offset int32) ApiLbdnListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiLbdnListRequest) Limit(limit int32) ApiLbdnListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiLbdnListRequest) PageToken(pageToken string) ApiLbdnListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiLbdnListRequest) OrderBy(orderBy string) ApiLbdnListRequest { r.orderBy = &orderBy return r @@ -391,24 +391,25 @@ LbdnList List __LBDN__ objects. Use this method to list __LBDN__ objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLbdnListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLbdnListRequest */ func (a *LbdnAPIService) LbdnList(ctx context.Context) ApiLbdnListRequest { return ApiLbdnListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListLBDNResponse +// +// @return ConfigListLBDNResponse func (a *LbdnAPIService) LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListLBDNResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListLBDNResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "LbdnAPIService.LbdnList") @@ -509,13 +510,13 @@ func (a *LbdnAPIService) LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNR } type ApiLbdnReadRequest struct { - ctx context.Context + ctx context.Context ApiService LbdnAPI - id string - fields *string + id string + 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. +// 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. func (r ApiLbdnReadRequest) Fields(fields string) ApiLbdnReadRequest { r.fields = &fields return r @@ -530,26 +531,27 @@ LbdnRead Read the __LBDN__ object. Use this method to read a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiLbdnReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiLbdnReadRequest */ func (a *LbdnAPIService) LbdnRead(ctx context.Context, id string) ApiLbdnReadRequest { return ApiLbdnReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadLBDNResponse +// +// @return ConfigReadLBDNResponse func (a *LbdnAPIService) LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadLBDNResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadLBDNResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "LbdnAPIService.LbdnRead") @@ -630,10 +632,10 @@ func (a *LbdnAPIService) LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNR } type ApiLbdnUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService LbdnAPI - id string - body *ConfigLBDN + id string + body *ConfigLBDN } func (r ApiLbdnUpdateRequest) Body(body ConfigLBDN) ApiLbdnUpdateRequest { @@ -650,26 +652,27 @@ LbdnUpdate Update the __LBDN__ object. Use this method to update a __LBDN__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiLbdnUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiLbdnUpdateRequest */ func (a *LbdnAPIService) LbdnUpdate(ctx context.Context, id string) ApiLbdnUpdateRequest { return ApiLbdnUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateLBDNResponse +// +// @return ConfigUpdateLBDNResponse func (a *LbdnAPIService) LbdnUpdateExecute(r ApiLbdnUpdateRequest) (*ConfigUpdateLBDNResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateLBDNResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateLBDNResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "LbdnAPIService.LbdnUpdate") diff --git a/dns_config/api_server.go b/dns_config/api_server.go index e9b2fd3..e6474e3 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ServerAPI interface { /* - ServerCreate Create the Server object. + ServerCreate Create the Server object. - Use this method to create a Server object. -A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to create a Server object. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerCreateRequest */ ServerCreate(ctx context.Context) ApiServerCreateRequest @@ -40,14 +39,14 @@ A DNS Config Profile is a named configuration profile that can be shared for spe ServerCreateExecute(r ApiServerCreateRequest) (*ConfigCreateServerResponse, *http.Response, error) /* - ServerDelete Move the Server object to Recyclebin. + ServerDelete Move the Server object to Recyclebin. - Use this method to move a Server object to Recyclebin. -A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to move a Server object to Recyclebin. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerDeleteRequest */ ServerDelete(ctx context.Context, id string) ApiServerDeleteRequest @@ -55,13 +54,13 @@ A DNS Config Profile is a named configuration profile that can be shared for spe ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) /* - ServerList List Server objects. + ServerList List Server objects. - Use this method to list Server objects. -A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to list Server objects. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerListRequest */ ServerList(ctx context.Context) ApiServerListRequest @@ -70,14 +69,14 @@ A DNS Config Profile is a named configuration profile that can be shared for spe ServerListExecute(r ApiServerListRequest) (*ConfigListServerResponse, *http.Response, error) /* - ServerRead Read the Server object. + ServerRead Read the Server object. - Use this method to read a Server object. -A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to read a Server object. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerReadRequest */ ServerRead(ctx context.Context, id string) ApiServerReadRequest @@ -86,14 +85,14 @@ A DNS Config Profile is a named configuration profile that can be shared for spe ServerReadExecute(r ApiServerReadRequest) (*ConfigReadServerResponse, *http.Response, error) /* - ServerUpdate Update the Server object. + ServerUpdate Update the Server object. - Use this method to update a Server object. -A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to update a Server object. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerUpdateRequest */ ServerUpdate(ctx context.Context, id string) ApiServerUpdateRequest @@ -106,10 +105,10 @@ A DNS Config Profile is a named configuration profile that can be shared for spe type ServerAPIService internal.Service type ApiServerCreateRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - body *ConfigServer - inherit *string + body *ConfigServer + inherit *string } func (r ApiServerCreateRequest) Body(body ConfigServer) ApiServerCreateRequest { @@ -133,24 +132,25 @@ ServerCreate Create the Server object. Use this method to create a Server object. A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerCreateRequest */ func (a *ServerAPIService) ServerCreate(ctx context.Context) ApiServerCreateRequest { return ApiServerCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateServerResponse +// +// @return ConfigCreateServerResponse func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*ConfigCreateServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateServerResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerCreate") @@ -235,9 +235,9 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Confi } type ApiServerDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - id string + id string } func (r ApiServerDeleteRequest) Execute() (*http.Response, error) { @@ -250,24 +250,24 @@ ServerDelete Move the Server object to Recyclebin. Use this method to move a Server object to Recyclebin. A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerDeleteRequest */ func (a *ServerAPIService) ServerDelete(ctx context.Context, id string) ApiServerDeleteRequest { return ApiServerDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *ServerAPIService) ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerDelete") @@ -339,50 +339,50 @@ func (a *ServerAPIService) ServerDeleteExecute(r ApiServerDeleteRequest) (*http. } type ApiServerListRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - 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. + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. func (r ApiServerListRequest) Fields(fields string) ApiServerListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiServerListRequest) Filter(filter string) ApiServerListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiServerListRequest) Offset(offset int32) ApiServerListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiServerListRequest) Limit(limit int32) ApiServerListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiServerListRequest) PageToken(pageToken string) ApiServerListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiServerListRequest) OrderBy(orderBy string) ApiServerListRequest { r.orderBy = &orderBy return r @@ -416,24 +416,25 @@ ServerList List Server objects. Use this method to list Server objects. A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerListRequest */ func (a *ServerAPIService) ServerList(ctx context.Context) ApiServerListRequest { return ApiServerListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListServerResponse +// +// @return ConfigListServerResponse func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*ConfigListServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListServerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerList") @@ -537,14 +538,14 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*ConfigLis } type ApiServerReadRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiServerReadRequest) Fields(fields string) ApiServerReadRequest { r.fields = &fields return r @@ -566,26 +567,27 @@ ServerRead Read the Server object. Use this method to read a Server object. A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerReadRequest */ func (a *ServerAPIService) ServerRead(ctx context.Context, id string) ApiServerReadRequest { return ApiServerReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadServerResponse +// +// @return ConfigReadServerResponse func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*ConfigReadServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadServerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerRead") @@ -669,11 +671,11 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*ConfigRea } type ApiServerUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - id string - body *ConfigServer - inherit *string + id string + body *ConfigServer + inherit *string } func (r ApiServerUpdateRequest) Body(body ConfigServer) ApiServerUpdateRequest { @@ -697,26 +699,27 @@ ServerUpdate Update the Server object. Use this method to update a Server object. A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerUpdateRequest */ func (a *ServerAPIService) ServerUpdate(ctx context.Context, id string) ApiServerUpdateRequest { return ApiServerUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateServerResponse +// +// @return ConfigUpdateServerResponse func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*ConfigUpdateServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateServerResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerUpdate") diff --git a/dns_config/api_view.go b/dns_config/api_view.go index cd57508..7ae3fe4 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.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 */ @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ViewAPI interface { /* - ViewBulkCopy Copies the specified __AuthZone__ and __ForwardZone__ objects in the __View__. + ViewBulkCopy Copies the specified __AuthZone__ and __ForwardZone__ objects in the __View__. - Use this method to bulk copy __AuthZone__ and __ForwardZone__ objects from one __View__ object to another __View__ object. -The __AuthZone__ object represents an authoritative zone. -The __ForwardZone__ object represents a forwarding zone. + Use this method to bulk copy __AuthZone__ and __ForwardZone__ objects from one __View__ object to another __View__ object. + The __AuthZone__ object represents an authoritative zone. + The __ForwardZone__ object represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewBulkCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewBulkCopyRequest */ ViewBulkCopy(ctx context.Context) ApiViewBulkCopyRequest @@ -41,13 +40,13 @@ The __ForwardZone__ object represents a forwarding zone. ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigBulkCopyResponse, *http.Response, error) /* - ViewCreate Create the View object. + ViewCreate Create the View object. - Use this method to create a View object. -Named collection of DNS View settings. + Use this method to create a View object. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewCreateRequest */ ViewCreate(ctx context.Context) ApiViewCreateRequest @@ -56,14 +55,14 @@ Named collection of DNS View settings. ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreateViewResponse, *http.Response, error) /* - ViewDelete Move the View object to Recyclebin. + ViewDelete Move the View object to Recyclebin. - Use this method to move a View object to Recyclebin. -Named collection of DNS View settings. + Use this method to move a View object to Recyclebin. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiViewDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiViewDeleteRequest */ ViewDelete(ctx context.Context, id string) ApiViewDeleteRequest @@ -71,13 +70,13 @@ Named collection of DNS View settings. ViewDeleteExecute(r ApiViewDeleteRequest) (*http.Response, error) /* - ViewList List View objects. + ViewList List View objects. - Use this method to list View objects. -Named collection of DNS View settings. + Use this method to list View objects. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewListRequest */ ViewList(ctx context.Context) ApiViewListRequest @@ -86,14 +85,14 @@ Named collection of DNS View settings. ViewListExecute(r ApiViewListRequest) (*ConfigListViewResponse, *http.Response, error) /* - ViewRead Read the View object. + ViewRead Read the View object. - Use this method to read a View object. -Named collection of DNS View settings. + Use this method to read a View object. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiViewReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiViewReadRequest */ ViewRead(ctx context.Context, id string) ApiViewReadRequest @@ -102,14 +101,14 @@ Named collection of DNS View settings. ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewResponse, *http.Response, error) /* - ViewUpdate Update the View object. + ViewUpdate Update the View object. - Use this method to update a View object. -Named collection of DNS View settings. + Use this method to update a View object. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiViewUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiViewUpdateRequest */ ViewUpdate(ctx context.Context, id string) ApiViewUpdateRequest @@ -122,9 +121,9 @@ Named collection of DNS View settings. type ViewAPIService internal.Service type ApiViewBulkCopyRequest struct { - ctx context.Context + ctx context.Context ApiService ViewAPI - body *ConfigBulkCopyView + body *ConfigBulkCopyView } func (r ApiViewBulkCopyRequest) Body(body ConfigBulkCopyView) ApiViewBulkCopyRequest { @@ -143,24 +142,25 @@ Use this method to bulk copy __AuthZone__ and __ForwardZone__ objects from one _ The __AuthZone__ object represents an authoritative zone. The __ForwardZone__ object represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewBulkCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewBulkCopyRequest */ func (a *ViewAPIService) ViewBulkCopy(ctx context.Context) ApiViewBulkCopyRequest { return ApiViewBulkCopyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigBulkCopyResponse +// +// @return ConfigBulkCopyResponse func (a *ViewAPIService) ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigBulkCopyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigBulkCopyResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigBulkCopyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ViewAPIService.ViewBulkCopy") @@ -242,10 +242,10 @@ func (a *ViewAPIService) ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigB } type ApiViewCreateRequest struct { - ctx context.Context + ctx context.Context ApiService ViewAPI - body *ConfigView - inherit *string + body *ConfigView + inherit *string } func (r ApiViewCreateRequest) Body(body ConfigView) ApiViewCreateRequest { @@ -269,24 +269,25 @@ ViewCreate Create the View object. Use this method to create a View object. Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewCreateRequest */ func (a *ViewAPIService) ViewCreate(ctx context.Context) ApiViewCreateRequest { return ApiViewCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigCreateViewResponse +// +// @return ConfigCreateViewResponse func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreateViewResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigCreateViewResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigCreateViewResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ViewAPIService.ViewCreate") @@ -371,9 +372,9 @@ func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreat } type ApiViewDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService ViewAPI - id string + id string } func (r ApiViewDeleteRequest) Execute() (*http.Response, error) { @@ -386,24 +387,24 @@ ViewDelete Move the View object to Recyclebin. Use this method to move a View object to Recyclebin. Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiViewDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiViewDeleteRequest */ func (a *ViewAPIService) ViewDelete(ctx context.Context, id string) ApiViewDeleteRequest { return ApiViewDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *ViewAPIService) ViewDeleteExecute(r ApiViewDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ViewAPIService.ViewDelete") @@ -475,50 +476,50 @@ func (a *ViewAPIService) ViewDeleteExecute(r ApiViewDeleteRequest) (*http.Respon } type ApiViewListRequest struct { - ctx context.Context + ctx context.Context ApiService ViewAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - 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. + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. func (r ApiViewListRequest) Fields(fields string) ApiViewListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiViewListRequest) Filter(filter string) ApiViewListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiViewListRequest) Offset(offset int32) ApiViewListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiViewListRequest) Limit(limit int32) ApiViewListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiViewListRequest) PageToken(pageToken string) ApiViewListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiViewListRequest) OrderBy(orderBy string) ApiViewListRequest { r.orderBy = &orderBy return r @@ -552,24 +553,25 @@ ViewList List View objects. Use this method to list View objects. Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewListRequest */ func (a *ViewAPIService) ViewList(ctx context.Context) ApiViewListRequest { return ApiViewListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ConfigListViewResponse +// +// @return ConfigListViewResponse func (a *ViewAPIService) ViewListExecute(r ApiViewListRequest) (*ConfigListViewResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigListViewResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigListViewResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ViewAPIService.ViewList") @@ -673,14 +675,14 @@ func (a *ViewAPIService) ViewListExecute(r ApiViewListRequest) (*ConfigListViewR } type ApiViewReadRequest struct { - ctx context.Context + ctx context.Context ApiService ViewAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiViewReadRequest) Fields(fields string) ApiViewReadRequest { r.fields = &fields return r @@ -702,26 +704,27 @@ ViewRead Read the View object. Use this method to read a View object. Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiViewReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiViewReadRequest */ func (a *ViewAPIService) ViewRead(ctx context.Context, id string) ApiViewReadRequest { return ApiViewReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigReadViewResponse +// +// @return ConfigReadViewResponse func (a *ViewAPIService) ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigReadViewResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigReadViewResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ViewAPIService.ViewRead") @@ -805,11 +808,11 @@ func (a *ViewAPIService) ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewR } type ApiViewUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService ViewAPI - id string - body *ConfigView - inherit *string + id string + body *ConfigView + inherit *string } func (r ApiViewUpdateRequest) Body(body ConfigView) ApiViewUpdateRequest { @@ -833,26 +836,27 @@ ViewUpdate Update the View object. Use this method to update a View object. Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiViewUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiViewUpdateRequest */ func (a *ViewAPIService) ViewUpdate(ctx context.Context, id string) ApiViewUpdateRequest { return ApiViewUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return ConfigUpdateViewResponse +// +// @return ConfigUpdateViewResponse func (a *ViewAPIService) ViewUpdateExecute(r ApiViewUpdateRequest) (*ConfigUpdateViewResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *ConfigUpdateViewResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *ConfigUpdateViewResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ViewAPIService.ViewUpdate") diff --git a/dns_config/client.go b/dns_config/client.go index 2df6699..95b6d87 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/model_auth_zone_external_provider.go b/dns_config/model_auth_zone_external_provider.go index 6c4d4de..1ba81d5 100644 --- a/dns_config/model_auth_zone_external_provider.go +++ b/dns_config/model_auth_zone_external_provider.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 */ @@ -141,7 +141,7 @@ func (o *AuthZoneExternalProvider) SetType(v string) { } func (o AuthZoneExternalProvider) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableAuthZoneExternalProvider) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_acl.go b/dns_config/model_config_acl.go index a1da445..932e0ce 100644 --- a/dns_config/model_config_acl.go +++ b/dns_config/model_config_acl.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 */ @@ -202,7 +202,7 @@ func (o *ConfigACL) SetTags(v map[string]interface{}) { } func (o ConfigACL) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,5 +262,3 @@ func (v *NullableConfigACL) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_acl_item.go b/dns_config/model_config_acl_item.go index 9fa9b04..56a0482 100644 --- a/dns_config/model_config_acl_item.go +++ b/dns_config/model_config_acl_item.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 */ @@ -26,7 +26,7 @@ type ConfigACLItem struct { // Optional. Data for _ip_ _element_. Must be empty if _element_ is not _ip_. Address *string `json:"address,omitempty"` // Type of element. Allowed values: * _any_, * _ip_, * _acl_, * _tsig_key_. - Element string `json:"element"` + Element string `json:"element"` TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` } @@ -194,7 +194,7 @@ func (o *ConfigACLItem) SetTsigKey(v ConfigTSIGKey) { } func (o ConfigACLItem) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -252,5 +252,3 @@ func (v *NullableConfigACLItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_auth_nsg.go b/dns_config/model_config_auth_nsg.go index bc16d89..86e2519 100644 --- a/dns_config/model_config_auth_nsg.go +++ b/dns_config/model_config_auth_nsg.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 */ @@ -304,7 +304,7 @@ func (o *ConfigAuthNSG) SetTags(v map[string]interface{}) { } func (o ConfigAuthNSG) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -373,5 +373,3 @@ func (v *NullableConfigAuthNSG) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_auth_zone.go b/dns_config/model_config_auth_zone.go index 49c197a..4aa8f3d 100644 --- a/dns_config/model_config_auth_zone.go +++ b/dns_config/model_config_auth_zone.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 */ @@ -40,7 +40,7 @@ type ConfigAuthZone struct { Id *string `json:"id,omitempty"` // The list of the inheritance assigned hosts of the object. InheritanceAssignedHosts []Inheritance2AssignedHost `json:"inheritance_assigned_hosts,omitempty"` - InheritanceSources *ConfigAuthZoneInheritance `json:"inheritance_sources,omitempty"` + InheritanceSources *ConfigAuthZoneInheritance `json:"inheritance_sources,omitempty"` // On-create-only. SOA serial is allowed to be set when the authoritative zone is created. InitialSoaSerial *int64 `json:"initial_soa_serial,omitempty"` // Optional. BloxOne DDI hosts acting as internal secondaries. Order is not significant. @@ -74,7 +74,7 @@ type ConfigAuthZone struct { // The resource identifier. View *string `json:"view,omitempty"` // The list of an auth zone warnings. - Warnings []ConfigWarning `json:"warnings,omitempty"` + Warnings []ConfigWarning `json:"warnings,omitempty"` ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` } @@ -1024,7 +1024,7 @@ func (o *ConfigAuthZone) SetZoneAuthority(v ConfigZoneAuthority) { } func (o ConfigAuthZone) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1158,5 +1158,3 @@ func (v *NullableConfigAuthZone) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_auth_zone_config.go b/dns_config/model_config_auth_zone_config.go index 97ccf6e..59bcd04 100644 --- a/dns_config/model_config_auth_zone_config.go +++ b/dns_config/model_config_auth_zone_config.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 */ @@ -175,7 +175,7 @@ func (o *ConfigAuthZoneConfig) SetNsgs(v []string) { } func (o ConfigAuthZoneConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableConfigAuthZoneConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_auth_zone_inheritance.go b/dns_config/model_config_auth_zone_inheritance.go index 3c18d71..5154ca8 100644 --- a/dns_config/model_config_auth_zone_inheritance.go +++ b/dns_config/model_config_auth_zone_inheritance.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 */ @@ -19,13 +19,13 @@ var _ MappedNullable = &ConfigAuthZoneInheritance{} // ConfigAuthZoneInheritance struct for ConfigAuthZoneInheritance type ConfigAuthZoneInheritance struct { - GssTsigEnabled *Inheritance2InheritedBool `json:"gss_tsig_enabled,omitempty"` - Notify *Inheritance2InheritedBool `json:"notify,omitempty"` - QueryAcl *ConfigInheritedACLItems `json:"query_acl,omitempty"` - TransferAcl *ConfigInheritedACLItems `json:"transfer_acl,omitempty"` - UpdateAcl *ConfigInheritedACLItems `json:"update_acl,omitempty"` - UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` - ZoneAuthority *ConfigInheritedZoneAuthority `json:"zone_authority,omitempty"` + GssTsigEnabled *Inheritance2InheritedBool `json:"gss_tsig_enabled,omitempty"` + Notify *Inheritance2InheritedBool `json:"notify,omitempty"` + QueryAcl *ConfigInheritedACLItems `json:"query_acl,omitempty"` + TransferAcl *ConfigInheritedACLItems `json:"transfer_acl,omitempty"` + UpdateAcl *ConfigInheritedACLItems `json:"update_acl,omitempty"` + UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` + ZoneAuthority *ConfigInheritedZoneAuthority `json:"zone_authority,omitempty"` } // NewConfigAuthZoneInheritance instantiates a new ConfigAuthZoneInheritance object @@ -270,7 +270,7 @@ func (o *ConfigAuthZoneInheritance) SetZoneAuthority(v ConfigInheritedZoneAuthor } func (o ConfigAuthZoneInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -338,5 +338,3 @@ func (v *NullableConfigAuthZoneInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_bulk_copy_error.go b/dns_config/model_config_bulk_copy_error.go index 4e34f5a..d33825f 100644 --- a/dns_config/model_config_bulk_copy_error.go +++ b/dns_config/model_config_bulk_copy_error.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 */ @@ -141,7 +141,7 @@ func (o *ConfigBulkCopyError) SetMessage(v string) { } func (o ConfigBulkCopyError) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableConfigBulkCopyError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_bulk_copy_response.go b/dns_config/model_config_bulk_copy_response.go index d7b6100..a0d1ee0 100644 --- a/dns_config/model_config_bulk_copy_response.go +++ b/dns_config/model_config_bulk_copy_response.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 */ @@ -19,8 +19,8 @@ var _ MappedNullable = &ConfigBulkCopyResponse{} // ConfigBulkCopyResponse struct for ConfigBulkCopyResponse type ConfigBulkCopyResponse struct { - Errors []ConfigBulkCopyError `json:"errors,omitempty"` - Results []ConfigCopyResponse `json:"results,omitempty"` + Errors []ConfigBulkCopyError `json:"errors,omitempty"` + Results []ConfigCopyResponse `json:"results,omitempty"` } // NewConfigBulkCopyResponse instantiates a new ConfigBulkCopyResponse object @@ -105,7 +105,7 @@ func (o *ConfigBulkCopyResponse) SetResults(v []ConfigCopyResponse) { } func (o ConfigBulkCopyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableConfigBulkCopyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_bulk_copy_view.go b/dns_config/model_config_bulk_copy_view.go index dc8dbc4..d8bbec7 100644 --- a/dns_config/model_config_bulk_copy_view.go +++ b/dns_config/model_config_bulk_copy_view.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 */ @@ -19,12 +19,12 @@ var _ MappedNullable = &ConfigBulkCopyView{} // ConfigBulkCopyView struct for ConfigBulkCopyView type ConfigBulkCopyView struct { - AuthZoneConfig *ConfigAuthZoneConfig `json:"auth_zone_config,omitempty"` + AuthZoneConfig *ConfigAuthZoneConfig `json:"auth_zone_config,omitempty"` ForwardZoneConfig *ConfigForwardZoneConfig `json:"forward_zone_config,omitempty"` // Indicates whether child objects should be copied or not. Defaults to _false_. Reserved for future use. Recursive *bool `json:"recursive,omitempty"` // The resource identifier. - Resources []string `json:"resources"` + Resources []string `json:"resources"` SecondaryZoneConfig *ConfigAuthZoneConfig `json:"secondary_zone_config,omitempty"` // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` @@ -260,7 +260,7 @@ func (o *ConfigBulkCopyView) SetTarget(v string) { } func (o ConfigBulkCopyView) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -324,5 +324,3 @@ func (v *NullableConfigBulkCopyView) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_cache_flush.go b/dns_config/model_config_cache_flush.go index 3a4205a..7a2d37f 100644 --- a/dns_config/model_config_cache_flush.go +++ b/dns_config/model_config_cache_flush.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 */ @@ -243,7 +243,7 @@ func (o *ConfigCacheFlush) SetViewName(v string) { } func (o ConfigCacheFlush) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -308,5 +308,3 @@ func (v *NullableConfigCacheFlush) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_convert_domain_name.go b/dns_config/model_config_convert_domain_name.go index a3dda8c..567cc33 100644 --- a/dns_config/model_config_convert_domain_name.go +++ b/dns_config/model_config_convert_domain_name.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 */ @@ -107,7 +107,7 @@ func (o *ConfigConvertDomainName) SetPunycode(v string) { } func (o ConfigConvertDomainName) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableConfigConvertDomainName) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_convert_domain_name_response.go b/dns_config/model_config_convert_domain_name_response.go index 586f5a1..57bdce8 100644 --- a/dns_config/model_config_convert_domain_name_response.go +++ b/dns_config/model_config_convert_domain_name_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigConvertDomainNameResponse) SetResult(v ConfigConvertDomainName) { } func (o ConfigConvertDomainNameResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigConvertDomainNameResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_convert_r_name_response.go b/dns_config/model_config_convert_r_name_response.go index 85f475a..8e81294 100644 --- a/dns_config/model_config_convert_r_name_response.go +++ b/dns_config/model_config_convert_r_name_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigConvertRNameResponse) SetRname(v string) { } func (o ConfigConvertRNameResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigConvertRNameResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_copy_auth_zone.go b/dns_config/model_config_copy_auth_zone.go index 47905d5..7994869 100644 --- a/dns_config/model_config_copy_auth_zone.go +++ b/dns_config/model_config_copy_auth_zone.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 */ @@ -338,7 +338,7 @@ func (o *ConfigCopyAuthZone) SetTargetView(v string) { } func (o ConfigCopyAuthZone) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -410,5 +410,3 @@ func (v *NullableConfigCopyAuthZone) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_copy_auth_zone_response.go b/dns_config/model_config_copy_auth_zone_response.go index ac3dc47..12714b7 100644 --- a/dns_config/model_config_copy_auth_zone_response.go +++ b/dns_config/model_config_copy_auth_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCopyAuthZoneResponse) SetResult(v ConfigCopyResponse) { } func (o ConfigCopyAuthZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCopyAuthZoneResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_copy_forward_zone.go b/dns_config/model_config_copy_forward_zone.go index fab523f..98b8fb0 100644 --- a/dns_config/model_config_copy_forward_zone.go +++ b/dns_config/model_config_copy_forward_zone.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 */ @@ -338,7 +338,7 @@ func (o *ConfigCopyForwardZone) SetTargetView(v string) { } func (o ConfigCopyForwardZone) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -410,5 +410,3 @@ func (v *NullableConfigCopyForwardZone) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_copy_forward_zone_response.go b/dns_config/model_config_copy_forward_zone_response.go index 8269c0c..cda894f 100644 --- a/dns_config/model_config_copy_forward_zone_response.go +++ b/dns_config/model_config_copy_forward_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCopyForwardZoneResponse) SetResult(v ConfigCopyResponse) { } func (o ConfigCopyForwardZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCopyForwardZoneResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_copy_response.go b/dns_config/model_config_copy_response.go index 3685b51..97b19ba 100644 --- a/dns_config/model_config_copy_response.go +++ b/dns_config/model_config_copy_response.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 */ @@ -141,7 +141,7 @@ func (o *ConfigCopyResponse) SetJobId(v string) { } func (o ConfigCopyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableConfigCopyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_acl_response.go b/dns_config/model_config_create_acl_response.go index 42f4984..155a419 100644 --- a/dns_config/model_config_create_acl_response.go +++ b/dns_config/model_config_create_acl_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateACLResponse) SetResult(v ConfigACL) { } func (o ConfigCreateACLResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateACLResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_auth_nsg_response.go b/dns_config/model_config_create_auth_nsg_response.go index 8768a90..4e9a6ec 100644 --- a/dns_config/model_config_create_auth_nsg_response.go +++ b/dns_config/model_config_create_auth_nsg_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateAuthNSGResponse) SetResult(v ConfigAuthNSG) { } func (o ConfigCreateAuthNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateAuthNSGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_auth_zone_response.go b/dns_config/model_config_create_auth_zone_response.go index 988a9eb..21a2ec5 100644 --- a/dns_config/model_config_create_auth_zone_response.go +++ b/dns_config/model_config_create_auth_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateAuthZoneResponse) SetResult(v ConfigAuthZone) { } func (o ConfigCreateAuthZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateAuthZoneResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_delegation_response.go b/dns_config/model_config_create_delegation_response.go index b6af249..a736bc6 100644 --- a/dns_config/model_config_create_delegation_response.go +++ b/dns_config/model_config_create_delegation_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateDelegationResponse) SetResult(v ConfigDelegation) { } func (o ConfigCreateDelegationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateDelegationResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_forward_nsg_response.go b/dns_config/model_config_create_forward_nsg_response.go index fa0c6e5..79edea3 100644 --- a/dns_config/model_config_create_forward_nsg_response.go +++ b/dns_config/model_config_create_forward_nsg_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateForwardNSGResponse) SetResult(v ConfigForwardNSG) { } func (o ConfigCreateForwardNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateForwardNSGResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_forward_zone_response.go b/dns_config/model_config_create_forward_zone_response.go index 1aa6e9b..e6e9b71 100644 --- a/dns_config/model_config_create_forward_zone_response.go +++ b/dns_config/model_config_create_forward_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateForwardZoneResponse) SetResult(v ConfigForwardZone) { } func (o ConfigCreateForwardZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateForwardZoneResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_lbdn_response.go b/dns_config/model_config_create_lbdn_response.go index e90b528..8759109 100644 --- a/dns_config/model_config_create_lbdn_response.go +++ b/dns_config/model_config_create_lbdn_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateLBDNResponse) SetResult(v ConfigLBDN) { } func (o ConfigCreateLBDNResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateLBDNResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_server_response.go b/dns_config/model_config_create_server_response.go index 97c8949..c4e0082 100644 --- a/dns_config/model_config_create_server_response.go +++ b/dns_config/model_config_create_server_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateServerResponse) SetResult(v ConfigServer) { } func (o ConfigCreateServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_create_view_response.go b/dns_config/model_config_create_view_response.go index 60de033..5b1f213 100644 --- a/dns_config/model_config_create_view_response.go +++ b/dns_config/model_config_create_view_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigCreateViewResponse) SetResult(v ConfigView) { } func (o ConfigCreateViewResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigCreateViewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_custom_root_ns_block.go b/dns_config/model_config_custom_root_ns_block.go index 2ba30c8..73074a8 100644 --- a/dns_config/model_config_custom_root_ns_block.go +++ b/dns_config/model_config_custom_root_ns_block.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 */ @@ -107,7 +107,7 @@ func (o *ConfigCustomRootNSBlock) SetCustomRootNsEnabled(v bool) { } func (o ConfigCustomRootNSBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableConfigCustomRootNSBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_delegation.go b/dns_config/model_config_delegation.go index 3f8983b..ce8b1a1 100644 --- a/dns_config/model_config_delegation.go +++ b/dns_config/model_config_delegation.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 */ @@ -345,7 +345,7 @@ func (o *ConfigDelegation) SetView(v string) { } func (o ConfigDelegation) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -419,5 +419,3 @@ func (v *NullableConfigDelegation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_delegation_server.go b/dns_config/model_config_delegation_server.go index 8a0d61c..32171bb 100644 --- a/dns_config/model_config_delegation_server.go +++ b/dns_config/model_config_delegation_server.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 */ @@ -134,7 +134,7 @@ func (o *ConfigDelegationServer) SetProtocolFqdn(v string) { } func (o ConfigDelegationServer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableConfigDelegationServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_display_view.go b/dns_config/model_config_display_view.go index 0f30047..5c189ee 100644 --- a/dns_config/model_config_display_view.go +++ b/dns_config/model_config_display_view.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 */ @@ -141,7 +141,7 @@ func (o *ConfigDisplayView) SetView(v string) { } func (o ConfigDisplayView) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableConfigDisplayView) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_dnssec_validation_block.go b/dns_config/model_config_dnssec_validation_block.go index 17b4d78..3447c2c 100644 --- a/dns_config/model_config_dnssec_validation_block.go +++ b/dns_config/model_config_dnssec_validation_block.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 */ @@ -175,7 +175,7 @@ func (o *ConfigDNSSECValidationBlock) SetDnssecValidateExpiry(v bool) { } func (o ConfigDNSSECValidationBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableConfigDNSSECValidationBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_dtc_config.go b/dns_config/model_config_dtc_config.go index a3e4f99..f116a1a 100644 --- a/dns_config/model_config_dtc_config.go +++ b/dns_config/model_config_dtc_config.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 */ @@ -73,7 +73,7 @@ func (o *ConfigDTCConfig) SetDefaultTtl(v int64) { } func (o ConfigDTCConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigDTCConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_dtc_policy.go b/dns_config/model_config_dtc_policy.go index 66ac85f..9956a2c 100644 --- a/dns_config/model_config_dtc_policy.go +++ b/dns_config/model_config_dtc_policy.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 */ @@ -107,7 +107,7 @@ func (o *ConfigDTCPolicy) SetPolicyId(v string) { } func (o ConfigDTCPolicy) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableConfigDTCPolicy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_ecs_block.go b/dns_config/model_config_ecs_block.go index 7b42f20..00d06bd 100644 --- a/dns_config/model_config_ecs_block.go +++ b/dns_config/model_config_ecs_block.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 */ @@ -209,7 +209,7 @@ func (o *ConfigECSBlock) SetEcsZones(v []ConfigECSZone) { } func (o ConfigECSBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,5 +271,3 @@ func (v *NullableConfigECSBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_ecs_zone.go b/dns_config/model_config_ecs_zone.go index 25735e8..ea54ad5 100644 --- a/dns_config/model_config_ecs_zone.go +++ b/dns_config/model_config_ecs_zone.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 */ @@ -127,7 +127,7 @@ func (o *ConfigECSZone) SetProtocolFqdn(v string) { } func (o ConfigECSZone) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -179,5 +179,3 @@ func (v *NullableConfigECSZone) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_external_primary.go b/dns_config/model_config_external_primary.go index 8a3556a..a57a1c8 100644 --- a/dns_config/model_config_external_primary.go +++ b/dns_config/model_config_external_primary.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 */ @@ -28,8 +28,8 @@ type ConfigExternalPrimary struct { // FQDN of nameserver in punycode. ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` // Optional. If enabled, secondaries will use the configured TSIG key when requesting a zone transfer from this primary. - TsigEnabled *bool `json:"tsig_enabled,omitempty"` - TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` + TsigEnabled *bool `json:"tsig_enabled,omitempty"` + TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` // Allowed values: * _nsg_, * _primary_. Type string `json:"type"` } @@ -269,7 +269,7 @@ func (o *ConfigExternalPrimary) SetType(v string) { } func (o ConfigExternalPrimary) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -335,5 +335,3 @@ func (v *NullableConfigExternalPrimary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_external_secondary.go b/dns_config/model_config_external_secondary.go index 03bc361..df6480e 100644 --- a/dns_config/model_config_external_secondary.go +++ b/dns_config/model_config_external_secondary.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 */ @@ -28,8 +28,8 @@ type ConfigExternalSecondary struct { // If enabled, the NS record and glue record will NOT be automatically generated according to secondaries nameserver assignment. Default: _false_ Stealth *bool `json:"stealth,omitempty"` // If enabled, secondaries will use the configured TSIG key when requesting a zone transfer. Default: _false_ - TsigEnabled *bool `json:"tsig_enabled,omitempty"` - TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` + TsigEnabled *bool `json:"tsig_enabled,omitempty"` + TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` } // NewConfigExternalSecondary instantiates a new ConfigExternalSecondary object @@ -228,7 +228,7 @@ func (o *ConfigExternalSecondary) SetTsigKey(v ConfigTSIGKey) { } func (o ConfigExternalSecondary) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,5 +289,3 @@ func (v *NullableConfigExternalSecondary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_forward_nsg.go b/dns_config/model_config_forward_nsg.go index 92a35d2..6c75052 100644 --- a/dns_config/model_config_forward_nsg.go +++ b/dns_config/model_config_forward_nsg.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 */ @@ -338,7 +338,7 @@ func (o *ConfigForwardNSG) SetTags(v map[string]interface{}) { } func (o ConfigForwardNSG) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -410,5 +410,3 @@ func (v *NullableConfigForwardNSG) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_forward_zone.go b/dns_config/model_config_forward_zone.go index 0ac1c10..0858df6 100644 --- a/dns_config/model_config_forward_zone.go +++ b/dns_config/model_config_forward_zone.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 */ @@ -652,7 +652,7 @@ func (o *ConfigForwardZone) SetWarnings(v []ConfigWarning) { } func (o ConfigForwardZone) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -753,5 +753,3 @@ func (v *NullableConfigForwardZone) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_forward_zone_config.go b/dns_config/model_config_forward_zone_config.go index 3400151..b98659d 100644 --- a/dns_config/model_config_forward_zone_config.go +++ b/dns_config/model_config_forward_zone_config.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 */ @@ -175,7 +175,7 @@ func (o *ConfigForwardZoneConfig) SetNsgs(v []string) { } func (o ConfigForwardZoneConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableConfigForwardZoneConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_forwarder.go b/dns_config/model_config_forwarder.go index 4a4df5a..44684ac 100644 --- a/dns_config/model_config_forwarder.go +++ b/dns_config/model_config_forwarder.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 */ @@ -127,7 +127,7 @@ func (o *ConfigForwarder) SetProtocolFqdn(v string) { } func (o ConfigForwarder) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -179,5 +179,3 @@ func (v *NullableConfigForwarder) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_forwarders_block.go b/dns_config/model_config_forwarders_block.go index 89dbc9b..2e010b9 100644 --- a/dns_config/model_config_forwarders_block.go +++ b/dns_config/model_config_forwarders_block.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 */ @@ -141,7 +141,7 @@ func (o *ConfigForwardersBlock) SetUseRootForwardersForLocalResolutionWithB1td(v } func (o ConfigForwardersBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableConfigForwardersBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_global.go b/dns_config/model_config_global.go index 68ed1ee..76ca4ff 100644 --- a/dns_config/model_config_global.go +++ b/dns_config/model_config_global.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 */ @@ -34,8 +34,8 @@ type ConfigGlobal struct { // Optional. DNSSEC trust anchors. Error if there are list items with duplicate (_zone_, _sep_, _algorithm_) combinations. Defaults to empty. DnssecTrustAnchors []ConfigTrustAnchor `json:"dnssec_trust_anchors,omitempty"` // Optional. _true_ to reject expired DNSSEC keys. Ignored if either _dnssec_enabled_ or _dnssec_enable_validation_ is _false_. Defaults to _true_. - DnssecValidateExpiry *bool `json:"dnssec_validate_expiry,omitempty"` - DtcConfig *ConfigDTCConfig `json:"dtc_config,omitempty"` + DnssecValidateExpiry *bool `json:"dnssec_validate_expiry,omitempty"` + DtcConfig *ConfigDTCConfig `json:"dtc_config,omitempty"` // Optional. _true_ to enable EDNS client subnet for recursive queries. Other _ecs_*_ fields are ignored if this field is not enabled. Defaults to _false_. EcsEnabled *bool `json:"ecs_enabled,omitempty"` // Optional. _true_ to enable ECS options in outbound queries. This functionality has additional overhead so it is disabled by default. Defaults to _false_. @@ -105,8 +105,8 @@ type ConfigGlobal struct { // Optional. Use default forwarders to resolve queries for subzones. Defaults to _true_. UseForwardersForSubzones *bool `json:"use_forwarders_for_subzones,omitempty"` // _use_root_forwarders_for_local_resolution_with_b1td_ allows DNS recursive queries sent to root forwarders for local resolution when deployed alongside BloxOne Thread Defense. Defaults to _false_. - UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` - ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` + UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` + ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` } // NewConfigGlobal instantiates a new ConfigGlobal object @@ -1560,7 +1560,7 @@ func (o *ConfigGlobal) SetZoneAuthority(v ConfigZoneAuthority) { } func (o ConfigGlobal) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1740,5 +1740,3 @@ func (v *NullableConfigGlobal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_host.go b/dns_config/model_config_host.go index c5349be..ef3dcbf 100644 --- a/dns_config/model_config_host.go +++ b/dns_config/model_config_host.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 */ @@ -24,7 +24,7 @@ type ConfigHost struct { // Host's primary IP Address. Address *string `json:"address,omitempty"` // Anycast address configured to the host. Order is not significant. - AnycastAddresses []string `json:"anycast_addresses,omitempty"` + AnycastAddresses []string `json:"anycast_addresses,omitempty"` AssociatedServer *ConfigHostAssociatedServer `json:"associated_server,omitempty"` // Host description. Comment *string `json:"comment,omitempty"` @@ -35,7 +35,7 @@ type ConfigHost struct { // DFP service indicates whether or not BloxOne DDI DNS and BloxOne TD DFP are both active on the host. If so, BloxOne DDI DNS will augment recursive queries and forward them to BloxOne TD DFP. Allowed values: * _unavailable_: BloxOne TD DFP application is not available, * _enabled_: BloxOne TD DFP application is available and enabled, * _disabled_: BloxOne TD DFP application is available but disabled. DfpService *string `json:"dfp_service,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *ConfigHostInheritance `json:"inheritance_sources,omitempty"` // Optional. _kerberos_keys_ contains a list of keys for GSS-TSIG signed dynamic updates. Defaults to empty. KerberosKeys []ConfigKerberosKey `json:"kerberos_keys,omitempty"` @@ -683,7 +683,7 @@ func (o *ConfigHost) SetType(v string) { } func (o ConfigHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -787,5 +787,3 @@ func (v *NullableConfigHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_host_associated_server.go b/dns_config/model_config_host_associated_server.go index f3e97a1..c99631f 100644 --- a/dns_config/model_config_host_associated_server.go +++ b/dns_config/model_config_host_associated_server.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 */ @@ -107,7 +107,7 @@ func (o *ConfigHostAssociatedServer) SetName(v string) { } func (o ConfigHostAssociatedServer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableConfigHostAssociatedServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_host_inheritance.go b/dns_config/model_config_host_inheritance.go index 92bde3a..9b3771c 100644 --- a/dns_config/model_config_host_inheritance.go +++ b/dns_config/model_config_host_inheritance.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 */ @@ -72,7 +72,7 @@ func (o *ConfigHostInheritance) SetKerberosKeys(v ConfigInheritedKerberosKeys) { } func (o ConfigHostInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigHostInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_acl_items.go b/dns_config/model_config_inherited_acl_items.go index 08f2ddc..f3d07ec 100644 --- a/dns_config/model_config_inherited_acl_items.go +++ b/dns_config/model_config_inherited_acl_items.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 */ @@ -175,7 +175,7 @@ func (o *ConfigInheritedACLItems) SetValue(v []ConfigACLItem) { } func (o ConfigInheritedACLItems) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableConfigInheritedACLItems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_custom_root_ns_block.go b/dns_config/model_config_inherited_custom_root_ns_block.go index 76cba91..a2e4ef4 100644 --- a/dns_config/model_config_inherited_custom_root_ns_block.go +++ b/dns_config/model_config_inherited_custom_root_ns_block.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 */ @@ -24,8 +24,8 @@ type ConfigInheritedCustomRootNSBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ConfigCustomRootNSBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ConfigCustomRootNSBlock `json:"value,omitempty"` } // NewConfigInheritedCustomRootNSBlock instantiates a new ConfigInheritedCustomRootNSBlock object @@ -174,7 +174,7 @@ func (o *ConfigInheritedCustomRootNSBlock) SetValue(v ConfigCustomRootNSBlock) { } func (o ConfigInheritedCustomRootNSBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableConfigInheritedCustomRootNSBlock) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_dnssec_validation_block.go b/dns_config/model_config_inherited_dnssec_validation_block.go index e6c9aee..957dc11 100644 --- a/dns_config/model_config_inherited_dnssec_validation_block.go +++ b/dns_config/model_config_inherited_dnssec_validation_block.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 */ @@ -24,8 +24,8 @@ type ConfigInheritedDNSSECValidationBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ConfigDNSSECValidationBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ConfigDNSSECValidationBlock `json:"value,omitempty"` } // NewConfigInheritedDNSSECValidationBlock instantiates a new ConfigInheritedDNSSECValidationBlock object @@ -174,7 +174,7 @@ func (o *ConfigInheritedDNSSECValidationBlock) SetValue(v ConfigDNSSECValidation } func (o ConfigInheritedDNSSECValidationBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableConfigInheritedDNSSECValidationBlock) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_dtc_config.go b/dns_config/model_config_inherited_dtc_config.go index 32aac6d..6018d4d 100644 --- a/dns_config/model_config_inherited_dtc_config.go +++ b/dns_config/model_config_inherited_dtc_config.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 */ @@ -72,7 +72,7 @@ func (o *ConfigInheritedDtcConfig) SetDefaultTtl(v Inheritance2InheritedUInt32) } func (o ConfigInheritedDtcConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigInheritedDtcConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_ecs_block.go b/dns_config/model_config_inherited_ecs_block.go index d8dd038..1a9dfb4 100644 --- a/dns_config/model_config_inherited_ecs_block.go +++ b/dns_config/model_config_inherited_ecs_block.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 */ @@ -24,8 +24,8 @@ type ConfigInheritedECSBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ConfigECSBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ConfigECSBlock `json:"value,omitempty"` } // NewConfigInheritedECSBlock instantiates a new ConfigInheritedECSBlock object @@ -174,7 +174,7 @@ func (o *ConfigInheritedECSBlock) SetValue(v ConfigECSBlock) { } func (o ConfigInheritedECSBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableConfigInheritedECSBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_forwarders_block.go b/dns_config/model_config_inherited_forwarders_block.go index 471441c..93cb417 100644 --- a/dns_config/model_config_inherited_forwarders_block.go +++ b/dns_config/model_config_inherited_forwarders_block.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 */ @@ -24,8 +24,8 @@ type ConfigInheritedForwardersBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ConfigForwardersBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ConfigForwardersBlock `json:"value,omitempty"` } // NewConfigInheritedForwardersBlock instantiates a new ConfigInheritedForwardersBlock object @@ -174,7 +174,7 @@ func (o *ConfigInheritedForwardersBlock) SetValue(v ConfigForwardersBlock) { } func (o ConfigInheritedForwardersBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableConfigInheritedForwardersBlock) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_kerberos_keys.go b/dns_config/model_config_inherited_kerberos_keys.go index dfe1c36..b902b51 100644 --- a/dns_config/model_config_inherited_kerberos_keys.go +++ b/dns_config/model_config_inherited_kerberos_keys.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 */ @@ -175,7 +175,7 @@ func (o *ConfigInheritedKerberosKeys) SetValue(v []ConfigKerberosKey) { } func (o ConfigInheritedKerberosKeys) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableConfigInheritedKerberosKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_sort_list_items.go b/dns_config/model_config_inherited_sort_list_items.go index a12a2b0..43d7e3f 100644 --- a/dns_config/model_config_inherited_sort_list_items.go +++ b/dns_config/model_config_inherited_sort_list_items.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 */ @@ -175,7 +175,7 @@ func (o *ConfigInheritedSortListItems) SetValue(v []ConfigSortListItem) { } func (o ConfigInheritedSortListItems) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableConfigInheritedSortListItems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_zone_authority.go b/dns_config/model_config_inherited_zone_authority.go index e28a12b..c4f0c63 100644 --- a/dns_config/model_config_inherited_zone_authority.go +++ b/dns_config/model_config_inherited_zone_authority.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 */ @@ -19,14 +19,14 @@ var _ MappedNullable = &ConfigInheritedZoneAuthority{} // ConfigInheritedZoneAuthority Inheritance configuration for a field of type _ZoneAuthority_. type ConfigInheritedZoneAuthority struct { - DefaultTtl *Inheritance2InheritedUInt32 `json:"default_ttl,omitempty"` - Expire *Inheritance2InheritedUInt32 `json:"expire,omitempty"` - MnameBlock *ConfigInheritedZoneAuthorityMNameBlock `json:"mname_block,omitempty"` - NegativeTtl *Inheritance2InheritedUInt32 `json:"negative_ttl,omitempty"` - ProtocolRname *Inheritance2InheritedString `json:"protocol_rname,omitempty"` - Refresh *Inheritance2InheritedUInt32 `json:"refresh,omitempty"` - Retry *Inheritance2InheritedUInt32 `json:"retry,omitempty"` - Rname *Inheritance2InheritedString `json:"rname,omitempty"` + DefaultTtl *Inheritance2InheritedUInt32 `json:"default_ttl,omitempty"` + Expire *Inheritance2InheritedUInt32 `json:"expire,omitempty"` + MnameBlock *ConfigInheritedZoneAuthorityMNameBlock `json:"mname_block,omitempty"` + NegativeTtl *Inheritance2InheritedUInt32 `json:"negative_ttl,omitempty"` + ProtocolRname *Inheritance2InheritedString `json:"protocol_rname,omitempty"` + Refresh *Inheritance2InheritedUInt32 `json:"refresh,omitempty"` + Retry *Inheritance2InheritedUInt32 `json:"retry,omitempty"` + Rname *Inheritance2InheritedString `json:"rname,omitempty"` } // NewConfigInheritedZoneAuthority instantiates a new ConfigInheritedZoneAuthority object @@ -303,7 +303,7 @@ func (o *ConfigInheritedZoneAuthority) SetRname(v Inheritance2InheritedString) { } func (o ConfigInheritedZoneAuthority) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -374,5 +374,3 @@ func (v *NullableConfigInheritedZoneAuthority) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_inherited_zone_authority_m_name_block.go b/dns_config/model_config_inherited_zone_authority_m_name_block.go index e851b2c..1d1eb0f 100644 --- a/dns_config/model_config_inherited_zone_authority_m_name_block.go +++ b/dns_config/model_config_inherited_zone_authority_m_name_block.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 */ @@ -24,8 +24,8 @@ type ConfigInheritedZoneAuthorityMNameBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ConfigZoneAuthorityMNameBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ConfigZoneAuthorityMNameBlock `json:"value,omitempty"` } // NewConfigInheritedZoneAuthorityMNameBlock instantiates a new ConfigInheritedZoneAuthorityMNameBlock object @@ -174,7 +174,7 @@ func (o *ConfigInheritedZoneAuthorityMNameBlock) SetValue(v ConfigZoneAuthorityM } func (o ConfigInheritedZoneAuthorityMNameBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableConfigInheritedZoneAuthorityMNameBlock) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_internal_secondary.go b/dns_config/model_config_internal_secondary.go index 5244990..0a83134 100644 --- a/dns_config/model_config_internal_secondary.go +++ b/dns_config/model_config_internal_secondary.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 */ @@ -66,7 +66,7 @@ func (o *ConfigInternalSecondary) SetHost(v string) { } func (o ConfigInternalSecondary) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -114,5 +114,3 @@ func (v *NullableConfigInternalSecondary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_kerberos_key.go b/dns_config/model_config_kerberos_key.go index e917b31..a477694 100644 --- a/dns_config/model_config_kerberos_key.go +++ b/dns_config/model_config_kerberos_key.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 */ @@ -236,7 +236,7 @@ func (o *ConfigKerberosKey) SetVersion(v int64) { } func (o ConfigKerberosKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,5 +299,3 @@ func (v *NullableConfigKerberosKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_lbdn.go b/dns_config/model_config_lbdn.go index 92d9781..a60ac09 100644 --- a/dns_config/model_config_lbdn.go +++ b/dns_config/model_config_lbdn.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 */ @@ -22,10 +22,10 @@ type ConfigLBDN struct { // Optional. Comment for __LBDN__. Comment *string `json:"comment,omitempty"` // Optional. _true_ to disable object. A disabled object is effectively non-existent when generating configuration. - Disabled *bool `json:"disabled,omitempty"` + Disabled *bool `json:"disabled,omitempty"` DtcPolicy *ConfigDTCPolicy `json:"dtc_policy,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *ConfigTTLInheritance `json:"inheritance_sources,omitempty"` // Name of __LBDN__. Name string `json:"name"` @@ -363,7 +363,7 @@ func (o *ConfigLBDN) SetView(v string) { } func (o ConfigLBDN) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -436,5 +436,3 @@ func (v *NullableConfigLBDN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_acl_response.go b/dns_config/model_config_list_acl_response.go index 35ea487..130df31 100644 --- a/dns_config/model_config_list_acl_response.go +++ b/dns_config/model_config_list_acl_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListACLResponse) SetResults(v []ConfigACL) { } func (o ConfigListACLResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListACLResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_auth_nsg_response.go b/dns_config/model_config_list_auth_nsg_response.go index f780c1d..f8629a3 100644 --- a/dns_config/model_config_list_auth_nsg_response.go +++ b/dns_config/model_config_list_auth_nsg_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListAuthNSGResponse) SetResults(v []ConfigAuthNSG) { } func (o ConfigListAuthNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListAuthNSGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_auth_zone_response.go b/dns_config/model_config_list_auth_zone_response.go index c81b849..32df2cd 100644 --- a/dns_config/model_config_list_auth_zone_response.go +++ b/dns_config/model_config_list_auth_zone_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListAuthZoneResponse) SetResults(v []ConfigAuthZone) { } func (o ConfigListAuthZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListAuthZoneResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_delegation_response.go b/dns_config/model_config_list_delegation_response.go index 621be8e..7627700 100644 --- a/dns_config/model_config_list_delegation_response.go +++ b/dns_config/model_config_list_delegation_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListDelegationResponse) SetResults(v []ConfigDelegation) { } func (o ConfigListDelegationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListDelegationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_forward_nsg_response.go b/dns_config/model_config_list_forward_nsg_response.go index c419240..349e995 100644 --- a/dns_config/model_config_list_forward_nsg_response.go +++ b/dns_config/model_config_list_forward_nsg_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListForwardNSGResponse) SetResults(v []ConfigForwardNSG) { } func (o ConfigListForwardNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListForwardNSGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_forward_zone_response.go b/dns_config/model_config_list_forward_zone_response.go index 244f7fa..763f0a5 100644 --- a/dns_config/model_config_list_forward_zone_response.go +++ b/dns_config/model_config_list_forward_zone_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListForwardZoneResponse) SetResults(v []ConfigForwardZone) { } func (o ConfigListForwardZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListForwardZoneResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_host_response.go b/dns_config/model_config_list_host_response.go index e6f424a..8992946 100644 --- a/dns_config/model_config_list_host_response.go +++ b/dns_config/model_config_list_host_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListHostResponse) SetResults(v []ConfigHost) { } func (o ConfigListHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_lbdn_response.go b/dns_config/model_config_list_lbdn_response.go index e54de42..ea04f2f 100644 --- a/dns_config/model_config_list_lbdn_response.go +++ b/dns_config/model_config_list_lbdn_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListLBDNResponse) SetResults(v []ConfigLBDN) { } func (o ConfigListLBDNResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListLBDNResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_server_response.go b/dns_config/model_config_list_server_response.go index 87f340f..458c5c5 100644 --- a/dns_config/model_config_list_server_response.go +++ b/dns_config/model_config_list_server_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListServerResponse) SetResults(v []ConfigServer) { } func (o ConfigListServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_list_view_response.go b/dns_config/model_config_list_view_response.go index 68d85ad..c165dfb 100644 --- a/dns_config/model_config_list_view_response.go +++ b/dns_config/model_config_list_view_response.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 */ @@ -73,7 +73,7 @@ func (o *ConfigListViewResponse) SetResults(v []ConfigView) { } func (o ConfigListViewResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableConfigListViewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_acl_response.go b/dns_config/model_config_read_acl_response.go index 3bfe6be..d46fae3 100644 --- a/dns_config/model_config_read_acl_response.go +++ b/dns_config/model_config_read_acl_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadACLResponse) SetResult(v ConfigACL) { } func (o ConfigReadACLResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadACLResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_auth_nsg_response.go b/dns_config/model_config_read_auth_nsg_response.go index aa337f4..0fb4cf4 100644 --- a/dns_config/model_config_read_auth_nsg_response.go +++ b/dns_config/model_config_read_auth_nsg_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadAuthNSGResponse) SetResult(v ConfigAuthNSG) { } func (o ConfigReadAuthNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadAuthNSGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_auth_zone_response.go b/dns_config/model_config_read_auth_zone_response.go index 0e5fce4..e93b2fd 100644 --- a/dns_config/model_config_read_auth_zone_response.go +++ b/dns_config/model_config_read_auth_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadAuthZoneResponse) SetResult(v ConfigAuthZone) { } func (o ConfigReadAuthZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadAuthZoneResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_delegation_response.go b/dns_config/model_config_read_delegation_response.go index e570fa0..27f7724 100644 --- a/dns_config/model_config_read_delegation_response.go +++ b/dns_config/model_config_read_delegation_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadDelegationResponse) SetResult(v ConfigDelegation) { } func (o ConfigReadDelegationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadDelegationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_forward_nsg_response.go b/dns_config/model_config_read_forward_nsg_response.go index 468d9f1..2e052cd 100644 --- a/dns_config/model_config_read_forward_nsg_response.go +++ b/dns_config/model_config_read_forward_nsg_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadForwardNSGResponse) SetResult(v ConfigForwardNSG) { } func (o ConfigReadForwardNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadForwardNSGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_forward_zone_response.go b/dns_config/model_config_read_forward_zone_response.go index 16aebf5..8f1f4ff 100644 --- a/dns_config/model_config_read_forward_zone_response.go +++ b/dns_config/model_config_read_forward_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadForwardZoneResponse) SetResult(v ConfigForwardZone) { } func (o ConfigReadForwardZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadForwardZoneResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_global_response.go b/dns_config/model_config_read_global_response.go index 5b816c6..207606b 100644 --- a/dns_config/model_config_read_global_response.go +++ b/dns_config/model_config_read_global_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadGlobalResponse) SetResult(v ConfigGlobal) { } func (o ConfigReadGlobalResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadGlobalResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_host_response.go b/dns_config/model_config_read_host_response.go index 7e6eeb4..1ac52eb 100644 --- a/dns_config/model_config_read_host_response.go +++ b/dns_config/model_config_read_host_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadHostResponse) SetResult(v ConfigHost) { } func (o ConfigReadHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_lbdn_response.go b/dns_config/model_config_read_lbdn_response.go index 93fd7fc..e32076d 100644 --- a/dns_config/model_config_read_lbdn_response.go +++ b/dns_config/model_config_read_lbdn_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadLBDNResponse) SetResult(v ConfigLBDN) { } func (o ConfigReadLBDNResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadLBDNResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_server_response.go b/dns_config/model_config_read_server_response.go index bb88f40..99254a6 100644 --- a/dns_config/model_config_read_server_response.go +++ b/dns_config/model_config_read_server_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadServerResponse) SetResult(v ConfigServer) { } func (o ConfigReadServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_read_view_response.go b/dns_config/model_config_read_view_response.go index 10ac6ab..35dd8dc 100644 --- a/dns_config/model_config_read_view_response.go +++ b/dns_config/model_config_read_view_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigReadViewResponse) SetResult(v ConfigView) { } func (o ConfigReadViewResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigReadViewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_root_ns.go b/dns_config/model_config_root_ns.go index 950cf80..3420c41 100644 --- a/dns_config/model_config_root_ns.go +++ b/dns_config/model_config_root_ns.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 */ @@ -127,7 +127,7 @@ func (o *ConfigRootNS) SetProtocolFqdn(v string) { } func (o ConfigRootNS) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -179,5 +179,3 @@ func (v *NullableConfigRootNS) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_server.go b/dns_config/model_config_server.go index 949f4ce..d671625 100644 --- a/dns_config/model_config_server.go +++ b/dns_config/model_config_server.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 */ @@ -63,7 +63,7 @@ type ConfigServer struct { // _gss_tsig_enabled_ enables/disables GSS-TSIG signed dynamic updates. Defaults to _false_. GssTsigEnabled *bool `json:"gss_tsig_enabled,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *ConfigServerInheritance `json:"inheritance_sources,omitempty"` // _kerberos_keys_ contains a list of keys for GSS-TSIG signed dynamic updates. Defaults to empty. KerberosKeys []ConfigKerberosKey `json:"kerberos_keys,omitempty"` @@ -1698,7 +1698,7 @@ func (o *ConfigServer) SetViews(v []ConfigDisplayView) { } func (o ConfigServer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1890,5 +1890,3 @@ func (v *NullableConfigServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_server_inheritance.go b/dns_config/model_config_server_inheritance.go index 93205d5..f8e445f 100644 --- a/dns_config/model_config_server_inheritance.go +++ b/dns_config/model_config_server_inheritance.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 */ @@ -19,35 +19,35 @@ var _ MappedNullable = &ConfigServerInheritance{} // ConfigServerInheritance Inheritance configuration specifies how and which fields _Server_ object inherits from _Global_ parent. type ConfigServerInheritance struct { - AddEdnsOptionInOutgoingQuery *Inheritance2InheritedBool `json:"add_edns_option_in_outgoing_query,omitempty"` - CustomRootNsBlock *ConfigInheritedCustomRootNSBlock `json:"custom_root_ns_block,omitempty"` - DnssecValidationBlock *ConfigInheritedDNSSECValidationBlock `json:"dnssec_validation_block,omitempty"` - EcsBlock *ConfigInheritedECSBlock `json:"ecs_block,omitempty"` - FilterAaaaAcl *ConfigInheritedACLItems `json:"filter_aaaa_acl,omitempty"` - FilterAaaaOnV4 *Inheritance2InheritedString `json:"filter_aaaa_on_v4,omitempty"` - ForwardersBlock *ConfigInheritedForwardersBlock `json:"forwarders_block,omitempty"` - GssTsigEnabled *Inheritance2InheritedBool `json:"gss_tsig_enabled,omitempty"` - KerberosKeys *ConfigInheritedKerberosKeys `json:"kerberos_keys,omitempty"` - LameTtl *Inheritance2InheritedUInt32 `json:"lame_ttl,omitempty"` - LogQueryResponse *Inheritance2InheritedBool `json:"log_query_response,omitempty"` - MatchRecursiveOnly *Inheritance2InheritedBool `json:"match_recursive_only,omitempty"` - MaxCacheTtl *Inheritance2InheritedUInt32 `json:"max_cache_ttl,omitempty"` - MaxNegativeTtl *Inheritance2InheritedUInt32 `json:"max_negative_ttl,omitempty"` - MinimalResponses *Inheritance2InheritedBool `json:"minimal_responses,omitempty"` - Notify *Inheritance2InheritedBool `json:"notify,omitempty"` - QueryAcl *ConfigInheritedACLItems `json:"query_acl,omitempty"` - QueryPort *Inheritance2InheritedUInt32 `json:"query_port,omitempty"` - RecursionAcl *ConfigInheritedACLItems `json:"recursion_acl,omitempty"` - RecursionEnabled *Inheritance2InheritedBool `json:"recursion_enabled,omitempty"` - RecursiveClients *Inheritance2InheritedUInt32 `json:"recursive_clients,omitempty"` - ResolverQueryTimeout *Inheritance2InheritedUInt32 `json:"resolver_query_timeout,omitempty"` - SecondaryAxfrQueryLimit *Inheritance2InheritedUInt32 `json:"secondary_axfr_query_limit,omitempty"` - SecondarySoaQueryLimit *Inheritance2InheritedUInt32 `json:"secondary_soa_query_limit,omitempty"` - SortList *ConfigInheritedSortListItems `json:"sort_list,omitempty"` - SynthesizeAddressRecordsFromHttps *Inheritance2InheritedBool `json:"synthesize_address_records_from_https,omitempty"` - TransferAcl *ConfigInheritedACLItems `json:"transfer_acl,omitempty"` - UpdateAcl *ConfigInheritedACLItems `json:"update_acl,omitempty"` - UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` + AddEdnsOptionInOutgoingQuery *Inheritance2InheritedBool `json:"add_edns_option_in_outgoing_query,omitempty"` + CustomRootNsBlock *ConfigInheritedCustomRootNSBlock `json:"custom_root_ns_block,omitempty"` + DnssecValidationBlock *ConfigInheritedDNSSECValidationBlock `json:"dnssec_validation_block,omitempty"` + EcsBlock *ConfigInheritedECSBlock `json:"ecs_block,omitempty"` + FilterAaaaAcl *ConfigInheritedACLItems `json:"filter_aaaa_acl,omitempty"` + FilterAaaaOnV4 *Inheritance2InheritedString `json:"filter_aaaa_on_v4,omitempty"` + ForwardersBlock *ConfigInheritedForwardersBlock `json:"forwarders_block,omitempty"` + GssTsigEnabled *Inheritance2InheritedBool `json:"gss_tsig_enabled,omitempty"` + KerberosKeys *ConfigInheritedKerberosKeys `json:"kerberos_keys,omitempty"` + LameTtl *Inheritance2InheritedUInt32 `json:"lame_ttl,omitempty"` + LogQueryResponse *Inheritance2InheritedBool `json:"log_query_response,omitempty"` + MatchRecursiveOnly *Inheritance2InheritedBool `json:"match_recursive_only,omitempty"` + MaxCacheTtl *Inheritance2InheritedUInt32 `json:"max_cache_ttl,omitempty"` + MaxNegativeTtl *Inheritance2InheritedUInt32 `json:"max_negative_ttl,omitempty"` + MinimalResponses *Inheritance2InheritedBool `json:"minimal_responses,omitempty"` + Notify *Inheritance2InheritedBool `json:"notify,omitempty"` + QueryAcl *ConfigInheritedACLItems `json:"query_acl,omitempty"` + QueryPort *Inheritance2InheritedUInt32 `json:"query_port,omitempty"` + RecursionAcl *ConfigInheritedACLItems `json:"recursion_acl,omitempty"` + RecursionEnabled *Inheritance2InheritedBool `json:"recursion_enabled,omitempty"` + RecursiveClients *Inheritance2InheritedUInt32 `json:"recursive_clients,omitempty"` + ResolverQueryTimeout *Inheritance2InheritedUInt32 `json:"resolver_query_timeout,omitempty"` + SecondaryAxfrQueryLimit *Inheritance2InheritedUInt32 `json:"secondary_axfr_query_limit,omitempty"` + SecondarySoaQueryLimit *Inheritance2InheritedUInt32 `json:"secondary_soa_query_limit,omitempty"` + SortList *ConfigInheritedSortListItems `json:"sort_list,omitempty"` + SynthesizeAddressRecordsFromHttps *Inheritance2InheritedBool `json:"synthesize_address_records_from_https,omitempty"` + TransferAcl *ConfigInheritedACLItems `json:"transfer_acl,omitempty"` + UpdateAcl *ConfigInheritedACLItems `json:"update_acl,omitempty"` + UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` } // NewConfigServerInheritance instantiates a new ConfigServerInheritance object @@ -996,7 +996,7 @@ func (o *ConfigServerInheritance) SetUseForwardersForSubzones(v Inheritance2Inhe } func (o ConfigServerInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1130,5 +1130,3 @@ func (v *NullableConfigServerInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_sort_list_item.go b/dns_config/model_config_sort_list_item.go index dba785d..2fca3ca 100644 --- a/dns_config/model_config_sort_list_item.go +++ b/dns_config/model_config_sort_list_item.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 */ @@ -168,7 +168,7 @@ func (o *ConfigSortListItem) SetSource(v string) { } func (o ConfigSortListItem) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -225,5 +225,3 @@ func (v *NullableConfigSortListItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_trust_anchor.go b/dns_config/model_config_trust_anchor.go index 2dbe7c5..eb1d56b 100644 --- a/dns_config/model_config_trust_anchor.go +++ b/dns_config/model_config_trust_anchor.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 */ @@ -187,7 +187,7 @@ func (o *ConfigTrustAnchor) SetZone(v string) { } func (o ConfigTrustAnchor) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -243,5 +243,3 @@ func (v *NullableConfigTrustAnchor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_tsig_key.go b/dns_config/model_config_tsig_key.go index 6623cc2..503c738 100644 --- a/dns_config/model_config_tsig_key.go +++ b/dns_config/model_config_tsig_key.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 */ @@ -243,7 +243,7 @@ func (o *ConfigTSIGKey) SetSecret(v string) { } func (o ConfigTSIGKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -308,5 +308,3 @@ func (v *NullableConfigTSIGKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_ttl_inheritance.go b/dns_config/model_config_ttl_inheritance.go index 11164ab..5eeef0b 100644 --- a/dns_config/model_config_ttl_inheritance.go +++ b/dns_config/model_config_ttl_inheritance.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 */ @@ -72,7 +72,7 @@ func (o *ConfigTTLInheritance) SetTtl(v Inheritance2InheritedUInt32) { } func (o ConfigTTLInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigTTLInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_acl_response.go b/dns_config/model_config_update_acl_response.go index 378fddd..3be6a0b 100644 --- a/dns_config/model_config_update_acl_response.go +++ b/dns_config/model_config_update_acl_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateACLResponse) SetResult(v ConfigACL) { } func (o ConfigUpdateACLResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateACLResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_auth_nsg_response.go b/dns_config/model_config_update_auth_nsg_response.go index 97d8c14..8c5b968 100644 --- a/dns_config/model_config_update_auth_nsg_response.go +++ b/dns_config/model_config_update_auth_nsg_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateAuthNSGResponse) SetResult(v ConfigAuthNSG) { } func (o ConfigUpdateAuthNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateAuthNSGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_auth_zone_response.go b/dns_config/model_config_update_auth_zone_response.go index 8b63f17..a537e46 100644 --- a/dns_config/model_config_update_auth_zone_response.go +++ b/dns_config/model_config_update_auth_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateAuthZoneResponse) SetResult(v ConfigAuthZone) { } func (o ConfigUpdateAuthZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateAuthZoneResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_delegation_response.go b/dns_config/model_config_update_delegation_response.go index 0c949be..2a1920a 100644 --- a/dns_config/model_config_update_delegation_response.go +++ b/dns_config/model_config_update_delegation_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateDelegationResponse) SetResult(v ConfigDelegation) { } func (o ConfigUpdateDelegationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateDelegationResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_forward_nsg_response.go b/dns_config/model_config_update_forward_nsg_response.go index 56bf296..01ab8ab 100644 --- a/dns_config/model_config_update_forward_nsg_response.go +++ b/dns_config/model_config_update_forward_nsg_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateForwardNSGResponse) SetResult(v ConfigForwardNSG) { } func (o ConfigUpdateForwardNSGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateForwardNSGResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_forward_zone_response.go b/dns_config/model_config_update_forward_zone_response.go index 66ebf84..669d072 100644 --- a/dns_config/model_config_update_forward_zone_response.go +++ b/dns_config/model_config_update_forward_zone_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateForwardZoneResponse) SetResult(v ConfigForwardZone) { } func (o ConfigUpdateForwardZoneResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateForwardZoneResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_global_response.go b/dns_config/model_config_update_global_response.go index a079a14..7745385 100644 --- a/dns_config/model_config_update_global_response.go +++ b/dns_config/model_config_update_global_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateGlobalResponse) SetResult(v ConfigGlobal) { } func (o ConfigUpdateGlobalResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateGlobalResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_host_response.go b/dns_config/model_config_update_host_response.go index e1d6646..9515620 100644 --- a/dns_config/model_config_update_host_response.go +++ b/dns_config/model_config_update_host_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateHostResponse) SetResult(v ConfigHost) { } func (o ConfigUpdateHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_lbdn_response.go b/dns_config/model_config_update_lbdn_response.go index c486881..633c797 100644 --- a/dns_config/model_config_update_lbdn_response.go +++ b/dns_config/model_config_update_lbdn_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateLBDNResponse) SetResult(v ConfigLBDN) { } func (o ConfigUpdateLBDNResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateLBDNResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_server_response.go b/dns_config/model_config_update_server_response.go index 7474b9d..16e6a88 100644 --- a/dns_config/model_config_update_server_response.go +++ b/dns_config/model_config_update_server_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateServerResponse) SetResult(v ConfigServer) { } func (o ConfigUpdateServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_update_view_response.go b/dns_config/model_config_update_view_response.go index 6bcc7bd..a5356b5 100644 --- a/dns_config/model_config_update_view_response.go +++ b/dns_config/model_config_update_view_response.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 */ @@ -72,7 +72,7 @@ func (o *ConfigUpdateViewResponse) SetResult(v ConfigView) { } func (o ConfigUpdateViewResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableConfigUpdateViewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_view.go b/dns_config/model_config_view.go index ca3e74a..5d21d3e 100644 --- a/dns_config/model_config_view.go +++ b/dns_config/model_config_view.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 */ @@ -41,8 +41,8 @@ type ConfigView struct { // Optional. DNSSEC trust anchors. Error if there are list items with duplicate (_zone_, _sep_, _algorithm_) combinations. Defaults to empty. DnssecTrustAnchors []ConfigTrustAnchor `json:"dnssec_trust_anchors,omitempty"` // Optional. _true_ to reject expired DNSSEC keys. Ignored if either _dnssec_enabled_ or _dnssec_enable_validation_ is _false_. Defaults to _true_. - DnssecValidateExpiry *bool `json:"dnssec_validate_expiry,omitempty"` - DtcConfig *ConfigDTCConfig `json:"dtc_config,omitempty"` + DnssecValidateExpiry *bool `json:"dnssec_validate_expiry,omitempty"` + DtcConfig *ConfigDTCConfig `json:"dtc_config,omitempty"` // Optional. _true_ to enable EDNS client subnet for recursive queries. Other _ecs_*_ fields are ignored if this field is not enabled. Defaults to _false-. EcsEnabled *bool `json:"ecs_enabled,omitempty"` // Optional. _true_ to enable ECS options in outbound queries. This functionality has additional overhead so it is disabled by default. Defaults to _false_. @@ -66,7 +66,7 @@ type ConfigView struct { // _gss_tsig_enabled_ enables/disables GSS-TSIG signed dynamic updates. Defaults to _false_. GssTsigEnabled *bool `json:"gss_tsig_enabled,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *ConfigViewInheritance `json:"inheritance_sources,omitempty"` // The resource identifier. IpSpaces []string `json:"ip_spaces,omitempty"` @@ -111,8 +111,8 @@ type ConfigView struct { // Optional. Use default forwarders to resolve queries for subzones. Defaults to _true_. UseForwardersForSubzones *bool `json:"use_forwarders_for_subzones,omitempty"` // _use_root_forwarders_for_local_resolution_with_b1td_ allows DNS recursive queries sent to root forwarders for local resolution when deployed alongside BloxOne Thread Defense. Defaults to _false_. - UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` - ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` + UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` + ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` } // NewConfigView instantiates a new ConfigView object @@ -1662,7 +1662,7 @@ func (o *ConfigView) SetZoneAuthority(v ConfigZoneAuthority) { } func (o ConfigView) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1851,5 +1851,3 @@ func (v *NullableConfigView) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_view_inheritance.go b/dns_config/model_config_view_inheritance.go index 188122b..07bfb14 100644 --- a/dns_config/model_config_view_inheritance.go +++ b/dns_config/model_config_view_inheritance.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 */ @@ -19,32 +19,32 @@ var _ MappedNullable = &ConfigViewInheritance{} // ConfigViewInheritance Inheritance configuration specifies how and which fields _View_ object inherits from [ _Global_, _Server_ ] parent. type ConfigViewInheritance struct { - AddEdnsOptionInOutgoingQuery *Inheritance2InheritedBool `json:"add_edns_option_in_outgoing_query,omitempty"` - CustomRootNsBlock *ConfigInheritedCustomRootNSBlock `json:"custom_root_ns_block,omitempty"` - DnssecValidationBlock *ConfigInheritedDNSSECValidationBlock `json:"dnssec_validation_block,omitempty"` - DtcConfig *ConfigInheritedDtcConfig `json:"dtc_config,omitempty"` - EcsBlock *ConfigInheritedECSBlock `json:"ecs_block,omitempty"` - EdnsUdpSize *Inheritance2InheritedUInt32 `json:"edns_udp_size,omitempty"` - FilterAaaaAcl *ConfigInheritedACLItems `json:"filter_aaaa_acl,omitempty"` - FilterAaaaOnV4 *Inheritance2InheritedString `json:"filter_aaaa_on_v4,omitempty"` - ForwardersBlock *ConfigInheritedForwardersBlock `json:"forwarders_block,omitempty"` - GssTsigEnabled *Inheritance2InheritedBool `json:"gss_tsig_enabled,omitempty"` - LameTtl *Inheritance2InheritedUInt32 `json:"lame_ttl,omitempty"` - MatchRecursiveOnly *Inheritance2InheritedBool `json:"match_recursive_only,omitempty"` - MaxCacheTtl *Inheritance2InheritedUInt32 `json:"max_cache_ttl,omitempty"` - MaxNegativeTtl *Inheritance2InheritedUInt32 `json:"max_negative_ttl,omitempty"` - MaxUdpSize *Inheritance2InheritedUInt32 `json:"max_udp_size,omitempty"` - MinimalResponses *Inheritance2InheritedBool `json:"minimal_responses,omitempty"` - Notify *Inheritance2InheritedBool `json:"notify,omitempty"` - QueryAcl *ConfigInheritedACLItems `json:"query_acl,omitempty"` - RecursionAcl *ConfigInheritedACLItems `json:"recursion_acl,omitempty"` - RecursionEnabled *Inheritance2InheritedBool `json:"recursion_enabled,omitempty"` - SortList *ConfigInheritedSortListItems `json:"sort_list,omitempty"` - SynthesizeAddressRecordsFromHttps *Inheritance2InheritedBool `json:"synthesize_address_records_from_https,omitempty"` - TransferAcl *ConfigInheritedACLItems `json:"transfer_acl,omitempty"` - UpdateAcl *ConfigInheritedACLItems `json:"update_acl,omitempty"` - UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` - ZoneAuthority *ConfigInheritedZoneAuthority `json:"zone_authority,omitempty"` + AddEdnsOptionInOutgoingQuery *Inheritance2InheritedBool `json:"add_edns_option_in_outgoing_query,omitempty"` + CustomRootNsBlock *ConfigInheritedCustomRootNSBlock `json:"custom_root_ns_block,omitempty"` + DnssecValidationBlock *ConfigInheritedDNSSECValidationBlock `json:"dnssec_validation_block,omitempty"` + DtcConfig *ConfigInheritedDtcConfig `json:"dtc_config,omitempty"` + EcsBlock *ConfigInheritedECSBlock `json:"ecs_block,omitempty"` + EdnsUdpSize *Inheritance2InheritedUInt32 `json:"edns_udp_size,omitempty"` + FilterAaaaAcl *ConfigInheritedACLItems `json:"filter_aaaa_acl,omitempty"` + FilterAaaaOnV4 *Inheritance2InheritedString `json:"filter_aaaa_on_v4,omitempty"` + ForwardersBlock *ConfigInheritedForwardersBlock `json:"forwarders_block,omitempty"` + GssTsigEnabled *Inheritance2InheritedBool `json:"gss_tsig_enabled,omitempty"` + LameTtl *Inheritance2InheritedUInt32 `json:"lame_ttl,omitempty"` + MatchRecursiveOnly *Inheritance2InheritedBool `json:"match_recursive_only,omitempty"` + MaxCacheTtl *Inheritance2InheritedUInt32 `json:"max_cache_ttl,omitempty"` + MaxNegativeTtl *Inheritance2InheritedUInt32 `json:"max_negative_ttl,omitempty"` + MaxUdpSize *Inheritance2InheritedUInt32 `json:"max_udp_size,omitempty"` + MinimalResponses *Inheritance2InheritedBool `json:"minimal_responses,omitempty"` + Notify *Inheritance2InheritedBool `json:"notify,omitempty"` + QueryAcl *ConfigInheritedACLItems `json:"query_acl,omitempty"` + RecursionAcl *ConfigInheritedACLItems `json:"recursion_acl,omitempty"` + RecursionEnabled *Inheritance2InheritedBool `json:"recursion_enabled,omitempty"` + SortList *ConfigInheritedSortListItems `json:"sort_list,omitempty"` + SynthesizeAddressRecordsFromHttps *Inheritance2InheritedBool `json:"synthesize_address_records_from_https,omitempty"` + TransferAcl *ConfigInheritedACLItems `json:"transfer_acl,omitempty"` + UpdateAcl *ConfigInheritedACLItems `json:"update_acl,omitempty"` + UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` + ZoneAuthority *ConfigInheritedZoneAuthority `json:"zone_authority,omitempty"` } // NewConfigViewInheritance instantiates a new ConfigViewInheritance object @@ -897,7 +897,7 @@ func (o *ConfigViewInheritance) SetZoneAuthority(v ConfigInheritedZoneAuthority) } func (o ConfigViewInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1022,5 +1022,3 @@ func (v *NullableConfigViewInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_warning.go b/dns_config/model_config_warning.go index 65b8324..1f42dc7 100644 --- a/dns_config/model_config_warning.go +++ b/dns_config/model_config_warning.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 */ @@ -107,7 +107,7 @@ func (o *ConfigWarning) SetName(v string) { } func (o ConfigWarning) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableConfigWarning) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_zone_authority.go b/dns_config/model_config_zone_authority.go index 84accf1..49881ff 100644 --- a/dns_config/model_config_zone_authority.go +++ b/dns_config/model_config_zone_authority.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 */ @@ -379,7 +379,7 @@ func (o *ConfigZoneAuthority) SetUseDefaultMname(v bool) { } func (o ConfigZoneAuthority) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -456,5 +456,3 @@ func (v *NullableConfigZoneAuthority) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_config_zone_authority_m_name_block.go b/dns_config/model_config_zone_authority_m_name_block.go index 9598885..5686183 100644 --- a/dns_config/model_config_zone_authority_m_name_block.go +++ b/dns_config/model_config_zone_authority_m_name_block.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 */ @@ -141,7 +141,7 @@ func (o *ConfigZoneAuthorityMNameBlock) SetUseDefaultMname(v bool) { } func (o ConfigZoneAuthorityMNameBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableConfigZoneAuthorityMNameBlock) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_inheritance2_assigned_host.go b/dns_config/model_inheritance2_assigned_host.go index caca775..e7de2eb 100644 --- a/dns_config/model_inheritance2_assigned_host.go +++ b/dns_config/model_inheritance2_assigned_host.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 */ @@ -141,7 +141,7 @@ func (o *Inheritance2AssignedHost) SetOphid(v string) { } func (o Inheritance2AssignedHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableInheritance2AssignedHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_inheritance2_inherited_bool.go b/dns_config/model_inheritance2_inherited_bool.go index 6028dbd..e32cc64 100644 --- a/dns_config/model_inheritance2_inherited_bool.go +++ b/dns_config/model_inheritance2_inherited_bool.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 */ @@ -175,7 +175,7 @@ func (o *Inheritance2InheritedBool) SetValue(v bool) { } func (o Inheritance2InheritedBool) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritance2InheritedBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_inheritance2_inherited_string.go b/dns_config/model_inheritance2_inherited_string.go index 59f48f4..b0b72a1 100644 --- a/dns_config/model_inheritance2_inherited_string.go +++ b/dns_config/model_inheritance2_inherited_string.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 */ @@ -175,7 +175,7 @@ func (o *Inheritance2InheritedString) SetValue(v string) { } func (o Inheritance2InheritedString) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritance2InheritedString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/model_inheritance2_inherited_u_int32.go b/dns_config/model_inheritance2_inherited_u_int32.go index 84d89e9..dcdb24e 100644 --- a/dns_config/model_inheritance2_inherited_u_int32.go +++ b/dns_config/model_inheritance2_inherited_u_int32.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 */ @@ -175,7 +175,7 @@ func (o *Inheritance2InheritedUInt32) SetValue(v int64) { } func (o Inheritance2InheritedUInt32) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritance2InheritedUInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_config/utils.go b/dns_config/utils.go index 092960a..a23d0eb 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 d47f10e..e6f6b3d 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type RecordAPI interface { /* - RecordCreate Create the DNS resource record. + RecordCreate Create the DNS resource record. - Use this method to create a DNS __Record__ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to create a DNS __Record__ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordCreateRequest */ RecordCreate(ctx context.Context) ApiRecordCreateRequest @@ -40,14 +39,14 @@ A __Record__ object represents a DNS resource record in an authoritative zone. RecordCreateExecute(r ApiRecordCreateRequest) (*DataCreateRecordResponse, *http.Response, error) /* - RecordDelete Move the DNS resource record to recycle bin. + RecordDelete Move the DNS resource record to recycle bin. - Use this method to move a DNS __Record__ object to the recycle bin. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to move a DNS __Record__ object to the recycle bin. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordDeleteRequest */ RecordDelete(ctx context.Context, id string) ApiRecordDeleteRequest @@ -55,13 +54,13 @@ A __Record__ object represents a DNS resource record in an authoritative zone. RecordDeleteExecute(r ApiRecordDeleteRequest) (*http.Response, error) /* - RecordList Retrieve DNS resource records. + RecordList Retrieve DNS resource records. - Use this method to retrieve DNS __Record__ objects. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to retrieve DNS __Record__ objects. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordListRequest */ RecordList(ctx context.Context) ApiRecordListRequest @@ -70,14 +69,14 @@ A __Record__ object represents a DNS resource record in an authoritative zone. RecordListExecute(r ApiRecordListRequest) (*DataListRecordResponse, *http.Response, error) /* - RecordRead Retrieve the DNS resource record. + RecordRead Retrieve the DNS resource record. - Use this method to retrieve a DNS __Record__ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to retrieve a DNS __Record__ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordReadRequest */ RecordRead(ctx context.Context, id string) ApiRecordReadRequest @@ -86,14 +85,14 @@ A __Record__ object represents a DNS resource record in an authoritative zone. RecordReadExecute(r ApiRecordReadRequest) (*DataReadRecordResponse, *http.Response, error) /* - RecordSOASerialIncrement Increment serial number for the SOA record. + RecordSOASerialIncrement Increment serial number for the SOA record. - Use this method to increment the serial number for an SOA (Start of Authority) _Record_ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to increment the serial number for an SOA (Start of Authority) _Record_ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordSOASerialIncrementRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordSOASerialIncrementRequest */ RecordSOASerialIncrement(ctx context.Context, id string) ApiRecordSOASerialIncrementRequest @@ -102,14 +101,14 @@ A __Record__ object represents a DNS resource record in an authoritative zone. RecordSOASerialIncrementExecute(r ApiRecordSOASerialIncrementRequest) (*DataSOASerialIncrementResponse, *http.Response, error) /* - RecordUpdate Update the DNS resource record. + RecordUpdate Update the DNS resource record. - Use this method to update a DNS __Record__ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to update a DNS __Record__ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordUpdateRequest */ RecordUpdate(ctx context.Context, id string) ApiRecordUpdateRequest @@ -122,10 +121,10 @@ A __Record__ object represents a DNS resource record in an authoritative zone. type RecordAPIService internal.Service type ApiRecordCreateRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - body *DataRecord - inherit *string + body *DataRecord + inherit *string } func (r ApiRecordCreateRequest) Body(body DataRecord) ApiRecordCreateRequest { @@ -149,24 +148,25 @@ RecordCreate Create the DNS resource record. Use this method to create a DNS __Record__ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordCreateRequest */ func (a *RecordAPIService) RecordCreate(ctx context.Context) ApiRecordCreateRequest { return ApiRecordCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return DataCreateRecordResponse +// +// @return DataCreateRecordResponse func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataCreateRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataCreateRecordResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataCreateRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordCreate") @@ -251,9 +251,9 @@ func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataC } type ApiRecordDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string + id string } func (r ApiRecordDeleteRequest) Execute() (*http.Response, error) { @@ -266,24 +266,24 @@ RecordDelete Move the DNS resource record to recycle bin. Use this method to move a DNS __Record__ object to the recycle bin. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordDeleteRequest */ func (a *RecordAPIService) RecordDelete(ctx context.Context, id string) ApiRecordDeleteRequest { return ApiRecordDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *RecordAPIService) RecordDeleteExecute(r ApiRecordDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordDelete") @@ -355,50 +355,50 @@ func (a *RecordAPIService) RecordDeleteExecute(r ApiRecordDeleteRequest) (*http. } type ApiRecordListRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - 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. + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. func (r ApiRecordListRequest) Fields(fields string) ApiRecordListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiRecordListRequest) Filter(filter string) ApiRecordListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiRecordListRequest) Offset(offset int32) ApiRecordListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiRecordListRequest) Limit(limit int32) ApiRecordListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiRecordListRequest) PageToken(pageToken string) ApiRecordListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiRecordListRequest) OrderBy(orderBy string) ApiRecordListRequest { r.orderBy = &orderBy return r @@ -432,24 +432,25 @@ RecordList Retrieve DNS resource records. Use this method to retrieve DNS __Record__ objects. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordListRequest */ func (a *RecordAPIService) RecordList(ctx context.Context) ApiRecordListRequest { return ApiRecordListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return DataListRecordResponse +// +// @return DataListRecordResponse func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataListRecordResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataListRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordList") @@ -553,14 +554,14 @@ func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListR } type ApiRecordReadRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiRecordReadRequest) Fields(fields string) ApiRecordReadRequest { r.fields = &fields return r @@ -582,26 +583,27 @@ RecordRead Retrieve the DNS resource record. Use this method to retrieve a DNS __Record__ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordReadRequest */ func (a *RecordAPIService) RecordRead(ctx context.Context, id string) ApiRecordReadRequest { return ApiRecordReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DataReadRecordResponse +// +// @return DataReadRecordResponse func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataReadRecordResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataReadRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordRead") @@ -685,10 +687,10 @@ func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadR } type ApiRecordSOASerialIncrementRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string - body *DataSOASerialIncrementRequest + id string + body *DataSOASerialIncrementRequest } func (r ApiRecordSOASerialIncrementRequest) Body(body DataSOASerialIncrementRequest) ApiRecordSOASerialIncrementRequest { @@ -706,26 +708,27 @@ RecordSOASerialIncrement Increment serial number for the SOA record. Use this method to increment the serial number for an SOA (Start of Authority) _Record_ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordSOASerialIncrementRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordSOASerialIncrementRequest */ func (a *RecordAPIService) RecordSOASerialIncrement(ctx context.Context, id string) ApiRecordSOASerialIncrementRequest { return ApiRecordSOASerialIncrementRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DataSOASerialIncrementResponse +// +// @return DataSOASerialIncrementResponse func (a *RecordAPIService) RecordSOASerialIncrementExecute(r ApiRecordSOASerialIncrementRequest) (*DataSOASerialIncrementResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataSOASerialIncrementResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataSOASerialIncrementResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordSOASerialIncrement") @@ -808,11 +811,11 @@ func (a *RecordAPIService) RecordSOASerialIncrementExecute(r ApiRecordSOASerialI } type ApiRecordUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string - body *DataRecord - inherit *string + id string + body *DataRecord + inherit *string } func (r ApiRecordUpdateRequest) Body(body DataRecord) ApiRecordUpdateRequest { @@ -836,26 +839,27 @@ RecordUpdate Update the DNS resource record. Use this method to update a DNS __Record__ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRecordUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRecordUpdateRequest */ func (a *RecordAPIService) RecordUpdate(ctx context.Context, id string) ApiRecordUpdateRequest { return ApiRecordUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DataUpdateRecordResponse +// +// @return DataUpdateRecordResponse func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataUpdateRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataUpdateRecordResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataUpdateRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordUpdate") diff --git a/dns_data/client.go b/dns_data/client.go index 086bb57..5c1c0ee 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/model_data_create_record_response.go b/dns_data/model_data_create_record_response.go index 2914142..870d899 100644 --- a/dns_data/model_data_create_record_response.go +++ b/dns_data/model_data_create_record_response.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 */ @@ -72,7 +72,7 @@ func (o *DataCreateRecordResponse) SetResult(v DataRecord) { } func (o DataCreateRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataCreateRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_list_record_response.go b/dns_data/model_data_list_record_response.go index 8ce789e..e633b11 100644 --- a/dns_data/model_data_list_record_response.go +++ b/dns_data/model_data_list_record_response.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 */ @@ -73,7 +73,7 @@ func (o *DataListRecordResponse) SetResults(v []DataRecord) { } func (o DataListRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableDataListRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_read_record_response.go b/dns_data/model_data_read_record_response.go index 57ccdab..7541c04 100644 --- a/dns_data/model_data_read_record_response.go +++ b/dns_data/model_data_read_record_response.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 */ @@ -72,7 +72,7 @@ func (o *DataReadRecordResponse) SetResult(v DataRecord) { } func (o DataReadRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataReadRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_record.go b/dns_data/model_data_record.go index 02f305a..35e1911 100644 --- a/dns_data/model_data_record.go +++ b/dns_data/model_data_record.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 */ @@ -41,7 +41,7 @@ type DataRecord struct { // The DNS protocol textual representation of the DNS resource record data. DnsRdata *string `json:"dns_rdata,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *DataRecordInheritance `json:"inheritance_sources,omitempty"` // The resource identifier. IpamHost *string `json:"ipam_host,omitempty"` @@ -916,7 +916,7 @@ func (o *DataRecord) SetZone(v string) { } func (o DataRecord) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1039,5 +1039,3 @@ func (v *NullableDataRecord) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_record_inheritance.go b/dns_data/model_data_record_inheritance.go index 88f08ec..55e5209 100644 --- a/dns_data/model_data_record_inheritance.go +++ b/dns_data/model_data_record_inheritance.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 */ @@ -72,7 +72,7 @@ func (o *DataRecordInheritance) SetTtl(v Inheritance2InheritedUInt32) { } func (o DataRecordInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataRecordInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_soa_serial_increment_request.go b/dns_data/model_data_soa_serial_increment_request.go index 2ae5f8c..ce4dabf 100644 --- a/dns_data/model_data_soa_serial_increment_request.go +++ b/dns_data/model_data_soa_serial_increment_request.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 */ @@ -140,7 +140,7 @@ func (o *DataSOASerialIncrementRequest) SetSerialIncrement(v int64) { } func (o DataSOASerialIncrementRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -196,5 +196,3 @@ func (v *NullableDataSOASerialIncrementRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_soa_serial_increment_response.go b/dns_data/model_data_soa_serial_increment_response.go index cc83af7..352d117 100644 --- a/dns_data/model_data_soa_serial_increment_response.go +++ b/dns_data/model_data_soa_serial_increment_response.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 */ @@ -72,7 +72,7 @@ func (o *DataSOASerialIncrementResponse) SetResult(v DataRecord) { } func (o DataSOASerialIncrementResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataSOASerialIncrementResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_update_record_response.go b/dns_data/model_data_update_record_response.go index ac6d08d..aca7ee5 100644 --- a/dns_data/model_data_update_record_response.go +++ b/dns_data/model_data_update_record_response.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 */ @@ -72,7 +72,7 @@ func (o *DataUpdateRecordResponse) SetResult(v DataRecord) { } func (o DataUpdateRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataUpdateRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_inheritance2_inherited_u_int32.go b/dns_data/model_inheritance2_inherited_u_int32.go index 9d2885f..c23f897 100644 --- a/dns_data/model_inheritance2_inherited_u_int32.go +++ b/dns_data/model_inheritance2_inherited_u_int32.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 */ @@ -175,7 +175,7 @@ func (o *Inheritance2InheritedUInt32) SetValue(v int64) { } func (o Inheritance2InheritedUInt32) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritance2InheritedUInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_protobuf_field_mask.go b/dns_data/model_protobuf_field_mask.go index 21401df..17ded5d 100644 --- a/dns_data/model_protobuf_field_mask.go +++ b/dns_data/model_protobuf_field_mask.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 */ @@ -73,7 +73,7 @@ func (o *ProtobufFieldMask) SetPaths(v []string) { } func (o ProtobufFieldMask) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableProtobufFieldMask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/utils.go b/dns_data/utils.go index f7a1eb6..d20341f 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/infra_mgmt/api_detail.go b/infra_mgmt/api_detail.go index 1a8841a..cb3d549 100644 --- a/infra_mgmt/api_detail.go +++ b/infra_mgmt/api_detail.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -17,17 +17,16 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type DetailAPI interface { /* - DetailHostsList List all the Hosts along with its associated Services (applications). + DetailHostsList List all the Hosts along with its associated Services (applications). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailHostsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDetailHostsListRequest */ DetailHostsList(ctx context.Context) ApiDetailHostsListRequest @@ -36,10 +35,10 @@ type DetailAPI interface { DetailHostsListExecute(r ApiDetailHostsListRequest) (*InfraListDetailHostsResponse, *http.Response, error) /* - DetailServicesList List all the Services (applications) along with its associated Hosts. + DetailServicesList List all the Services (applications) along with its associated Hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailServicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDetailServicesListRequest */ DetailServicesList(ctx context.Context) ApiDetailServicesListRequest @@ -52,49 +51,49 @@ type DetailAPI interface { type DetailAPIService internal.Service type ApiDetailHostsListRequest struct { - ctx context.Context + ctx context.Context ApiService DetailAPI - filter *string - orderBy *string - offset *int32 - limit *int32 - pageToken *string - fields *string - tfilter *string - torderBy *string + filter *string + orderBy *string + offset *int32 + limit *int32 + pageToken *string + fields *string + tfilter *string + torderBy *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 | +// 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 | func (r ApiDetailHostsListRequest) Filter(filter string) ApiDetailHostsListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiDetailHostsListRequest) OrderBy(orderBy string) ApiDetailHostsListRequest { r.orderBy = &orderBy return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiDetailHostsListRequest) Offset(offset int32) ApiDetailHostsListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiDetailHostsListRequest) Limit(limit int32) ApiDetailHostsListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiDetailHostsListRequest) PageToken(pageToken string) ApiDetailHostsListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiDetailHostsListRequest) Fields(fields string) ApiDetailHostsListRequest { r.fields = &fields return r @@ -119,24 +118,25 @@ func (r ApiDetailHostsListRequest) Execute() (*InfraListDetailHostsResponse, *ht /* DetailHostsList List all the Hosts along with its associated Services (applications). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailHostsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDetailHostsListRequest */ func (a *DetailAPIService) DetailHostsList(ctx context.Context) ApiDetailHostsListRequest { return ApiDetailHostsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraListDetailHostsResponse +// +// @return InfraListDetailHostsResponse func (a *DetailAPIService) DetailHostsListExecute(r ApiDetailHostsListRequest) (*InfraListDetailHostsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraListDetailHostsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraListDetailHostsResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DetailAPIService.DetailHostsList") @@ -237,49 +237,49 @@ func (a *DetailAPIService) DetailHostsListExecute(r ApiDetailHostsListRequest) ( } type ApiDetailServicesListRequest struct { - ctx context.Context + ctx context.Context ApiService DetailAPI - filter *string - orderBy *string - offset *int32 - limit *int32 - pageToken *string - fields *string - tfilter *string - torderBy *string + filter *string + orderBy *string + offset *int32 + limit *int32 + pageToken *string + fields *string + tfilter *string + torderBy *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 | +// 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 | func (r ApiDetailServicesListRequest) Filter(filter string) ApiDetailServicesListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiDetailServicesListRequest) OrderBy(orderBy string) ApiDetailServicesListRequest { r.orderBy = &orderBy return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiDetailServicesListRequest) Offset(offset int32) ApiDetailServicesListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiDetailServicesListRequest) Limit(limit int32) ApiDetailServicesListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiDetailServicesListRequest) PageToken(pageToken string) ApiDetailServicesListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiDetailServicesListRequest) Fields(fields string) ApiDetailServicesListRequest { r.fields = &fields return r @@ -304,24 +304,25 @@ func (r ApiDetailServicesListRequest) Execute() (*InfraListDetailServicesRespons /* DetailServicesList List all the Services (applications) along with its associated Hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailServicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDetailServicesListRequest */ func (a *DetailAPIService) DetailServicesList(ctx context.Context) ApiDetailServicesListRequest { return ApiDetailServicesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraListDetailServicesResponse +// +// @return InfraListDetailServicesResponse func (a *DetailAPIService) DetailServicesListExecute(r ApiDetailServicesListRequest) (*InfraListDetailServicesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraListDetailServicesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraListDetailServicesResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DetailAPIService.DetailServicesList") diff --git a/infra_mgmt/api_hosts.go b/infra_mgmt/api_hosts.go index 38652b9..4c614f0 100644 --- a/infra_mgmt/api_hosts.go +++ b/infra_mgmt/api_hosts.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type HostsAPI interface { /* - HostsAssignTags Assign tags for list of hosts. + HostsAssignTags Assign tags for list of hosts. - Validation: -- "ids" is required. -- "tags" is required. + Validation: + - "ids" is required. + - "tags" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsAssignTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsAssignTagsRequest */ HostsAssignTags(ctx context.Context) ApiHostsAssignTagsRequest @@ -41,13 +40,13 @@ type HostsAPI interface { HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (map[string]interface{}, *http.Response, error) /* - HostsCreate Create a Host resource. + HostsCreate Create a Host resource. - Validation: -- "display_name" is required and should be unique. + Validation: + - "display_name" is required and should be unique. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsCreateRequest */ HostsCreate(ctx context.Context) ApiHostsCreateRequest @@ -56,14 +55,14 @@ type HostsAPI interface { HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCreateHostResponse, *http.Response, error) /* - HostsDelete Delete a Host resource. + HostsDelete Delete a Host resource. - Validation: -- "id" is required. + Validation: + - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsDeleteRequest */ HostsDelete(ctx context.Context, id string) ApiHostsDeleteRequest @@ -71,13 +70,13 @@ type HostsAPI interface { HostsDeleteExecute(r ApiHostsDeleteRequest) (*http.Response, error) /* - HostsDisconnect Disconnect a Host by resource ID. + HostsDisconnect Disconnect a Host by resource ID. - The user can disconnect the host from the cloud (for example, if in case a host is compromised). + The user can disconnect the host from the cloud (for example, if in case a host is compromised). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsDisconnectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsDisconnectRequest */ HostsDisconnect(ctx context.Context, id string) ApiHostsDisconnectRequest @@ -86,10 +85,10 @@ type HostsAPI interface { HostsDisconnectExecute(r ApiHostsDisconnectRequest) (map[string]interface{}, *http.Response, error) /* - HostsList List all the Host resources for an account. + HostsList List all the Host resources for an account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsListRequest */ HostsList(ctx context.Context) ApiHostsListRequest @@ -98,14 +97,14 @@ type HostsAPI interface { HostsListExecute(r ApiHostsListRequest) (*InfraListHostResponse, *http.Response, error) /* - HostsRead Get a Host resource. + HostsRead Get a Host resource. - Validation: -- "id" is required. + Validation: + - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsReadRequest */ HostsRead(ctx context.Context, id string) ApiHostsReadRequest @@ -114,12 +113,12 @@ type HostsAPI interface { HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHostResponse, *http.Response, error) /* - HostsReplace Migrate a Host's configuration from one to another. + HostsReplace Migrate a Host's configuration from one to another. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fromResourceId An application specific resource identity of a resource - @param toResourceId An application specific resource identity of a resource - @return ApiHostsReplaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fromResourceId An application specific resource identity of a resource + @param toResourceId An application specific resource identity of a resource + @return ApiHostsReplaceRequest */ HostsReplace(ctx context.Context, fromResourceId string, toResourceId string) ApiHostsReplaceRequest @@ -128,14 +127,14 @@ type HostsAPI interface { HostsReplaceExecute(r ApiHostsReplaceRequest) (map[string]interface{}, *http.Response, error) /* - HostsUnassignTags Unassign tag for the list hosts. + HostsUnassignTags Unassign tag for the list hosts. - Validation: -- "ids" is required. -- "keys" is required. + Validation: + - "ids" is required. + - "keys" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsUnassignTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsUnassignTagsRequest */ HostsUnassignTags(ctx context.Context) ApiHostsUnassignTagsRequest @@ -144,16 +143,16 @@ type HostsAPI interface { HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest) (map[string]interface{}, *http.Response, error) /* - HostsUpdate Update a Host resource. + HostsUpdate Update a Host resource. - Validation: -- "id" is required. -- "display_name" is required and should be unique. -- "pool_id" is required. + Validation: + - "id" is required. + - "display_name" is required and should be unique. + - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsUpdateRequest */ HostsUpdate(ctx context.Context, id string) ApiHostsUpdateRequest @@ -166,9 +165,9 @@ type HostsAPI interface { type HostsAPIService internal.Service type ApiHostsAssignTagsRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - body *InfraAssignTagsRequest + body *InfraAssignTagsRequest } func (r ApiHostsAssignTagsRequest) Body(body InfraAssignTagsRequest) ApiHostsAssignTagsRequest { @@ -187,24 +186,25 @@ Validation: - "ids" is required. - "tags" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsAssignTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsAssignTagsRequest */ func (a *HostsAPIService) HostsAssignTags(ctx context.Context) ApiHostsAssignTagsRequest { return ApiHostsAssignTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *HostsAPIService) HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsAssignTags") @@ -286,9 +286,9 @@ func (a *HostsAPIService) HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (m } type ApiHostsCreateRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - body *InfraHost + body *InfraHost } func (r ApiHostsCreateRequest) Body(body InfraHost) ApiHostsCreateRequest { @@ -306,24 +306,25 @@ HostsCreate Create a Host resource. Validation: - "display_name" is required and should be unique. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsCreateRequest */ func (a *HostsAPIService) HostsCreate(ctx context.Context) ApiHostsCreateRequest { return ApiHostsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraCreateHostResponse +// +// @return InfraCreateHostResponse func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCreateHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraCreateHostResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraCreateHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsCreate") @@ -405,9 +406,9 @@ func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCre } type ApiHostsDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - id string + id string } func (r ApiHostsDeleteRequest) Execute() (*http.Response, error) { @@ -420,24 +421,24 @@ HostsDelete Delete a Host resource. Validation: - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsDeleteRequest */ func (a *HostsAPIService) HostsDelete(ctx context.Context, id string) ApiHostsDeleteRequest { return ApiHostsDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *HostsAPIService) HostsDeleteExecute(r ApiHostsDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsDelete") @@ -509,10 +510,10 @@ func (a *HostsAPIService) HostsDeleteExecute(r ApiHostsDeleteRequest) (*http.Res } type ApiHostsDisconnectRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - id string - body *InfraDisconnectRequest + id string + body *InfraDisconnectRequest } func (r ApiHostsDisconnectRequest) Body(body InfraDisconnectRequest) ApiHostsDisconnectRequest { @@ -529,26 +530,27 @@ HostsDisconnect Disconnect a Host by resource ID. The user can disconnect the host from the cloud (for example, if in case a host is compromised). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsDisconnectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsDisconnectRequest */ func (a *HostsAPIService) HostsDisconnect(ctx context.Context, id string) ApiHostsDisconnectRequest { return ApiHostsDisconnectRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *HostsAPIService) HostsDisconnectExecute(r ApiHostsDisconnectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsDisconnect") @@ -631,49 +633,49 @@ func (a *HostsAPIService) HostsDisconnectExecute(r ApiHostsDisconnectRequest) (m } type ApiHostsListRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - filter *string - orderBy *string - offset *int32 - limit *int32 - pageToken *string - fields *string - tfilter *string - torderBy *string + filter *string + orderBy *string + offset *int32 + limit *int32 + pageToken *string + fields *string + tfilter *string + torderBy *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 | +// 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 | func (r ApiHostsListRequest) Filter(filter string) ApiHostsListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiHostsListRequest) OrderBy(orderBy string) ApiHostsListRequest { r.orderBy = &orderBy return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiHostsListRequest) Offset(offset int32) ApiHostsListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiHostsListRequest) Limit(limit int32) ApiHostsListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiHostsListRequest) PageToken(pageToken string) ApiHostsListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiHostsListRequest) Fields(fields string) ApiHostsListRequest { r.fields = &fields return r @@ -698,24 +700,25 @@ func (r ApiHostsListRequest) Execute() (*InfraListHostResponse, *http.Response, /* HostsList List all the Host resources for an account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsListRequest */ func (a *HostsAPIService) HostsList(ctx context.Context) ApiHostsListRequest { return ApiHostsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraListHostResponse +// +// @return InfraListHostResponse func (a *HostsAPIService) HostsListExecute(r ApiHostsListRequest) (*InfraListHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraListHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraListHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsList") @@ -816,9 +819,9 @@ func (a *HostsAPIService) HostsListExecute(r ApiHostsListRequest) (*InfraListHos } type ApiHostsReadRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - id string + id string } func (r ApiHostsReadRequest) Execute() (*InfraGetHostResponse, *http.Response, error) { @@ -831,26 +834,27 @@ HostsRead Get a Host resource. Validation: - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsReadRequest */ func (a *HostsAPIService) HostsRead(ctx context.Context, id string) ApiHostsReadRequest { return ApiHostsReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return InfraGetHostResponse +// +// @return InfraGetHostResponse func (a *HostsAPIService) HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraGetHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraGetHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsRead") @@ -928,11 +932,11 @@ func (a *HostsAPIService) HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHost } type ApiHostsReplaceRequest struct { - ctx context.Context - ApiService HostsAPI + ctx context.Context + ApiService HostsAPI fromResourceId string - toResourceId string - body *InfraReplaceHostRequest + toResourceId string + body *InfraReplaceHostRequest } func (r ApiHostsReplaceRequest) Body(body InfraReplaceHostRequest) ApiHostsReplaceRequest { @@ -947,28 +951,29 @@ func (r ApiHostsReplaceRequest) Execute() (map[string]interface{}, *http.Respons /* HostsReplace Migrate a Host's configuration from one to another. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fromResourceId An application specific resource identity of a resource - @param toResourceId An application specific resource identity of a resource - @return ApiHostsReplaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fromResourceId An application specific resource identity of a resource + @param toResourceId An application specific resource identity of a resource + @return ApiHostsReplaceRequest */ func (a *HostsAPIService) HostsReplace(ctx context.Context, fromResourceId string, toResourceId string) ApiHostsReplaceRequest { return ApiHostsReplaceRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, fromResourceId: fromResourceId, - toResourceId: toResourceId, + toResourceId: toResourceId, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *HostsAPIService) HostsReplaceExecute(r ApiHostsReplaceRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsReplace") @@ -1052,9 +1057,9 @@ func (a *HostsAPIService) HostsReplaceExecute(r ApiHostsReplaceRequest) (map[str } type ApiHostsUnassignTagsRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - body *InfraUnassignTagsRequest + body *InfraUnassignTagsRequest } func (r ApiHostsUnassignTagsRequest) Body(body InfraUnassignTagsRequest) ApiHostsUnassignTagsRequest { @@ -1073,24 +1078,25 @@ Validation: - "ids" is required. - "keys" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsUnassignTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsUnassignTagsRequest */ func (a *HostsAPIService) HostsUnassignTags(ctx context.Context) ApiHostsUnassignTagsRequest { return ApiHostsUnassignTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *HostsAPIService) HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsUnassignTags") @@ -1172,10 +1178,10 @@ func (a *HostsAPIService) HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest } type ApiHostsUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService HostsAPI - id string - body *InfraHost + id string + body *InfraHost } func (r ApiHostsUpdateRequest) Body(body InfraHost) ApiHostsUpdateRequest { @@ -1195,26 +1201,27 @@ Validation: - "display_name" is required and should be unique. - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHostsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHostsUpdateRequest */ func (a *HostsAPIService) HostsUpdate(ctx context.Context, id string) ApiHostsUpdateRequest { return ApiHostsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return InfraUpdateHostResponse +// +// @return InfraUpdateHostResponse func (a *HostsAPIService) HostsUpdateExecute(r ApiHostsUpdateRequest) (*InfraUpdateHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraUpdateHostResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraUpdateHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HostsAPIService.HostsUpdate") diff --git a/infra_mgmt/api_services.go b/infra_mgmt/api_services.go index 7136db5..b76de6d 100644 --- a/infra_mgmt/api_services.go +++ b/infra_mgmt/api_services.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -18,19 +18,18 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ServicesAPI interface { /* - ServicesApplications List applications (Service types) for a particular account. + ServicesApplications List applications (Service types) for a particular account. - Used in order to retrieve available applications (Service types) for a particular account. + Used in order to retrieve available applications (Service types) for a particular account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesApplicationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesApplicationsRequest */ ServicesApplications(ctx context.Context) ApiServicesApplicationsRequest @@ -39,15 +38,15 @@ type ServicesAPI interface { ServicesApplicationsExecute(r ApiServicesApplicationsRequest) (*InfraApplicationsResponse, *http.Response, error) /* - ServicesCreate Create a Service resource. + ServicesCreate Create a Service resource. - Validation: -- "name" is required and should be unique. -- "service_type" is required. -- "pool_id" is required. + Validation: + - "name" is required and should be unique. + - "service_type" is required. + - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesCreateRequest */ ServicesCreate(ctx context.Context) ApiServicesCreateRequest @@ -56,14 +55,14 @@ type ServicesAPI interface { ServicesCreateExecute(r ApiServicesCreateRequest) (*InfraCreateServiceResponse, *http.Response, error) /* - ServicesDelete Delete a Service resource. + ServicesDelete Delete a Service resource. - Validation: -- "id" is required. + Validation: + - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServicesDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServicesDeleteRequest */ ServicesDelete(ctx context.Context, id string) ApiServicesDeleteRequest @@ -71,10 +70,10 @@ type ServicesAPI interface { ServicesDeleteExecute(r ApiServicesDeleteRequest) (*http.Response, error) /* - ServicesList List all the Service resources for an account. + ServicesList List all the Service resources for an account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesListRequest */ ServicesList(ctx context.Context) ApiServicesListRequest @@ -83,14 +82,14 @@ type ServicesAPI interface { ServicesListExecute(r ApiServicesListRequest) (*InfraListServiceResponse, *http.Response, error) /* - ServicesRead Read a Service resource. + ServicesRead Read a Service resource. - Validation: -- "id" is required. + Validation: + - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServicesReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServicesReadRequest */ ServicesRead(ctx context.Context, id string) ApiServicesReadRequest @@ -99,17 +98,17 @@ type ServicesAPI interface { ServicesReadExecute(r ApiServicesReadRequest) (*InfraGetServiceResponse, *http.Response, error) /* - ServicesUpdate Update a Service resource. + ServicesUpdate Update a Service resource. - Validation: -- "id" is required. -- "name" is required and should be unique. -- "service_type" is required. -- "pool_id" is required. + Validation: + - "id" is required. + - "name" is required and should be unique. + - "service_type" is required. + - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServicesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServicesUpdateRequest */ ServicesUpdate(ctx context.Context, id string) ApiServicesUpdateRequest @@ -122,9 +121,9 @@ type ServicesAPI interface { type ServicesAPIService internal.Service type ApiServicesApplicationsRequest struct { - ctx context.Context + ctx context.Context ApiService ServicesAPI - accountId *string + accountId *string } // Account ID. @@ -142,24 +141,25 @@ ServicesApplications List applications (Service types) for a particular account. Used in order to retrieve available applications (Service types) for a particular account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesApplicationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesApplicationsRequest */ func (a *ServicesAPIService) ServicesApplications(ctx context.Context) ApiServicesApplicationsRequest { return ApiServicesApplicationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraApplicationsResponse +// +// @return InfraApplicationsResponse func (a *ServicesAPIService) ServicesApplicationsExecute(r ApiServicesApplicationsRequest) (*InfraApplicationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraApplicationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraApplicationsResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServicesAPIService.ServicesApplications") @@ -239,9 +239,9 @@ func (a *ServicesAPIService) ServicesApplicationsExecute(r ApiServicesApplicatio } type ApiServicesCreateRequest struct { - ctx context.Context + ctx context.Context ApiService ServicesAPI - body *InfraService + body *InfraService } func (r ApiServicesCreateRequest) Body(body InfraService) ApiServicesCreateRequest { @@ -261,24 +261,25 @@ Validation: - "service_type" is required. - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesCreateRequest */ func (a *ServicesAPIService) ServicesCreate(ctx context.Context) ApiServicesCreateRequest { return ApiServicesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraCreateServiceResponse +// +// @return InfraCreateServiceResponse func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) (*InfraCreateServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraCreateServiceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraCreateServiceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServicesAPIService.ServicesCreate") @@ -360,9 +361,9 @@ func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) ( } type ApiServicesDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService ServicesAPI - id string + id string } func (r ApiServicesDeleteRequest) Execute() (*http.Response, error) { @@ -375,24 +376,24 @@ ServicesDelete Delete a Service resource. Validation: - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServicesDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServicesDeleteRequest */ func (a *ServicesAPIService) ServicesDelete(ctx context.Context, id string) ApiServicesDeleteRequest { return ApiServicesDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *ServicesAPIService) ServicesDeleteExecute(r ApiServicesDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServicesAPIService.ServicesDelete") @@ -464,49 +465,49 @@ func (a *ServicesAPIService) ServicesDeleteExecute(r ApiServicesDeleteRequest) ( } type ApiServicesListRequest struct { - ctx context.Context + ctx context.Context ApiService ServicesAPI - filter *string - orderBy *string - offset *int32 - limit *int32 - pageToken *string - fields *string - tfilter *string - torderBy *string + filter *string + orderBy *string + offset *int32 + limit *int32 + pageToken *string + fields *string + tfilter *string + torderBy *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 | +// 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 | func (r ApiServicesListRequest) Filter(filter string) ApiServicesListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiServicesListRequest) OrderBy(orderBy string) ApiServicesListRequest { r.orderBy = &orderBy return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiServicesListRequest) Offset(offset int32) ApiServicesListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiServicesListRequest) Limit(limit int32) ApiServicesListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiServicesListRequest) PageToken(pageToken string) ApiServicesListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiServicesListRequest) Fields(fields string) ApiServicesListRequest { r.fields = &fields return r @@ -531,24 +532,25 @@ func (r ApiServicesListRequest) Execute() (*InfraListServiceResponse, *http.Resp /* ServicesList List all the Service resources for an account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesListRequest */ func (a *ServicesAPIService) ServicesList(ctx context.Context) ApiServicesListRequest { return ApiServicesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return InfraListServiceResponse +// +// @return InfraListServiceResponse func (a *ServicesAPIService) ServicesListExecute(r ApiServicesListRequest) (*InfraListServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraListServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraListServiceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServicesAPIService.ServicesList") @@ -649,9 +651,9 @@ func (a *ServicesAPIService) ServicesListExecute(r ApiServicesListRequest) (*Inf } type ApiServicesReadRequest struct { - ctx context.Context + ctx context.Context ApiService ServicesAPI - id string + id string } func (r ApiServicesReadRequest) Execute() (*InfraGetServiceResponse, *http.Response, error) { @@ -664,26 +666,27 @@ ServicesRead Read a Service resource. Validation: - "id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServicesReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServicesReadRequest */ func (a *ServicesAPIService) ServicesRead(ctx context.Context, id string) ApiServicesReadRequest { return ApiServicesReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return InfraGetServiceResponse +// +// @return InfraGetServiceResponse func (a *ServicesAPIService) ServicesReadExecute(r ApiServicesReadRequest) (*InfraGetServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraGetServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraGetServiceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServicesAPIService.ServicesRead") @@ -761,10 +764,10 @@ func (a *ServicesAPIService) ServicesReadExecute(r ApiServicesReadRequest) (*Inf } type ApiServicesUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService ServicesAPI - id string - body *InfraService + id string + body *InfraService } func (r ApiServicesUpdateRequest) Body(body InfraService) ApiServicesUpdateRequest { @@ -785,26 +788,27 @@ Validation: - "service_type" is required. - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServicesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServicesUpdateRequest */ func (a *ServicesAPIService) ServicesUpdate(ctx context.Context, id string) ApiServicesUpdateRequest { return ApiServicesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return InfraUpdateServiceResponse +// +// @return InfraUpdateServiceResponse func (a *ServicesAPIService) ServicesUpdateExecute(r ApiServicesUpdateRequest) (*InfraUpdateServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *InfraUpdateServiceResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *InfraUpdateServiceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServicesAPIService.ServicesUpdate") diff --git a/infra_mgmt/client.go b/infra_mgmt/client.go index 8b6562e..5f9de49 100644 --- a/infra_mgmt/client.go +++ b/infra_mgmt/client.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -11,7 +11,7 @@ API version: v1 package infra_mgmt import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/api/infra/v1" @@ -19,11 +19,11 @@ var ServiceBasePath = "/api/infra/v1" // APIClient manages communication with the Infrastructure Management API API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services - DetailAPI DetailAPI - HostsAPI HostsAPI + DetailAPI DetailAPI + HostsAPI HostsAPI ServicesAPI ServicesAPI } @@ -31,7 +31,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.DetailAPI = (*DetailAPIService)(&c.Common) diff --git a/infra_mgmt/model_api_page_info.go b/infra_mgmt/model_api_page_info.go index 8c12daf..b038f4a 100644 --- a/infra_mgmt/model_api_page_info.go +++ b/infra_mgmt/model_api_page_info.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -141,7 +141,7 @@ func (o *ApiPageInfo) SetSize(v int32) { } func (o ApiPageInfo) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableApiPageInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_applications.go b/infra_mgmt/model_infra_applications.go index 48c7086..fb39675 100644 --- a/infra_mgmt/model_infra_applications.go +++ b/infra_mgmt/model_infra_applications.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraApplications) SetApplications(v []string) { } func (o InfraApplications) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraApplications) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_applications_response.go b/infra_mgmt/model_infra_applications_response.go index 302b407..9dd9f32 100644 --- a/infra_mgmt/model_infra_applications_response.go +++ b/infra_mgmt/model_infra_applications_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraApplicationsResponse) SetResults(v InfraApplications) { } func (o InfraApplicationsResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraApplicationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_assign_tags_request.go b/infra_mgmt/model_infra_assign_tags_request.go index 2f3a060..ee77638 100644 --- a/infra_mgmt/model_infra_assign_tags_request.go +++ b/infra_mgmt/model_infra_assign_tags_request.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -20,9 +20,9 @@ var _ MappedNullable = &InfraAssignTagsRequest{} // InfraAssignTagsRequest struct for InfraAssignTagsRequest type InfraAssignTagsRequest struct { // The resource identifier. - Ids []string `json:"ids,omitempty"` - Override *bool `json:"override,omitempty"` - Tags map[string]interface{} `json:"tags,omitempty"` + Ids []string `json:"ids,omitempty"` + Override *bool `json:"override,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` } // NewInfraAssignTagsRequest instantiates a new InfraAssignTagsRequest object @@ -139,7 +139,7 @@ func (o *InfraAssignTagsRequest) SetTags(v map[string]interface{}) { } func (o InfraAssignTagsRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -195,5 +195,3 @@ func (v *NullableInfraAssignTagsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_create_host_response.go b/infra_mgmt/model_infra_create_host_response.go index bb51565..aae5b74 100644 --- a/infra_mgmt/model_infra_create_host_response.go +++ b/infra_mgmt/model_infra_create_host_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraCreateHostResponse) SetResult(v InfraHost) { } func (o InfraCreateHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraCreateHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_create_service_response.go b/infra_mgmt/model_infra_create_service_response.go index 0da0945..5d12e15 100644 --- a/infra_mgmt/model_infra_create_service_response.go +++ b/infra_mgmt/model_infra_create_service_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraCreateServiceResponse) SetResult(v InfraService) { } func (o InfraCreateServiceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraCreateServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_detail_host.go b/infra_mgmt/model_infra_detail_host.go index f39d0e5..23c91b7 100644 --- a/infra_mgmt/model_infra_detail_host.go +++ b/infra_mgmt/model_infra_detail_host.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -23,8 +23,8 @@ type InfraDetailHost struct { // Composite Status of this Host (`online`, `degraded`, `error`, `offline`, `pending`, `awaiting approval`). CompositeStatus *string `json:"composite_status,omitempty"` // The list of Host-specific configurations for each Service deployed on this Host. - Configs []InfraDetailHostServiceConfig `json:"configs,omitempty"` - ConnectivityMonitor map[string]interface{} `json:"connectivity_monitor,omitempty"` + Configs []InfraDetailHostServiceConfig `json:"configs,omitempty"` + ConnectivityMonitor map[string]interface{} `json:"connectivity_monitor,omitempty"` // The timestamp of creation of Host. CreatedAt *time.Time `json:"created_at,omitempty"` // The description of the Host. @@ -33,7 +33,7 @@ type InfraDetailHost struct { DisplayName *string `json:"display_name,omitempty"` // The sub-type of a specific Host type. Example: For Host type BloxOne Appliance, sub-type could be \"B105\" or \"VEP1425\" HostSubtype *string `json:"host_subtype,omitempty"` - HostType *string `json:"host_type,omitempty"` + HostType *string `json:"host_type,omitempty"` // The version of the Host platform services. HostVersion *string `json:"host_version,omitempty"` // The resource identifier. @@ -43,16 +43,16 @@ type InfraDetailHost struct { // The IP Space of the Host. IpSpace *string `json:"ip_space,omitempty"` // The legacy Host object identifier. - LegacyId *string `json:"legacy_id,omitempty"` + LegacyId *string `json:"legacy_id,omitempty"` Location *InfraDetailLocation `json:"location,omitempty"` // The MAC address of the Host. - MacAddress *string `json:"mac_address,omitempty"` + MacAddress *string `json:"mac_address,omitempty"` MaintenanceMode *string `json:"maintenance_mode,omitempty"` // The NAT IP address of the Host. NatIp *string `json:"nat_ip,omitempty"` // The unique On-Prem Host ID generated by the On-Prem device and assigned to the Host once it is registered and logged into the Infoblox Cloud. - Ophid *string `json:"ophid,omitempty"` - Pool *InfraPoolInfo `json:"pool,omitempty"` + Ophid *string `json:"ophid,omitempty"` + Pool *InfraPoolInfo `json:"pool,omitempty"` // The unique serial number of the Host. SerialNumber *string `json:"serial_number,omitempty"` // The list of Services deployed on this Host. @@ -885,7 +885,7 @@ func (o *InfraDetailHost) SetUpdatedAt(v time.Time) { } func (o InfraDetailHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1007,5 +1007,3 @@ func (v *NullableInfraDetailHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_detail_host_service_config.go b/infra_mgmt/model_infra_detail_host_service_config.go index f8f038b..a6ad087 100644 --- a/infra_mgmt/model_infra_detail_host_service_config.go +++ b/infra_mgmt/model_infra_detail_host_service_config.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -27,8 +27,8 @@ type InfraDetailHostServiceConfig struct { // The name of the Service. ServiceName *string `json:"service_name,omitempty"` // The type of the Service deployed on the Host (`dns`, `cdc`, etc.). - ServiceType *string `json:"service_type,omitempty"` - Status *InfraShortServiceStatus `json:"status,omitempty"` + ServiceType *string `json:"service_type,omitempty"` + Status *InfraShortServiceStatus `json:"status,omitempty"` // The timestamp of the latest upgrade of the Host-specific Service configuration. UpgradedAt *time.Time `json:"upgraded_at,omitempty"` } @@ -243,7 +243,7 @@ func (o *InfraDetailHostServiceConfig) SetUpgradedAt(v time.Time) { } func (o InfraDetailHostServiceConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -308,5 +308,3 @@ func (v *NullableInfraDetailHostServiceConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_detail_location.go b/infra_mgmt/model_infra_detail_location.go index 083ff6a..91dbcea 100644 --- a/infra_mgmt/model_infra_detail_location.go +++ b/infra_mgmt/model_infra_detail_location.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -209,7 +209,7 @@ func (o *InfraDetailLocation) SetMetadata(v map[string]interface{}) { } func (o InfraDetailLocation) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,5 +271,3 @@ func (v *NullableInfraDetailLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_detail_service.go b/infra_mgmt/model_infra_detail_service.go index 6f020d5..95bdf23 100644 --- a/infra_mgmt/model_infra_detail_service.go +++ b/infra_mgmt/model_infra_detail_service.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -39,10 +39,10 @@ type InfraDetailService struct { // The resource identifier. Id *string `json:"id,omitempty"` // List of interfaces on which this Service can operate. - InterfaceLabels []string `json:"interface_labels,omitempty"` - Location *InfraDetailLocation `json:"location,omitempty"` + InterfaceLabels []string `json:"interface_labels,omitempty"` + Location *InfraDetailLocation `json:"location,omitempty"` // The name of the Service. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Pool *InfraPoolInfo `json:"pool,omitempty"` // The type of the Service deployed on the Host (`dns`, `cdc`, etc.). ServiceType *string `json:"service_type,omitempty"` @@ -582,7 +582,7 @@ func (o *InfraDetailService) SetUpdatedAt(v time.Time) { } func (o InfraDetailService) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -677,5 +677,3 @@ func (v *NullableInfraDetailService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_detail_service_host.go b/infra_mgmt/model_infra_detail_service_host.go index 067ef4b..8edd987 100644 --- a/infra_mgmt/model_infra_detail_service_host.go +++ b/infra_mgmt/model_infra_detail_service_host.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -20,8 +20,8 @@ var _ MappedNullable = &InfraDetailServiceHost{} // InfraDetailServiceHost struct for InfraDetailServiceHost type InfraDetailServiceHost struct { // Composite Status of the Host (`online`, `degraded`, `error`, `offline`, `pending`, `awaiting approval`). - CompositeStatus *string `json:"composite_status,omitempty"` - Config *InfraDetailServiceHostConfig `json:"config,omitempty"` + CompositeStatus *string `json:"composite_status,omitempty"` + Config *InfraDetailServiceHostConfig `json:"config,omitempty"` // The name of the Host (unique). DisplayName *string `json:"display_name,omitempty"` // The resource identifier. @@ -29,7 +29,7 @@ type InfraDetailServiceHost struct { // The IP address of the Host. IpAddress *string `json:"ip_address,omitempty"` // The legacy Host object identifier. - LegacyId *string `json:"legacy_id,omitempty"` + LegacyId *string `json:"legacy_id,omitempty"` MaintenanceMode *string `json:"maintenance_mode,omitempty"` // The unique On-Prem Host ID generated by the On-Prem device and assigned to the Host once it is registered and logged into the Infoblox Cloud. Ophid *string `json:"ophid,omitempty"` @@ -309,7 +309,7 @@ func (o *InfraDetailServiceHost) SetOphid(v string) { } func (o InfraDetailServiceHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -380,5 +380,3 @@ func (v *NullableInfraDetailServiceHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_detail_service_host_config.go b/infra_mgmt/model_infra_detail_service_host_config.go index 1a6089f..45212f5 100644 --- a/infra_mgmt/model_infra_detail_service_host_config.go +++ b/infra_mgmt/model_infra_detail_service_host_config.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -21,9 +21,9 @@ var _ MappedNullable = &InfraDetailServiceHostConfig{} // InfraDetailServiceHostConfig struct for InfraDetailServiceHostConfig type InfraDetailServiceHostConfig struct { // The current version of the Service deployed on the Host. - CurrentVersion *string `json:"current_version,omitempty"` - Status *InfraShortServiceStatus `json:"status,omitempty"` - UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + CurrentVersion *string `json:"current_version,omitempty"` + Status *InfraShortServiceStatus `json:"status,omitempty"` + UpgradedAt *time.Time `json:"upgraded_at,omitempty"` } // NewInfraDetailServiceHostConfig instantiates a new InfraDetailServiceHostConfig object @@ -140,7 +140,7 @@ func (o *InfraDetailServiceHostConfig) SetUpgradedAt(v time.Time) { } func (o InfraDetailServiceHostConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -196,5 +196,3 @@ func (v *NullableInfraDetailServiceHostConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_disconnect_request.go b/infra_mgmt/model_infra_disconnect_request.go index ba267fa..17e96df 100644 --- a/infra_mgmt/model_infra_disconnect_request.go +++ b/infra_mgmt/model_infra_disconnect_request.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -73,7 +73,7 @@ func (o *InfraDisconnectRequest) SetId(v string) { } func (o InfraDisconnectRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableInfraDisconnectRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_get_host_response.go b/infra_mgmt/model_infra_get_host_response.go index 59d2ef4..82afb21 100644 --- a/infra_mgmt/model_infra_get_host_response.go +++ b/infra_mgmt/model_infra_get_host_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraGetHostResponse) SetResult(v InfraHost) { } func (o InfraGetHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraGetHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_get_service_response.go b/infra_mgmt/model_infra_get_service_response.go index 7eab350..9b40323 100644 --- a/infra_mgmt/model_infra_get_service_response.go +++ b/infra_mgmt/model_infra_get_service_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraGetServiceResponse) SetResult(v InfraService) { } func (o InfraGetServiceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraGetServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_host.go b/infra_mgmt/model_infra_host.go index 3be1163..511d8d7 100644 --- a/infra_mgmt/model_infra_host.go +++ b/infra_mgmt/model_infra_host.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -49,7 +49,7 @@ type InfraHost struct { // The resource identifier. LocationId *string `json:"location_id,omitempty"` // The MAC address of the Host. - MacAddress *string `json:"mac_address,omitempty"` + MacAddress *string `json:"mac_address,omitempty"` MaintenanceMode *string `json:"maintenance_mode,omitempty"` // The NAT IP address of the Host. NatIp *string `json:"nat_ip,omitempty"` @@ -848,7 +848,7 @@ func (o *InfraHost) SetUpdatedAt(v time.Time) { } func (o InfraHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -965,5 +965,3 @@ func (v *NullableInfraHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_list_detail_hosts_response.go b/infra_mgmt/model_infra_list_detail_hosts_response.go index c02d914..02a3af8 100644 --- a/infra_mgmt/model_infra_list_detail_hosts_response.go +++ b/infra_mgmt/model_infra_list_detail_hosts_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -19,7 +19,7 @@ var _ MappedNullable = &InfraListDetailHostsResponse{} // InfraListDetailHostsResponse struct for InfraListDetailHostsResponse type InfraListDetailHostsResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` Results []InfraDetailHost `json:"results,omitempty"` } @@ -105,7 +105,7 @@ func (o *InfraListDetailHostsResponse) SetResults(v []InfraDetailHost) { } func (o InfraListDetailHostsResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableInfraListDetailHostsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_list_detail_services_response.go b/infra_mgmt/model_infra_list_detail_services_response.go index 8d5052a..47a1b49 100644 --- a/infra_mgmt/model_infra_list_detail_services_response.go +++ b/infra_mgmt/model_infra_list_detail_services_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -19,7 +19,7 @@ var _ MappedNullable = &InfraListDetailServicesResponse{} // InfraListDetailServicesResponse struct for InfraListDetailServicesResponse type InfraListDetailServicesResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` Results []InfraDetailService `json:"results,omitempty"` } @@ -105,7 +105,7 @@ func (o *InfraListDetailServicesResponse) SetResults(v []InfraDetailService) { } func (o InfraListDetailServicesResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableInfraListDetailServicesResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_list_host_response.go b/infra_mgmt/model_infra_list_host_response.go index b33f8ba..c7d23c3 100644 --- a/infra_mgmt/model_infra_list_host_response.go +++ b/infra_mgmt/model_infra_list_host_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -19,8 +19,8 @@ var _ MappedNullable = &InfraListHostResponse{} // InfraListHostResponse struct for InfraListHostResponse type InfraListHostResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []InfraHost `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []InfraHost `json:"results,omitempty"` } // NewInfraListHostResponse instantiates a new InfraListHostResponse object @@ -105,7 +105,7 @@ func (o *InfraListHostResponse) SetResults(v []InfraHost) { } func (o InfraListHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableInfraListHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_list_service_response.go b/infra_mgmt/model_infra_list_service_response.go index cd671e5..5368ffb 100644 --- a/infra_mgmt/model_infra_list_service_response.go +++ b/infra_mgmt/model_infra_list_service_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -19,7 +19,7 @@ var _ MappedNullable = &InfraListServiceResponse{} // InfraListServiceResponse struct for InfraListServiceResponse type InfraListServiceResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` Results []InfraService `json:"results,omitempty"` } @@ -105,7 +105,7 @@ func (o *InfraListServiceResponse) SetResults(v []InfraService) { } func (o InfraListServiceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableInfraListServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_pool_info.go b/infra_mgmt/model_infra_pool_info.go index 7b5158e..f0d1c12 100644 --- a/infra_mgmt/model_infra_pool_info.go +++ b/infra_mgmt/model_infra_pool_info.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -141,7 +141,7 @@ func (o *InfraPoolInfo) SetPoolName(v string) { } func (o InfraPoolInfo) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableInfraPoolInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_replace_host_request.go b/infra_mgmt/model_infra_replace_host_request.go index 9d3a6da..14fd61a 100644 --- a/infra_mgmt/model_infra_replace_host_request.go +++ b/infra_mgmt/model_infra_replace_host_request.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -107,7 +107,7 @@ func (o *InfraReplaceHostRequest) SetTo(v string) { } func (o InfraReplaceHostRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableInfraReplaceHostRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_service.go b/infra_mgmt/model_infra_service.go index 99f51b6..2ae3169 100644 --- a/infra_mgmt/model_infra_service.go +++ b/infra_mgmt/model_infra_service.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -427,7 +427,7 @@ func (o *InfraService) SetUpdatedAt(v time.Time) { } func (o InfraService) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -504,5 +504,3 @@ func (v *NullableInfraService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_service_host_config.go b/infra_mgmt/model_infra_service_host_config.go index b183662..7478916 100644 --- a/infra_mgmt/model_infra_service_host_config.go +++ b/infra_mgmt/model_infra_service_host_config.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -278,7 +278,7 @@ func (o *InfraServiceHostConfig) SetUpgradedAt(v time.Time) { } func (o InfraServiceHostConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -346,5 +346,3 @@ func (v *NullableInfraServiceHostConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_short_service_status.go b/infra_mgmt/model_infra_short_service_status.go index cba90c9..058694e 100644 --- a/infra_mgmt/model_infra_short_service_status.go +++ b/infra_mgmt/model_infra_short_service_status.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -142,7 +142,7 @@ func (o *InfraShortServiceStatus) SetUpdatedAt(v time.Time) { } func (o InfraShortServiceStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -198,5 +198,3 @@ func (v *NullableInfraShortServiceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_unassign_tags_request.go b/infra_mgmt/model_infra_unassign_tags_request.go index 441a032..06d4f97 100644 --- a/infra_mgmt/model_infra_unassign_tags_request.go +++ b/infra_mgmt/model_infra_unassign_tags_request.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -20,7 +20,7 @@ var _ MappedNullable = &InfraUnassignTagsRequest{} // InfraUnassignTagsRequest struct for InfraUnassignTagsRequest type InfraUnassignTagsRequest struct { // The resource identifier. - Ids []string `json:"ids,omitempty"` + Ids []string `json:"ids,omitempty"` Keys []string `json:"keys,omitempty"` } @@ -106,7 +106,7 @@ func (o *InfraUnassignTagsRequest) SetKeys(v []string) { } func (o InfraUnassignTagsRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -159,5 +159,3 @@ func (v *NullableInfraUnassignTagsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_update_host_response.go b/infra_mgmt/model_infra_update_host_response.go index 9098325..c672f41 100644 --- a/infra_mgmt/model_infra_update_host_response.go +++ b/infra_mgmt/model_infra_update_host_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraUpdateHostResponse) SetResult(v InfraHost) { } func (o InfraUpdateHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraUpdateHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/model_infra_update_service_response.go b/infra_mgmt/model_infra_update_service_response.go index 7d5bfe2..8022ecb 100644 --- a/infra_mgmt/model_infra_update_service_response.go +++ b/infra_mgmt/model_infra_update_service_response.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ @@ -72,7 +72,7 @@ func (o *InfraUpdateServiceResponse) SetResult(v InfraService) { } func (o InfraUpdateServiceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableInfraUpdateServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/utils.go b/infra_mgmt/utils.go index 5c35153..582297a 100644 --- a/infra_mgmt/utils.go +++ b/infra_mgmt/utils.go @@ -1,7 +1,7 @@ /* Infrastructure Management API -The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- +The **Infrastructure Management API** provides a RESTful interface to manage Infrastructure Hosts and Services objects. The following is a list of the different Services and their string types (the string types are to be used with the APIs for the `service_type` field): | Service name | Service type | | ------ | ------ | | Access Authentication | authn | | Anycast | anycast | | Data Connector | cdc | | DHCP | dhcp | | DNS | dns | | DNS Forwarding Proxy | dfp | | NIOS Grid Connector | orpheus | | MS AD Sync | msad | | NTP | ntp | | BGP | bgp | | RIP | rip | | OSPF | ospf | --- ### Hosts API The Hosts API is used to manage the Infrastructure Host resources. These include various operations related to hosts such as viewing, creating, updating, replacing, disconnecting, and deleting Hosts. Management of Hosts is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Hosts tab. --- ### Services API The Services API is used to manage the Infrastructure Service resources (a.k.a. BloxOne applications). These include various operations related to hosts such as viewing, creating, updating, starting/stopping, configuring, and deleting Services. Management of Services is done from the Cloud Services Portal (CSP) by navigating to the Manage -> Infrastructure -> Services tab. --- ### Detail APIs The Detail APIs are read-only APIs used to list all the Infrastructure resources (Hosts and Services). Each resource record returned also contains information about its other associated resources and the status information for itself and the associated resource(s) (i.e., Host/Service status). --- API version: v1 */ diff --git a/infra_provision/api_ui_join_token.go b/infra_provision/api_ui_join_token.go index 4ad9648..8a966e1 100644 --- a/infra_provision/api_ui_join_token.go +++ b/infra_provision/api_ui_join_token.go @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type UIJoinTokenAPI interface { /* - UIJoinTokenCreate User can create a join token. Join token is random character string which is used for instant validation of new hosts. + UIJoinTokenCreate User can create a join token. Join token is random character string which is used for instant validation of new hosts. - Validation: -- "name" is required and should be unique. -- "description" is optioanl. + Validation: + - "name" is required and should be unique. + - "description" is optioanl. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenCreateRequest */ UIJoinTokenCreate(ctx context.Context) ApiUIJoinTokenCreateRequest @@ -41,11 +40,11 @@ type UIJoinTokenAPI interface { UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateRequest) (*HostactivationCreateJoinTokenResponse, *http.Response, error) /* - UIJoinTokenDelete User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever. + UIJoinTokenDelete User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiUIJoinTokenDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiUIJoinTokenDeleteRequest */ UIJoinTokenDelete(ctx context.Context, id string) ApiUIJoinTokenDeleteRequest @@ -53,10 +52,10 @@ type UIJoinTokenAPI interface { UIJoinTokenDeleteExecute(r ApiUIJoinTokenDeleteRequest) (*http.Response, error) /* - UIJoinTokenDeleteSet User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever. + UIJoinTokenDeleteSet User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenDeleteSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenDeleteSetRequest */ UIJoinTokenDeleteSet(ctx context.Context) ApiUIJoinTokenDeleteSetRequest @@ -64,12 +63,12 @@ type UIJoinTokenAPI interface { UIJoinTokenDeleteSetExecute(r ApiUIJoinTokenDeleteSetRequest) (*http.Response, error) /* - UIJoinTokenList User can list the join tokens for an account. + UIJoinTokenList User can list the join tokens for an account. - Both active and revoked join tokens are listed by default. + Both active and revoked join tokens are listed by default. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenListRequest */ UIJoinTokenList(ctx context.Context) ApiUIJoinTokenListRequest @@ -78,11 +77,11 @@ type UIJoinTokenAPI interface { UIJoinTokenListExecute(r ApiUIJoinTokenListRequest) (*HostactivationListJoinTokenResponse, *http.Response, error) /* - UIJoinTokenRead User can get the join token providing its resource id in the parameter. + UIJoinTokenRead User can get the join token providing its resource id in the parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiUIJoinTokenReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiUIJoinTokenReadRequest */ UIJoinTokenRead(ctx context.Context, id string) ApiUIJoinTokenReadRequest @@ -91,15 +90,15 @@ type UIJoinTokenAPI interface { UIJoinTokenReadExecute(r ApiUIJoinTokenReadRequest) (*HostactivationReadJoinTokenResponse, *http.Response, error) /* - UIJoinTokenUpdate User can modify the tags or expiration time of a join token. + UIJoinTokenUpdate User can modify the tags or expiration time of a join token. - Validation: Following fields is needed. Provide what needs to be -- "expires_at" -- "tags" + Validation: Following fields is needed. Provide what needs to be + - "expires_at" + - "tags" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiUIJoinTokenUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiUIJoinTokenUpdateRequest */ UIJoinTokenUpdate(ctx context.Context, id string) ApiUIJoinTokenUpdateRequest @@ -112,9 +111,9 @@ type UIJoinTokenAPI interface { type UIJoinTokenAPIService internal.Service type ApiUIJoinTokenCreateRequest struct { - ctx context.Context + ctx context.Context ApiService UIJoinTokenAPI - body *HostactivationJoinToken + body *HostactivationJoinToken } func (r ApiUIJoinTokenCreateRequest) Body(body HostactivationJoinToken) ApiUIJoinTokenCreateRequest { @@ -133,24 +132,25 @@ Validation: - "name" is required and should be unique. - "description" is optioanl. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenCreateRequest */ func (a *UIJoinTokenAPIService) UIJoinTokenCreate(ctx context.Context) ApiUIJoinTokenCreateRequest { return ApiUIJoinTokenCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return HostactivationCreateJoinTokenResponse +// +// @return HostactivationCreateJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateRequest) (*HostactivationCreateJoinTokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *HostactivationCreateJoinTokenResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *HostactivationCreateJoinTokenResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UIJoinTokenAPIService.UIJoinTokenCreate") @@ -232,9 +232,9 @@ func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateR } type ApiUIJoinTokenDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService UIJoinTokenAPI - id string + id string } func (r ApiUIJoinTokenDeleteRequest) Execute() (*http.Response, error) { @@ -244,24 +244,24 @@ func (r ApiUIJoinTokenDeleteRequest) Execute() (*http.Response, error) { /* UIJoinTokenDelete User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiUIJoinTokenDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiUIJoinTokenDeleteRequest */ func (a *UIJoinTokenAPIService) UIJoinTokenDelete(ctx context.Context, id string) ApiUIJoinTokenDeleteRequest { return ApiUIJoinTokenDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *UIJoinTokenAPIService) UIJoinTokenDeleteExecute(r ApiUIJoinTokenDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UIJoinTokenAPIService.UIJoinTokenDelete") @@ -333,9 +333,9 @@ func (a *UIJoinTokenAPIService) UIJoinTokenDeleteExecute(r ApiUIJoinTokenDeleteR } type ApiUIJoinTokenDeleteSetRequest struct { - ctx context.Context + ctx context.Context ApiService UIJoinTokenAPI - body *HostactivationDeleteJoinTokensRequest + body *HostactivationDeleteJoinTokensRequest } func (r ApiUIJoinTokenDeleteSetRequest) Body(body HostactivationDeleteJoinTokensRequest) ApiUIJoinTokenDeleteSetRequest { @@ -350,22 +350,22 @@ func (r ApiUIJoinTokenDeleteSetRequest) Execute() (*http.Response, error) { /* UIJoinTokenDeleteSet User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenDeleteSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenDeleteSetRequest */ func (a *UIJoinTokenAPIService) UIJoinTokenDeleteSet(ctx context.Context) ApiUIJoinTokenDeleteSetRequest { return ApiUIJoinTokenDeleteSetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *UIJoinTokenAPIService) UIJoinTokenDeleteSetExecute(r ApiUIJoinTokenDeleteSetRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UIJoinTokenAPIService.UIJoinTokenDeleteSet") @@ -441,42 +441,42 @@ func (a *UIJoinTokenAPIService) UIJoinTokenDeleteSetExecute(r ApiUIJoinTokenDele } type ApiUIJoinTokenListRequest struct { - ctx context.Context + ctx context.Context ApiService UIJoinTokenAPI - filter *string - orderBy *string - offset *int32 - limit *int32 - pageToken *string - tfilter *string - torderBy *string + filter *string + orderBy *string + offset *int32 + limit *int32 + pageToken *string + tfilter *string + torderBy *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 | +// 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 | func (r ApiUIJoinTokenListRequest) Filter(filter string) ApiUIJoinTokenListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiUIJoinTokenListRequest) OrderBy(orderBy string) ApiUIJoinTokenListRequest { r.orderBy = &orderBy return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiUIJoinTokenListRequest) Offset(offset int32) ApiUIJoinTokenListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiUIJoinTokenListRequest) Limit(limit int32) ApiUIJoinTokenListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiUIJoinTokenListRequest) PageToken(pageToken string) ApiUIJoinTokenListRequest { r.pageToken = &pageToken return r @@ -503,24 +503,25 @@ UIJoinTokenList User can list the join tokens for an account. Both active and revoked join tokens are listed by default. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenListRequest */ func (a *UIJoinTokenAPIService) UIJoinTokenList(ctx context.Context) ApiUIJoinTokenListRequest { return ApiUIJoinTokenListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return HostactivationListJoinTokenResponse +// +// @return HostactivationListJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenListExecute(r ApiUIJoinTokenListRequest) (*HostactivationListJoinTokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *HostactivationListJoinTokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *HostactivationListJoinTokenResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UIJoinTokenAPIService.UIJoinTokenList") @@ -618,13 +619,13 @@ func (a *UIJoinTokenAPIService) UIJoinTokenListExecute(r ApiUIJoinTokenListReque } type ApiUIJoinTokenReadRequest struct { - ctx context.Context + ctx context.Context ApiService UIJoinTokenAPI - id string - fields *string + id string + 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. +// 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. func (r ApiUIJoinTokenReadRequest) Fields(fields string) ApiUIJoinTokenReadRequest { r.fields = &fields return r @@ -637,26 +638,27 @@ func (r ApiUIJoinTokenReadRequest) Execute() (*HostactivationReadJoinTokenRespon /* UIJoinTokenRead User can get the join token providing its resource id in the parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiUIJoinTokenReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiUIJoinTokenReadRequest */ func (a *UIJoinTokenAPIService) UIJoinTokenRead(ctx context.Context, id string) ApiUIJoinTokenReadRequest { return ApiUIJoinTokenReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return HostactivationReadJoinTokenResponse +// +// @return HostactivationReadJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenReadExecute(r ApiUIJoinTokenReadRequest) (*HostactivationReadJoinTokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *HostactivationReadJoinTokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *HostactivationReadJoinTokenResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UIJoinTokenAPIService.UIJoinTokenRead") @@ -737,10 +739,10 @@ func (a *UIJoinTokenAPIService) UIJoinTokenReadExecute(r ApiUIJoinTokenReadReque } type ApiUIJoinTokenUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService UIJoinTokenAPI - id string - body *HostactivationJoinToken + id string + body *HostactivationJoinToken } func (r ApiUIJoinTokenUpdateRequest) Body(body HostactivationJoinToken) ApiUIJoinTokenUpdateRequest { @@ -759,26 +761,27 @@ Validation: Following fields is needed. Provide what needs to be - "expires_at" - "tags" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiUIJoinTokenUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiUIJoinTokenUpdateRequest */ func (a *UIJoinTokenAPIService) UIJoinTokenUpdate(ctx context.Context, id string) ApiUIJoinTokenUpdateRequest { return ApiUIJoinTokenUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return HostactivationUpdateJoinTokenResponse +// +// @return HostactivationUpdateJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenUpdateExecute(r ApiUIJoinTokenUpdateRequest) (*HostactivationUpdateJoinTokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *HostactivationUpdateJoinTokenResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *HostactivationUpdateJoinTokenResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UIJoinTokenAPIService.UIJoinTokenUpdate") diff --git a/infra_provision/api_uicsr.go b/infra_provision/api_uicsr.go index 8383d41..45b5cce 100644 --- a/infra_provision/api_uicsr.go +++ b/infra_provision/api_uicsr.go @@ -18,18 +18,17 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type UICSRAPI interface { /* - UICSRApprove Marks the certificate signing request as approved. The host activation service will then continue with the signing process. + UICSRApprove Marks the certificate signing request as approved. The host activation service will then continue with the signing process. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param activationCode activation code is used by the clients to track the approval of the CSR - @return ApiUICSRApproveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param activationCode activation code is used by the clients to track the approval of the CSR + @return ApiUICSRApproveRequest */ UICSRApprove(ctx context.Context, activationCode string) ApiUICSRApproveRequest @@ -38,11 +37,11 @@ type UICSRAPI interface { UICSRApproveExecute(r ApiUICSRApproveRequest) (map[string]interface{}, *http.Response, error) /* - UICSRDeny Marks the certificate signing request as denied. + UICSRDeny Marks the certificate signing request as denied. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param activationCode activation code is used by the clients to track the approval of the CSR - @return ApiUICSRDenyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param activationCode activation code is used by the clients to track the approval of the CSR + @return ApiUICSRDenyRequest */ UICSRDeny(ctx context.Context, activationCode string) ApiUICSRDenyRequest @@ -51,10 +50,10 @@ type UICSRAPI interface { UICSRDenyExecute(r ApiUICSRDenyRequest) (map[string]interface{}, *http.Response, error) /* - UICSRList User can list the certificate signing requests for an account. + UICSRList User can list the certificate signing requests for an account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUICSRListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUICSRListRequest */ UICSRList(ctx context.Context) ApiUICSRListRequest @@ -63,16 +62,16 @@ type UICSRAPI interface { UICSRListExecute(r ApiUICSRListRequest) (*HostactivationListCSRsResponse, *http.Response, error) /* - UICSRRevoke Invalidates a certificate by adding it to a certificate revocation list. + UICSRRevoke Invalidates a certificate by adding it to a certificate revocation list. - The user can revoke the cert from the cloud (for example, if in case a host is compromised). -Validation: -- one of "cert_serial" or "ophid" should be provided -- "revoke_reason" is optional + The user can revoke the cert from the cloud (for example, if in case a host is compromised). + Validation: + - one of "cert_serial" or "ophid" should be provided + - "revoke_reason" is optional - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required - @return ApiUICSRRevokeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required + @return ApiUICSRRevokeRequest */ UICSRRevoke(ctx context.Context, certSerial string) ApiUICSRRevokeRequest @@ -81,16 +80,16 @@ Validation: UICSRRevokeExecute(r ApiUICSRRevokeRequest) (map[string]interface{}, *http.Response, error) /* - UICSRRevoke2 Invalidates a certificate by adding it to a certificate revocation list. + UICSRRevoke2 Invalidates a certificate by adding it to a certificate revocation list. - The user can revoke the cert from the cloud (for example, if in case a host is compromised). -Validation: -- one of "cert_serial" or "ophid" should be provided -- "revoke_reason" is optional + The user can revoke the cert from the cloud (for example, if in case a host is compromised). + Validation: + - one of "cert_serial" or "ophid" should be provided + - "revoke_reason" is optional - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . - @return ApiUICSRRevoke2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . + @return ApiUICSRRevoke2Request */ UICSRRevoke2(ctx context.Context, ophid string) ApiUICSRRevoke2Request @@ -103,10 +102,10 @@ Validation: type UICSRAPIService internal.Service type ApiUICSRApproveRequest struct { - ctx context.Context - ApiService UICSRAPI + ctx context.Context + ApiService UICSRAPI activationCode string - body *HostactivationApproveCSRRequest + body *HostactivationApproveCSRRequest } func (r ApiUICSRApproveRequest) Body(body HostactivationApproveCSRRequest) ApiUICSRApproveRequest { @@ -121,26 +120,27 @@ func (r ApiUICSRApproveRequest) Execute() (map[string]interface{}, *http.Respons /* UICSRApprove Marks the certificate signing request as approved. The host activation service will then continue with the signing process. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param activationCode activation code is used by the clients to track the approval of the CSR - @return ApiUICSRApproveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param activationCode activation code is used by the clients to track the approval of the CSR + @return ApiUICSRApproveRequest */ func (a *UICSRAPIService) UICSRApprove(ctx context.Context, activationCode string) ApiUICSRApproveRequest { return ApiUICSRApproveRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, activationCode: activationCode, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *UICSRAPIService) UICSRApproveExecute(r ApiUICSRApproveRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UICSRAPIService.UICSRApprove") @@ -223,10 +223,10 @@ func (a *UICSRAPIService) UICSRApproveExecute(r ApiUICSRApproveRequest) (map[str } type ApiUICSRDenyRequest struct { - ctx context.Context - ApiService UICSRAPI + ctx context.Context + ApiService UICSRAPI activationCode string - body *HostactivationDenyCSRRequest + body *HostactivationDenyCSRRequest } func (r ApiUICSRDenyRequest) Body(body HostactivationDenyCSRRequest) ApiUICSRDenyRequest { @@ -241,26 +241,27 @@ func (r ApiUICSRDenyRequest) Execute() (map[string]interface{}, *http.Response, /* UICSRDeny Marks the certificate signing request as denied. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param activationCode activation code is used by the clients to track the approval of the CSR - @return ApiUICSRDenyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param activationCode activation code is used by the clients to track the approval of the CSR + @return ApiUICSRDenyRequest */ func (a *UICSRAPIService) UICSRDeny(ctx context.Context, activationCode string) ApiUICSRDenyRequest { return ApiUICSRDenyRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, activationCode: activationCode, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *UICSRAPIService) UICSRDenyExecute(r ApiUICSRDenyRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UICSRAPIService.UICSRDeny") @@ -343,42 +344,42 @@ func (a *UICSRAPIService) UICSRDenyExecute(r ApiUICSRDenyRequest) (map[string]in } type ApiUICSRListRequest struct { - ctx context.Context + ctx context.Context ApiService UICSRAPI - filter *string - orderBy *string - offset *int32 - limit *int32 - pageToken *string - tfilter *string - torderBy *string + filter *string + orderBy *string + offset *int32 + limit *int32 + pageToken *string + tfilter *string + torderBy *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 | +// 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 | func (r ApiUICSRListRequest) Filter(filter string) ApiUICSRListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiUICSRListRequest) OrderBy(orderBy string) ApiUICSRListRequest { r.orderBy = &orderBy return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiUICSRListRequest) Offset(offset int32) ApiUICSRListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiUICSRListRequest) Limit(limit int32) ApiUICSRListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiUICSRListRequest) PageToken(pageToken string) ApiUICSRListRequest { r.pageToken = &pageToken return r @@ -403,24 +404,25 @@ func (r ApiUICSRListRequest) Execute() (*HostactivationListCSRsResponse, *http.R /* UICSRList User can list the certificate signing requests for an account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUICSRListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUICSRListRequest */ func (a *UICSRAPIService) UICSRList(ctx context.Context) ApiUICSRListRequest { return ApiUICSRListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return HostactivationListCSRsResponse +// +// @return HostactivationListCSRsResponse func (a *UICSRAPIService) UICSRListExecute(r ApiUICSRListRequest) (*HostactivationListCSRsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *HostactivationListCSRsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *HostactivationListCSRsResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UICSRAPIService.UICSRList") @@ -518,10 +520,10 @@ func (a *UICSRAPIService) UICSRListExecute(r ApiUICSRListRequest) (*Hostactivati } type ApiUICSRRevokeRequest struct { - ctx context.Context + ctx context.Context ApiService UICSRAPI certSerial string - body *HostactivationRevokeCertRequest + body *HostactivationRevokeCertRequest } func (r ApiUICSRRevokeRequest) Body(body HostactivationRevokeCertRequest) ApiUICSRRevokeRequest { @@ -541,26 +543,27 @@ Validation: - one of "cert_serial" or "ophid" should be provided - "revoke_reason" is optional - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required - @return ApiUICSRRevokeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required + @return ApiUICSRRevokeRequest */ func (a *UICSRAPIService) UICSRRevoke(ctx context.Context, certSerial string) ApiUICSRRevokeRequest { return ApiUICSRRevokeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, certSerial: certSerial, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *UICSRAPIService) UICSRRevokeExecute(r ApiUICSRRevokeRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UICSRAPIService.UICSRRevoke") @@ -643,10 +646,10 @@ func (a *UICSRAPIService) UICSRRevokeExecute(r ApiUICSRRevokeRequest) (map[strin } type ApiUICSRRevoke2Request struct { - ctx context.Context + ctx context.Context ApiService UICSRAPI - ophid string - body *HostactivationRevokeCertRequest + ophid string + body *HostactivationRevokeCertRequest } func (r ApiUICSRRevoke2Request) Body(body HostactivationRevokeCertRequest) ApiUICSRRevoke2Request { @@ -666,26 +669,27 @@ Validation: - one of "cert_serial" or "ophid" should be provided - "revoke_reason" is optional - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . - @return ApiUICSRRevoke2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . + @return ApiUICSRRevoke2Request */ func (a *UICSRAPIService) UICSRRevoke2(ctx context.Context, ophid string) ApiUICSRRevoke2Request { return ApiUICSRRevoke2Request{ ApiService: a, - ctx: ctx, - ophid: ophid, + ctx: ctx, + ophid: ophid, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *UICSRAPIService) UICSRRevoke2Execute(r ApiUICSRRevoke2Request) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UICSRAPIService.UICSRRevoke2") diff --git a/infra_provision/client.go b/infra_provision/client.go index fc02639..fe18f4d 100644 --- a/infra_provision/client.go +++ b/infra_provision/client.go @@ -11,7 +11,7 @@ API version: v1 package infra_provision import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/host-activation/v1" @@ -19,10 +19,10 @@ var ServiceBasePath = "/host-activation/v1" // APIClient manages communication with the Host Activation Service API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services - UICSRAPI UICSRAPI + UICSRAPI UICSRAPI UIJoinTokenAPI UIJoinTokenAPI } @@ -30,7 +30,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.UICSRAPI = (*UICSRAPIService)(&c.Common) diff --git a/infra_provision/model_api_page_info.go b/infra_provision/model_api_page_info.go index e36b961..b7306aa 100644 --- a/infra_provision/model_api_page_info.go +++ b/infra_provision/model_api_page_info.go @@ -141,7 +141,7 @@ func (o *ApiPageInfo) SetSize(v int32) { } func (o ApiPageInfo) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableApiPageInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_approve_csr_request.go b/infra_provision/model_hostactivation_approve_csr_request.go index 04bbf97..738087d 100644 --- a/infra_provision/model_hostactivation_approve_csr_request.go +++ b/infra_provision/model_hostactivation_approve_csr_request.go @@ -72,7 +72,7 @@ func (o *HostactivationApproveCSRRequest) SetActivationCode(v string) { } func (o HostactivationApproveCSRRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableHostactivationApproveCSRRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_create_join_token_response.go b/infra_provision/model_hostactivation_create_join_token_response.go index 2f9e110..928a3a4 100644 --- a/infra_provision/model_hostactivation_create_join_token_response.go +++ b/infra_provision/model_hostactivation_create_join_token_response.go @@ -19,8 +19,8 @@ var _ MappedNullable = &HostactivationCreateJoinTokenResponse{} // HostactivationCreateJoinTokenResponse struct for HostactivationCreateJoinTokenResponse type HostactivationCreateJoinTokenResponse struct { - JoinToken *string `json:"join_token,omitempty"` - Result *HostactivationJoinToken `json:"result,omitempty"` + JoinToken *string `json:"join_token,omitempty"` + Result *HostactivationJoinToken `json:"result,omitempty"` } // NewHostactivationCreateJoinTokenResponse instantiates a new HostactivationCreateJoinTokenResponse object @@ -105,7 +105,7 @@ func (o *HostactivationCreateJoinTokenResponse) SetResult(v HostactivationJoinTo } func (o HostactivationCreateJoinTokenResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableHostactivationCreateJoinTokenResponse) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_csr.go b/infra_provision/model_hostactivation_csr.go index 1bf4d09..e0dfc54 100644 --- a/infra_provision/model_hostactivation_csr.go +++ b/infra_provision/model_hostactivation_csr.go @@ -20,19 +20,19 @@ var _ MappedNullable = &HostactivationCSR{} // HostactivationCSR Represents a certificate signing request from an on-prem host. type HostactivationCSR struct { - ActivationCode *string `json:"activation_code,omitempty"` - ClientIp *TypesInetValue `json:"client_ip,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Csr *string `json:"csr,omitempty"` - HostSerial *string `json:"host_serial,omitempty"` + ActivationCode *string `json:"activation_code,omitempty"` + ClientIp *TypesInetValue `json:"client_ip,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Csr *string `json:"csr,omitempty"` + HostSerial *string `json:"host_serial,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` JoinToken *HostactivationJoinToken `json:"join_token,omitempty"` - Ophid *string `json:"ophid,omitempty"` - Signature *string `json:"signature,omitempty"` - SrcIp *TypesInetValue `json:"src_ip,omitempty"` - State *HostactivationCSRState `json:"state,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Ophid *string `json:"ophid,omitempty"` + Signature *string `json:"signature,omitempty"` + SrcIp *TypesInetValue `json:"src_ip,omitempty"` + State *HostactivationCSRState `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } // NewHostactivationCSR instantiates a new HostactivationCSR object @@ -441,7 +441,7 @@ func (o *HostactivationCSR) SetUpdatedAt(v time.Time) { } func (o HostactivationCSR) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -524,5 +524,3 @@ func (v *NullableHostactivationCSR) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_csr_state.go b/infra_provision/model_hostactivation_csr_state.go index 379e99c..d658147 100644 --- a/infra_provision/model_hostactivation_csr_state.go +++ b/infra_provision/model_hostactivation_csr_state.go @@ -20,12 +20,12 @@ type HostactivationCSRState string // List of hostactivationCSRState const ( - HOSTACTIVATIONCSRSTATE_UNKNOWN HostactivationCSRState = "UNKNOWN" - HOSTACTIVATIONCSRSTATE_NEW HostactivationCSRState = "NEW" + HOSTACTIVATIONCSRSTATE_UNKNOWN HostactivationCSRState = "UNKNOWN" + HOSTACTIVATIONCSRSTATE_NEW HostactivationCSRState = "NEW" HOSTACTIVATIONCSRSTATE_VERIFIED HostactivationCSRState = "VERIFIED" - HOSTACTIVATIONCSRSTATE_DENIED HostactivationCSRState = "DENIED" - HOSTACTIVATIONCSRSTATE_TIMEOUT HostactivationCSRState = "TIMEOUT" - HOSTACTIVATIONCSRSTATE_RENEWED HostactivationCSRState = "RENEWED" + HOSTACTIVATIONCSRSTATE_DENIED HostactivationCSRState = "DENIED" + HOSTACTIVATIONCSRSTATE_TIMEOUT HostactivationCSRState = "TIMEOUT" + HOSTACTIVATIONCSRSTATE_RENEWED HostactivationCSRState = "RENEWED" ) // All allowed values of HostactivationCSRState enum @@ -116,4 +116,3 @@ func (v *NullableHostactivationCSRState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/infra_provision/model_hostactivation_delete_join_tokens_request.go b/infra_provision/model_hostactivation_delete_join_tokens_request.go index d100a35..939207d 100644 --- a/infra_provision/model_hostactivation_delete_join_tokens_request.go +++ b/infra_provision/model_hostactivation_delete_join_tokens_request.go @@ -73,7 +73,7 @@ func (o *HostactivationDeleteJoinTokensRequest) SetIds(v []string) { } func (o HostactivationDeleteJoinTokensRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableHostactivationDeleteJoinTokensRequest) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_deny_csr_request.go b/infra_provision/model_hostactivation_deny_csr_request.go index a61da7a..b826ac3 100644 --- a/infra_provision/model_hostactivation_deny_csr_request.go +++ b/infra_provision/model_hostactivation_deny_csr_request.go @@ -72,7 +72,7 @@ func (o *HostactivationDenyCSRRequest) SetActivationCode(v string) { } func (o HostactivationDenyCSRRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableHostactivationDenyCSRRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_join_token.go b/infra_provision/model_hostactivation_join_token.go index fec3ed6..d4ff235 100644 --- a/infra_provision/model_hostactivation_join_token.go +++ b/infra_provision/model_hostactivation_join_token.go @@ -20,18 +20,18 @@ var _ MappedNullable = &HostactivationJoinToken{} // HostactivationJoinToken struct for HostactivationJoinToken type HostactivationJoinToken struct { - DeletedAt *time.Time `json:"deleted_at,omitempty"` - Description *string `json:"description,omitempty"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` + DeletedAt *time.Time `json:"deleted_at,omitempty"` + Description *string `json:"description,omitempty"` + ExpiresAt *time.Time `json:"expires_at,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` - LastUsedAt *time.Time `json:"last_used_at,omitempty"` - Name string `json:"name"` - Status *JoinTokenJoinTokenStatus `json:"status,omitempty"` - Tags map[string]interface{} `json:"tags,omitempty"` + Id *string `json:"id,omitempty"` + LastUsedAt *time.Time `json:"last_used_at,omitempty"` + Name string `json:"name"` + Status *JoinTokenJoinTokenStatus `json:"status,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` // first half of the token. - TokenId *string `json:"token_id,omitempty"` - UseCounter *int64 `json:"use_counter,omitempty"` + TokenId *string `json:"token_id,omitempty"` + UseCounter *int64 `json:"use_counter,omitempty"` } // NewHostactivationJoinToken instantiates a new HostactivationJoinToken object @@ -369,7 +369,7 @@ func (o *HostactivationJoinToken) SetUseCounter(v int64) { } func (o HostactivationJoinToken) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -444,5 +444,3 @@ func (v *NullableHostactivationJoinToken) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_list_csrs_response.go b/infra_provision/model_hostactivation_list_csrs_response.go index 581aa50..6c76eeb 100644 --- a/infra_provision/model_hostactivation_list_csrs_response.go +++ b/infra_provision/model_hostactivation_list_csrs_response.go @@ -19,7 +19,7 @@ var _ MappedNullable = &HostactivationListCSRsResponse{} // HostactivationListCSRsResponse struct for HostactivationListCSRsResponse type HostactivationListCSRsResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` Results []HostactivationCSR `json:"results,omitempty"` } @@ -105,7 +105,7 @@ func (o *HostactivationListCSRsResponse) SetResults(v []HostactivationCSR) { } func (o HostactivationListCSRsResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableHostactivationListCSRsResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_list_join_token_response.go b/infra_provision/model_hostactivation_list_join_token_response.go index ac1bd69..3770180 100644 --- a/infra_provision/model_hostactivation_list_join_token_response.go +++ b/infra_provision/model_hostactivation_list_join_token_response.go @@ -19,7 +19,7 @@ var _ MappedNullable = &HostactivationListJoinTokenResponse{} // HostactivationListJoinTokenResponse struct for HostactivationListJoinTokenResponse type HostactivationListJoinTokenResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` Results []HostactivationJoinToken `json:"results,omitempty"` } @@ -105,7 +105,7 @@ func (o *HostactivationListJoinTokenResponse) SetResults(v []HostactivationJoinT } func (o HostactivationListJoinTokenResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableHostactivationListJoinTokenResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_read_join_token_response.go b/infra_provision/model_hostactivation_read_join_token_response.go index cb93ba3..ad58d58 100644 --- a/infra_provision/model_hostactivation_read_join_token_response.go +++ b/infra_provision/model_hostactivation_read_join_token_response.go @@ -72,7 +72,7 @@ func (o *HostactivationReadJoinTokenResponse) SetResult(v HostactivationJoinToke } func (o HostactivationReadJoinTokenResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableHostactivationReadJoinTokenResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_revoke_cert_request.go b/infra_provision/model_hostactivation_revoke_cert_request.go index d73935f..f3ef47a 100644 --- a/infra_provision/model_hostactivation_revoke_cert_request.go +++ b/infra_provision/model_hostactivation_revoke_cert_request.go @@ -21,7 +21,7 @@ var _ MappedNullable = &HostactivationRevokeCertRequest{} type HostactivationRevokeCertRequest struct { CertSerial *string `json:"cert_serial,omitempty"` // On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . - Ophid *string `json:"ophid,omitempty"` + Ophid *string `json:"ophid,omitempty"` RevokeReason *string `json:"revoke_reason,omitempty"` } @@ -139,7 +139,7 @@ func (o *HostactivationRevokeCertRequest) SetRevokeReason(v string) { } func (o HostactivationRevokeCertRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -195,5 +195,3 @@ func (v *NullableHostactivationRevokeCertRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_hostactivation_update_join_token_response.go b/infra_provision/model_hostactivation_update_join_token_response.go index 08864f4..b103f2f 100644 --- a/infra_provision/model_hostactivation_update_join_token_response.go +++ b/infra_provision/model_hostactivation_update_join_token_response.go @@ -72,7 +72,7 @@ func (o *HostactivationUpdateJoinTokenResponse) SetResult(v HostactivationJoinTo } func (o HostactivationUpdateJoinTokenResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableHostactivationUpdateJoinTokenResponse) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_join_token_join_token_status.go b/infra_provision/model_join_token_join_token_status.go index 7396c7d..80eb50a 100644 --- a/infra_provision/model_join_token_join_token_status.go +++ b/infra_provision/model_join_token_join_token_status.go @@ -21,7 +21,7 @@ type JoinTokenJoinTokenStatus string // List of JoinTokenJoinTokenStatus const ( JOINTOKENJOINTOKENSTATUS_UNKNOWN JoinTokenJoinTokenStatus = "UNKNOWN" - JOINTOKENJOINTOKENSTATUS_ACTIVE JoinTokenJoinTokenStatus = "ACTIVE" + JOINTOKENJOINTOKENSTATUS_ACTIVE JoinTokenJoinTokenStatus = "ACTIVE" JOINTOKENJOINTOKENSTATUS_EXPIRED JoinTokenJoinTokenStatus = "EXPIRED" JOINTOKENJOINTOKENSTATUS_REVOKED JoinTokenJoinTokenStatus = "REVOKED" ) @@ -112,4 +112,3 @@ func (v *NullableJoinTokenJoinTokenStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/infra_provision/model_types_inet_value.go b/infra_provision/model_types_inet_value.go index e08622c..ffe6812 100644 --- a/infra_provision/model_types_inet_value.go +++ b/infra_provision/model_types_inet_value.go @@ -72,7 +72,7 @@ func (o *TypesInetValue) SetValue(v string) { } func (o TypesInetValue) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableTypesInetValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_provision/model_types_json_value.go b/infra_provision/model_types_json_value.go index 75229b1..5a09701 100644 --- a/infra_provision/model_types_json_value.go +++ b/infra_provision/model_types_json_value.go @@ -72,7 +72,7 @@ func (o *TypesJSONValue) SetValue(v string) { } func (o TypesJSONValue) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableTypesJSONValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/api_address.go b/ipam/api_address.go index a41062e..f6acc99 100644 --- a/ipam/api_address.go +++ b/ipam/api_address.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type AddressAPI interface { /* - AddressCreate Create the IP address. + AddressCreate Create the IP address. - Use this method to create an __Address__ object. -The __Address__ object represents any single IP address within a given IP space. + Use this method to create an __Address__ object. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressCreateRequest */ AddressCreate(ctx context.Context) ApiAddressCreateRequest @@ -40,14 +39,14 @@ The __Address__ object represents any single IP address within a given IP space. AddressCreateExecute(r ApiAddressCreateRequest) (*IpamsvcCreateAddressResponse, *http.Response, error) /* - AddressDelete Move the IP address to the recycle bin. + AddressDelete Move the IP address to the recycle bin. - Use this method to move an __Address__ object to the recycle bin. -The __Address__ object represents any single IP address within a given IP space. + Use this method to move an __Address__ object to the recycle bin. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressDeleteRequest */ AddressDelete(ctx context.Context, id string) ApiAddressDeleteRequest @@ -55,13 +54,13 @@ The __Address__ object represents any single IP address within a given IP space. AddressDeleteExecute(r ApiAddressDeleteRequest) (*http.Response, error) /* - AddressList Retrieve IP addresses. + AddressList Retrieve IP addresses. - Use this method to retrieve __Address__ objects. -The __Address__ object represents any single IP address within a given IP space. + Use this method to retrieve __Address__ objects. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressListRequest */ AddressList(ctx context.Context) ApiAddressListRequest @@ -70,14 +69,14 @@ The __Address__ object represents any single IP address within a given IP space. AddressListExecute(r ApiAddressListRequest) (*IpamsvcListAddressResponse, *http.Response, error) /* - AddressRead Retrieve the IP address. + AddressRead Retrieve the IP address. - Use this method to retrieve an __Address__ object. -The __Address__ object represents any single IP address within a given IP space. + Use this method to retrieve an __Address__ object. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressReadRequest */ AddressRead(ctx context.Context, id string) ApiAddressReadRequest @@ -86,14 +85,14 @@ The __Address__ object represents any single IP address within a given IP space. AddressReadExecute(r ApiAddressReadRequest) (*IpamsvcReadAddressResponse, *http.Response, error) /* - AddressUpdate Update the IP address. + AddressUpdate Update the IP address. - Use this method to update an __Address__ object. -The __Address__ object represents any single IP address within a given IP space. + Use this method to update an __Address__ object. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressUpdateRequest */ AddressUpdate(ctx context.Context, id string) ApiAddressUpdateRequest @@ -106,9 +105,9 @@ The __Address__ object represents any single IP address within a given IP space. type AddressAPIService internal.Service type ApiAddressCreateRequest struct { - ctx context.Context + ctx context.Context ApiService AddressAPI - body *IpamsvcAddress + body *IpamsvcAddress } func (r ApiAddressCreateRequest) Body(body IpamsvcAddress) ApiAddressCreateRequest { @@ -126,24 +125,25 @@ AddressCreate Create the IP address. Use this method to create an __Address__ object. The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressCreateRequest */ func (a *AddressAPIService) AddressCreate(ctx context.Context) ApiAddressCreateRequest { return ApiAddressCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateAddressResponse +// +// @return IpamsvcCreateAddressResponse func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*IpamsvcCreateAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateAddressResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressAPIService.AddressCreate") @@ -225,9 +225,9 @@ func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*Ip } type ApiAddressDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService AddressAPI - id string + id string } func (r ApiAddressDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ AddressDelete Move the IP address to the recycle bin. Use this method to move an __Address__ object to the recycle bin. The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressDeleteRequest */ func (a *AddressAPIService) AddressDelete(ctx context.Context, id string) ApiAddressDeleteRequest { return ApiAddressDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *AddressAPIService) AddressDeleteExecute(r ApiAddressDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressAPIService.AddressDelete") @@ -329,51 +329,51 @@ func (a *AddressAPIService) AddressDeleteExecute(r ApiAddressDeleteRequest) (*ht } type ApiAddressListRequest struct { - ctx context.Context - ApiService AddressAPI - filter *string - orderBy *string - fields *string - offset *int32 - limit *int32 - pageToken *string - scope *string + ctx context.Context + ApiService AddressAPI + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + pageToken *string + scope *string addressState *string - torderBy *string - tfilter *string + torderBy *string + tfilter *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 | +// 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 | func (r ApiAddressListRequest) Filter(filter string) ApiAddressListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiAddressListRequest) OrderBy(orderBy string) ApiAddressListRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiAddressListRequest) Fields(fields string) ApiAddressListRequest { r.fields = &fields return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiAddressListRequest) Offset(offset int32) ApiAddressListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiAddressListRequest) Limit(limit int32) ApiAddressListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiAddressListRequest) PageToken(pageToken string) ApiAddressListRequest { r.pageToken = &pageToken return r @@ -411,24 +411,25 @@ AddressList Retrieve IP addresses. Use this method to retrieve __Address__ objects. The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressListRequest */ func (a *AddressAPIService) AddressList(ctx context.Context) ApiAddressListRequest { return ApiAddressListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListAddressResponse +// +// @return IpamsvcListAddressResponse func (a *AddressAPIService) AddressListExecute(r ApiAddressListRequest) (*IpamsvcListAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListAddressResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressAPIService.AddressList") @@ -535,13 +536,13 @@ func (a *AddressAPIService) AddressListExecute(r ApiAddressListRequest) (*Ipamsv } type ApiAddressReadRequest struct { - ctx context.Context + ctx context.Context ApiService AddressAPI - id string - fields *string + id string + 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. +// 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. func (r ApiAddressReadRequest) Fields(fields string) ApiAddressReadRequest { r.fields = &fields return r @@ -557,26 +558,27 @@ AddressRead Retrieve the IP address. Use this method to retrieve an __Address__ object. The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressReadRequest */ func (a *AddressAPIService) AddressRead(ctx context.Context, id string) ApiAddressReadRequest { return ApiAddressReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadAddressResponse +// +// @return IpamsvcReadAddressResponse func (a *AddressAPIService) AddressReadExecute(r ApiAddressReadRequest) (*IpamsvcReadAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadAddressResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressAPIService.AddressRead") @@ -657,10 +659,10 @@ func (a *AddressAPIService) AddressReadExecute(r ApiAddressReadRequest) (*Ipamsv } type ApiAddressUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService AddressAPI - id string - body *IpamsvcAddress + id string + body *IpamsvcAddress } func (r ApiAddressUpdateRequest) Body(body IpamsvcAddress) ApiAddressUpdateRequest { @@ -678,26 +680,27 @@ AddressUpdate Update the IP address. Use this method to update an __Address__ object. The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressUpdateRequest */ func (a *AddressAPIService) AddressUpdate(ctx context.Context, id string) ApiAddressUpdateRequest { return ApiAddressUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateAddressResponse +// +// @return IpamsvcUpdateAddressResponse func (a *AddressAPIService) AddressUpdateExecute(r ApiAddressUpdateRequest) (*IpamsvcUpdateAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateAddressResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressAPIService.AddressUpdate") diff --git a/ipam/api_address_block.go b/ipam/api_address_block.go index 12b1ba1..c2047b0 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type AddressBlockAPI interface { /* - AddressBlockCopy Copy the address block. + AddressBlockCopy Copy the address block. - Use this method to copy an __AddressBlock__ object. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to copy an __AddressBlock__ object. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCopyRequest */ AddressBlockCopy(ctx context.Context, id string) ApiAddressBlockCopyRequest @@ -41,13 +40,13 @@ The __AddressBlock__ object allows a uniform representation of the address space AddressBlockCopyExecute(r ApiAddressBlockCopyRequest) (*IpamsvcCopyAddressBlockResponse, *http.Response, error) /* - AddressBlockCreate Create the address block. + AddressBlockCreate Create the address block. - Use this method to create an __AddressBlock__ object. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to create an __AddressBlock__ object. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressBlockCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressBlockCreateRequest */ AddressBlockCreate(ctx context.Context) ApiAddressBlockCreateRequest @@ -56,14 +55,14 @@ The __AddressBlock__ object allows a uniform representation of the address space AddressBlockCreateExecute(r ApiAddressBlockCreateRequest) (*IpamsvcCreateAddressBlockResponse, *http.Response, error) /* - AddressBlockCreateNextAvailableAB Create the Next Available Address Block object. + AddressBlockCreateNextAvailableAB Create the Next Available Address Block object. - Use this method to create a Next Available __AddressBlock__ object. -The Next Available Address Block is a generator that allocates one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. + Use this method to create a Next Available __AddressBlock__ object. + The Next Available Address Block is a generator that allocates one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCreateNextAvailableABRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCreateNextAvailableABRequest */ AddressBlockCreateNextAvailableAB(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableABRequest @@ -72,14 +71,14 @@ The Next Available Address Block is a generator that allocates one or more _ipam AddressBlockCreateNextAvailableABExecute(r ApiAddressBlockCreateNextAvailableABRequest) (*IpamsvcCreateNextAvailableABResponse, *http.Response, error) /* - AddressBlockCreateNextAvailableIP Allocate the next available IP address. + AddressBlockCreateNextAvailableIP Allocate the next available IP address. - Use this method to allocate the next available IP address. -This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. + Use this method to allocate the next available IP address. + This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCreateNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCreateNextAvailableIPRequest */ AddressBlockCreateNextAvailableIP(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableIPRequest @@ -88,14 +87,14 @@ This allocates one or more __Address__ (_ipam/address_) resource from available AddressBlockCreateNextAvailableIPExecute(r ApiAddressBlockCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) /* - AddressBlockCreateNextAvailableSubnet Create the Next Available Subnet object. + AddressBlockCreateNextAvailableSubnet Create the Next Available Subnet object. - Use this method to create a Next Available __Subnet__ object. -The Next Available Subnet is a generator that allocates one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. + Use this method to create a Next Available __Subnet__ object. + The Next Available Subnet is a generator that allocates one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCreateNextAvailableSubnetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCreateNextAvailableSubnetRequest */ AddressBlockCreateNextAvailableSubnet(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableSubnetRequest @@ -104,14 +103,14 @@ The Next Available Subnet is a generator that allocates one or more _ipam/subnet AddressBlockCreateNextAvailableSubnetExecute(r ApiAddressBlockCreateNextAvailableSubnetRequest) (*IpamsvcCreateNextAvailableSubnetResponse, *http.Response, error) /* - AddressBlockDelete Move the address block to the recycle bin. + AddressBlockDelete Move the address block to the recycle bin. - Use this method to move an __AddressBlock__ object to the recycle bin. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to move an __AddressBlock__ object to the recycle bin. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockDeleteRequest */ AddressBlockDelete(ctx context.Context, id string) ApiAddressBlockDeleteRequest @@ -119,13 +118,13 @@ The __AddressBlock__ object allows a uniform representation of the address space AddressBlockDeleteExecute(r ApiAddressBlockDeleteRequest) (*http.Response, error) /* - AddressBlockList Retrieve the address blocks. + AddressBlockList Retrieve the address blocks. - Use this method to retrieve __AddressBlock__ objects. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to retrieve __AddressBlock__ objects. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressBlockListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressBlockListRequest */ AddressBlockList(ctx context.Context) ApiAddressBlockListRequest @@ -134,14 +133,14 @@ The __AddressBlock__ object allows a uniform representation of the address space AddressBlockListExecute(r ApiAddressBlockListRequest) (*IpamsvcListAddressBlockResponse, *http.Response, error) /* - AddressBlockListNextAvailableAB List Next Available Address Block objects. + AddressBlockListNextAvailableAB List Next Available Address Block objects. - Use this method to list Next Available __AddressBlock__ objects. -The Next Available __AddressBlock__ is a generator that returns one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. + Use this method to list Next Available __AddressBlock__ objects. + The Next Available __AddressBlock__ is a generator that returns one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockListNextAvailableABRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockListNextAvailableABRequest */ AddressBlockListNextAvailableAB(ctx context.Context, id string) ApiAddressBlockListNextAvailableABRequest @@ -150,14 +149,14 @@ The Next Available __AddressBlock__ is a generator that returns one or more _ipa AddressBlockListNextAvailableABExecute(r ApiAddressBlockListNextAvailableABRequest) (*IpamsvcNextAvailableABResponse, *http.Response, error) /* - AddressBlockListNextAvailableIP Retrieve the next available IP address. + AddressBlockListNextAvailableIP Retrieve the next available IP address. - Use this method to retrieve the next available IP address. -This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. + Use this method to retrieve the next available IP address. + This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockListNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockListNextAvailableIPRequest */ AddressBlockListNextAvailableIP(ctx context.Context, id string) ApiAddressBlockListNextAvailableIPRequest @@ -166,14 +165,14 @@ This returns one or more __Address__ (_ipam/address_) resource from available ad AddressBlockListNextAvailableIPExecute(r ApiAddressBlockListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) /* - AddressBlockListNextAvailableSubnet List Next Available Subnet objects. + AddressBlockListNextAvailableSubnet List Next Available Subnet objects. - Use this method to list Next Available __Subnet__ objects. -The Next Available Address Block is a generator that returns one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. + Use this method to list Next Available __Subnet__ objects. + The Next Available Address Block is a generator that returns one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockListNextAvailableSubnetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockListNextAvailableSubnetRequest */ AddressBlockListNextAvailableSubnet(ctx context.Context, id string) ApiAddressBlockListNextAvailableSubnetRequest @@ -182,14 +181,14 @@ The Next Available Address Block is a generator that returns one or more _ipam/s AddressBlockListNextAvailableSubnetExecute(r ApiAddressBlockListNextAvailableSubnetRequest) (*IpamsvcNextAvailableSubnetResponse, *http.Response, error) /* - AddressBlockRead Retrieve the address block. + AddressBlockRead Retrieve the address block. - Use this method to retrieve an __AddressBlock__ object. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to retrieve an __AddressBlock__ object. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockReadRequest */ AddressBlockRead(ctx context.Context, id string) ApiAddressBlockReadRequest @@ -198,14 +197,14 @@ The __AddressBlock__ object allows a uniform representation of the address space AddressBlockReadExecute(r ApiAddressBlockReadRequest) (*IpamsvcReadAddressBlockResponse, *http.Response, error) /* - AddressBlockUpdate Update the address block. + AddressBlockUpdate Update the address block. - Use this method to update an __AddressBlock__ object. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to update an __AddressBlock__ object. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockUpdateRequest */ AddressBlockUpdate(ctx context.Context, id string) ApiAddressBlockUpdateRequest @@ -218,10 +217,10 @@ The __AddressBlock__ object allows a uniform representation of the address space type AddressBlockAPIService internal.Service type ApiAddressBlockCopyRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - body *IpamsvcCopyAddressBlock + id string + body *IpamsvcCopyAddressBlock } func (r ApiAddressBlockCopyRequest) Body(body IpamsvcCopyAddressBlock) ApiAddressBlockCopyRequest { @@ -239,26 +238,27 @@ AddressBlockCopy Copy the address block. Use this method to copy an __AddressBlock__ object. The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCopyRequest */ func (a *AddressBlockAPIService) AddressBlockCopy(ctx context.Context, id string) ApiAddressBlockCopyRequest { return ApiAddressBlockCopyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCopyAddressBlockResponse +// +// @return IpamsvcCopyAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockCopyExecute(r ApiAddressBlockCopyRequest) (*IpamsvcCopyAddressBlockResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCopyAddressBlockResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCopyAddressBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockCopy") @@ -341,10 +341,10 @@ func (a *AddressBlockAPIService) AddressBlockCopyExecute(r ApiAddressBlockCopyRe } type ApiAddressBlockCreateRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - body *IpamsvcAddressBlock - inherit *string + body *IpamsvcAddressBlock + inherit *string } func (r ApiAddressBlockCreateRequest) Body(body IpamsvcAddressBlock) ApiAddressBlockCreateRequest { @@ -368,24 +368,25 @@ AddressBlockCreate Create the address block. Use this method to create an __AddressBlock__ object. The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressBlockCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressBlockCreateRequest */ func (a *AddressBlockAPIService) AddressBlockCreate(ctx context.Context) ApiAddressBlockCreateRequest { return ApiAddressBlockCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateAddressBlockResponse +// +// @return IpamsvcCreateAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCreateRequest) (*IpamsvcCreateAddressBlockResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateAddressBlockResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateAddressBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockCreate") @@ -470,13 +471,13 @@ func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCrea } type ApiAddressBlockCreateNextAvailableABRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - cidr *int32 - count *int32 - name *string - comment *string + id string + cidr *int32 + count *int32 + name *string + comment *string } // The cidr value of address blocks to be created. @@ -513,26 +514,27 @@ AddressBlockCreateNextAvailableAB Create the Next Available Address Block object Use this method to create a Next Available __AddressBlock__ object. The Next Available Address Block is a generator that allocates one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCreateNextAvailableABRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCreateNextAvailableABRequest */ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableAB(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableABRequest { return ApiAddressBlockCreateNextAvailableABRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCreateNextAvailableABResponse +// +// @return IpamsvcCreateNextAvailableABResponse func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableABExecute(r ApiAddressBlockCreateNextAvailableABRequest) (*IpamsvcCreateNextAvailableABResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateNextAvailableABResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateNextAvailableABResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockCreateNextAvailableAB") @@ -626,11 +628,11 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableABExecute(r ApiA } type ApiAddressBlockCreateNextAvailableIPRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string + id string contiguous *bool - count *int32 + count *int32 } // Indicates whether the IP addresses should belong to a contiguous block. Defaults to _false_. @@ -655,26 +657,27 @@ AddressBlockCreateNextAvailableIP Allocate the next available IP address. Use this method to allocate the next available IP address. This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCreateNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCreateNextAvailableIPRequest */ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIP(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableIPRequest { return ApiAddressBlockCreateNextAvailableIPRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCreateNextAvailableIPResponse +// +// @return IpamsvcCreateNextAvailableIPResponse func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIPExecute(r ApiAddressBlockCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateNextAvailableIPResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateNextAvailableIPResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockCreateNextAvailableIP") @@ -764,14 +767,14 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIPExecute(r ApiA } type ApiAddressBlockCreateNextAvailableSubnetRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - cidr *int32 - count *int32 - name *string - comment *string - dhcpHost *string + id string + cidr *int32 + count *int32 + name *string + comment *string + dhcpHost *string } // The cidr value of subnets to be created. @@ -814,26 +817,27 @@ AddressBlockCreateNextAvailableSubnet Create the Next Available Subnet object. Use this method to create a Next Available __Subnet__ object. The Next Available Subnet is a generator that allocates one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockCreateNextAvailableSubnetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockCreateNextAvailableSubnetRequest */ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnet(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableSubnetRequest { return ApiAddressBlockCreateNextAvailableSubnetRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCreateNextAvailableSubnetResponse +// +// @return IpamsvcCreateNextAvailableSubnetResponse func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnetExecute(r ApiAddressBlockCreateNextAvailableSubnetRequest) (*IpamsvcCreateNextAvailableSubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateNextAvailableSubnetResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateNextAvailableSubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockCreateNextAvailableSubnet") @@ -930,9 +934,9 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnetExecute(r } type ApiAddressBlockDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string + id string } func (r ApiAddressBlockDeleteRequest) Execute() (*http.Response, error) { @@ -945,24 +949,24 @@ AddressBlockDelete Move the address block to the recycle bin. Use this method to move an __AddressBlock__ object to the recycle bin. The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockDeleteRequest */ func (a *AddressBlockAPIService) AddressBlockDelete(ctx context.Context, id string) ApiAddressBlockDeleteRequest { return ApiAddressBlockDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *AddressBlockAPIService) AddressBlockDeleteExecute(r ApiAddressBlockDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockDelete") @@ -1034,50 +1038,50 @@ func (a *AddressBlockAPIService) AddressBlockDeleteExecute(r ApiAddressBlockDele } type ApiAddressBlockListRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - 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. + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. func (r ApiAddressBlockListRequest) Fields(fields string) ApiAddressBlockListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiAddressBlockListRequest) Filter(filter string) ApiAddressBlockListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiAddressBlockListRequest) Offset(offset int32) ApiAddressBlockListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiAddressBlockListRequest) Limit(limit int32) ApiAddressBlockListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiAddressBlockListRequest) PageToken(pageToken string) ApiAddressBlockListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiAddressBlockListRequest) OrderBy(orderBy string) ApiAddressBlockListRequest { r.orderBy = &orderBy return r @@ -1111,24 +1115,25 @@ AddressBlockList Retrieve the address blocks. Use this method to retrieve __AddressBlock__ objects. The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressBlockListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressBlockListRequest */ func (a *AddressBlockAPIService) AddressBlockList(ctx context.Context) ApiAddressBlockListRequest { return ApiAddressBlockListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListAddressBlockResponse +// +// @return IpamsvcListAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockListExecute(r ApiAddressBlockListRequest) (*IpamsvcListAddressBlockResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListAddressBlockResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListAddressBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockList") @@ -1232,13 +1237,13 @@ func (a *AddressBlockAPIService) AddressBlockListExecute(r ApiAddressBlockListRe } type ApiAddressBlockListNextAvailableABRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - cidr *int32 - count *int32 - name *string - comment *string + id string + cidr *int32 + count *int32 + name *string + comment *string } // The cidr value of address blocks to be created. @@ -1275,26 +1280,27 @@ AddressBlockListNextAvailableAB List Next Available Address Block objects. Use this method to list Next Available __AddressBlock__ objects. The Next Available __AddressBlock__ is a generator that returns one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockListNextAvailableABRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockListNextAvailableABRequest */ func (a *AddressBlockAPIService) AddressBlockListNextAvailableAB(ctx context.Context, id string) ApiAddressBlockListNextAvailableABRequest { return ApiAddressBlockListNextAvailableABRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcNextAvailableABResponse +// +// @return IpamsvcNextAvailableABResponse func (a *AddressBlockAPIService) AddressBlockListNextAvailableABExecute(r ApiAddressBlockListNextAvailableABRequest) (*IpamsvcNextAvailableABResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcNextAvailableABResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcNextAvailableABResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockListNextAvailableAB") @@ -1384,11 +1390,11 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableABExecute(r ApiAdd } type ApiAddressBlockListNextAvailableIPRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string + id string contiguous *bool - count *int32 + count *int32 } // Indicates whether the IP addresses should belong to a contiguous block. Defaults to _false_. @@ -1413,26 +1419,27 @@ AddressBlockListNextAvailableIP Retrieve the next available IP address. Use this method to retrieve the next available IP address. This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockListNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockListNextAvailableIPRequest */ func (a *AddressBlockAPIService) AddressBlockListNextAvailableIP(ctx context.Context, id string) ApiAddressBlockListNextAvailableIPRequest { return ApiAddressBlockListNextAvailableIPRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcNextAvailableIPResponse +// +// @return IpamsvcNextAvailableIPResponse func (a *AddressBlockAPIService) AddressBlockListNextAvailableIPExecute(r ApiAddressBlockListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcNextAvailableIPResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcNextAvailableIPResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockListNextAvailableIP") @@ -1516,14 +1523,14 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableIPExecute(r ApiAdd } type ApiAddressBlockListNextAvailableSubnetRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - cidr *int32 - count *int32 - name *string - comment *string - dhcpHost *string + id string + cidr *int32 + count *int32 + name *string + comment *string + dhcpHost *string } // The cidr value of subnets to be created. @@ -1566,26 +1573,27 @@ AddressBlockListNextAvailableSubnet List Next Available Subnet objects. Use this method to list Next Available __Subnet__ objects. The Next Available Address Block is a generator that returns one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockListNextAvailableSubnetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockListNextAvailableSubnetRequest */ func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnet(ctx context.Context, id string) ApiAddressBlockListNextAvailableSubnetRequest { return ApiAddressBlockListNextAvailableSubnetRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcNextAvailableSubnetResponse +// +// @return IpamsvcNextAvailableSubnetResponse func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnetExecute(r ApiAddressBlockListNextAvailableSubnetRequest) (*IpamsvcNextAvailableSubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcNextAvailableSubnetResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcNextAvailableSubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockListNextAvailableSubnet") @@ -1678,14 +1686,14 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnetExecute(r Ap } type ApiAddressBlockReadRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiAddressBlockReadRequest) Fields(fields string) ApiAddressBlockReadRequest { r.fields = &fields return r @@ -1707,26 +1715,27 @@ AddressBlockRead Retrieve the address block. Use this method to retrieve an __AddressBlock__ object. The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockReadRequest */ func (a *AddressBlockAPIService) AddressBlockRead(ctx context.Context, id string) ApiAddressBlockReadRequest { return ApiAddressBlockReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadAddressBlockResponse +// +// @return IpamsvcReadAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockReadExecute(r ApiAddressBlockReadRequest) (*IpamsvcReadAddressBlockResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadAddressBlockResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadAddressBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockRead") @@ -1810,11 +1819,11 @@ func (a *AddressBlockAPIService) AddressBlockReadExecute(r ApiAddressBlockReadRe } type ApiAddressBlockUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService AddressBlockAPI - id string - body *IpamsvcAddressBlock - inherit *string + id string + body *IpamsvcAddressBlock + inherit *string } func (r ApiAddressBlockUpdateRequest) Body(body IpamsvcAddressBlock) ApiAddressBlockUpdateRequest { @@ -1838,26 +1847,27 @@ AddressBlockUpdate Update the address block. Use this method to update an __AddressBlock__ object. The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAddressBlockUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAddressBlockUpdateRequest */ func (a *AddressBlockAPIService) AddressBlockUpdate(ctx context.Context, id string) ApiAddressBlockUpdateRequest { return ApiAddressBlockUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateAddressBlockResponse +// +// @return IpamsvcUpdateAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockUpdateExecute(r ApiAddressBlockUpdateRequest) (*IpamsvcUpdateAddressBlockResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateAddressBlockResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateAddressBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AddressBlockAPIService.AddressBlockUpdate") diff --git a/ipam/api_asm.go b/ipam/api_asm.go index cb37152..d33789e 100644 --- a/ipam/api_asm.go +++ b/ipam/api_asm.go @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type AsmAPI interface { /* - AsmCreate Update subnet and ranges for Automated Scope Management. + AsmCreate Update subnet and ranges for Automated Scope Management. - Use this method to update the subnet and range for Automated Scope Management. -The __ASM__ object generates and returns the suggestions from the ASM suggestion engine and allows for updating the subnet and range. -This method attempts to expand the scope by expanding a range or adding a new range and, if necessary, expanding the subnet. + Use this method to update the subnet and range for Automated Scope Management. + The __ASM__ object generates and returns the suggestions from the ASM suggestion engine and allows for updating the subnet and range. + This method attempts to expand the scope by expanding a range or adding a new range and, if necessary, expanding the subnet. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAsmCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAsmCreateRequest */ AsmCreate(ctx context.Context) ApiAsmCreateRequest @@ -41,13 +40,13 @@ This method attempts to expand the scope by expanding a range or adding a new ra AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateASMResponse, *http.Response, error) /* - AsmList Retrieve suggested updates for Automated Scope Management. + AsmList Retrieve suggested updates for Automated Scope Management. - Use this method to retrieve __ASM__ objects for Automated Scope Management. -The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. + Use this method to retrieve __ASM__ objects for Automated Scope Management. + The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAsmListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAsmListRequest */ AsmList(ctx context.Context) ApiAsmListRequest @@ -56,14 +55,14 @@ The __ASM__ object returns the suggested updates for the subnet from the ASM sug AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResponse, *http.Response, error) /* - AsmRead Retrieve the suggested update for Automated Scope Management. + AsmRead Retrieve the suggested update for Automated Scope Management. - Use this method to retrieve an __ASM__ object for Automated Scope Management. -The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. + Use this method to retrieve an __ASM__ object for Automated Scope Management. + The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAsmReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAsmReadRequest */ AsmRead(ctx context.Context, id string) ApiAsmReadRequest @@ -76,9 +75,9 @@ The __ASM__ object returns the suggested updates for the subnet from the ASM sug type AsmAPIService internal.Service type ApiAsmCreateRequest struct { - ctx context.Context + ctx context.Context ApiService AsmAPI - body *IpamsvcASM + body *IpamsvcASM } func (r ApiAsmCreateRequest) Body(body IpamsvcASM) ApiAsmCreateRequest { @@ -97,24 +96,25 @@ Use this method to update the subnet and range for Automated Scope Management. The __ASM__ object generates and returns the suggestions from the ASM suggestion engine and allows for updating the subnet and range. This method attempts to expand the scope by expanding a range or adding a new range and, if necessary, expanding the subnet. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAsmCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAsmCreateRequest */ func (a *AsmAPIService) AsmCreate(ctx context.Context) ApiAsmCreateRequest { return ApiAsmCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateASMResponse +// +// @return IpamsvcCreateASMResponse func (a *AsmAPIService) AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateASMResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateASMResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateASMResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AsmAPIService.AsmCreate") @@ -196,13 +196,13 @@ func (a *AsmAPIService) AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateA } type ApiAsmListRequest struct { - ctx context.Context + ctx context.Context ApiService AsmAPI - fields *string - subnetId *string + fields *string + subnetId *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. +// 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. func (r ApiAsmListRequest) Fields(fields string) ApiAsmListRequest { r.fields = &fields return r @@ -223,24 +223,25 @@ AsmList Retrieve suggested updates for Automated Scope Management. Use this method to retrieve __ASM__ objects for Automated Scope Management. The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAsmListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAsmListRequest */ func (a *AsmAPIService) AsmList(ctx context.Context) ApiAsmListRequest { return ApiAsmListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListASMResponse +// +// @return IpamsvcListASMResponse func (a *AsmAPIService) AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListASMResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListASMResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AsmAPIService.AsmList") @@ -323,13 +324,13 @@ func (a *AsmAPIService) AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResp } type ApiAsmReadRequest struct { - ctx context.Context + ctx context.Context ApiService AsmAPI - id string - fields *string + id string + 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. +// 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. func (r ApiAsmReadRequest) Fields(fields string) ApiAsmReadRequest { r.fields = &fields return r @@ -345,26 +346,27 @@ AsmRead Retrieve the suggested update for Automated Scope Management. Use this method to retrieve an __ASM__ object for Automated Scope Management. The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiAsmReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiAsmReadRequest */ func (a *AsmAPIService) AsmRead(ctx context.Context, id string) ApiAsmReadRequest { return ApiAsmReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadASMResponse +// +// @return IpamsvcReadASMResponse func (a *AsmAPIService) AsmReadExecute(r ApiAsmReadRequest) (*IpamsvcReadASMResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadASMResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadASMResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AsmAPIService.AsmRead") diff --git a/ipam/api_dhcp_host.go b/ipam/api_dhcp_host.go index d12d1a1..5a4a3c9 100644 --- a/ipam/api_dhcp_host.go +++ b/ipam/api_dhcp_host.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type DhcpHostAPI interface { /* - DhcpHostList Retrieve DHCP hosts. + DhcpHostList Retrieve DHCP hosts. - Use this method to retrieve DHCP __Host__ objects. -A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. + Use this method to retrieve DHCP __Host__ objects. + A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDhcpHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDhcpHostListRequest */ DhcpHostList(ctx context.Context) ApiDhcpHostListRequest @@ -40,13 +39,13 @@ A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem DhcpHostListExecute(r ApiDhcpHostListRequest) (*IpamsvcListHostResponse, *http.Response, error) /* - DhcpHostListAssociations Retrieve DHCP host associations. + DhcpHostListAssociations Retrieve DHCP host associations. - Use this method to retrieve __HostAssociation__ objects. + Use this method to retrieve __HostAssociation__ objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDhcpHostListAssociationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDhcpHostListAssociationsRequest */ DhcpHostListAssociations(ctx context.Context, id string) ApiDhcpHostListAssociationsRequest @@ -55,14 +54,14 @@ A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem DhcpHostListAssociationsExecute(r ApiDhcpHostListAssociationsRequest) (*IpamsvcHostAssociationsResponse, *http.Response, error) /* - DhcpHostRead Retrieve the DHCP host. + DhcpHostRead Retrieve the DHCP host. - Use this method to retrieve a DHCP Host object. -A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. + Use this method to retrieve a DHCP Host object. + A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDhcpHostReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDhcpHostReadRequest */ DhcpHostRead(ctx context.Context, id string) ApiDhcpHostReadRequest @@ -71,14 +70,14 @@ A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*IpamsvcReadHostResponse, *http.Response, error) /* - DhcpHostUpdate Update the DHCP hosts. + DhcpHostUpdate Update the DHCP hosts. - Use this method to update a DHCP __Host__ object. -A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. + Use this method to update a DHCP __Host__ object. + A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDhcpHostUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDhcpHostUpdateRequest */ DhcpHostUpdate(ctx context.Context, id string) ApiDhcpHostUpdateRequest @@ -91,49 +90,49 @@ A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem type DhcpHostAPIService internal.Service type ApiDhcpHostListRequest struct { - ctx context.Context + ctx context.Context ApiService DhcpHostAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiDhcpHostListRequest) Fields(fields string) ApiDhcpHostListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiDhcpHostListRequest) Filter(filter string) ApiDhcpHostListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiDhcpHostListRequest) Offset(offset int32) ApiDhcpHostListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiDhcpHostListRequest) Limit(limit int32) ApiDhcpHostListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiDhcpHostListRequest) PageToken(pageToken string) ApiDhcpHostListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiDhcpHostListRequest) OrderBy(orderBy string) ApiDhcpHostListRequest { r.orderBy = &orderBy return r @@ -161,24 +160,25 @@ DhcpHostList Retrieve DHCP hosts. Use this method to retrieve DHCP __Host__ objects. A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDhcpHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDhcpHostListRequest */ func (a *DhcpHostAPIService) DhcpHostList(ctx context.Context) ApiDhcpHostListRequest { return ApiDhcpHostListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListHostResponse +// +// @return IpamsvcListHostResponse func (a *DhcpHostAPIService) DhcpHostListExecute(r ApiDhcpHostListRequest) (*IpamsvcListHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DhcpHostAPIService.DhcpHostList") @@ -279,9 +279,9 @@ func (a *DhcpHostAPIService) DhcpHostListExecute(r ApiDhcpHostListRequest) (*Ipa } type ApiDhcpHostListAssociationsRequest struct { - ctx context.Context + ctx context.Context ApiService DhcpHostAPI - id string + id string } func (r ApiDhcpHostListAssociationsRequest) Execute() (*IpamsvcHostAssociationsResponse, *http.Response, error) { @@ -293,26 +293,27 @@ DhcpHostListAssociations Retrieve DHCP host associations. Use this method to retrieve __HostAssociation__ objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDhcpHostListAssociationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDhcpHostListAssociationsRequest */ func (a *DhcpHostAPIService) DhcpHostListAssociations(ctx context.Context, id string) ApiDhcpHostListAssociationsRequest { return ApiDhcpHostListAssociationsRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcHostAssociationsResponse +// +// @return IpamsvcHostAssociationsResponse func (a *DhcpHostAPIService) DhcpHostListAssociationsExecute(r ApiDhcpHostListAssociationsRequest) (*IpamsvcHostAssociationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcHostAssociationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcHostAssociationsResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DhcpHostAPIService.DhcpHostListAssociations") @@ -390,13 +391,13 @@ func (a *DhcpHostAPIService) DhcpHostListAssociationsExecute(r ApiDhcpHostListAs } type ApiDhcpHostReadRequest struct { - ctx context.Context + ctx context.Context ApiService DhcpHostAPI - id string - fields *string + id string + 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. +// 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. func (r ApiDhcpHostReadRequest) Fields(fields string) ApiDhcpHostReadRequest { r.fields = &fields return r @@ -412,26 +413,27 @@ DhcpHostRead Retrieve the DHCP host. Use this method to retrieve a DHCP Host object. A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDhcpHostReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDhcpHostReadRequest */ func (a *DhcpHostAPIService) DhcpHostRead(ctx context.Context, id string) ApiDhcpHostReadRequest { return ApiDhcpHostReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadHostResponse +// +// @return IpamsvcReadHostResponse func (a *DhcpHostAPIService) DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*IpamsvcReadHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DhcpHostAPIService.DhcpHostRead") @@ -512,10 +514,10 @@ func (a *DhcpHostAPIService) DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*Ipa } type ApiDhcpHostUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService DhcpHostAPI - id string - body *IpamsvcHost + id string + body *IpamsvcHost } func (r ApiDhcpHostUpdateRequest) Body(body IpamsvcHost) ApiDhcpHostUpdateRequest { @@ -533,26 +535,27 @@ DhcpHostUpdate Update the DHCP hosts. Use this method to update a DHCP __Host__ object. A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDhcpHostUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDhcpHostUpdateRequest */ func (a *DhcpHostAPIService) DhcpHostUpdate(ctx context.Context, id string) ApiDhcpHostUpdateRequest { return ApiDhcpHostUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateHostResponse +// +// @return IpamsvcUpdateHostResponse func (a *DhcpHostAPIService) DhcpHostUpdateExecute(r ApiDhcpHostUpdateRequest) (*IpamsvcUpdateHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateHostResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DhcpHostAPIService.DhcpHostUpdate") diff --git a/ipam/api_dns_usage.go b/ipam/api_dns_usage.go index 45a3964..009657f 100644 --- a/ipam/api_dns_usage.go +++ b/ipam/api_dns_usage.go @@ -18,19 +18,18 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type DnsUsageAPI interface { /* - DnsUsageList Retrieve DNS usage for multiple objects. + DnsUsageList Retrieve DNS usage for multiple objects. - Use this method to retrieve __DNSUsage__ objects. + Use this method to retrieve __DNSUsage__ objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDnsUsageListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDnsUsageListRequest */ DnsUsageList(ctx context.Context) ApiDnsUsageListRequest @@ -39,13 +38,13 @@ type DnsUsageAPI interface { DnsUsageListExecute(r ApiDnsUsageListRequest) (*IpamsvcListDNSUsageResponse, *http.Response, error) /* - DnsUsageRead Retrieve the DNS usage. + DnsUsageRead Retrieve the DNS usage. - Use this method to retrieve a __DNSUsage__ object. + Use this method to retrieve a __DNSUsage__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDnsUsageReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDnsUsageReadRequest */ DnsUsageRead(ctx context.Context, id string) ApiDnsUsageReadRequest @@ -58,47 +57,47 @@ type DnsUsageAPI interface { type DnsUsageAPIService internal.Service type ApiDnsUsageListRequest struct { - ctx context.Context + ctx context.Context ApiService DnsUsageAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *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. +// 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. func (r ApiDnsUsageListRequest) Fields(fields string) ApiDnsUsageListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiDnsUsageListRequest) Filter(filter string) ApiDnsUsageListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiDnsUsageListRequest) Offset(offset int32) ApiDnsUsageListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiDnsUsageListRequest) Limit(limit int32) ApiDnsUsageListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiDnsUsageListRequest) PageToken(pageToken string) ApiDnsUsageListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiDnsUsageListRequest) OrderBy(orderBy string) ApiDnsUsageListRequest { r.orderBy = &orderBy return r @@ -113,24 +112,25 @@ DnsUsageList Retrieve DNS usage for multiple objects. Use this method to retrieve __DNSUsage__ objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDnsUsageListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDnsUsageListRequest */ func (a *DnsUsageAPIService) DnsUsageList(ctx context.Context) ApiDnsUsageListRequest { return ApiDnsUsageListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListDNSUsageResponse +// +// @return IpamsvcListDNSUsageResponse func (a *DnsUsageAPIService) DnsUsageListExecute(r ApiDnsUsageListRequest) (*IpamsvcListDNSUsageResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListDNSUsageResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListDNSUsageResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DnsUsageAPIService.DnsUsageList") @@ -225,13 +225,13 @@ func (a *DnsUsageAPIService) DnsUsageListExecute(r ApiDnsUsageListRequest) (*Ipa } type ApiDnsUsageReadRequest struct { - ctx context.Context + ctx context.Context ApiService DnsUsageAPI - id string - fields *string + id string + 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. +// 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. func (r ApiDnsUsageReadRequest) Fields(fields string) ApiDnsUsageReadRequest { r.fields = &fields return r @@ -246,26 +246,27 @@ DnsUsageRead Retrieve the DNS usage. Use this method to retrieve a __DNSUsage__ object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiDnsUsageReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiDnsUsageReadRequest */ func (a *DnsUsageAPIService) DnsUsageRead(ctx context.Context, id string) ApiDnsUsageReadRequest { return ApiDnsUsageReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadDNSUsageResponse +// +// @return IpamsvcReadDNSUsageResponse func (a *DnsUsageAPIService) DnsUsageReadExecute(r ApiDnsUsageReadRequest) (*IpamsvcReadDNSUsageResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadDNSUsageResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadDNSUsageResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DnsUsageAPIService.DnsUsageRead") diff --git a/ipam/api_filter.go b/ipam/api_filter.go index 9371f3c..173d0a9 100644 --- a/ipam/api_filter.go +++ b/ipam/api_filter.go @@ -17,19 +17,18 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type FilterAPI interface { /* - FilterList Retrieve DHCP filters. + FilterList Retrieve DHCP filters. - Use this method to retrieve DHCP __Filter__ objects of all types. + Use this method to retrieve DHCP __Filter__ objects of all types. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFilterListRequest */ FilterList(ctx context.Context) ApiFilterListRequest @@ -42,49 +41,49 @@ type FilterAPI interface { type FilterAPIService internal.Service type ApiFilterListRequest struct { - ctx context.Context + ctx context.Context ApiService FilterAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - torderBy *string - tfilter *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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. +// 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. func (r ApiFilterListRequest) Fields(fields string) ApiFilterListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiFilterListRequest) Filter(filter string) ApiFilterListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiFilterListRequest) Offset(offset int32) ApiFilterListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiFilterListRequest) Limit(limit int32) ApiFilterListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiFilterListRequest) PageToken(pageToken string) ApiFilterListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiFilterListRequest) OrderBy(orderBy string) ApiFilterListRequest { r.orderBy = &orderBy return r @@ -111,24 +110,25 @@ FilterList Retrieve DHCP filters. Use this method to retrieve DHCP __Filter__ objects of all types. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFilterListRequest */ func (a *FilterAPIService) FilterList(ctx context.Context) ApiFilterListRequest { return ApiFilterListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListFilterResponse +// +// @return IpamsvcListFilterResponse func (a *FilterAPIService) FilterListExecute(r ApiFilterListRequest) (*IpamsvcListFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListFilterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FilterAPIService.FilterList") diff --git a/ipam/api_fixed_address.go b/ipam/api_fixed_address.go index 373db74..748cad6 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type FixedAddressAPI interface { /* - FixedAddressCreate Create the fixed address. + FixedAddressCreate Create the fixed address. - Use this method to create a __FixedAddress__ object. -The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to create a __FixedAddress__ object. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFixedAddressCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFixedAddressCreateRequest */ FixedAddressCreate(ctx context.Context) ApiFixedAddressCreateRequest @@ -40,14 +39,14 @@ The __FixedAddress__ object reserves an address for a specific client. It must h FixedAddressCreateExecute(r ApiFixedAddressCreateRequest) (*IpamsvcCreateFixedAddressResponse, *http.Response, error) /* - FixedAddressDelete Move the fixed address to the recycle bin. + FixedAddressDelete Move the fixed address to the recycle bin. - Use this method to move a __FixedAddress__ object to the recycle bin. -The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to move a __FixedAddress__ object to the recycle bin. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiFixedAddressDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiFixedAddressDeleteRequest */ FixedAddressDelete(ctx context.Context, id string) ApiFixedAddressDeleteRequest @@ -55,13 +54,13 @@ The __FixedAddress__ object reserves an address for a specific client. It must h FixedAddressDeleteExecute(r ApiFixedAddressDeleteRequest) (*http.Response, error) /* - FixedAddressList Retrieve fixed addresses. + FixedAddressList Retrieve fixed addresses. - Use this method to retrieve __FixedAddress__ objects. -The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to retrieve __FixedAddress__ objects. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFixedAddressListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFixedAddressListRequest */ FixedAddressList(ctx context.Context) ApiFixedAddressListRequest @@ -70,14 +69,14 @@ The __FixedAddress__ object reserves an address for a specific client. It must h FixedAddressListExecute(r ApiFixedAddressListRequest) (*IpamsvcListFixedAddressResponse, *http.Response, error) /* - FixedAddressRead Retrieve the fixed address. + FixedAddressRead Retrieve the fixed address. - Use this method to retrieve a __FixedAddress__ object. -The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to retrieve a __FixedAddress__ object. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiFixedAddressReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiFixedAddressReadRequest */ FixedAddressRead(ctx context.Context, id string) ApiFixedAddressReadRequest @@ -86,14 +85,14 @@ The __FixedAddress__ object reserves an address for a specific client. It must h FixedAddressReadExecute(r ApiFixedAddressReadRequest) (*IpamsvcReadFixedAddressResponse, *http.Response, error) /* - FixedAddressUpdate Update the fixed address. + FixedAddressUpdate Update the fixed address. - Use this method to update a __FixedAddress__ object. -The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to update a __FixedAddress__ object. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiFixedAddressUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiFixedAddressUpdateRequest */ FixedAddressUpdate(ctx context.Context, id string) ApiFixedAddressUpdateRequest @@ -106,10 +105,10 @@ The __FixedAddress__ object reserves an address for a specific client. It must h type FixedAddressAPIService internal.Service type ApiFixedAddressCreateRequest struct { - ctx context.Context + ctx context.Context ApiService FixedAddressAPI - body *IpamsvcFixedAddress - inherit *string + body *IpamsvcFixedAddress + inherit *string } func (r ApiFixedAddressCreateRequest) Body(body IpamsvcFixedAddress) ApiFixedAddressCreateRequest { @@ -133,24 +132,25 @@ FixedAddressCreate Create the fixed address. Use this method to create a __FixedAddress__ object. The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFixedAddressCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFixedAddressCreateRequest */ func (a *FixedAddressAPIService) FixedAddressCreate(ctx context.Context) ApiFixedAddressCreateRequest { return ApiFixedAddressCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateFixedAddressResponse +// +// @return IpamsvcCreateFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCreateRequest) (*IpamsvcCreateFixedAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateFixedAddressResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateFixedAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FixedAddressAPIService.FixedAddressCreate") @@ -235,9 +235,9 @@ func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCrea } type ApiFixedAddressDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService FixedAddressAPI - id string + id string } func (r ApiFixedAddressDeleteRequest) Execute() (*http.Response, error) { @@ -250,24 +250,24 @@ FixedAddressDelete Move the fixed address to the recycle bin. Use this method to move a __FixedAddress__ object to the recycle bin. The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiFixedAddressDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiFixedAddressDeleteRequest */ func (a *FixedAddressAPIService) FixedAddressDelete(ctx context.Context, id string) ApiFixedAddressDeleteRequest { return ApiFixedAddressDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *FixedAddressAPIService) FixedAddressDeleteExecute(r ApiFixedAddressDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FixedAddressAPIService.FixedAddressDelete") @@ -339,50 +339,50 @@ func (a *FixedAddressAPIService) FixedAddressDeleteExecute(r ApiFixedAddressDele } type ApiFixedAddressListRequest struct { - ctx context.Context + ctx context.Context ApiService FixedAddressAPI - filter *string - orderBy *string - fields *string - offset *int32 - limit *int32 - 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 | + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + 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 | func (r ApiFixedAddressListRequest) Filter(filter string) ApiFixedAddressListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiFixedAddressListRequest) OrderBy(orderBy string) ApiFixedAddressListRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiFixedAddressListRequest) Fields(fields string) ApiFixedAddressListRequest { r.fields = &fields return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiFixedAddressListRequest) Offset(offset int32) ApiFixedAddressListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiFixedAddressListRequest) Limit(limit int32) ApiFixedAddressListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiFixedAddressListRequest) PageToken(pageToken string) ApiFixedAddressListRequest { r.pageToken = &pageToken return r @@ -416,24 +416,25 @@ FixedAddressList Retrieve fixed addresses. Use this method to retrieve __FixedAddress__ objects. The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFixedAddressListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFixedAddressListRequest */ func (a *FixedAddressAPIService) FixedAddressList(ctx context.Context) ApiFixedAddressListRequest { return ApiFixedAddressListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListFixedAddressResponse +// +// @return IpamsvcListFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressListExecute(r ApiFixedAddressListRequest) (*IpamsvcListFixedAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListFixedAddressResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListFixedAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FixedAddressAPIService.FixedAddressList") @@ -537,14 +538,14 @@ func (a *FixedAddressAPIService) FixedAddressListExecute(r ApiFixedAddressListRe } type ApiFixedAddressReadRequest struct { - ctx context.Context + ctx context.Context ApiService FixedAddressAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiFixedAddressReadRequest) Fields(fields string) ApiFixedAddressReadRequest { r.fields = &fields return r @@ -566,26 +567,27 @@ FixedAddressRead Retrieve the fixed address. Use this method to retrieve a __FixedAddress__ object. The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiFixedAddressReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiFixedAddressReadRequest */ func (a *FixedAddressAPIService) FixedAddressRead(ctx context.Context, id string) ApiFixedAddressReadRequest { return ApiFixedAddressReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadFixedAddressResponse +// +// @return IpamsvcReadFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressReadExecute(r ApiFixedAddressReadRequest) (*IpamsvcReadFixedAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadFixedAddressResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadFixedAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FixedAddressAPIService.FixedAddressRead") @@ -669,11 +671,11 @@ func (a *FixedAddressAPIService) FixedAddressReadExecute(r ApiFixedAddressReadRe } type ApiFixedAddressUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService FixedAddressAPI - id string - body *IpamsvcFixedAddress - inherit *string + id string + body *IpamsvcFixedAddress + inherit *string } func (r ApiFixedAddressUpdateRequest) Body(body IpamsvcFixedAddress) ApiFixedAddressUpdateRequest { @@ -697,26 +699,27 @@ FixedAddressUpdate Update the fixed address. Use this method to update a __FixedAddress__ object. The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiFixedAddressUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiFixedAddressUpdateRequest */ func (a *FixedAddressAPIService) FixedAddressUpdate(ctx context.Context, id string) ApiFixedAddressUpdateRequest { return ApiFixedAddressUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateFixedAddressResponse +// +// @return IpamsvcUpdateFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressUpdateExecute(r ApiFixedAddressUpdateRequest) (*IpamsvcUpdateFixedAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateFixedAddressResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateFixedAddressResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FixedAddressAPIService.FixedAddressUpdate") diff --git a/ipam/api_global.go b/ipam/api_global.go index 6b8c2ce..4bf33b3 100644 --- a/ipam/api_global.go +++ b/ipam/api_global.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type GlobalAPI interface { /* - GlobalRead Retrieve the global configuration. + GlobalRead Retrieve the global configuration. - Use this method to retrieve the __Global__ configuration object. -The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to retrieve the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalReadRequest */ GlobalRead(ctx context.Context) ApiGlobalReadRequest @@ -40,14 +39,14 @@ The service operates on single __Global__ (_dhcp/global_) object that represents GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcReadGlobalResponse, *http.Response, error) /* - GlobalRead2 Retrieve the global configuration. + GlobalRead2 Retrieve the global configuration. - Use this method to retrieve the __Global__ configuration object. -The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to retrieve the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalRead2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalRead2Request */ GlobalRead2(ctx context.Context, id string) ApiGlobalRead2Request @@ -56,13 +55,13 @@ The service operates on single __Global__ (_dhcp/global_) object that represents GlobalRead2Execute(r ApiGlobalRead2Request) (*IpamsvcReadGlobalResponse, *http.Response, error) /* - GlobalUpdate Update the global configuration. + GlobalUpdate Update the global configuration. - Use this method to update the __Global__ configuration object. -The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to update the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalUpdateRequest */ GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequest @@ -71,14 +70,14 @@ The service operates on single __Global__ (_dhcp/global_) object that represents GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*IpamsvcUpdateGlobalResponse, *http.Response, error) /* - GlobalUpdate2 Update the global configuration. + GlobalUpdate2 Update the global configuration. - Use this method to update the __Global__ configuration object. -The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to update the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalUpdate2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalUpdate2Request */ GlobalUpdate2(ctx context.Context, id string) ApiGlobalUpdate2Request @@ -91,12 +90,12 @@ The service operates on single __Global__ (_dhcp/global_) object that represents type GlobalAPIService internal.Service type ApiGlobalReadRequest struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - fields *string + 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. +// 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. func (r ApiGlobalReadRequest) Fields(fields string) ApiGlobalReadRequest { r.fields = &fields return r @@ -112,24 +111,25 @@ GlobalRead Retrieve the global configuration. Use this method to retrieve the __Global__ configuration object. The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalReadRequest */ func (a *GlobalAPIService) GlobalRead(ctx context.Context) ApiGlobalReadRequest { return ApiGlobalReadRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcReadGlobalResponse +// +// @return IpamsvcReadGlobalResponse func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcReadGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadGlobalResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalRead") @@ -209,13 +209,13 @@ func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcRe } type ApiGlobalRead2Request struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - id string - fields *string + id string + 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. +// 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. func (r ApiGlobalRead2Request) Fields(fields string) ApiGlobalRead2Request { r.fields = &fields return r @@ -231,26 +231,27 @@ GlobalRead2 Retrieve the global configuration. Use this method to retrieve the __Global__ configuration object. The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalRead2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalRead2Request */ func (a *GlobalAPIService) GlobalRead2(ctx context.Context, id string) ApiGlobalRead2Request { return ApiGlobalRead2Request{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadGlobalResponse +// +// @return IpamsvcReadGlobalResponse func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*IpamsvcReadGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadGlobalResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalRead2") @@ -331,9 +332,9 @@ func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*Ipamsvc } type ApiGlobalUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - body *IpamsvcGlobal + body *IpamsvcGlobal } func (r ApiGlobalUpdateRequest) Body(body IpamsvcGlobal) ApiGlobalUpdateRequest { @@ -351,24 +352,25 @@ GlobalUpdate Update the global configuration. Use this method to update the __Global__ configuration object. The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalUpdateRequest */ func (a *GlobalAPIService) GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequest { return ApiGlobalUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcUpdateGlobalResponse +// +// @return IpamsvcUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*IpamsvcUpdateGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateGlobalResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalUpdate") @@ -450,10 +452,10 @@ func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*Ipams } type ApiGlobalUpdate2Request struct { - ctx context.Context + ctx context.Context ApiService GlobalAPI - id string - body *IpamsvcGlobal + id string + body *IpamsvcGlobal } func (r ApiGlobalUpdate2Request) Body(body IpamsvcGlobal) ApiGlobalUpdate2Request { @@ -471,26 +473,27 @@ GlobalUpdate2 Update the global configuration. Use this method to update the __Global__ configuration object. The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiGlobalUpdate2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiGlobalUpdate2Request */ func (a *GlobalAPIService) GlobalUpdate2(ctx context.Context, id string) ApiGlobalUpdate2Request { return ApiGlobalUpdate2Request{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateGlobalResponse +// +// @return IpamsvcUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdate2Execute(r ApiGlobalUpdate2Request) (*IpamsvcUpdateGlobalResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateGlobalResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateGlobalResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GlobalAPIService.GlobalUpdate2") diff --git a/ipam/api_ha_group.go b/ipam/api_ha_group.go index ef70576..2601000 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type HaGroupAPI interface { /* - HaGroupCreate Create the HA group. + HaGroupCreate Create the HA group. - Use this method to create an __HAGroup__ object. -The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. + Use this method to create an __HAGroup__ object. + The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHaGroupCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHaGroupCreateRequest */ HaGroupCreate(ctx context.Context) ApiHaGroupCreateRequest @@ -40,14 +39,14 @@ The __HAGroup__ object represents on-prem hosts that can serve the same leases f HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*IpamsvcCreateHAGroupResponse, *http.Response, error) /* - HaGroupDelete Delete the HA group. + HaGroupDelete Delete the HA group. - Use this method to delete an __HAGroup__ object. -The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. + Use this method to delete an __HAGroup__ object. + The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHaGroupDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHaGroupDeleteRequest */ HaGroupDelete(ctx context.Context, id string) ApiHaGroupDeleteRequest @@ -55,13 +54,13 @@ The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve HaGroupDeleteExecute(r ApiHaGroupDeleteRequest) (*http.Response, error) /* - HaGroupList Retrieve HA groups. + HaGroupList Retrieve HA groups. - Use this method to retrieve __HAGroup__ objects. -The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. + Use this method to retrieve __HAGroup__ objects. + The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHaGroupListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHaGroupListRequest */ HaGroupList(ctx context.Context) ApiHaGroupListRequest @@ -70,14 +69,14 @@ The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve HaGroupListExecute(r ApiHaGroupListRequest) (*IpamsvcListHAGroupResponse, *http.Response, error) /* - HaGroupRead Retrieve the HA group. + HaGroupRead Retrieve the HA group. - Use this method to retrieve an __HAGroup__ object. -The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. + Use this method to retrieve an __HAGroup__ object. + The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHaGroupReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHaGroupReadRequest */ HaGroupRead(ctx context.Context, id string) ApiHaGroupReadRequest @@ -86,14 +85,14 @@ The __HAGroup__ object represents on-prem hosts that can serve the same leases f HaGroupReadExecute(r ApiHaGroupReadRequest) (*IpamsvcReadHAGroupResponse, *http.Response, error) /* - HaGroupUpdate Update the HA group. + HaGroupUpdate Update the HA group. - Use this method to update an __HAGroup__ object. -The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. + Use this method to update an __HAGroup__ object. + The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHaGroupUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHaGroupUpdateRequest */ HaGroupUpdate(ctx context.Context, id string) ApiHaGroupUpdateRequest @@ -106,9 +105,9 @@ The __HAGroup__ object represents on-prem hosts that can serve the same leases f type HaGroupAPIService internal.Service type ApiHaGroupCreateRequest struct { - ctx context.Context + ctx context.Context ApiService HaGroupAPI - body *IpamsvcHAGroup + body *IpamsvcHAGroup } func (r ApiHaGroupCreateRequest) Body(body IpamsvcHAGroup) ApiHaGroupCreateRequest { @@ -126,24 +125,25 @@ HaGroupCreate Create the HA group. Use this method to create an __HAGroup__ object. The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHaGroupCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHaGroupCreateRequest */ func (a *HaGroupAPIService) HaGroupCreate(ctx context.Context) ApiHaGroupCreateRequest { return ApiHaGroupCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateHAGroupResponse +// +// @return IpamsvcCreateHAGroupResponse func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*IpamsvcCreateHAGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateHAGroupResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateHAGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HaGroupAPIService.HaGroupCreate") @@ -225,9 +225,9 @@ func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*Ip } type ApiHaGroupDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService HaGroupAPI - id string + id string } func (r ApiHaGroupDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ HaGroupDelete Delete the HA group. Use this method to delete an __HAGroup__ object. The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHaGroupDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHaGroupDeleteRequest */ func (a *HaGroupAPIService) HaGroupDelete(ctx context.Context, id string) ApiHaGroupDeleteRequest { return ApiHaGroupDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *HaGroupAPIService) HaGroupDeleteExecute(r ApiHaGroupDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HaGroupAPIService.HaGroupDelete") @@ -329,50 +329,50 @@ func (a *HaGroupAPIService) HaGroupDeleteExecute(r ApiHaGroupDeleteRequest) (*ht } type ApiHaGroupListRequest struct { - ctx context.Context - ApiService HaGroupAPI - filter *string - orderBy *string - fields *string - offset *int32 - limit *int32 - pageToken *string - torderBy *string - tfilter *string + ctx context.Context + ApiService HaGroupAPI + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + pageToken *string + torderBy *string + tfilter *string collectStats *bool } -// 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 | +// 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 | func (r ApiHaGroupListRequest) Filter(filter string) ApiHaGroupListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiHaGroupListRequest) OrderBy(orderBy string) ApiHaGroupListRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiHaGroupListRequest) Fields(fields string) ApiHaGroupListRequest { r.fields = &fields return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiHaGroupListRequest) Offset(offset int32) ApiHaGroupListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiHaGroupListRequest) Limit(limit int32) ApiHaGroupListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiHaGroupListRequest) PageToken(pageToken string) ApiHaGroupListRequest { r.pageToken = &pageToken return r @@ -406,24 +406,25 @@ HaGroupList Retrieve HA groups. Use this method to retrieve __HAGroup__ objects. The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHaGroupListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHaGroupListRequest */ func (a *HaGroupAPIService) HaGroupList(ctx context.Context) ApiHaGroupListRequest { return ApiHaGroupListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListHAGroupResponse +// +// @return IpamsvcListHAGroupResponse func (a *HaGroupAPIService) HaGroupListExecute(r ApiHaGroupListRequest) (*IpamsvcListHAGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListHAGroupResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListHAGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HaGroupAPIService.HaGroupList") @@ -527,14 +528,14 @@ func (a *HaGroupAPIService) HaGroupListExecute(r ApiHaGroupListRequest) (*Ipamsv } type ApiHaGroupReadRequest struct { - ctx context.Context - ApiService HaGroupAPI - id string - fields *string + ctx context.Context + ApiService HaGroupAPI + id string + fields *string collectStats *bool } -// 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. +// 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. func (r ApiHaGroupReadRequest) Fields(fields string) ApiHaGroupReadRequest { r.fields = &fields return r @@ -556,26 +557,27 @@ HaGroupRead Retrieve the HA group. Use this method to retrieve an __HAGroup__ object. The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHaGroupReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHaGroupReadRequest */ func (a *HaGroupAPIService) HaGroupRead(ctx context.Context, id string) ApiHaGroupReadRequest { return ApiHaGroupReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadHAGroupResponse +// +// @return IpamsvcReadHAGroupResponse func (a *HaGroupAPIService) HaGroupReadExecute(r ApiHaGroupReadRequest) (*IpamsvcReadHAGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadHAGroupResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadHAGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HaGroupAPIService.HaGroupRead") @@ -659,10 +661,10 @@ func (a *HaGroupAPIService) HaGroupReadExecute(r ApiHaGroupReadRequest) (*Ipamsv } type ApiHaGroupUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService HaGroupAPI - id string - body *IpamsvcHAGroup + id string + body *IpamsvcHAGroup } func (r ApiHaGroupUpdateRequest) Body(body IpamsvcHAGroup) ApiHaGroupUpdateRequest { @@ -680,26 +682,27 @@ HaGroupUpdate Update the HA group. Use this method to update an __HAGroup__ object. The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHaGroupUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHaGroupUpdateRequest */ func (a *HaGroupAPIService) HaGroupUpdate(ctx context.Context, id string) ApiHaGroupUpdateRequest { return ApiHaGroupUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateHAGroupResponse +// +// @return IpamsvcUpdateHAGroupResponse func (a *HaGroupAPIService) HaGroupUpdateExecute(r ApiHaGroupUpdateRequest) (*IpamsvcUpdateHAGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateHAGroupResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateHAGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HaGroupAPIService.HaGroupUpdate") diff --git a/ipam/api_hardware_filter.go b/ipam/api_hardware_filter.go index d8f589e..77f0ac5 100644 --- a/ipam/api_hardware_filter.go +++ b/ipam/api_hardware_filter.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type HardwareFilterAPI interface { /* - HardwareFilterCreate Create the hardware filter. + HardwareFilterCreate Create the hardware filter. - Use this method to create a __HardwareFilter__ object. -The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to create a __HardwareFilter__ object. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHardwareFilterCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHardwareFilterCreateRequest */ HardwareFilterCreate(ctx context.Context) ApiHardwareFilterCreateRequest @@ -40,14 +39,14 @@ The __HardwareFilter__ object applies options to clients with matching hardware HardwareFilterCreateExecute(r ApiHardwareFilterCreateRequest) (*IpamsvcCreateHardwareFilterResponse, *http.Response, error) /* - HardwareFilterDelete Move the hardware filter to the recycle bin. + HardwareFilterDelete Move the hardware filter to the recycle bin. - Use this method to move a __HardwareFilter__ object to the recycle bin. -The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to move a __HardwareFilter__ object to the recycle bin. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHardwareFilterDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHardwareFilterDeleteRequest */ HardwareFilterDelete(ctx context.Context, id string) ApiHardwareFilterDeleteRequest @@ -55,13 +54,13 @@ The __HardwareFilter__ object applies options to clients with matching hardware HardwareFilterDeleteExecute(r ApiHardwareFilterDeleteRequest) (*http.Response, error) /* - HardwareFilterList Retrieve hardware filters. + HardwareFilterList Retrieve hardware filters. - Use this method to retrieve __HardwareFilter__ objects. -The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve __HardwareFilter__ objects. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHardwareFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHardwareFilterListRequest */ HardwareFilterList(ctx context.Context) ApiHardwareFilterListRequest @@ -70,14 +69,14 @@ The __HardwareFilter__ object applies options to clients with matching hardware HardwareFilterListExecute(r ApiHardwareFilterListRequest) (*IpamsvcListHardwareFilterResponse, *http.Response, error) /* - HardwareFilterRead Retrieve the hardware filter. + HardwareFilterRead Retrieve the hardware filter. - Use this method to retrieve a __HardwareFilter__ object. -The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve a __HardwareFilter__ object. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHardwareFilterReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHardwareFilterReadRequest */ HardwareFilterRead(ctx context.Context, id string) ApiHardwareFilterReadRequest @@ -86,14 +85,14 @@ The __HardwareFilter__ object applies options to clients with matching hardware HardwareFilterReadExecute(r ApiHardwareFilterReadRequest) (*IpamsvcReadHardwareFilterResponse, *http.Response, error) /* - HardwareFilterUpdate Update the hardware filter. + HardwareFilterUpdate Update the hardware filter. - Use this method to update a __HardwareFilter__ object. -The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to update a __HardwareFilter__ object. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHardwareFilterUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHardwareFilterUpdateRequest */ HardwareFilterUpdate(ctx context.Context, id string) ApiHardwareFilterUpdateRequest @@ -106,9 +105,9 @@ The __HardwareFilter__ object applies options to clients with matching hardware type HardwareFilterAPIService internal.Service type ApiHardwareFilterCreateRequest struct { - ctx context.Context + ctx context.Context ApiService HardwareFilterAPI - body *IpamsvcHardwareFilter + body *IpamsvcHardwareFilter } func (r ApiHardwareFilterCreateRequest) Body(body IpamsvcHardwareFilter) ApiHardwareFilterCreateRequest { @@ -126,24 +125,25 @@ HardwareFilterCreate Create the hardware filter. Use this method to create a __HardwareFilter__ object. The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHardwareFilterCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHardwareFilterCreateRequest */ func (a *HardwareFilterAPIService) HardwareFilterCreate(ctx context.Context) ApiHardwareFilterCreateRequest { return ApiHardwareFilterCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateHardwareFilterResponse +// +// @return IpamsvcCreateHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilterCreateRequest) (*IpamsvcCreateHardwareFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateHardwareFilterResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateHardwareFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HardwareFilterAPIService.HardwareFilterCreate") @@ -225,9 +225,9 @@ func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilt } type ApiHardwareFilterDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService HardwareFilterAPI - id string + id string } func (r ApiHardwareFilterDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ HardwareFilterDelete Move the hardware filter to the recycle bin. Use this method to move a __HardwareFilter__ object to the recycle bin. The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHardwareFilterDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHardwareFilterDeleteRequest */ func (a *HardwareFilterAPIService) HardwareFilterDelete(ctx context.Context, id string) ApiHardwareFilterDeleteRequest { return ApiHardwareFilterDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *HardwareFilterAPIService) HardwareFilterDeleteExecute(r ApiHardwareFilterDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HardwareFilterAPIService.HardwareFilterDelete") @@ -329,49 +329,49 @@ func (a *HardwareFilterAPIService) HardwareFilterDeleteExecute(r ApiHardwareFilt } type ApiHardwareFilterListRequest struct { - ctx context.Context + ctx context.Context ApiService HardwareFilterAPI - filter *string - orderBy *string - fields *string - offset *int32 - limit *int32 - pageToken *string - torderBy *string - tfilter *string + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + pageToken *string + torderBy *string + tfilter *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 | +// 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 | func (r ApiHardwareFilterListRequest) Filter(filter string) ApiHardwareFilterListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiHardwareFilterListRequest) OrderBy(orderBy string) ApiHardwareFilterListRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiHardwareFilterListRequest) Fields(fields string) ApiHardwareFilterListRequest { r.fields = &fields return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiHardwareFilterListRequest) Offset(offset int32) ApiHardwareFilterListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiHardwareFilterListRequest) Limit(limit int32) ApiHardwareFilterListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiHardwareFilterListRequest) PageToken(pageToken string) ApiHardwareFilterListRequest { r.pageToken = &pageToken return r @@ -399,24 +399,25 @@ HardwareFilterList Retrieve hardware filters. Use this method to retrieve __HardwareFilter__ objects. The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHardwareFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHardwareFilterListRequest */ func (a *HardwareFilterAPIService) HardwareFilterList(ctx context.Context) ApiHardwareFilterListRequest { return ApiHardwareFilterListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListHardwareFilterResponse +// +// @return IpamsvcListHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterListExecute(r ApiHardwareFilterListRequest) (*IpamsvcListHardwareFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListHardwareFilterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListHardwareFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HardwareFilterAPIService.HardwareFilterList") @@ -517,13 +518,13 @@ func (a *HardwareFilterAPIService) HardwareFilterListExecute(r ApiHardwareFilter } type ApiHardwareFilterReadRequest struct { - ctx context.Context + ctx context.Context ApiService HardwareFilterAPI - id string - fields *string + id string + 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. +// 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. func (r ApiHardwareFilterReadRequest) Fields(fields string) ApiHardwareFilterReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ HardwareFilterRead Retrieve the hardware filter. Use this method to retrieve a __HardwareFilter__ object. The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHardwareFilterReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHardwareFilterReadRequest */ func (a *HardwareFilterAPIService) HardwareFilterRead(ctx context.Context, id string) ApiHardwareFilterReadRequest { return ApiHardwareFilterReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadHardwareFilterResponse +// +// @return IpamsvcReadHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterReadExecute(r ApiHardwareFilterReadRequest) (*IpamsvcReadHardwareFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadHardwareFilterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadHardwareFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HardwareFilterAPIService.HardwareFilterRead") @@ -639,10 +641,10 @@ func (a *HardwareFilterAPIService) HardwareFilterReadExecute(r ApiHardwareFilter } type ApiHardwareFilterUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService HardwareFilterAPI - id string - body *IpamsvcHardwareFilter + id string + body *IpamsvcHardwareFilter } func (r ApiHardwareFilterUpdateRequest) Body(body IpamsvcHardwareFilter) ApiHardwareFilterUpdateRequest { @@ -660,26 +662,27 @@ HardwareFilterUpdate Update the hardware filter. Use this method to update a __HardwareFilter__ object. The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiHardwareFilterUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiHardwareFilterUpdateRequest */ func (a *HardwareFilterAPIService) HardwareFilterUpdate(ctx context.Context, id string) ApiHardwareFilterUpdateRequest { return ApiHardwareFilterUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateHardwareFilterResponse +// +// @return IpamsvcUpdateHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterUpdateExecute(r ApiHardwareFilterUpdateRequest) (*IpamsvcUpdateHardwareFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateHardwareFilterResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateHardwareFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "HardwareFilterAPIService.HardwareFilterUpdate") diff --git a/ipam/api_ip_space.go b/ipam/api_ip_space.go index b0c82d6..14a0cea 100644 --- a/ipam/api_ip_space.go +++ b/ipam/api_ip_space.go @@ -18,25 +18,24 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type IpSpaceAPI interface { /* - IpSpaceBulkCopy Copy the specified address block and subnets in the IP space. + IpSpaceBulkCopy Copy the specified address block and subnets in the IP space. - Use this method to bulk copy __AddressBlock__ and __Subnet__ objects from one __IPSpace__ object to another __IPSpace__ object. -The __IPSpace__ object represents an entire address space. -The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to bulk copy __AddressBlock__ and __Subnet__ objects from one __IPSpace__ object to another __IPSpace__ object. + The __IPSpace__ object represents an entire address space. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. -The _copy_objects_ specifies the list of objects (_ipam/address_block_ and _ipam/subnet_ only) in the _ipam/ip_space_ object to copy. -The _target_ specifies the _ipam/ip_space_ object to which the objects must be copied. + The _copy_objects_ specifies the list of objects (_ipam/address_block_ and _ipam/subnet_ only) in the _ipam/ip_space_ object to copy. + The _target_ specifies the _ipam/ip_space_ object to which the objects must be copied. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceBulkCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceBulkCopyRequest */ IpSpaceBulkCopy(ctx context.Context) ApiIpSpaceBulkCopyRequest @@ -45,14 +44,14 @@ The _target_ specifies the _ipam/ip_space_ object to which the objects must be c IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) (*IpamsvcBulkCopyIPSpaceResponse, *http.Response, error) /* - IpSpaceCopy Copy the IP space. + IpSpaceCopy Copy the IP space. - Use this method to copy an __IPSpace__ object. -The __IPSpace__ object represents an entire address space. + Use this method to copy an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceCopyRequest */ IpSpaceCopy(ctx context.Context, id string) ApiIpSpaceCopyRequest @@ -61,13 +60,13 @@ The __IPSpace__ object represents an entire address space. IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*IpamsvcCopyIPSpaceResponse, *http.Response, error) /* - IpSpaceCreate Create the IP space. + IpSpaceCreate Create the IP space. - Use this method to create an __IPSpace__ object. -The __IPSpace__ object represents an entire address space. + Use this method to create an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceCreateRequest */ IpSpaceCreate(ctx context.Context) ApiIpSpaceCreateRequest @@ -76,14 +75,14 @@ The __IPSpace__ object represents an entire address space. IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*IpamsvcCreateIPSpaceResponse, *http.Response, error) /* - IpSpaceDelete Move the IP space to the recycle bin. + IpSpaceDelete Move the IP space to the recycle bin. - Use this method to move an __IPSpace__ object to the recycle bin. -The __IPSpace__ object represents an entire address space. + Use this method to move an __IPSpace__ object to the recycle bin. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceDeleteRequest */ IpSpaceDelete(ctx context.Context, id string) ApiIpSpaceDeleteRequest @@ -91,13 +90,13 @@ The __IPSpace__ object represents an entire address space. IpSpaceDeleteExecute(r ApiIpSpaceDeleteRequest) (*http.Response, error) /* - IpSpaceList Retrieve IP spaces. + IpSpaceList Retrieve IP spaces. - Use this method to retrieve __IPSpace__ objects. -The __IPSpace__ object represents an entire address space. + Use this method to retrieve __IPSpace__ objects. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceListRequest */ IpSpaceList(ctx context.Context) ApiIpSpaceListRequest @@ -106,14 +105,14 @@ The __IPSpace__ object represents an entire address space. IpSpaceListExecute(r ApiIpSpaceListRequest) (*IpamsvcListIPSpaceResponse, *http.Response, error) /* - IpSpaceRead Retrieve the IP space. + IpSpaceRead Retrieve the IP space. - Use this method to retrieve an __IPSpace__ object. -The __IPSpace__ object represents an entire address space. + Use this method to retrieve an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceReadRequest */ IpSpaceRead(ctx context.Context, id string) ApiIpSpaceReadRequest @@ -122,14 +121,14 @@ The __IPSpace__ object represents an entire address space. IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*IpamsvcReadIPSpaceResponse, *http.Response, error) /* - IpSpaceUpdate Update the IP space. + IpSpaceUpdate Update the IP space. - Use this method to update an __IPSpace__ object. -The __IPSpace__ object represents an entire address space. + Use this method to update an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceUpdateRequest */ IpSpaceUpdate(ctx context.Context, id string) ApiIpSpaceUpdateRequest @@ -142,9 +141,9 @@ The __IPSpace__ object represents an entire address space. type IpSpaceAPIService internal.Service type ApiIpSpaceBulkCopyRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - body *IpamsvcBulkCopyIPSpace + body *IpamsvcBulkCopyIPSpace } func (r ApiIpSpaceBulkCopyRequest) Body(body IpamsvcBulkCopyIPSpace) ApiIpSpaceBulkCopyRequest { @@ -167,24 +166,25 @@ The __Subnet__ object represents a set of addresses from which addresses are ass The _copy_objects_ specifies the list of objects (_ipam/address_block_ and _ipam/subnet_ only) in the _ipam/ip_space_ object to copy. The _target_ specifies the _ipam/ip_space_ object to which the objects must be copied. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceBulkCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceBulkCopyRequest */ func (a *IpSpaceAPIService) IpSpaceBulkCopy(ctx context.Context) ApiIpSpaceBulkCopyRequest { return ApiIpSpaceBulkCopyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcBulkCopyIPSpaceResponse +// +// @return IpamsvcBulkCopyIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) (*IpamsvcBulkCopyIPSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcBulkCopyIPSpaceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcBulkCopyIPSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceBulkCopy") @@ -266,10 +266,10 @@ func (a *IpSpaceAPIService) IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) } type ApiIpSpaceCopyRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - id string - body *IpamsvcCopyIPSpace + id string + body *IpamsvcCopyIPSpace } func (r ApiIpSpaceCopyRequest) Body(body IpamsvcCopyIPSpace) ApiIpSpaceCopyRequest { @@ -287,26 +287,27 @@ IpSpaceCopy Copy the IP space. Use this method to copy an __IPSpace__ object. The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceCopyRequest */ func (a *IpSpaceAPIService) IpSpaceCopy(ctx context.Context, id string) ApiIpSpaceCopyRequest { return ApiIpSpaceCopyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCopyIPSpaceResponse +// +// @return IpamsvcCopyIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*IpamsvcCopyIPSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCopyIPSpaceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCopyIPSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceCopy") @@ -389,10 +390,10 @@ func (a *IpSpaceAPIService) IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*Ipamsv } type ApiIpSpaceCreateRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - body *IpamsvcIPSpace - inherit *string + body *IpamsvcIPSpace + inherit *string } func (r ApiIpSpaceCreateRequest) Body(body IpamsvcIPSpace) ApiIpSpaceCreateRequest { @@ -416,24 +417,25 @@ IpSpaceCreate Create the IP space. Use this method to create an __IPSpace__ object. The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceCreateRequest */ func (a *IpSpaceAPIService) IpSpaceCreate(ctx context.Context) ApiIpSpaceCreateRequest { return ApiIpSpaceCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateIPSpaceResponse +// +// @return IpamsvcCreateIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*IpamsvcCreateIPSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateIPSpaceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateIPSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceCreate") @@ -518,9 +520,9 @@ func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*Ip } type ApiIpSpaceDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - id string + id string } func (r ApiIpSpaceDeleteRequest) Execute() (*http.Response, error) { @@ -533,24 +535,24 @@ IpSpaceDelete Move the IP space to the recycle bin. Use this method to move an __IPSpace__ object to the recycle bin. The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceDeleteRequest */ func (a *IpSpaceAPIService) IpSpaceDelete(ctx context.Context, id string) ApiIpSpaceDeleteRequest { return ApiIpSpaceDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *IpSpaceAPIService) IpSpaceDeleteExecute(r ApiIpSpaceDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceDelete") @@ -622,50 +624,50 @@ func (a *IpSpaceAPIService) IpSpaceDeleteExecute(r ApiIpSpaceDeleteRequest) (*ht } type ApiIpSpaceListRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - torderBy *string - tfilter *string - inherit *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. +// 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. func (r ApiIpSpaceListRequest) Fields(fields string) ApiIpSpaceListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiIpSpaceListRequest) Filter(filter string) ApiIpSpaceListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiIpSpaceListRequest) Offset(offset int32) ApiIpSpaceListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiIpSpaceListRequest) Limit(limit int32) ApiIpSpaceListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiIpSpaceListRequest) PageToken(pageToken string) ApiIpSpaceListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiIpSpaceListRequest) OrderBy(orderBy string) ApiIpSpaceListRequest { r.orderBy = &orderBy return r @@ -699,24 +701,25 @@ IpSpaceList Retrieve IP spaces. Use this method to retrieve __IPSpace__ objects. The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceListRequest */ func (a *IpSpaceAPIService) IpSpaceList(ctx context.Context) ApiIpSpaceListRequest { return ApiIpSpaceListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListIPSpaceResponse +// +// @return IpamsvcListIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceListExecute(r ApiIpSpaceListRequest) (*IpamsvcListIPSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListIPSpaceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListIPSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceList") @@ -820,14 +823,14 @@ func (a *IpSpaceAPIService) IpSpaceListExecute(r ApiIpSpaceListRequest) (*Ipamsv } type ApiIpSpaceReadRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiIpSpaceReadRequest) Fields(fields string) ApiIpSpaceReadRequest { r.fields = &fields return r @@ -849,26 +852,27 @@ IpSpaceRead Retrieve the IP space. Use this method to retrieve an __IPSpace__ object. The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceReadRequest */ func (a *IpSpaceAPIService) IpSpaceRead(ctx context.Context, id string) ApiIpSpaceReadRequest { return ApiIpSpaceReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadIPSpaceResponse +// +// @return IpamsvcReadIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*IpamsvcReadIPSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadIPSpaceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadIPSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceRead") @@ -952,11 +956,11 @@ func (a *IpSpaceAPIService) IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*Ipamsv } type ApiIpSpaceUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService IpSpaceAPI - id string - body *IpamsvcIPSpace - inherit *string + id string + body *IpamsvcIPSpace + inherit *string } func (r ApiIpSpaceUpdateRequest) Body(body IpamsvcIPSpace) ApiIpSpaceUpdateRequest { @@ -980,26 +984,27 @@ IpSpaceUpdate Update the IP space. Use this method to update an __IPSpace__ object. The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpSpaceUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpSpaceUpdateRequest */ func (a *IpSpaceAPIService) IpSpaceUpdate(ctx context.Context, id string) ApiIpSpaceUpdateRequest { return ApiIpSpaceUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateIPSpaceResponse +// +// @return IpamsvcUpdateIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceUpdateExecute(r ApiIpSpaceUpdateRequest) (*IpamsvcUpdateIPSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateIPSpaceResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateIPSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpSpaceAPIService.IpSpaceUpdate") diff --git a/ipam/api_ipam_host.go b/ipam/api_ipam_host.go index 787ac35..aec93a6 100644 --- a/ipam/api_ipam_host.go +++ b/ipam/api_ipam_host.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type IpamHostAPI interface { /* - IpamHostCreate Create the IPAM host. + IpamHostCreate Create the IPAM host. - Use this method to create an __IpamHost__ object. -The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to create an __IpamHost__ object. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamHostCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamHostCreateRequest */ IpamHostCreate(ctx context.Context) ApiIpamHostCreateRequest @@ -40,14 +39,14 @@ The __IpamHost__ object (_ipam/host_) represents any network connected equipment IpamHostCreateExecute(r ApiIpamHostCreateRequest) (*IpamsvcCreateIpamHostResponse, *http.Response, error) /* - IpamHostDelete Move the IPAM host to the recycle bin. + IpamHostDelete Move the IPAM host to the recycle bin. - Use this method to move an __IpamHost__ object to the recycle bin. -The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to move an __IpamHost__ object to the recycle bin. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpamHostDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpamHostDeleteRequest */ IpamHostDelete(ctx context.Context, id string) ApiIpamHostDeleteRequest @@ -55,13 +54,13 @@ The __IpamHost__ object (_ipam/host_) represents any network connected equipment IpamHostDeleteExecute(r ApiIpamHostDeleteRequest) (*http.Response, error) /* - IpamHostList Retrieve the IPAM hosts. + IpamHostList Retrieve the IPAM hosts. - Use this method to retrieve __IpamHost__ objects. -The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to retrieve __IpamHost__ objects. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamHostListRequest */ IpamHostList(ctx context.Context) ApiIpamHostListRequest @@ -70,14 +69,14 @@ The __IpamHost__ object (_ipam/host_) represents any network connected equipment IpamHostListExecute(r ApiIpamHostListRequest) (*IpamsvcListIpamHostResponse, *http.Response, error) /* - IpamHostRead Retrieve the IPAM host. + IpamHostRead Retrieve the IPAM host. - Use this method to retrieve an __IpamHost__ object. -The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to retrieve an __IpamHost__ object. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpamHostReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpamHostReadRequest */ IpamHostRead(ctx context.Context, id string) ApiIpamHostReadRequest @@ -86,14 +85,14 @@ The __IpamHost__ object (_ipam/host_) represents any network connected equipment IpamHostReadExecute(r ApiIpamHostReadRequest) (*IpamsvcReadIpamHostResponse, *http.Response, error) /* - IpamHostUpdate Update the IPAM host. + IpamHostUpdate Update the IPAM host. - Use this method to update an __IpamHost__ object. -The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to update an __IpamHost__ object. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpamHostUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpamHostUpdateRequest */ IpamHostUpdate(ctx context.Context, id string) ApiIpamHostUpdateRequest @@ -106,9 +105,9 @@ The __IpamHost__ object (_ipam/host_) represents any network connected equipment type IpamHostAPIService internal.Service type ApiIpamHostCreateRequest struct { - ctx context.Context + ctx context.Context ApiService IpamHostAPI - body *IpamsvcIpamHost + body *IpamsvcIpamHost } func (r ApiIpamHostCreateRequest) Body(body IpamsvcIpamHost) ApiIpamHostCreateRequest { @@ -126,24 +125,25 @@ IpamHostCreate Create the IPAM host. Use this method to create an __IpamHost__ object. The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamHostCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamHostCreateRequest */ func (a *IpamHostAPIService) IpamHostCreate(ctx context.Context) ApiIpamHostCreateRequest { return ApiIpamHostCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateIpamHostResponse +// +// @return IpamsvcCreateIpamHostResponse func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) (*IpamsvcCreateIpamHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateIpamHostResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateIpamHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpamHostAPIService.IpamHostCreate") @@ -225,9 +225,9 @@ func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) ( } type ApiIpamHostDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService IpamHostAPI - id string + id string } func (r ApiIpamHostDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ IpamHostDelete Move the IPAM host to the recycle bin. Use this method to move an __IpamHost__ object to the recycle bin. The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpamHostDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpamHostDeleteRequest */ func (a *IpamHostAPIService) IpamHostDelete(ctx context.Context, id string) ApiIpamHostDeleteRequest { return ApiIpamHostDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *IpamHostAPIService) IpamHostDeleteExecute(r ApiIpamHostDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpamHostAPIService.IpamHostDelete") @@ -329,49 +329,49 @@ func (a *IpamHostAPIService) IpamHostDeleteExecute(r ApiIpamHostDeleteRequest) ( } type ApiIpamHostListRequest struct { - ctx context.Context + ctx context.Context ApiService IpamHostAPI - fields *string - orderBy *string - filter *string - offset *int32 - limit *int32 - pageToken *string - torderBy *string - tfilter *string + fields *string + orderBy *string + filter *string + offset *int32 + limit *int32 + pageToken *string + torderBy *string + tfilter *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. +// 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. func (r ApiIpamHostListRequest) Fields(fields string) ApiIpamHostListRequest { r.fields = &fields return r } -// 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. +// 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. func (r ApiIpamHostListRequest) OrderBy(orderBy string) ApiIpamHostListRequest { r.orderBy = &orderBy return r } -// 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 | +// 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 | func (r ApiIpamHostListRequest) Filter(filter string) ApiIpamHostListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiIpamHostListRequest) Offset(offset int32) ApiIpamHostListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiIpamHostListRequest) Limit(limit int32) ApiIpamHostListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiIpamHostListRequest) PageToken(pageToken string) ApiIpamHostListRequest { r.pageToken = &pageToken return r @@ -399,24 +399,25 @@ IpamHostList Retrieve the IPAM hosts. Use this method to retrieve __IpamHost__ objects. The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamHostListRequest */ func (a *IpamHostAPIService) IpamHostList(ctx context.Context) ApiIpamHostListRequest { return ApiIpamHostListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListIpamHostResponse +// +// @return IpamsvcListIpamHostResponse func (a *IpamHostAPIService) IpamHostListExecute(r ApiIpamHostListRequest) (*IpamsvcListIpamHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListIpamHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListIpamHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpamHostAPIService.IpamHostList") @@ -517,20 +518,20 @@ func (a *IpamHostAPIService) IpamHostListExecute(r ApiIpamHostListRequest) (*Ipa } type ApiIpamHostReadRequest struct { - ctx context.Context + ctx context.Context ApiService IpamHostAPI - id string - orderBy *string - fields *string + id string + orderBy *string + fields *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. +// 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. func (r ApiIpamHostReadRequest) OrderBy(orderBy string) ApiIpamHostReadRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiIpamHostReadRequest) Fields(fields string) ApiIpamHostReadRequest { r.fields = &fields return r @@ -546,26 +547,27 @@ IpamHostRead Retrieve the IPAM host. Use this method to retrieve an __IpamHost__ object. The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpamHostReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpamHostReadRequest */ func (a *IpamHostAPIService) IpamHostRead(ctx context.Context, id string) ApiIpamHostReadRequest { return ApiIpamHostReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadIpamHostResponse +// +// @return IpamsvcReadIpamHostResponse func (a *IpamHostAPIService) IpamHostReadExecute(r ApiIpamHostReadRequest) (*IpamsvcReadIpamHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadIpamHostResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadIpamHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpamHostAPIService.IpamHostRead") @@ -649,10 +651,10 @@ func (a *IpamHostAPIService) IpamHostReadExecute(r ApiIpamHostReadRequest) (*Ipa } type ApiIpamHostUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService IpamHostAPI - id string - body *IpamsvcIpamHost + id string + body *IpamsvcIpamHost } func (r ApiIpamHostUpdateRequest) Body(body IpamsvcIpamHost) ApiIpamHostUpdateRequest { @@ -670,26 +672,27 @@ IpamHostUpdate Update the IPAM host. Use this method to update an __IpamHost__ object. The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiIpamHostUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiIpamHostUpdateRequest */ func (a *IpamHostAPIService) IpamHostUpdate(ctx context.Context, id string) ApiIpamHostUpdateRequest { return ApiIpamHostUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateIpamHostResponse +// +// @return IpamsvcUpdateIpamHostResponse func (a *IpamHostAPIService) IpamHostUpdateExecute(r ApiIpamHostUpdateRequest) (*IpamsvcUpdateIpamHostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateIpamHostResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateIpamHostResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "IpamHostAPIService.IpamHostUpdate") diff --git a/ipam/api_leases_command.go b/ipam/api_leases_command.go index 6c045dd..429e629 100644 --- a/ipam/api_leases_command.go +++ b/ipam/api_leases_command.go @@ -17,20 +17,19 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type LeasesCommandAPI interface { /* - LeasesCommandCreate Perform actions like clearing DHCP lease(s). + LeasesCommandCreate Perform actions like clearing DHCP lease(s). - Use this method to create a __LeasesCommand__ object. -The __LeasesCommand__ object (_dhcp/leases_command_) is used for performing an action like clearing DHCP lease(s). + Use this method to create a __LeasesCommand__ object. + The __LeasesCommand__ object (_dhcp/leases_command_) is used for performing an action like clearing DHCP lease(s). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLeasesCommandCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLeasesCommandCreateRequest */ LeasesCommandCreate(ctx context.Context) ApiLeasesCommandCreateRequest @@ -43,9 +42,9 @@ The __LeasesCommand__ object (_dhcp/leases_command_) is used for performing an a type LeasesCommandAPIService internal.Service type ApiLeasesCommandCreateRequest struct { - ctx context.Context + ctx context.Context ApiService LeasesCommandAPI - body *IpamsvcLeasesCommand + body *IpamsvcLeasesCommand } func (r ApiLeasesCommandCreateRequest) Body(body IpamsvcLeasesCommand) ApiLeasesCommandCreateRequest { @@ -63,24 +62,25 @@ LeasesCommandCreate Perform actions like clearing DHCP lease(s). Use this method to create a __LeasesCommand__ object. The __LeasesCommand__ object (_dhcp/leases_command_) is used for performing an action like clearing DHCP lease(s). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLeasesCommandCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLeasesCommandCreateRequest */ func (a *LeasesCommandAPIService) LeasesCommandCreate(ctx context.Context) ApiLeasesCommandCreateRequest { return ApiLeasesCommandCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateLeasesCommandResponse +// +// @return IpamsvcCreateLeasesCommandResponse func (a *LeasesCommandAPIService) LeasesCommandCreateExecute(r ApiLeasesCommandCreateRequest) (*IpamsvcCreateLeasesCommandResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateLeasesCommandResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateLeasesCommandResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "LeasesCommandAPIService.LeasesCommandCreate") diff --git a/ipam/api_option_code.go b/ipam/api_option_code.go index b8988c7..3d99ae5 100644 --- a/ipam/api_option_code.go +++ b/ipam/api_option_code.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type OptionCodeAPI interface { /* - OptionCodeCreate Create the DHCP option code. + OptionCodeCreate Create the DHCP option code. - Use this method to create an __OptionCode__ object. -The __OptionCode__ object defines a DHCP option code. + Use this method to create an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionCodeCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionCodeCreateRequest */ OptionCodeCreate(ctx context.Context) ApiOptionCodeCreateRequest @@ -40,14 +39,14 @@ The __OptionCode__ object defines a DHCP option code. OptionCodeCreateExecute(r ApiOptionCodeCreateRequest) (*IpamsvcCreateOptionCodeResponse, *http.Response, error) /* - OptionCodeDelete Delete the DHCP option code. + OptionCodeDelete Delete the DHCP option code. - Use this method to delete an __OptionCode__ object. -The __OptionCode__ object defines a DHCP option code. + Use this method to delete an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionCodeDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionCodeDeleteRequest */ OptionCodeDelete(ctx context.Context, id string) ApiOptionCodeDeleteRequest @@ -55,13 +54,13 @@ The __OptionCode__ object defines a DHCP option code. OptionCodeDeleteExecute(r ApiOptionCodeDeleteRequest) (*http.Response, error) /* - OptionCodeList Retrieve DHCP option codes. + OptionCodeList Retrieve DHCP option codes. - Use this method to retrieve __OptionCode__ objects. -The __OptionCode__ object defines a DHCP option code. + Use this method to retrieve __OptionCode__ objects. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionCodeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionCodeListRequest */ OptionCodeList(ctx context.Context) ApiOptionCodeListRequest @@ -70,14 +69,14 @@ The __OptionCode__ object defines a DHCP option code. OptionCodeListExecute(r ApiOptionCodeListRequest) (*IpamsvcListOptionCodeResponse, *http.Response, error) /* - OptionCodeRead Retrieve the DHCP option code. + OptionCodeRead Retrieve the DHCP option code. - Use this method to retrieve an __OptionCode__ object. -The __OptionCode__ object defines a DHCP option code. + Use this method to retrieve an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionCodeReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionCodeReadRequest */ OptionCodeRead(ctx context.Context, id string) ApiOptionCodeReadRequest @@ -86,14 +85,14 @@ The __OptionCode__ object defines a DHCP option code. OptionCodeReadExecute(r ApiOptionCodeReadRequest) (*IpamsvcReadOptionCodeResponse, *http.Response, error) /* - OptionCodeUpdate Update the DHCP option code. + OptionCodeUpdate Update the DHCP option code. - Use this method to update an __OptionCode__ object. -The __OptionCode__ object defines a DHCP option code. + Use this method to update an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionCodeUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionCodeUpdateRequest */ OptionCodeUpdate(ctx context.Context, id string) ApiOptionCodeUpdateRequest @@ -106,9 +105,9 @@ The __OptionCode__ object defines a DHCP option code. type OptionCodeAPIService internal.Service type ApiOptionCodeCreateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionCodeAPI - body *IpamsvcOptionCode + body *IpamsvcOptionCode } func (r ApiOptionCodeCreateRequest) Body(body IpamsvcOptionCode) ApiOptionCodeCreateRequest { @@ -126,24 +125,25 @@ OptionCodeCreate Create the DHCP option code. Use this method to create an __OptionCode__ object. The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionCodeCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionCodeCreateRequest */ func (a *OptionCodeAPIService) OptionCodeCreate(ctx context.Context) ApiOptionCodeCreateRequest { return ApiOptionCodeCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateOptionCodeResponse +// +// @return IpamsvcCreateOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeCreateExecute(r ApiOptionCodeCreateRequest) (*IpamsvcCreateOptionCodeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateOptionCodeResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateOptionCodeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionCodeAPIService.OptionCodeCreate") @@ -225,9 +225,9 @@ func (a *OptionCodeAPIService) OptionCodeCreateExecute(r ApiOptionCodeCreateRequ } type ApiOptionCodeDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService OptionCodeAPI - id string + id string } func (r ApiOptionCodeDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ OptionCodeDelete Delete the DHCP option code. Use this method to delete an __OptionCode__ object. The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionCodeDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionCodeDeleteRequest */ func (a *OptionCodeAPIService) OptionCodeDelete(ctx context.Context, id string) ApiOptionCodeDeleteRequest { return ApiOptionCodeDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *OptionCodeAPIService) OptionCodeDeleteExecute(r ApiOptionCodeDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionCodeAPIService.OptionCodeDelete") @@ -329,47 +329,47 @@ func (a *OptionCodeAPIService) OptionCodeDeleteExecute(r ApiOptionCodeDeleteRequ } type ApiOptionCodeListRequest struct { - ctx context.Context + ctx context.Context ApiService OptionCodeAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *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. +// 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. func (r ApiOptionCodeListRequest) Fields(fields string) ApiOptionCodeListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiOptionCodeListRequest) Filter(filter string) ApiOptionCodeListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiOptionCodeListRequest) Offset(offset int32) ApiOptionCodeListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiOptionCodeListRequest) Limit(limit int32) ApiOptionCodeListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiOptionCodeListRequest) PageToken(pageToken string) ApiOptionCodeListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiOptionCodeListRequest) OrderBy(orderBy string) ApiOptionCodeListRequest { r.orderBy = &orderBy return r @@ -385,24 +385,25 @@ OptionCodeList Retrieve DHCP option codes. Use this method to retrieve __OptionCode__ objects. The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionCodeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionCodeListRequest */ func (a *OptionCodeAPIService) OptionCodeList(ctx context.Context) ApiOptionCodeListRequest { return ApiOptionCodeListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListOptionCodeResponse +// +// @return IpamsvcListOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeListExecute(r ApiOptionCodeListRequest) (*IpamsvcListOptionCodeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListOptionCodeResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListOptionCodeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionCodeAPIService.OptionCodeList") @@ -497,13 +498,13 @@ func (a *OptionCodeAPIService) OptionCodeListExecute(r ApiOptionCodeListRequest) } type ApiOptionCodeReadRequest struct { - ctx context.Context + ctx context.Context ApiService OptionCodeAPI - id string - fields *string + id string + 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. +// 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. func (r ApiOptionCodeReadRequest) Fields(fields string) ApiOptionCodeReadRequest { r.fields = &fields return r @@ -519,26 +520,27 @@ OptionCodeRead Retrieve the DHCP option code. Use this method to retrieve an __OptionCode__ object. The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionCodeReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionCodeReadRequest */ func (a *OptionCodeAPIService) OptionCodeRead(ctx context.Context, id string) ApiOptionCodeReadRequest { return ApiOptionCodeReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadOptionCodeResponse +// +// @return IpamsvcReadOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeReadExecute(r ApiOptionCodeReadRequest) (*IpamsvcReadOptionCodeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadOptionCodeResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadOptionCodeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionCodeAPIService.OptionCodeRead") @@ -619,10 +621,10 @@ func (a *OptionCodeAPIService) OptionCodeReadExecute(r ApiOptionCodeReadRequest) } type ApiOptionCodeUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionCodeAPI - id string - body *IpamsvcOptionCode + id string + body *IpamsvcOptionCode } func (r ApiOptionCodeUpdateRequest) Body(body IpamsvcOptionCode) ApiOptionCodeUpdateRequest { @@ -640,26 +642,27 @@ OptionCodeUpdate Update the DHCP option code. Use this method to update an __OptionCode__ object. The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionCodeUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionCodeUpdateRequest */ func (a *OptionCodeAPIService) OptionCodeUpdate(ctx context.Context, id string) ApiOptionCodeUpdateRequest { return ApiOptionCodeUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateOptionCodeResponse +// +// @return IpamsvcUpdateOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeUpdateExecute(r ApiOptionCodeUpdateRequest) (*IpamsvcUpdateOptionCodeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateOptionCodeResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateOptionCodeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionCodeAPIService.OptionCodeUpdate") diff --git a/ipam/api_option_filter.go b/ipam/api_option_filter.go index 654235a..bd0c0cc 100644 --- a/ipam/api_option_filter.go +++ b/ipam/api_option_filter.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type OptionFilterAPI interface { /* - OptionFilterCreate Create the DHCP option filter. + OptionFilterCreate Create the DHCP option filter. - Use this method to create an __OptionFilter__ object. -The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to create an __OptionFilter__ object. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionFilterCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionFilterCreateRequest */ OptionFilterCreate(ctx context.Context) ApiOptionFilterCreateRequest @@ -40,14 +39,14 @@ The __OptionFilter__ object applies options to DHCP clients with matching option OptionFilterCreateExecute(r ApiOptionFilterCreateRequest) (*IpamsvcCreateOptionFilterResponse, *http.Response, error) /* - OptionFilterDelete Move the DHCP option filter to the recycle bin. + OptionFilterDelete Move the DHCP option filter to the recycle bin. - Use this method to move an __OptionFilter__ object to the recycle bin. -The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to move an __OptionFilter__ object to the recycle bin. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionFilterDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionFilterDeleteRequest */ OptionFilterDelete(ctx context.Context, id string) ApiOptionFilterDeleteRequest @@ -55,13 +54,13 @@ The __OptionFilter__ object applies options to DHCP clients with matching option OptionFilterDeleteExecute(r ApiOptionFilterDeleteRequest) (*http.Response, error) /* - OptionFilterList Retrieve DHCP option filters. + OptionFilterList Retrieve DHCP option filters. - Use this method to retrieve __OptionFilter__ objects. -The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve __OptionFilter__ objects. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionFilterListRequest */ OptionFilterList(ctx context.Context) ApiOptionFilterListRequest @@ -70,14 +69,14 @@ The __OptionFilter__ object applies options to DHCP clients with matching option OptionFilterListExecute(r ApiOptionFilterListRequest) (*IpamsvcListOptionFilterResponse, *http.Response, error) /* - OptionFilterRead Retrieve the DHCP option filter. + OptionFilterRead Retrieve the DHCP option filter. - Use this method to retrieve an __OptionFilter__ object. -The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve an __OptionFilter__ object. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionFilterReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionFilterReadRequest */ OptionFilterRead(ctx context.Context, id string) ApiOptionFilterReadRequest @@ -86,14 +85,14 @@ The __OptionFilter__ object applies options to DHCP clients with matching option OptionFilterReadExecute(r ApiOptionFilterReadRequest) (*IpamsvcReadOptionFilterResponse, *http.Response, error) /* - OptionFilterUpdate Update the DHCP option filter. + OptionFilterUpdate Update the DHCP option filter. - Use this method to update an __OptionFilter__ object. -The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to update an __OptionFilter__ object. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionFilterUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionFilterUpdateRequest */ OptionFilterUpdate(ctx context.Context, id string) ApiOptionFilterUpdateRequest @@ -106,9 +105,9 @@ The __OptionFilter__ object applies options to DHCP clients with matching option type OptionFilterAPIService internal.Service type ApiOptionFilterCreateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionFilterAPI - body *IpamsvcOptionFilter + body *IpamsvcOptionFilter } func (r ApiOptionFilterCreateRequest) Body(body IpamsvcOptionFilter) ApiOptionFilterCreateRequest { @@ -126,24 +125,25 @@ OptionFilterCreate Create the DHCP option filter. Use this method to create an __OptionFilter__ object. The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionFilterCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionFilterCreateRequest */ func (a *OptionFilterAPIService) OptionFilterCreate(ctx context.Context) ApiOptionFilterCreateRequest { return ApiOptionFilterCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateOptionFilterResponse +// +// @return IpamsvcCreateOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCreateRequest) (*IpamsvcCreateOptionFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateOptionFilterResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateOptionFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionFilterAPIService.OptionFilterCreate") @@ -225,9 +225,9 @@ func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCrea } type ApiOptionFilterDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService OptionFilterAPI - id string + id string } func (r ApiOptionFilterDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ OptionFilterDelete Move the DHCP option filter to the recycle bin. Use this method to move an __OptionFilter__ object to the recycle bin. The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionFilterDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionFilterDeleteRequest */ func (a *OptionFilterAPIService) OptionFilterDelete(ctx context.Context, id string) ApiOptionFilterDeleteRequest { return ApiOptionFilterDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *OptionFilterAPIService) OptionFilterDeleteExecute(r ApiOptionFilterDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionFilterAPIService.OptionFilterDelete") @@ -329,49 +329,49 @@ func (a *OptionFilterAPIService) OptionFilterDeleteExecute(r ApiOptionFilterDele } type ApiOptionFilterListRequest struct { - ctx context.Context + ctx context.Context ApiService OptionFilterAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - torderBy *string - tfilter *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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. +// 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. func (r ApiOptionFilterListRequest) Fields(fields string) ApiOptionFilterListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiOptionFilterListRequest) Filter(filter string) ApiOptionFilterListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiOptionFilterListRequest) Offset(offset int32) ApiOptionFilterListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiOptionFilterListRequest) Limit(limit int32) ApiOptionFilterListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiOptionFilterListRequest) PageToken(pageToken string) ApiOptionFilterListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiOptionFilterListRequest) OrderBy(orderBy string) ApiOptionFilterListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ OptionFilterList Retrieve DHCP option filters. Use this method to retrieve __OptionFilter__ objects. The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionFilterListRequest */ func (a *OptionFilterAPIService) OptionFilterList(ctx context.Context) ApiOptionFilterListRequest { return ApiOptionFilterListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListOptionFilterResponse +// +// @return IpamsvcListOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterListExecute(r ApiOptionFilterListRequest) (*IpamsvcListOptionFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListOptionFilterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListOptionFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionFilterAPIService.OptionFilterList") @@ -517,13 +518,13 @@ func (a *OptionFilterAPIService) OptionFilterListExecute(r ApiOptionFilterListRe } type ApiOptionFilterReadRequest struct { - ctx context.Context + ctx context.Context ApiService OptionFilterAPI - id string - fields *string + id string + 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. +// 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. func (r ApiOptionFilterReadRequest) Fields(fields string) ApiOptionFilterReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ OptionFilterRead Retrieve the DHCP option filter. Use this method to retrieve an __OptionFilter__ object. The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionFilterReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionFilterReadRequest */ func (a *OptionFilterAPIService) OptionFilterRead(ctx context.Context, id string) ApiOptionFilterReadRequest { return ApiOptionFilterReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadOptionFilterResponse +// +// @return IpamsvcReadOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterReadExecute(r ApiOptionFilterReadRequest) (*IpamsvcReadOptionFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadOptionFilterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadOptionFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionFilterAPIService.OptionFilterRead") @@ -639,10 +641,10 @@ func (a *OptionFilterAPIService) OptionFilterReadExecute(r ApiOptionFilterReadRe } type ApiOptionFilterUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionFilterAPI - id string - body *IpamsvcOptionFilter + id string + body *IpamsvcOptionFilter } func (r ApiOptionFilterUpdateRequest) Body(body IpamsvcOptionFilter) ApiOptionFilterUpdateRequest { @@ -660,26 +662,27 @@ OptionFilterUpdate Update the DHCP option filter. Use this method to update an __OptionFilter__ object. The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionFilterUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionFilterUpdateRequest */ func (a *OptionFilterAPIService) OptionFilterUpdate(ctx context.Context, id string) ApiOptionFilterUpdateRequest { return ApiOptionFilterUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateOptionFilterResponse +// +// @return IpamsvcUpdateOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterUpdateExecute(r ApiOptionFilterUpdateRequest) (*IpamsvcUpdateOptionFilterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateOptionFilterResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateOptionFilterResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionFilterAPIService.OptionFilterUpdate") diff --git a/ipam/api_option_group.go b/ipam/api_option_group.go index de4330b..e489e56 100644 --- a/ipam/api_option_group.go +++ b/ipam/api_option_group.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type OptionGroupAPI interface { /* - OptionGroupCreate Create the DHCP option group. + OptionGroupCreate Create the DHCP option group. - Use this method to create an __OptionGroup__ object. -The __OptionGroup__ object is a named collection of options. + Use this method to create an __OptionGroup__ object. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionGroupCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionGroupCreateRequest */ OptionGroupCreate(ctx context.Context) ApiOptionGroupCreateRequest @@ -40,14 +39,14 @@ The __OptionGroup__ object is a named collection of options. OptionGroupCreateExecute(r ApiOptionGroupCreateRequest) (*IpamsvcCreateOptionGroupResponse, *http.Response, error) /* - OptionGroupDelete Move the DHCP option group to the recycle bin. + OptionGroupDelete Move the DHCP option group to the recycle bin. - Use this method to move an __OptionGroup__ object to the recycle bin. -The __OptionGroup__ object is a named collection of options. + Use this method to move an __OptionGroup__ object to the recycle bin. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionGroupDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionGroupDeleteRequest */ OptionGroupDelete(ctx context.Context, id string) ApiOptionGroupDeleteRequest @@ -55,13 +54,13 @@ The __OptionGroup__ object is a named collection of options. OptionGroupDeleteExecute(r ApiOptionGroupDeleteRequest) (*http.Response, error) /* - OptionGroupList Retrieve DHCP option groups. + OptionGroupList Retrieve DHCP option groups. - Use this method to retrieve __OptionGroup__ objects. -The __OptionGroup__ object is a named collection of options. + Use this method to retrieve __OptionGroup__ objects. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionGroupListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionGroupListRequest */ OptionGroupList(ctx context.Context) ApiOptionGroupListRequest @@ -70,14 +69,14 @@ The __OptionGroup__ object is a named collection of options. OptionGroupListExecute(r ApiOptionGroupListRequest) (*IpamsvcListOptionGroupResponse, *http.Response, error) /* - OptionGroupRead Retrieve the DHCP option group. + OptionGroupRead Retrieve the DHCP option group. - Use this method to retrieve an __OptionGroup__ object. -The __OptionGroup__ object is a named collection of options. + Use this method to retrieve an __OptionGroup__ object. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionGroupReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionGroupReadRequest */ OptionGroupRead(ctx context.Context, id string) ApiOptionGroupReadRequest @@ -86,14 +85,14 @@ The __OptionGroup__ object is a named collection of options. OptionGroupReadExecute(r ApiOptionGroupReadRequest) (*IpamsvcReadOptionGroupResponse, *http.Response, error) /* - OptionGroupUpdate Update the DHCP option group. + OptionGroupUpdate Update the DHCP option group. - Use this method to update an __OptionGroup__ object. -The __OptionGroup__ object is a named collection of options. + Use this method to update an __OptionGroup__ object. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionGroupUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionGroupUpdateRequest */ OptionGroupUpdate(ctx context.Context, id string) ApiOptionGroupUpdateRequest @@ -106,9 +105,9 @@ The __OptionGroup__ object is a named collection of options. type OptionGroupAPIService internal.Service type ApiOptionGroupCreateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionGroupAPI - body *IpamsvcOptionGroup + body *IpamsvcOptionGroup } func (r ApiOptionGroupCreateRequest) Body(body IpamsvcOptionGroup) ApiOptionGroupCreateRequest { @@ -126,24 +125,25 @@ OptionGroupCreate Create the DHCP option group. Use this method to create an __OptionGroup__ object. The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionGroupCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionGroupCreateRequest */ func (a *OptionGroupAPIService) OptionGroupCreate(ctx context.Context) ApiOptionGroupCreateRequest { return ApiOptionGroupCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateOptionGroupResponse +// +// @return IpamsvcCreateOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateRequest) (*IpamsvcCreateOptionGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateOptionGroupResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateOptionGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionGroupAPIService.OptionGroupCreate") @@ -225,9 +225,9 @@ func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateR } type ApiOptionGroupDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService OptionGroupAPI - id string + id string } func (r ApiOptionGroupDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ OptionGroupDelete Move the DHCP option group to the recycle bin. Use this method to move an __OptionGroup__ object to the recycle bin. The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionGroupDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionGroupDeleteRequest */ func (a *OptionGroupAPIService) OptionGroupDelete(ctx context.Context, id string) ApiOptionGroupDeleteRequest { return ApiOptionGroupDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *OptionGroupAPIService) OptionGroupDeleteExecute(r ApiOptionGroupDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionGroupAPIService.OptionGroupDelete") @@ -329,49 +329,49 @@ func (a *OptionGroupAPIService) OptionGroupDeleteExecute(r ApiOptionGroupDeleteR } type ApiOptionGroupListRequest struct { - ctx context.Context + ctx context.Context ApiService OptionGroupAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - torderBy *string - tfilter *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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. +// 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. func (r ApiOptionGroupListRequest) Fields(fields string) ApiOptionGroupListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiOptionGroupListRequest) Filter(filter string) ApiOptionGroupListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiOptionGroupListRequest) Offset(offset int32) ApiOptionGroupListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiOptionGroupListRequest) Limit(limit int32) ApiOptionGroupListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiOptionGroupListRequest) PageToken(pageToken string) ApiOptionGroupListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiOptionGroupListRequest) OrderBy(orderBy string) ApiOptionGroupListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ OptionGroupList Retrieve DHCP option groups. Use this method to retrieve __OptionGroup__ objects. The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionGroupListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionGroupListRequest */ func (a *OptionGroupAPIService) OptionGroupList(ctx context.Context) ApiOptionGroupListRequest { return ApiOptionGroupListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListOptionGroupResponse +// +// @return IpamsvcListOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupListExecute(r ApiOptionGroupListRequest) (*IpamsvcListOptionGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListOptionGroupResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListOptionGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionGroupAPIService.OptionGroupList") @@ -517,13 +518,13 @@ func (a *OptionGroupAPIService) OptionGroupListExecute(r ApiOptionGroupListReque } type ApiOptionGroupReadRequest struct { - ctx context.Context + ctx context.Context ApiService OptionGroupAPI - id string - fields *string + id string + 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. +// 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. func (r ApiOptionGroupReadRequest) Fields(fields string) ApiOptionGroupReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ OptionGroupRead Retrieve the DHCP option group. Use this method to retrieve an __OptionGroup__ object. The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionGroupReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionGroupReadRequest */ func (a *OptionGroupAPIService) OptionGroupRead(ctx context.Context, id string) ApiOptionGroupReadRequest { return ApiOptionGroupReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadOptionGroupResponse +// +// @return IpamsvcReadOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupReadExecute(r ApiOptionGroupReadRequest) (*IpamsvcReadOptionGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadOptionGroupResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadOptionGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionGroupAPIService.OptionGroupRead") @@ -639,10 +641,10 @@ func (a *OptionGroupAPIService) OptionGroupReadExecute(r ApiOptionGroupReadReque } type ApiOptionGroupUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionGroupAPI - id string - body *IpamsvcOptionGroup + id string + body *IpamsvcOptionGroup } func (r ApiOptionGroupUpdateRequest) Body(body IpamsvcOptionGroup) ApiOptionGroupUpdateRequest { @@ -660,26 +662,27 @@ OptionGroupUpdate Update the DHCP option group. Use this method to update an __OptionGroup__ object. The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionGroupUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionGroupUpdateRequest */ func (a *OptionGroupAPIService) OptionGroupUpdate(ctx context.Context, id string) ApiOptionGroupUpdateRequest { return ApiOptionGroupUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateOptionGroupResponse +// +// @return IpamsvcUpdateOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupUpdateExecute(r ApiOptionGroupUpdateRequest) (*IpamsvcUpdateOptionGroupResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateOptionGroupResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateOptionGroupResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionGroupAPIService.OptionGroupUpdate") diff --git a/ipam/api_option_space.go b/ipam/api_option_space.go index d8bf5a4..26f654d 100644 --- a/ipam/api_option_space.go +++ b/ipam/api_option_space.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type OptionSpaceAPI interface { /* - OptionSpaceCreate Create the DHCP option space. + OptionSpaceCreate Create the DHCP option space. - Use this method to create an __OptionSpace__ object. -The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to create an __OptionSpace__ object. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionSpaceCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionSpaceCreateRequest */ OptionSpaceCreate(ctx context.Context) ApiOptionSpaceCreateRequest @@ -40,14 +39,14 @@ The __OptionSpace__ object represents a set of DHCP option codes. OptionSpaceCreateExecute(r ApiOptionSpaceCreateRequest) (*IpamsvcCreateOptionSpaceResponse, *http.Response, error) /* - OptionSpaceDelete Move the DHCP option space to the recycle bin. + OptionSpaceDelete Move the DHCP option space to the recycle bin. - Use this method to move an __OptionSpace__ object to the recycle bin. -The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to move an __OptionSpace__ object to the recycle bin. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionSpaceDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionSpaceDeleteRequest */ OptionSpaceDelete(ctx context.Context, id string) ApiOptionSpaceDeleteRequest @@ -55,13 +54,13 @@ The __OptionSpace__ object represents a set of DHCP option codes. OptionSpaceDeleteExecute(r ApiOptionSpaceDeleteRequest) (*http.Response, error) /* - OptionSpaceList Retrieve DHCP option spaces. + OptionSpaceList Retrieve DHCP option spaces. - Use this method to retrieve __OptionSpace__ objects. -The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to retrieve __OptionSpace__ objects. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionSpaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionSpaceListRequest */ OptionSpaceList(ctx context.Context) ApiOptionSpaceListRequest @@ -70,14 +69,14 @@ The __OptionSpace__ object represents a set of DHCP option codes. OptionSpaceListExecute(r ApiOptionSpaceListRequest) (*IpamsvcListOptionSpaceResponse, *http.Response, error) /* - OptionSpaceRead Retrieve the DHCP option space. + OptionSpaceRead Retrieve the DHCP option space. - Use this method to retrieve an __OptionSpace__ object. -The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to retrieve an __OptionSpace__ object. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionSpaceReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionSpaceReadRequest */ OptionSpaceRead(ctx context.Context, id string) ApiOptionSpaceReadRequest @@ -86,14 +85,14 @@ The __OptionSpace__ object represents a set of DHCP option codes. OptionSpaceReadExecute(r ApiOptionSpaceReadRequest) (*IpamsvcReadOptionSpaceResponse, *http.Response, error) /* - OptionSpaceUpdate Update the DHCP option space. + OptionSpaceUpdate Update the DHCP option space. - Use this method to update an __OptionSpace__ object. -The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to update an __OptionSpace__ object. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionSpaceUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionSpaceUpdateRequest */ OptionSpaceUpdate(ctx context.Context, id string) ApiOptionSpaceUpdateRequest @@ -106,9 +105,9 @@ The __OptionSpace__ object represents a set of DHCP option codes. type OptionSpaceAPIService internal.Service type ApiOptionSpaceCreateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionSpaceAPI - body *IpamsvcOptionSpace + body *IpamsvcOptionSpace } func (r ApiOptionSpaceCreateRequest) Body(body IpamsvcOptionSpace) ApiOptionSpaceCreateRequest { @@ -126,24 +125,25 @@ OptionSpaceCreate Create the DHCP option space. Use this method to create an __OptionSpace__ object. The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionSpaceCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionSpaceCreateRequest */ func (a *OptionSpaceAPIService) OptionSpaceCreate(ctx context.Context) ApiOptionSpaceCreateRequest { return ApiOptionSpaceCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateOptionSpaceResponse +// +// @return IpamsvcCreateOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateRequest) (*IpamsvcCreateOptionSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateOptionSpaceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateOptionSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionSpaceAPIService.OptionSpaceCreate") @@ -225,9 +225,9 @@ func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateR } type ApiOptionSpaceDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService OptionSpaceAPI - id string + id string } func (r ApiOptionSpaceDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ OptionSpaceDelete Move the DHCP option space to the recycle bin. Use this method to move an __OptionSpace__ object to the recycle bin. The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionSpaceDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionSpaceDeleteRequest */ func (a *OptionSpaceAPIService) OptionSpaceDelete(ctx context.Context, id string) ApiOptionSpaceDeleteRequest { return ApiOptionSpaceDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *OptionSpaceAPIService) OptionSpaceDeleteExecute(r ApiOptionSpaceDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionSpaceAPIService.OptionSpaceDelete") @@ -329,49 +329,49 @@ func (a *OptionSpaceAPIService) OptionSpaceDeleteExecute(r ApiOptionSpaceDeleteR } type ApiOptionSpaceListRequest struct { - ctx context.Context + ctx context.Context ApiService OptionSpaceAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - torderBy *string - tfilter *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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. +// 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. func (r ApiOptionSpaceListRequest) Fields(fields string) ApiOptionSpaceListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiOptionSpaceListRequest) Filter(filter string) ApiOptionSpaceListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiOptionSpaceListRequest) Offset(offset int32) ApiOptionSpaceListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiOptionSpaceListRequest) Limit(limit int32) ApiOptionSpaceListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiOptionSpaceListRequest) PageToken(pageToken string) ApiOptionSpaceListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiOptionSpaceListRequest) OrderBy(orderBy string) ApiOptionSpaceListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ OptionSpaceList Retrieve DHCP option spaces. Use this method to retrieve __OptionSpace__ objects. The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionSpaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionSpaceListRequest */ func (a *OptionSpaceAPIService) OptionSpaceList(ctx context.Context) ApiOptionSpaceListRequest { return ApiOptionSpaceListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListOptionSpaceResponse +// +// @return IpamsvcListOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceListExecute(r ApiOptionSpaceListRequest) (*IpamsvcListOptionSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListOptionSpaceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListOptionSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionSpaceAPIService.OptionSpaceList") @@ -517,13 +518,13 @@ func (a *OptionSpaceAPIService) OptionSpaceListExecute(r ApiOptionSpaceListReque } type ApiOptionSpaceReadRequest struct { - ctx context.Context + ctx context.Context ApiService OptionSpaceAPI - id string - fields *string + id string + 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. +// 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. func (r ApiOptionSpaceReadRequest) Fields(fields string) ApiOptionSpaceReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ OptionSpaceRead Retrieve the DHCP option space. Use this method to retrieve an __OptionSpace__ object. The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionSpaceReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionSpaceReadRequest */ func (a *OptionSpaceAPIService) OptionSpaceRead(ctx context.Context, id string) ApiOptionSpaceReadRequest { return ApiOptionSpaceReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadOptionSpaceResponse +// +// @return IpamsvcReadOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceReadExecute(r ApiOptionSpaceReadRequest) (*IpamsvcReadOptionSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadOptionSpaceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadOptionSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionSpaceAPIService.OptionSpaceRead") @@ -639,10 +641,10 @@ func (a *OptionSpaceAPIService) OptionSpaceReadExecute(r ApiOptionSpaceReadReque } type ApiOptionSpaceUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService OptionSpaceAPI - id string - body *IpamsvcOptionSpace + id string + body *IpamsvcOptionSpace } func (r ApiOptionSpaceUpdateRequest) Body(body IpamsvcOptionSpace) ApiOptionSpaceUpdateRequest { @@ -660,26 +662,27 @@ OptionSpaceUpdate Update the DHCP option space. Use this method to update an __OptionSpace__ object. The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiOptionSpaceUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiOptionSpaceUpdateRequest */ func (a *OptionSpaceAPIService) OptionSpaceUpdate(ctx context.Context, id string) ApiOptionSpaceUpdateRequest { return ApiOptionSpaceUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateOptionSpaceResponse +// +// @return IpamsvcUpdateOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceUpdateExecute(r ApiOptionSpaceUpdateRequest) (*IpamsvcUpdateOptionSpaceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateOptionSpaceResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateOptionSpaceResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OptionSpaceAPIService.OptionSpaceUpdate") diff --git a/ipam/api_range.go b/ipam/api_range.go index d72f719..d0a5a77 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type RangeAPI interface { /* - RangeCreate Create the range. + RangeCreate Create the range. - Use this method to create a __Range__ object. -A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to create a __Range__ object. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRangeCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRangeCreateRequest */ RangeCreate(ctx context.Context) ApiRangeCreateRequest @@ -40,14 +39,14 @@ A __Range__ object represents a set of contiguous IP addresses in the same IP sp RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcCreateRangeResponse, *http.Response, error) /* - RangeCreateNextAvailableIP Allocate the next available IP address. + RangeCreateNextAvailableIP Allocate the next available IP address. - Use this method to allocate the next available IP address. -This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. + Use this method to allocate the next available IP address. + This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeCreateNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeCreateNextAvailableIPRequest */ RangeCreateNextAvailableIP(ctx context.Context, id string) ApiRangeCreateNextAvailableIPRequest @@ -56,14 +55,14 @@ This allocates one or more __Address__ (_ipam/address_) resource from available RangeCreateNextAvailableIPExecute(r ApiRangeCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) /* - RangeDelete Move the range to the recycle bin. + RangeDelete Move the range to the recycle bin. - Use this method to move a __Range__ object to the recycle bin. -A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to move a __Range__ object to the recycle bin. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeDeleteRequest */ RangeDelete(ctx context.Context, id string) ApiRangeDeleteRequest @@ -71,13 +70,13 @@ A __Range__ object represents a set of contiguous IP addresses in the same IP sp RangeDeleteExecute(r ApiRangeDeleteRequest) (*http.Response, error) /* - RangeList Retrieve ranges. + RangeList Retrieve ranges. - Use this method to retrieve __Range__ objects. -A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to retrieve __Range__ objects. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRangeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRangeListRequest */ RangeList(ctx context.Context) ApiRangeListRequest @@ -86,14 +85,14 @@ A __Range__ object represents a set of contiguous IP addresses in the same IP sp RangeListExecute(r ApiRangeListRequest) (*IpamsvcListRangeResponse, *http.Response, error) /* - RangeListNextAvailableIP Retrieve the next available IP address. + RangeListNextAvailableIP Retrieve the next available IP address. - Use this method to retrieve the next available IP address. -This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. + Use this method to retrieve the next available IP address. + This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeListNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeListNextAvailableIPRequest */ RangeListNextAvailableIP(ctx context.Context, id string) ApiRangeListNextAvailableIPRequest @@ -102,14 +101,14 @@ This returns one or more __Address__ (_ipam/address_) resource from available ad RangeListNextAvailableIPExecute(r ApiRangeListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) /* - RangeRead Retrieve the range. + RangeRead Retrieve the range. - Use this method to retrieve a __Range__ object. -A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to retrieve a __Range__ object. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeReadRequest */ RangeRead(ctx context.Context, id string) ApiRangeReadRequest @@ -118,14 +117,14 @@ A __Range__ object represents a set of contiguous IP addresses in the same IP sp RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadRangeResponse, *http.Response, error) /* - RangeUpdate Update the range. + RangeUpdate Update the range. - Use this method to update a __Range__ object. -A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to update a __Range__ object. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeUpdateRequest */ RangeUpdate(ctx context.Context, id string) ApiRangeUpdateRequest @@ -138,10 +137,10 @@ A __Range__ object represents a set of contiguous IP addresses in the same IP sp type RangeAPIService internal.Service type ApiRangeCreateRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - body *IpamsvcRange - inherit *string + body *IpamsvcRange + inherit *string } func (r ApiRangeCreateRequest) Body(body IpamsvcRange) ApiRangeCreateRequest { @@ -165,24 +164,25 @@ RangeCreate Create the range. Use this method to create a __Range__ object. A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRangeCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRangeCreateRequest */ func (a *RangeAPIService) RangeCreate(ctx context.Context) ApiRangeCreateRequest { return ApiRangeCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateRangeResponse +// +// @return IpamsvcCreateRangeResponse func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcCreateRangeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateRangeResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateRangeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeCreate") @@ -267,11 +267,11 @@ func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcC } type ApiRangeCreateNextAvailableIPRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - id string + id string contiguous *bool - count *int32 + count *int32 } // Indicates whether the IP addresses should belong to a contiguous block. Defaults to _false_. @@ -296,26 +296,27 @@ RangeCreateNextAvailableIP Allocate the next available IP address. Use this method to allocate the next available IP address. This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeCreateNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeCreateNextAvailableIPRequest */ func (a *RangeAPIService) RangeCreateNextAvailableIP(ctx context.Context, id string) ApiRangeCreateNextAvailableIPRequest { return ApiRangeCreateNextAvailableIPRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCreateNextAvailableIPResponse +// +// @return IpamsvcCreateNextAvailableIPResponse func (a *RangeAPIService) RangeCreateNextAvailableIPExecute(r ApiRangeCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateNextAvailableIPResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateNextAvailableIPResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeCreateNextAvailableIP") @@ -405,9 +406,9 @@ func (a *RangeAPIService) RangeCreateNextAvailableIPExecute(r ApiRangeCreateNext } type ApiRangeDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - id string + id string } func (r ApiRangeDeleteRequest) Execute() (*http.Response, error) { @@ -420,24 +421,24 @@ RangeDelete Move the range to the recycle bin. Use this method to move a __Range__ object to the recycle bin. A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeDeleteRequest */ func (a *RangeAPIService) RangeDelete(ctx context.Context, id string) ApiRangeDeleteRequest { return ApiRangeDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *RangeAPIService) RangeDeleteExecute(r ApiRangeDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeDelete") @@ -509,50 +510,50 @@ func (a *RangeAPIService) RangeDeleteExecute(r ApiRangeDeleteRequest) (*http.Res } type ApiRangeListRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - filter *string - orderBy *string - fields *string - offset *int32 - limit *int32 - pageToken *string - torderBy *string - tfilter *string - inherit *string + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + 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 | +// 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 | func (r ApiRangeListRequest) Filter(filter string) ApiRangeListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiRangeListRequest) OrderBy(orderBy string) ApiRangeListRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiRangeListRequest) Fields(fields string) ApiRangeListRequest { r.fields = &fields return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiRangeListRequest) Offset(offset int32) ApiRangeListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiRangeListRequest) Limit(limit int32) ApiRangeListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiRangeListRequest) PageToken(pageToken string) ApiRangeListRequest { r.pageToken = &pageToken return r @@ -586,24 +587,25 @@ RangeList Retrieve ranges. Use this method to retrieve __Range__ objects. A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRangeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRangeListRequest */ func (a *RangeAPIService) RangeList(ctx context.Context) ApiRangeListRequest { return ApiRangeListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListRangeResponse +// +// @return IpamsvcListRangeResponse func (a *RangeAPIService) RangeListExecute(r ApiRangeListRequest) (*IpamsvcListRangeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListRangeResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListRangeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeList") @@ -707,11 +709,11 @@ func (a *RangeAPIService) RangeListExecute(r ApiRangeListRequest) (*IpamsvcListR } type ApiRangeListNextAvailableIPRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - id string + id string contiguous *bool - count *int32 + count *int32 } // Indicates whether the IP addresses should belong to a contiguous block. Defaults to _false_. @@ -736,26 +738,27 @@ RangeListNextAvailableIP Retrieve the next available IP address. Use this method to retrieve the next available IP address. This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeListNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeListNextAvailableIPRequest */ func (a *RangeAPIService) RangeListNextAvailableIP(ctx context.Context, id string) ApiRangeListNextAvailableIPRequest { return ApiRangeListNextAvailableIPRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcNextAvailableIPResponse +// +// @return IpamsvcNextAvailableIPResponse func (a *RangeAPIService) RangeListNextAvailableIPExecute(r ApiRangeListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcNextAvailableIPResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcNextAvailableIPResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeListNextAvailableIP") @@ -839,14 +842,14 @@ func (a *RangeAPIService) RangeListNextAvailableIPExecute(r ApiRangeListNextAvai } type ApiRangeReadRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiRangeReadRequest) Fields(fields string) ApiRangeReadRequest { r.fields = &fields return r @@ -868,26 +871,27 @@ RangeRead Retrieve the range. Use this method to retrieve a __Range__ object. A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeReadRequest */ func (a *RangeAPIService) RangeRead(ctx context.Context, id string) ApiRangeReadRequest { return ApiRangeReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadRangeResponse +// +// @return IpamsvcReadRangeResponse func (a *RangeAPIService) RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadRangeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadRangeResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadRangeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeRead") @@ -971,11 +975,11 @@ func (a *RangeAPIService) RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadR } type ApiRangeUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService RangeAPI - id string - body *IpamsvcRange - inherit *string + id string + body *IpamsvcRange + inherit *string } func (r ApiRangeUpdateRequest) Body(body IpamsvcRange) ApiRangeUpdateRequest { @@ -999,26 +1003,27 @@ RangeUpdate Update the range. Use this method to update a __Range__ object. A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiRangeUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiRangeUpdateRequest */ func (a *RangeAPIService) RangeUpdate(ctx context.Context, id string) ApiRangeUpdateRequest { return ApiRangeUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateRangeResponse +// +// @return IpamsvcUpdateRangeResponse func (a *RangeAPIService) RangeUpdateExecute(r ApiRangeUpdateRequest) (*IpamsvcUpdateRangeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateRangeResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateRangeResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RangeAPIService.RangeUpdate") diff --git a/ipam/api_server.go b/ipam/api_server.go index 5b2faa3..418fb99 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type ServerAPI interface { /* - ServerCreate Create the DHCP configuration profile. + ServerCreate Create the DHCP configuration profile. - Use this method to create a __Server__ object. -A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to create a __Server__ object. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerCreateRequest */ ServerCreate(ctx context.Context) ApiServerCreateRequest @@ -40,14 +39,14 @@ A __Server__ (DHCP Config Profile) is a named configuration profile that can be ServerCreateExecute(r ApiServerCreateRequest) (*IpamsvcCreateServerResponse, *http.Response, error) /* - ServerDelete Move the DHCP configuration profile to the recycle bin. + ServerDelete Move the DHCP configuration profile to the recycle bin. - Use this method to move a __Server__ object to the recycle bin. -A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to move a __Server__ object to the recycle bin. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerDeleteRequest */ ServerDelete(ctx context.Context, id string) ApiServerDeleteRequest @@ -55,13 +54,13 @@ A __Server__ (DHCP Config Profile) is a named configuration profile that can be ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) /* - ServerList Retrieve DHCP configuration profiles. + ServerList Retrieve DHCP configuration profiles. - Use this method to retrieve __Server__ objects. -A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to retrieve __Server__ objects. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerListRequest */ ServerList(ctx context.Context) ApiServerListRequest @@ -70,14 +69,14 @@ A __Server__ (DHCP Config Profile) is a named configuration profile that can be ServerListExecute(r ApiServerListRequest) (*IpamsvcListServerResponse, *http.Response, error) /* - ServerRead Retrieve the DHCP configuration profile. + ServerRead Retrieve the DHCP configuration profile. - Use this method to retrieve a __Server__ object. -A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to retrieve a __Server__ object. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerReadRequest */ ServerRead(ctx context.Context, id string) ApiServerReadRequest @@ -86,14 +85,14 @@ A __Server__ (DHCP Config Profile) is a named configuration profile that can be ServerReadExecute(r ApiServerReadRequest) (*IpamsvcReadServerResponse, *http.Response, error) /* - ServerUpdate Update the DHCP configuration profile. + ServerUpdate Update the DHCP configuration profile. - Use this method to update a __Server__ object. -A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to update a __Server__ object. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerUpdateRequest */ ServerUpdate(ctx context.Context, id string) ApiServerUpdateRequest @@ -106,10 +105,10 @@ A __Server__ (DHCP Config Profile) is a named configuration profile that can be type ServerAPIService internal.Service type ApiServerCreateRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - body *IpamsvcServer - inherit *string + body *IpamsvcServer + inherit *string } func (r ApiServerCreateRequest) Body(body IpamsvcServer) ApiServerCreateRequest { @@ -133,24 +132,25 @@ ServerCreate Create the DHCP configuration profile. Use this method to create a __Server__ object. A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerCreateRequest */ func (a *ServerAPIService) ServerCreate(ctx context.Context) ApiServerCreateRequest { return ApiServerCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateServerResponse +// +// @return IpamsvcCreateServerResponse func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*IpamsvcCreateServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateServerResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerCreate") @@ -235,9 +235,9 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Ipams } type ApiServerDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - id string + id string } func (r ApiServerDeleteRequest) Execute() (*http.Response, error) { @@ -250,24 +250,24 @@ ServerDelete Move the DHCP configuration profile to the recycle bin. Use this method to move a __Server__ object to the recycle bin. A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerDeleteRequest */ func (a *ServerAPIService) ServerDelete(ctx context.Context, id string) ApiServerDeleteRequest { return ApiServerDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *ServerAPIService) ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerDelete") @@ -339,50 +339,50 @@ func (a *ServerAPIService) ServerDeleteExecute(r ApiServerDeleteRequest) (*http. } type ApiServerListRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - filter *string - orderBy *string - fields *string - offset *int32 - limit *int32 - 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 | + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + 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 | func (r ApiServerListRequest) Filter(filter string) ApiServerListRequest { r.filter = &filter return r } -// 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. +// 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. func (r ApiServerListRequest) OrderBy(orderBy string) ApiServerListRequest { r.orderBy = &orderBy return r } -// 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. +// 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. func (r ApiServerListRequest) Fields(fields string) ApiServerListRequest { r.fields = &fields return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiServerListRequest) Offset(offset int32) ApiServerListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiServerListRequest) Limit(limit int32) ApiServerListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiServerListRequest) PageToken(pageToken string) ApiServerListRequest { r.pageToken = &pageToken return r @@ -416,24 +416,25 @@ ServerList Retrieve DHCP configuration profiles. Use this method to retrieve __Server__ objects. A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerListRequest */ func (a *ServerAPIService) ServerList(ctx context.Context) ApiServerListRequest { return ApiServerListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListServerResponse +// +// @return IpamsvcListServerResponse func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*IpamsvcListServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListServerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerList") @@ -537,14 +538,14 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*IpamsvcLi } type ApiServerReadRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiServerReadRequest) Fields(fields string) ApiServerReadRequest { r.fields = &fields return r @@ -566,26 +567,27 @@ ServerRead Retrieve the DHCP configuration profile. Use this method to retrieve a __Server__ object. A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerReadRequest */ func (a *ServerAPIService) ServerRead(ctx context.Context, id string) ApiServerReadRequest { return ApiServerReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadServerResponse +// +// @return IpamsvcReadServerResponse func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*IpamsvcReadServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadServerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerRead") @@ -669,11 +671,11 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*IpamsvcRe } type ApiServerUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService ServerAPI - id string - body *IpamsvcServer - inherit *string + id string + body *IpamsvcServer + inherit *string } func (r ApiServerUpdateRequest) Body(body IpamsvcServer) ApiServerUpdateRequest { @@ -697,26 +699,27 @@ ServerUpdate Update the DHCP configuration profile. Use this method to update a __Server__ object. A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiServerUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiServerUpdateRequest */ func (a *ServerAPIService) ServerUpdate(ctx context.Context, id string) ApiServerUpdateRequest { return ApiServerUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateServerResponse +// +// @return IpamsvcUpdateServerResponse func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*IpamsvcUpdateServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateServerResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateServerResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ServerUpdate") diff --git a/ipam/api_subnet.go b/ipam/api_subnet.go index 0110e19..39ee9fc 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type SubnetAPI interface { /* - SubnetCopy Copy the subnet. + SubnetCopy Copy the subnet. - Use this method to copy a __Subnet__ object. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to copy a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetCopyRequest */ SubnetCopy(ctx context.Context, id string) ApiSubnetCopyRequest @@ -41,13 +40,13 @@ The __Subnet__ object represents a set of addresses from which addresses are ass SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCopySubnetResponse, *http.Response, error) /* - SubnetCreate Create the subnet. + SubnetCreate Create the subnet. - Use this method to create a __Subnet__ object. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to create a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSubnetCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSubnetCreateRequest */ SubnetCreate(ctx context.Context) ApiSubnetCreateRequest @@ -56,14 +55,14 @@ The __Subnet__ object represents a set of addresses from which addresses are ass SubnetCreateExecute(r ApiSubnetCreateRequest) (*IpamsvcCreateSubnetResponse, *http.Response, error) /* - SubnetCreateNextAvailableIP Allocate the next available IP address. + SubnetCreateNextAvailableIP Allocate the next available IP address. - Use this method to allocate the next available IP address. -This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. + Use this method to allocate the next available IP address. + This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetCreateNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetCreateNextAvailableIPRequest */ SubnetCreateNextAvailableIP(ctx context.Context, id string) ApiSubnetCreateNextAvailableIPRequest @@ -72,14 +71,14 @@ This allocates one or more __Address__ (_ipam/address_) resource from available SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) /* - SubnetDelete Move the subnet to the recycle bin. + SubnetDelete Move the subnet to the recycle bin. - Use this method to move a __Subnet__ object to the recycle bin. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to move a __Subnet__ object to the recycle bin. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetDeleteRequest */ SubnetDelete(ctx context.Context, id string) ApiSubnetDeleteRequest @@ -87,13 +86,13 @@ The __Subnet__ object represents a set of addresses from which addresses are ass SubnetDeleteExecute(r ApiSubnetDeleteRequest) (*http.Response, error) /* - SubnetList Retrieve subnets. + SubnetList Retrieve subnets. - Use this method to retrieve __Subnet__ objects. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to retrieve __Subnet__ objects. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSubnetListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSubnetListRequest */ SubnetList(ctx context.Context) ApiSubnetListRequest @@ -102,14 +101,14 @@ The __Subnet__ object represents a set of addresses from which addresses are ass SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcListSubnetResponse, *http.Response, error) /* - SubnetListNextAvailableIP Retrieve the next available IP address. + SubnetListNextAvailableIP Retrieve the next available IP address. - Use this method to retrieve the next available IP address. -This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. + Use this method to retrieve the next available IP address. + This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetListNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetListNextAvailableIPRequest */ SubnetListNextAvailableIP(ctx context.Context, id string) ApiSubnetListNextAvailableIPRequest @@ -118,14 +117,14 @@ This returns one or more __Address__ (_ipam/address_) resource from available ad SubnetListNextAvailableIPExecute(r ApiSubnetListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) /* - SubnetRead Retrieve the subnet. + SubnetRead Retrieve the subnet. - Use this method to retrieve a __Subnet__ object. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to retrieve a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetReadRequest */ SubnetRead(ctx context.Context, id string) ApiSubnetReadRequest @@ -134,14 +133,14 @@ The __Subnet__ object represents a set of addresses from which addresses are ass SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcReadSubnetResponse, *http.Response, error) /* - SubnetUpdate Update the subnet. + SubnetUpdate Update the subnet. - Use this method to update a __Subnet__ object. -The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to update a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetUpdateRequest */ SubnetUpdate(ctx context.Context, id string) ApiSubnetUpdateRequest @@ -154,10 +153,10 @@ The __Subnet__ object represents a set of addresses from which addresses are ass type SubnetAPIService internal.Service type ApiSubnetCopyRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - id string - body *IpamsvcCopySubnet + id string + body *IpamsvcCopySubnet } func (r ApiSubnetCopyRequest) Body(body IpamsvcCopySubnet) ApiSubnetCopyRequest { @@ -175,26 +174,27 @@ SubnetCopy Copy the subnet. Use this method to copy a __Subnet__ object. The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetCopyRequest */ func (a *SubnetAPIService) SubnetCopy(ctx context.Context, id string) ApiSubnetCopyRequest { return ApiSubnetCopyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCopySubnetResponse +// +// @return IpamsvcCopySubnetResponse func (a *SubnetAPIService) SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCopySubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCopySubnetResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCopySubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetCopy") @@ -277,10 +277,10 @@ func (a *SubnetAPIService) SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCo } type ApiSubnetCreateRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - body *IpamsvcSubnet - inherit *string + body *IpamsvcSubnet + inherit *string } func (r ApiSubnetCreateRequest) Body(body IpamsvcSubnet) ApiSubnetCreateRequest { @@ -304,24 +304,25 @@ SubnetCreate Create the subnet. Use this method to create a __Subnet__ object. The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSubnetCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSubnetCreateRequest */ func (a *SubnetAPIService) SubnetCreate(ctx context.Context) ApiSubnetCreateRequest { return ApiSubnetCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcCreateSubnetResponse +// +// @return IpamsvcCreateSubnetResponse func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*IpamsvcCreateSubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateSubnetResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateSubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetCreate") @@ -406,11 +407,11 @@ func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*Ipams } type ApiSubnetCreateNextAvailableIPRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - id string + id string contiguous *bool - count *int32 + count *int32 } // Indicates whether the IP addresses should belong to a contiguous block. Defaults to _false_. @@ -435,26 +436,27 @@ SubnetCreateNextAvailableIP Allocate the next available IP address. Use this method to allocate the next available IP address. This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetCreateNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetCreateNextAvailableIPRequest */ func (a *SubnetAPIService) SubnetCreateNextAvailableIP(ctx context.Context, id string) ApiSubnetCreateNextAvailableIPRequest { return ApiSubnetCreateNextAvailableIPRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcCreateNextAvailableIPResponse +// +// @return IpamsvcCreateNextAvailableIPResponse func (a *SubnetAPIService) SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcCreateNextAvailableIPResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcCreateNextAvailableIPResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetCreateNextAvailableIP") @@ -544,9 +546,9 @@ func (a *SubnetAPIService) SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateN } type ApiSubnetDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - id string + id string } func (r ApiSubnetDeleteRequest) Execute() (*http.Response, error) { @@ -559,24 +561,24 @@ SubnetDelete Move the subnet to the recycle bin. Use this method to move a __Subnet__ object to the recycle bin. The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetDeleteRequest */ func (a *SubnetAPIService) SubnetDelete(ctx context.Context, id string) ApiSubnetDeleteRequest { return ApiSubnetDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *SubnetAPIService) SubnetDeleteExecute(r ApiSubnetDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetDelete") @@ -648,50 +650,50 @@ func (a *SubnetAPIService) SubnetDeleteExecute(r ApiSubnetDeleteRequest) (*http. } type ApiSubnetListRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - torderBy *string - tfilter *string - inherit *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + 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. +// 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. func (r ApiSubnetListRequest) Fields(fields string) ApiSubnetListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiSubnetListRequest) Filter(filter string) ApiSubnetListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiSubnetListRequest) Offset(offset int32) ApiSubnetListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiSubnetListRequest) Limit(limit int32) ApiSubnetListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiSubnetListRequest) PageToken(pageToken string) ApiSubnetListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiSubnetListRequest) OrderBy(orderBy string) ApiSubnetListRequest { r.orderBy = &orderBy return r @@ -725,24 +727,25 @@ SubnetList Retrieve subnets. Use this method to retrieve __Subnet__ objects. The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSubnetListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSubnetListRequest */ func (a *SubnetAPIService) SubnetList(ctx context.Context) ApiSubnetListRequest { return ApiSubnetListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return IpamsvcListSubnetResponse +// +// @return IpamsvcListSubnetResponse func (a *SubnetAPIService) SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcListSubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcListSubnetResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcListSubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetList") @@ -846,11 +849,11 @@ func (a *SubnetAPIService) SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcLi } type ApiSubnetListNextAvailableIPRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - id string + id string contiguous *bool - count *int32 + count *int32 } // Indicates whether the IP addresses should belong to a contiguous block. Defaults to _false_. @@ -875,26 +878,27 @@ SubnetListNextAvailableIP Retrieve the next available IP address. Use this method to retrieve the next available IP address. This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetListNextAvailableIPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetListNextAvailableIPRequest */ func (a *SubnetAPIService) SubnetListNextAvailableIP(ctx context.Context, id string) ApiSubnetListNextAvailableIPRequest { return ApiSubnetListNextAvailableIPRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcNextAvailableIPResponse +// +// @return IpamsvcNextAvailableIPResponse func (a *SubnetAPIService) SubnetListNextAvailableIPExecute(r ApiSubnetListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcNextAvailableIPResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcNextAvailableIPResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetListNextAvailableIP") @@ -978,14 +982,14 @@ func (a *SubnetAPIService) SubnetListNextAvailableIPExecute(r ApiSubnetListNextA } type ApiSubnetReadRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - id string - fields *string - inherit *string + 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. +// 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. func (r ApiSubnetReadRequest) Fields(fields string) ApiSubnetReadRequest { r.fields = &fields return r @@ -1007,26 +1011,27 @@ SubnetRead Retrieve the subnet. Use this method to retrieve a __Subnet__ object. The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetReadRequest */ func (a *SubnetAPIService) SubnetRead(ctx context.Context, id string) ApiSubnetReadRequest { return ApiSubnetReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcReadSubnetResponse +// +// @return IpamsvcReadSubnetResponse func (a *SubnetAPIService) SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcReadSubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcReadSubnetResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcReadSubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetRead") @@ -1110,11 +1115,11 @@ func (a *SubnetAPIService) SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcRe } type ApiSubnetUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService SubnetAPI - id string - body *IpamsvcSubnet - inherit *string + id string + body *IpamsvcSubnet + inherit *string } func (r ApiSubnetUpdateRequest) Body(body IpamsvcSubnet) ApiSubnetUpdateRequest { @@ -1138,26 +1143,27 @@ SubnetUpdate Update the subnet. Use this method to update a __Subnet__ object. The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiSubnetUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiSubnetUpdateRequest */ func (a *SubnetAPIService) SubnetUpdate(ctx context.Context, id string) ApiSubnetUpdateRequest { return ApiSubnetUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return IpamsvcUpdateSubnetResponse +// +// @return IpamsvcUpdateSubnetResponse func (a *SubnetAPIService) SubnetUpdateExecute(r ApiSubnetUpdateRequest) (*IpamsvcUpdateSubnetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *IpamsvcUpdateSubnetResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *IpamsvcUpdateSubnetResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubnetAPIService.SubnetUpdate") diff --git a/ipam/client.go b/ipam/client.go index ab22f7e..8650416 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/model_inheritance_assigned_host.go b/ipam/model_inheritance_assigned_host.go index 3c8ba73..fdf9c2d 100644 --- a/ipam/model_inheritance_assigned_host.go +++ b/ipam/model_inheritance_assigned_host.go @@ -141,7 +141,7 @@ func (o *InheritanceAssignedHost) SetOphid(v string) { } func (o InheritanceAssignedHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableInheritanceAssignedHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inheritance_inherited_bool.go b/ipam/model_inheritance_inherited_bool.go index 0839175..50ed585 100644 --- a/ipam/model_inheritance_inherited_bool.go +++ b/ipam/model_inheritance_inherited_bool.go @@ -175,7 +175,7 @@ func (o *InheritanceInheritedBool) SetValue(v bool) { } func (o InheritanceInheritedBool) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritanceInheritedBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inheritance_inherited_float.go b/ipam/model_inheritance_inherited_float.go index 525ade3..8c98855 100644 --- a/ipam/model_inheritance_inherited_float.go +++ b/ipam/model_inheritance_inherited_float.go @@ -175,7 +175,7 @@ func (o *InheritanceInheritedFloat) SetValue(v float32) { } func (o InheritanceInheritedFloat) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritanceInheritedFloat) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inheritance_inherited_identifier.go b/ipam/model_inheritance_inherited_identifier.go index b75fa49..30f2ece 100644 --- a/ipam/model_inheritance_inherited_identifier.go +++ b/ipam/model_inheritance_inherited_identifier.go @@ -175,7 +175,7 @@ func (o *InheritanceInheritedIdentifier) SetValue(v string) { } func (o InheritanceInheritedIdentifier) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritanceInheritedIdentifier) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inheritance_inherited_string.go b/ipam/model_inheritance_inherited_string.go index 5c0c493..e507110 100644 --- a/ipam/model_inheritance_inherited_string.go +++ b/ipam/model_inheritance_inherited_string.go @@ -175,7 +175,7 @@ func (o *InheritanceInheritedString) SetValue(v string) { } func (o InheritanceInheritedString) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritanceInheritedString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inheritance_inherited_u_int32.go b/ipam/model_inheritance_inherited_u_int32.go index 66c43e1..5983891 100644 --- a/ipam/model_inheritance_inherited_u_int32.go +++ b/ipam/model_inheritance_inherited_u_int32.go @@ -175,7 +175,7 @@ func (o *InheritanceInheritedUInt32) SetValue(v int64) { } func (o InheritanceInheritedUInt32) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritanceInheritedUInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inherited_dhcp_config_filter_list.go b/ipam/model_inherited_dhcp_config_filter_list.go index 3d17bfb..e7894bb 100644 --- a/ipam/model_inherited_dhcp_config_filter_list.go +++ b/ipam/model_inherited_dhcp_config_filter_list.go @@ -175,7 +175,7 @@ func (o *InheritedDHCPConfigFilterList) SetValue(v []string) { } func (o InheritedDHCPConfigFilterList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritedDHCPConfigFilterList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_inherited_dhcp_config_ignore_item_list.go b/ipam/model_inherited_dhcp_config_ignore_item_list.go index cc93a07..c520052 100644 --- a/ipam/model_inherited_dhcp_config_ignore_item_list.go +++ b/ipam/model_inherited_dhcp_config_ignore_item_list.go @@ -175,7 +175,7 @@ func (o *InheritedDHCPConfigIgnoreItemList) SetValue(v []IpamsvcIgnoreItem) { } func (o InheritedDHCPConfigIgnoreItemList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritedDHCPConfigIgnoreItemList) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_access_filter.go b/ipam/model_ipamsvc_access_filter.go index 2c4c133..d185ec6 100644 --- a/ipam/model_ipamsvc_access_filter.go +++ b/ipam/model_ipamsvc_access_filter.go @@ -134,7 +134,7 @@ func (o *IpamsvcAccessFilter) SetOptionFilterId(v string) { } func (o IpamsvcAccessFilter) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableIpamsvcAccessFilter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_address.go b/ipam/model_ipamsvc_address.go index ff32c93..83c73e1 100644 --- a/ipam/model_ipamsvc_address.go +++ b/ipam/model_ipamsvc_address.go @@ -25,8 +25,8 @@ type IpamsvcAddress struct { // The description for the address object. May contain 0 to 1024 characters. Can include UTF-8. Comment *string `json:"comment,omitempty"` // Time when the object has been created. - CreatedAt *time.Time `json:"created_at,omitempty"` - DhcpInfo *IpamsvcDHCPInfo `json:"dhcp_info,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + DhcpInfo *IpamsvcDHCPInfo `json:"dhcp_info,omitempty"` // Read only. Represent the value of the same field in the associated _dhcp/fixed_address_ object. DisableDhcp *bool `json:"disable_dhcp,omitempty"` // The discovery attributes for this address in JSON format. @@ -712,7 +712,7 @@ func (o *IpamsvcAddress) SetUsage(v []string) { } func (o IpamsvcAddress) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -817,5 +817,3 @@ func (v *NullableIpamsvcAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_address_block.go b/ipam/model_ipamsvc_address_block.go index 2266e8d..cec0172 100644 --- a/ipam/model_ipamsvc_address_block.go +++ b/ipam/model_ipamsvc_address_block.go @@ -21,7 +21,7 @@ var _ MappedNullable = &IpamsvcAddressBlock{} // IpamsvcAddressBlock An __AddressBlock__ object (_ipam/address_block_) is a set of contiguous IP addresses in the same IP space with no gap, expressed as a CIDR block. Address blocks are hierarchical and may be parented to other address blocks as long as the parent block fully contains the child and no sibling overlaps. Top level address blocks are parented to an IP space. type IpamsvcAddressBlock struct { // The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. - Address *string `json:"address,omitempty"` + Address *string `json:"address,omitempty"` AsmConfig *IpamsvcASMConfig `json:"asm_config,omitempty"` // Incremented by 1 if the IP address usage limits for automated scope management are exceeded for any subnets in the address block. AsmScopeFlag *int64 `json:"asm_scope_flag,omitempty"` @@ -48,10 +48,10 @@ type IpamsvcAddressBlock struct { // Instructs the DHCP server to always update the DNS information when a lease is renewed even if its DNS information has not changed. Defaults to _false_. DdnsUpdateOnRenew *bool `json:"ddns_update_on_renew,omitempty"` // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. - DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` - DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` + DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` + DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` // The list of DHCP options for the address block. May be either a specific option or a group of options. - DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` + DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` DhcpUtilization *IpamsvcDHCPUtilization `json:"dhcp_utilization,omitempty"` // The discovery attributes for this address block in JSON format. DiscoveryAttrs map[string]interface{} `json:"discovery_attrs,omitempty"` @@ -72,7 +72,7 @@ type IpamsvcAddressBlock struct { // The resource identifier. Id *string `json:"id,omitempty"` // The resource identifier. - InheritanceParent *string `json:"inheritance_parent,omitempty"` + InheritanceParent *string `json:"inheritance_parent,omitempty"` InheritanceSources *IpamsvcDHCPInheritance `json:"inheritance_sources,omitempty"` // The name of the address block. May contain 1 to 256 characters. Can include UTF-8. Name *string `json:"name,omitempty"` @@ -83,13 +83,13 @@ type IpamsvcAddressBlock struct { // The resource identifier. Space *string `json:"space,omitempty"` // The tags for the address block in JSON format. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` Threshold *IpamsvcUtilizationThreshold `json:"threshold,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The usage is a combination of indicators, each tracking a specific associated use. Listed below are usage indicators with their meaning: usage indicator | description ---------------------- | -------------------------------- _IPAM_ | AddressBlock is managed in BloxOne DDI. _DISCOVERED_ | AddressBlock is discovered by some network discovery probe like Network Insight or NetMRI in NIOS. - Usage []string `json:"usage,omitempty"` - Utilization *IpamsvcUtilization `json:"utilization,omitempty"` + Usage []string `json:"usage,omitempty"` + Utilization *IpamsvcUtilization `json:"utilization,omitempty"` UtilizationV6 *IpamsvcUtilizationV6 `json:"utilization_v6,omitempty"` } @@ -1359,7 +1359,7 @@ func (o *IpamsvcAddressBlock) SetUtilizationV6(v IpamsvcUtilizationV6) { } func (o IpamsvcAddressBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1523,5 +1523,3 @@ func (v *NullableIpamsvcAddressBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_asm.go b/ipam/model_ipamsvc_asm.go index 5db1f1c..252a668 100644 --- a/ipam/model_ipamsvc_asm.go +++ b/ipam/model_ipamsvc_asm.go @@ -848,7 +848,7 @@ func (o *IpamsvcASM) SetUtilization(v int64) { } func (o IpamsvcASM) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -965,5 +965,3 @@ func (v *NullableIpamsvcASM) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_asm_config.go b/ipam/model_ipamsvc_asm_config.go index a3047ac..4620d97 100644 --- a/ipam/model_ipamsvc_asm_config.go +++ b/ipam/model_ipamsvc_asm_config.go @@ -37,7 +37,7 @@ type IpamsvcASMConfig struct { // The minimum size of range needed for ASM to run on this subnet. MinTotal *int64 `json:"min_total,omitempty"` // The minimum percentage of addresses that must be available outside of the DHCP ranges and fixed addresses when making a suggested change.. - MinUnused *int64 `json:"min_unused,omitempty"` + MinUnused *int64 `json:"min_unused,omitempty"` ReenableDate *time.Time `json:"reenable_date,omitempty"` } @@ -415,7 +415,7 @@ func (o *IpamsvcASMConfig) SetReenableDate(v time.Time) { } func (o IpamsvcASMConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -492,5 +492,3 @@ func (v *NullableIpamsvcASMConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_asm_enable_block.go b/ipam/model_ipamsvc_asm_enable_block.go index 328aa83..cdaa411 100644 --- a/ipam/model_ipamsvc_asm_enable_block.go +++ b/ipam/model_ipamsvc_asm_enable_block.go @@ -142,7 +142,7 @@ func (o *IpamsvcAsmEnableBlock) SetReenableDate(v time.Time) { } func (o IpamsvcAsmEnableBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -198,5 +198,3 @@ func (v *NullableIpamsvcAsmEnableBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_asm_growth_block.go b/ipam/model_ipamsvc_asm_growth_block.go index ddad1c3..6c992be 100644 --- a/ipam/model_ipamsvc_asm_growth_block.go +++ b/ipam/model_ipamsvc_asm_growth_block.go @@ -107,7 +107,7 @@ func (o *IpamsvcAsmGrowthBlock) SetGrowthType(v string) { } func (o IpamsvcAsmGrowthBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcAsmGrowthBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_bulk_copy_error.go b/ipam/model_ipamsvc_bulk_copy_error.go index 87b92fe..4e17147 100644 --- a/ipam/model_ipamsvc_bulk_copy_error.go +++ b/ipam/model_ipamsvc_bulk_copy_error.go @@ -141,7 +141,7 @@ func (o *IpamsvcBulkCopyError) SetMessage(v string) { } func (o IpamsvcBulkCopyError) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableIpamsvcBulkCopyError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_bulk_copy_ip_space.go b/ipam/model_ipamsvc_bulk_copy_ip_space.go index 3489c2f..bf4a0ea 100644 --- a/ipam/model_ipamsvc_bulk_copy_ip_space.go +++ b/ipam/model_ipamsvc_bulk_copy_ip_space.go @@ -195,7 +195,7 @@ func (o *IpamsvcBulkCopyIPSpace) SetTarget(v string) { } func (o IpamsvcBulkCopyIPSpace) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -253,5 +253,3 @@ func (v *NullableIpamsvcBulkCopyIPSpace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_bulk_copy_ip_space_response.go b/ipam/model_ipamsvc_bulk_copy_ip_space_response.go index 87c31f5..4dcc9a0 100644 --- a/ipam/model_ipamsvc_bulk_copy_ip_space_response.go +++ b/ipam/model_ipamsvc_bulk_copy_ip_space_response.go @@ -19,8 +19,8 @@ var _ MappedNullable = &IpamsvcBulkCopyIPSpaceResponse{} // IpamsvcBulkCopyIPSpaceResponse struct for IpamsvcBulkCopyIPSpaceResponse type IpamsvcBulkCopyIPSpaceResponse struct { - Errors []IpamsvcBulkCopyError `json:"errors,omitempty"` - Results []IpamsvcCopyResponse `json:"results,omitempty"` + Errors []IpamsvcBulkCopyError `json:"errors,omitempty"` + Results []IpamsvcCopyResponse `json:"results,omitempty"` } // NewIpamsvcBulkCopyIPSpaceResponse instantiates a new IpamsvcBulkCopyIPSpaceResponse object @@ -105,7 +105,7 @@ func (o *IpamsvcBulkCopyIPSpaceResponse) SetResults(v []IpamsvcCopyResponse) { } func (o IpamsvcBulkCopyIPSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,5 +158,3 @@ func (v *NullableIpamsvcBulkCopyIPSpaceResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_address_block.go b/ipam/model_ipamsvc_copy_address_block.go index b45c089..ac70f2d 100644 --- a/ipam/model_ipamsvc_copy_address_block.go +++ b/ipam/model_ipamsvc_copy_address_block.go @@ -270,7 +270,7 @@ func (o *IpamsvcCopyAddressBlock) SetSpace(v string) { } func (o IpamsvcCopyAddressBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -336,5 +336,3 @@ func (v *NullableIpamsvcCopyAddressBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_address_block_response.go b/ipam/model_ipamsvc_copy_address_block_response.go index c738d10..571fd07 100644 --- a/ipam/model_ipamsvc_copy_address_block_response.go +++ b/ipam/model_ipamsvc_copy_address_block_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCopyAddressBlockResponse) SetResult(v IpamsvcCopyResponse) { } func (o IpamsvcCopyAddressBlockResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCopyAddressBlockResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_ip_space.go b/ipam/model_ipamsvc_copy_ip_space.go index fd6c14c..7fe0e96 100644 --- a/ipam/model_ipamsvc_copy_ip_space.go +++ b/ipam/model_ipamsvc_copy_ip_space.go @@ -202,7 +202,7 @@ func (o *IpamsvcCopyIPSpace) SetSkipOnError(v bool) { } func (o IpamsvcCopyIPSpace) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,5 +262,3 @@ func (v *NullableIpamsvcCopyIPSpace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_ip_space_response.go b/ipam/model_ipamsvc_copy_ip_space_response.go index deb8ebf..af980d9 100644 --- a/ipam/model_ipamsvc_copy_ip_space_response.go +++ b/ipam/model_ipamsvc_copy_ip_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCopyIPSpaceResponse) SetResult(v IpamsvcCopyResponse) { } func (o IpamsvcCopyIPSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCopyIPSpaceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_response.go b/ipam/model_ipamsvc_copy_response.go index 12d4b79..52a2270 100644 --- a/ipam/model_ipamsvc_copy_response.go +++ b/ipam/model_ipamsvc_copy_response.go @@ -141,7 +141,7 @@ func (o *IpamsvcCopyResponse) SetJobId(v string) { } func (o IpamsvcCopyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableIpamsvcCopyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_subnet.go b/ipam/model_ipamsvc_copy_subnet.go index e24d834..43c101b 100644 --- a/ipam/model_ipamsvc_copy_subnet.go +++ b/ipam/model_ipamsvc_copy_subnet.go @@ -270,7 +270,7 @@ func (o *IpamsvcCopySubnet) SetSpace(v string) { } func (o IpamsvcCopySubnet) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -336,5 +336,3 @@ func (v *NullableIpamsvcCopySubnet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_copy_subnet_response.go b/ipam/model_ipamsvc_copy_subnet_response.go index 5a6e7d5..0fd2882 100644 --- a/ipam/model_ipamsvc_copy_subnet_response.go +++ b/ipam/model_ipamsvc_copy_subnet_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCopySubnetResponse) SetResult(v IpamsvcCopyResponse) { } func (o IpamsvcCopySubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCopySubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_address_block_response.go b/ipam/model_ipamsvc_create_address_block_response.go index 276e5c3..88b0bc4 100644 --- a/ipam/model_ipamsvc_create_address_block_response.go +++ b/ipam/model_ipamsvc_create_address_block_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateAddressBlockResponse) SetResult(v IpamsvcAddressBlock) { } func (o IpamsvcCreateAddressBlockResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateAddressBlockResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_address_response.go b/ipam/model_ipamsvc_create_address_response.go index 20786f2..66e001a 100644 --- a/ipam/model_ipamsvc_create_address_response.go +++ b/ipam/model_ipamsvc_create_address_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateAddressResponse) SetResult(v IpamsvcAddress) { } func (o IpamsvcCreateAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateAddressResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_asm_response.go b/ipam/model_ipamsvc_create_asm_response.go index 506ddaa..1edab41 100644 --- a/ipam/model_ipamsvc_create_asm_response.go +++ b/ipam/model_ipamsvc_create_asm_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateASMResponse) SetResult(v IpamsvcASM) { } func (o IpamsvcCreateASMResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateASMResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_fixed_address_response.go b/ipam/model_ipamsvc_create_fixed_address_response.go index 4a0f9c9..54c3ce8 100644 --- a/ipam/model_ipamsvc_create_fixed_address_response.go +++ b/ipam/model_ipamsvc_create_fixed_address_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateFixedAddressResponse) SetResult(v IpamsvcFixedAddress) { } func (o IpamsvcCreateFixedAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateFixedAddressResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_ha_group_response.go b/ipam/model_ipamsvc_create_ha_group_response.go index a69a9fc..12c0367 100644 --- a/ipam/model_ipamsvc_create_ha_group_response.go +++ b/ipam/model_ipamsvc_create_ha_group_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateHAGroupResponse) SetResult(v IpamsvcHAGroup) { } func (o IpamsvcCreateHAGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateHAGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_hardware_filter_response.go b/ipam/model_ipamsvc_create_hardware_filter_response.go index 60be7da..781a36b 100644 --- a/ipam/model_ipamsvc_create_hardware_filter_response.go +++ b/ipam/model_ipamsvc_create_hardware_filter_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateHardwareFilterResponse) SetResult(v IpamsvcHardwareFilter) } func (o IpamsvcCreateHardwareFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateHardwareFilterResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_ip_space_response.go b/ipam/model_ipamsvc_create_ip_space_response.go index cb83db3..3a5edd3 100644 --- a/ipam/model_ipamsvc_create_ip_space_response.go +++ b/ipam/model_ipamsvc_create_ip_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateIPSpaceResponse) SetResult(v IpamsvcIPSpace) { } func (o IpamsvcCreateIPSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateIPSpaceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_ipam_host_response.go b/ipam/model_ipamsvc_create_ipam_host_response.go index e54f3e0..7dee77b 100644 --- a/ipam/model_ipamsvc_create_ipam_host_response.go +++ b/ipam/model_ipamsvc_create_ipam_host_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateIpamHostResponse) SetResult(v IpamsvcIpamHost) { } func (o IpamsvcCreateIpamHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateIpamHostResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_leases_command_response.go b/ipam/model_ipamsvc_create_leases_command_response.go index f48ea56..af034a4 100644 --- a/ipam/model_ipamsvc_create_leases_command_response.go +++ b/ipam/model_ipamsvc_create_leases_command_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateLeasesCommandResponse) SetSuccess(v string) { } func (o IpamsvcCreateLeasesCommandResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateLeasesCommandResponse) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_next_available_ab_response.go b/ipam/model_ipamsvc_create_next_available_ab_response.go index 0b98f60..400ddeb 100644 --- a/ipam/model_ipamsvc_create_next_available_ab_response.go +++ b/ipam/model_ipamsvc_create_next_available_ab_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcCreateNextAvailableABResponse) SetResults(v []IpamsvcAddressBloc } func (o IpamsvcCreateNextAvailableABResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcCreateNextAvailableABResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_next_available_ip_response.go b/ipam/model_ipamsvc_create_next_available_ip_response.go index 71d3102..8a86963 100644 --- a/ipam/model_ipamsvc_create_next_available_ip_response.go +++ b/ipam/model_ipamsvc_create_next_available_ip_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcCreateNextAvailableIPResponse) SetResults(v []IpamsvcAddress) { } func (o IpamsvcCreateNextAvailableIPResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcCreateNextAvailableIPResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_next_available_subnet_response.go b/ipam/model_ipamsvc_create_next_available_subnet_response.go index 62b0ca1..9757576 100644 --- a/ipam/model_ipamsvc_create_next_available_subnet_response.go +++ b/ipam/model_ipamsvc_create_next_available_subnet_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcCreateNextAvailableSubnetResponse) SetResults(v []IpamsvcSubnet) } func (o IpamsvcCreateNextAvailableSubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcCreateNextAvailableSubnetResponse) UnmarshalJSON(src []b v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_option_code_response.go b/ipam/model_ipamsvc_create_option_code_response.go index 3accc52..2b1fc4a 100644 --- a/ipam/model_ipamsvc_create_option_code_response.go +++ b/ipam/model_ipamsvc_create_option_code_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateOptionCodeResponse) SetResult(v IpamsvcOptionCode) { } func (o IpamsvcCreateOptionCodeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateOptionCodeResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_option_filter_response.go b/ipam/model_ipamsvc_create_option_filter_response.go index cfb29ce..6cbb71c 100644 --- a/ipam/model_ipamsvc_create_option_filter_response.go +++ b/ipam/model_ipamsvc_create_option_filter_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateOptionFilterResponse) SetResult(v IpamsvcOptionFilter) { } func (o IpamsvcCreateOptionFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateOptionFilterResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_option_group_response.go b/ipam/model_ipamsvc_create_option_group_response.go index 7ece497..e3a43ef 100644 --- a/ipam/model_ipamsvc_create_option_group_response.go +++ b/ipam/model_ipamsvc_create_option_group_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateOptionGroupResponse) SetResult(v IpamsvcOptionGroup) { } func (o IpamsvcCreateOptionGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateOptionGroupResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_option_space_response.go b/ipam/model_ipamsvc_create_option_space_response.go index 98a1fae..81b45ed 100644 --- a/ipam/model_ipamsvc_create_option_space_response.go +++ b/ipam/model_ipamsvc_create_option_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateOptionSpaceResponse) SetResult(v IpamsvcOptionSpace) { } func (o IpamsvcCreateOptionSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateOptionSpaceResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_range_response.go b/ipam/model_ipamsvc_create_range_response.go index 7a00f53..2c1d4a1 100644 --- a/ipam/model_ipamsvc_create_range_response.go +++ b/ipam/model_ipamsvc_create_range_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateRangeResponse) SetResult(v IpamsvcRange) { } func (o IpamsvcCreateRangeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateRangeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_server_response.go b/ipam/model_ipamsvc_create_server_response.go index 9bc4c16..2df45fd 100644 --- a/ipam/model_ipamsvc_create_server_response.go +++ b/ipam/model_ipamsvc_create_server_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateServerResponse) SetResult(v IpamsvcServer) { } func (o IpamsvcCreateServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_create_subnet_response.go b/ipam/model_ipamsvc_create_subnet_response.go index be7a4ea..dcc2871 100644 --- a/ipam/model_ipamsvc_create_subnet_response.go +++ b/ipam/model_ipamsvc_create_subnet_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcCreateSubnetResponse) SetResult(v IpamsvcSubnet) { } func (o IpamsvcCreateSubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcCreateSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ddns_block.go b/ipam/model_ipamsvc_ddns_block.go index 3bedbb4..af9b6fb 100644 --- a/ipam/model_ipamsvc_ddns_block.go +++ b/ipam/model_ipamsvc_ddns_block.go @@ -481,7 +481,7 @@ func (o *IpamsvcDDNSBlock) SetServerPrincipal(v string) { } func (o IpamsvcDDNSBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -567,5 +567,3 @@ func (v *NullableIpamsvcDDNSBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ddns_hostname_block.go b/ipam/model_ipamsvc_ddns_hostname_block.go index 5511ef5..33ca429 100644 --- a/ipam/model_ipamsvc_ddns_hostname_block.go +++ b/ipam/model_ipamsvc_ddns_hostname_block.go @@ -107,7 +107,7 @@ func (o *IpamsvcDDNSHostnameBlock) SetDdnsGeneratedPrefix(v string) { } func (o IpamsvcDDNSHostnameBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcDDNSHostnameBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ddns_update_block.go b/ipam/model_ipamsvc_ddns_update_block.go index 3cb57e6..8ca0635 100644 --- a/ipam/model_ipamsvc_ddns_update_block.go +++ b/ipam/model_ipamsvc_ddns_update_block.go @@ -107,7 +107,7 @@ func (o *IpamsvcDDNSUpdateBlock) SetDdnsSendUpdates(v bool) { } func (o IpamsvcDDNSUpdateBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcDDNSUpdateBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ddns_zone.go b/ipam/model_ipamsvc_ddns_zone.go index c869180..c076f5d 100644 --- a/ipam/model_ipamsvc_ddns_zone.go +++ b/ipam/model_ipamsvc_ddns_zone.go @@ -26,8 +26,8 @@ type IpamsvcDDNSZone struct { // The Nameservers in the zone. Each nameserver IP should be unique across the list of nameservers. Nameservers []IpamsvcNameserver `json:"nameservers,omitempty"` // Indicates if TSIG key should be used for the update. Defaults to _false_. - TsigEnabled *bool `json:"tsig_enabled,omitempty"` - TsigKey *IpamsvcTSIGKey `json:"tsig_key,omitempty"` + TsigEnabled *bool `json:"tsig_enabled,omitempty"` + TsigKey *IpamsvcTSIGKey `json:"tsig_key,omitempty"` // The resource identifier. View *string `json:"view,omitempty"` // The name of the view. @@ -303,7 +303,7 @@ func (o *IpamsvcDDNSZone) SetZone(v string) { } func (o IpamsvcDDNSZone) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -372,5 +372,3 @@ func (v *NullableIpamsvcDDNSZone) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_config.go b/ipam/model_ipamsvc_dhcp_config.go index 8b9fb98..fe59f6c 100644 --- a/ipam/model_ipamsvc_dhcp_config.go +++ b/ipam/model_ipamsvc_dhcp_config.go @@ -407,7 +407,7 @@ func (o *IpamsvcDHCPConfig) SetLeaseTimeV6(v int64) { } func (o IpamsvcDHCPConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -484,5 +484,3 @@ func (v *NullableIpamsvcDHCPConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_info.go b/ipam/model_ipamsvc_dhcp_info.go index bbc865e..9291c6f 100644 --- a/ipam/model_ipamsvc_dhcp_info.go +++ b/ipam/model_ipamsvc_dhcp_info.go @@ -448,7 +448,7 @@ func (o *IpamsvcDHCPInfo) SetStateTs(v time.Time) { } func (o IpamsvcDHCPInfo) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -531,5 +531,3 @@ func (v *NullableIpamsvcDHCPInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_inheritance.go b/ipam/model_ipamsvc_dhcp_inheritance.go index dfb4684..73d6cb8 100644 --- a/ipam/model_ipamsvc_dhcp_inheritance.go +++ b/ipam/model_ipamsvc_dhcp_inheritance.go @@ -19,21 +19,21 @@ var _ MappedNullable = &IpamsvcDHCPInheritance{} // IpamsvcDHCPInheritance The __DHCPInheritance__ object specifies how the _dhcp_config_, _dhcp_options_ and _asm_config_ configuration fields are inherited from the parent object. type IpamsvcDHCPInheritance struct { - AsmConfig *IpamsvcInheritedASMConfig `json:"asm_config,omitempty"` - DdnsClientUpdate *InheritanceInheritedString `json:"ddns_client_update,omitempty"` - DdnsConflictResolutionMode *InheritanceInheritedString `json:"ddns_conflict_resolution_mode,omitempty"` - DdnsEnabled *InheritanceInheritedBool `json:"ddns_enabled,omitempty"` - DdnsHostnameBlock *IpamsvcInheritedDDNSHostnameBlock `json:"ddns_hostname_block,omitempty"` - DdnsTtlPercent *InheritanceInheritedFloat `json:"ddns_ttl_percent,omitempty"` - DdnsUpdateBlock *IpamsvcInheritedDDNSUpdateBlock `json:"ddns_update_block,omitempty"` - DdnsUpdateOnRenew *InheritanceInheritedBool `json:"ddns_update_on_renew,omitempty"` - DdnsUseConflictResolution *InheritanceInheritedBool `json:"ddns_use_conflict_resolution,omitempty"` - DhcpConfig *IpamsvcInheritedDHCPConfig `json:"dhcp_config,omitempty"` - DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` - HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` - HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` - HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` - HostnameRewriteBlock *IpamsvcInheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` + AsmConfig *IpamsvcInheritedASMConfig `json:"asm_config,omitempty"` + DdnsClientUpdate *InheritanceInheritedString `json:"ddns_client_update,omitempty"` + DdnsConflictResolutionMode *InheritanceInheritedString `json:"ddns_conflict_resolution_mode,omitempty"` + DdnsEnabled *InheritanceInheritedBool `json:"ddns_enabled,omitempty"` + DdnsHostnameBlock *IpamsvcInheritedDDNSHostnameBlock `json:"ddns_hostname_block,omitempty"` + DdnsTtlPercent *InheritanceInheritedFloat `json:"ddns_ttl_percent,omitempty"` + DdnsUpdateBlock *IpamsvcInheritedDDNSUpdateBlock `json:"ddns_update_block,omitempty"` + DdnsUpdateOnRenew *InheritanceInheritedBool `json:"ddns_update_on_renew,omitempty"` + DdnsUseConflictResolution *InheritanceInheritedBool `json:"ddns_use_conflict_resolution,omitempty"` + DhcpConfig *IpamsvcInheritedDHCPConfig `json:"dhcp_config,omitempty"` + DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` + HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` + HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` + HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` + HostnameRewriteBlock *IpamsvcInheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` } // NewIpamsvcDHCPInheritance instantiates a new IpamsvcDHCPInheritance object @@ -534,7 +534,7 @@ func (o *IpamsvcDHCPInheritance) SetHostnameRewriteBlock(v IpamsvcInheritedHostn } func (o IpamsvcDHCPInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -626,5 +626,3 @@ func (v *NullableIpamsvcDHCPInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_options_inheritance.go b/ipam/model_ipamsvc_dhcp_options_inheritance.go index 23c656a..d98f3ac 100644 --- a/ipam/model_ipamsvc_dhcp_options_inheritance.go +++ b/ipam/model_ipamsvc_dhcp_options_inheritance.go @@ -72,7 +72,7 @@ func (o *IpamsvcDHCPOptionsInheritance) SetDhcpOptions(v IpamsvcInheritedDHCPOpt } func (o IpamsvcDHCPOptionsInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcDHCPOptionsInheritance) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_packet_stats.go b/ipam/model_ipamsvc_dhcp_packet_stats.go index c18212f..e6d8fc6 100644 --- a/ipam/model_ipamsvc_dhcp_packet_stats.go +++ b/ipam/model_ipamsvc_dhcp_packet_stats.go @@ -243,7 +243,7 @@ func (o *IpamsvcDHCPPacketStats) SetDhcpReqReceivedV6(v string) { } func (o IpamsvcDHCPPacketStats) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -308,5 +308,3 @@ func (v *NullableIpamsvcDHCPPacketStats) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_utilization.go b/ipam/model_ipamsvc_dhcp_utilization.go index e59214f..ff847e2 100644 --- a/ipam/model_ipamsvc_dhcp_utilization.go +++ b/ipam/model_ipamsvc_dhcp_utilization.go @@ -175,7 +175,7 @@ func (o *IpamsvcDHCPUtilization) SetDhcpUtilization(v int64) { } func (o IpamsvcDHCPUtilization) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableIpamsvcDHCPUtilization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dhcp_utilization_threshold.go b/ipam/model_ipamsvc_dhcp_utilization_threshold.go index 2bc89b4..a897e08 100644 --- a/ipam/model_ipamsvc_dhcp_utilization_threshold.go +++ b/ipam/model_ipamsvc_dhcp_utilization_threshold.go @@ -120,7 +120,7 @@ func (o *IpamsvcDHCPUtilizationThreshold) SetLow(v int64) { } func (o IpamsvcDHCPUtilizationThreshold) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -170,5 +170,3 @@ func (v *NullableIpamsvcDHCPUtilizationThreshold) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_dns_usage.go b/ipam/model_ipamsvc_dns_usage.go index 6b295aa..34f078e 100644 --- a/ipam/model_ipamsvc_dns_usage.go +++ b/ipam/model_ipamsvc_dns_usage.go @@ -379,7 +379,7 @@ func (o *IpamsvcDNSUsage) SetZone(v string) { } func (o IpamsvcDNSUsage) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -456,5 +456,3 @@ func (v *NullableIpamsvcDNSUsage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_exclusion_range.go b/ipam/model_ipamsvc_exclusion_range.go index d9802af..5f01e73 100644 --- a/ipam/model_ipamsvc_exclusion_range.go +++ b/ipam/model_ipamsvc_exclusion_range.go @@ -127,7 +127,7 @@ func (o *IpamsvcExclusionRange) SetStart(v string) { } func (o IpamsvcExclusionRange) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -179,5 +179,3 @@ func (v *NullableIpamsvcExclusionRange) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_filter.go b/ipam/model_ipamsvc_filter.go index c10741c..af41c5c 100644 --- a/ipam/model_ipamsvc_filter.go +++ b/ipam/model_ipamsvc_filter.go @@ -277,7 +277,7 @@ func (o *IpamsvcFilter) SetType(v string) { } func (o IpamsvcFilter) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -345,5 +345,3 @@ func (v *NullableIpamsvcFilter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_fixed_address.go b/ipam/model_ipamsvc_fixed_address.go index f32e04b..f03d532 100644 --- a/ipam/model_ipamsvc_fixed_address.go +++ b/ipam/model_ipamsvc_fixed_address.go @@ -43,7 +43,7 @@ type IpamsvcFixedAddress struct { // The list of the inheritance assigned hosts of the object. InheritanceAssignedHosts []InheritanceAssignedHost `json:"inheritance_assigned_hosts,omitempty"` // The resource identifier. - InheritanceParent *string `json:"inheritance_parent,omitempty"` + InheritanceParent *string `json:"inheritance_parent,omitempty"` InheritanceSources *IpamsvcFixedAddressInheritance `json:"inheritance_sources,omitempty"` // The resource identifier. IpSpace *string `json:"ip_space,omitempty"` @@ -698,7 +698,7 @@ func (o *IpamsvcFixedAddress) SetUpdatedAt(v time.Time) { } func (o IpamsvcFixedAddress) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -799,5 +799,3 @@ func (v *NullableIpamsvcFixedAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_fixed_address_inheritance.go b/ipam/model_ipamsvc_fixed_address_inheritance.go index e51f08a..70db364 100644 --- a/ipam/model_ipamsvc_fixed_address_inheritance.go +++ b/ipam/model_ipamsvc_fixed_address_inheritance.go @@ -19,10 +19,10 @@ var _ MappedNullable = &IpamsvcFixedAddressInheritance{} // IpamsvcFixedAddressInheritance The __FixedAddressInheritance__ object specifies how and which fields _FixedAddress_ object inherits from the parent. type IpamsvcFixedAddressInheritance struct { - DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` - HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` - HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` - HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` + DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` + HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` + HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` + HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` } // NewIpamsvcFixedAddressInheritance instantiates a new IpamsvcFixedAddressInheritance object @@ -171,7 +171,7 @@ func (o *IpamsvcFixedAddressInheritance) SetHeaderOptionServerName(v Inheritance } func (o IpamsvcFixedAddressInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -230,5 +230,3 @@ func (v *NullableIpamsvcFixedAddressInheritance) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_global.go b/ipam/model_ipamsvc_global.go index b0bd2fb..f855a41 100644 --- a/ipam/model_ipamsvc_global.go +++ b/ipam/model_ipamsvc_global.go @@ -43,12 +43,12 @@ type IpamsvcGlobal struct { // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` // DNS zones that DDNS updates can be sent to. There is no resolver fallback. The target zone must be explicitly configured for the update to be performed. Updates are sent to the closest enclosing zone. Error if _ddns_enabled_ is _true_ and the _ddns_domain_ does not have a corresponding entry in _ddns_zones_. Error if there are items with duplicate zone in the list. Defaults to empty list. - DdnsZones []IpamsvcDDNSZone `json:"ddns_zones,omitempty"` + DdnsZones []IpamsvcDDNSZone `json:"ddns_zones,omitempty"` DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` // The list of DHCP options or group of options for IPv4. An option list is ordered and may include both option groups and specific options. Multiple occurrences of the same option or group is not an error. The last occurrence of an option in the list will be used. Error if the graph of referenced groups contains cycles. Defaults to empty list. DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` // The list of DHCP options or group of options for IPv6. An option list is ordered and may include both option groups and specific options. Multiple occurrences of the same option or group is not an error. The last occurrence of an option in the list will be used. Error if the graph of referenced groups contains cycles. Defaults to empty list. - DhcpOptionsV6 []IpamsvcOptionItem `json:"dhcp_options_v6,omitempty"` + DhcpOptionsV6 []IpamsvcOptionItem `json:"dhcp_options_v6,omitempty"` DhcpThreshold *IpamsvcDHCPUtilizationThreshold `json:"dhcp_threshold,omitempty"` // The behavior when GSS-TSIG should be used (a matching external DNS server is configured) but no GSS-TSIG key is available. If configured to _false_ (the default) this DNS server is skipped, if configured to _true_ the DNS server is ignored and the DNS update is sent with the configured DHCP-DDNS protection e.g. TSIG key or without any protection when none was configured. Defaults to _false_. GssTsigFallback *bool `json:"gss_tsig_fallback,omitempty"` @@ -1226,7 +1226,7 @@ func (o *IpamsvcGlobal) SetVendorSpecificOptionOptionSpace(v string) { } func (o IpamsvcGlobal) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1378,5 +1378,3 @@ func (v *NullableIpamsvcGlobal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ha_group.go b/ipam/model_ipamsvc_ha_group.go index babe1cd..a6c11e5 100644 --- a/ipam/model_ipamsvc_ha_group.go +++ b/ipam/model_ipamsvc_ha_group.go @@ -400,7 +400,7 @@ func (o *IpamsvcHAGroup) SetUpdatedAt(v time.Time) { } func (o IpamsvcHAGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -476,5 +476,3 @@ func (v *NullableIpamsvcHAGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ha_group_heartbeats.go b/ipam/model_ipamsvc_ha_group_heartbeats.go index f74cdee..52d1c85 100644 --- a/ipam/model_ipamsvc_ha_group_heartbeats.go +++ b/ipam/model_ipamsvc_ha_group_heartbeats.go @@ -107,7 +107,7 @@ func (o *IpamsvcHAGroupHeartbeats) SetSuccessfulHeartbeat(v string) { } func (o IpamsvcHAGroupHeartbeats) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcHAGroupHeartbeats) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ha_group_host.go b/ipam/model_ipamsvc_ha_group_host.go index aa69e56..82d24a1 100644 --- a/ipam/model_ipamsvc_ha_group_host.go +++ b/ipam/model_ipamsvc_ha_group_host.go @@ -236,7 +236,7 @@ func (o *IpamsvcHAGroupHost) SetState(v string) { } func (o IpamsvcHAGroupHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,5 +299,3 @@ func (v *NullableIpamsvcHAGroupHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_hardware_filter.go b/ipam/model_ipamsvc_hardware_filter.go index a185c17..357c0b9 100644 --- a/ipam/model_ipamsvc_hardware_filter.go +++ b/ipam/model_ipamsvc_hardware_filter.go @@ -509,7 +509,7 @@ func (o *IpamsvcHardwareFilter) SetVendorSpecificOptionOptionSpace(v string) { } func (o IpamsvcHardwareFilter) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -596,5 +596,3 @@ func (v *NullableIpamsvcHardwareFilter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_host.go b/ipam/model_ipamsvc_host.go index f927dbb..78a8153 100644 --- a/ipam/model_ipamsvc_host.go +++ b/ipam/model_ipamsvc_host.go @@ -22,7 +22,7 @@ type IpamsvcHost struct { // The primary IP address of the on-prem host. Address *string `json:"address,omitempty"` // Anycast address configured to the host. Order is not significant. - AnycastAddresses []string `json:"anycast_addresses,omitempty"` + AnycastAddresses []string `json:"anycast_addresses,omitempty"` AssociatedServer *IpamsvcHostAssociatedServer `json:"associated_server,omitempty"` // The description for the on-prem host. Comment *string `json:"comment,omitempty"` @@ -480,7 +480,7 @@ func (o *IpamsvcHost) SetType(v string) { } func (o IpamsvcHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -566,5 +566,3 @@ func (v *NullableIpamsvcHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_host_address.go b/ipam/model_ipamsvc_host_address.go index 345d31c..785dd64 100644 --- a/ipam/model_ipamsvc_host_address.go +++ b/ipam/model_ipamsvc_host_address.go @@ -141,7 +141,7 @@ func (o *IpamsvcHostAddress) SetSpace(v string) { } func (o IpamsvcHostAddress) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableIpamsvcHostAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_host_associated_server.go b/ipam/model_ipamsvc_host_associated_server.go index 88cbfa9..a1d2706 100644 --- a/ipam/model_ipamsvc_host_associated_server.go +++ b/ipam/model_ipamsvc_host_associated_server.go @@ -107,7 +107,7 @@ func (o *IpamsvcHostAssociatedServer) SetName(v string) { } func (o IpamsvcHostAssociatedServer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcHostAssociatedServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_host_associations_response.go b/ipam/model_ipamsvc_host_associations_response.go index 4ef2cea..7abc8df 100644 --- a/ipam/model_ipamsvc_host_associations_response.go +++ b/ipam/model_ipamsvc_host_associations_response.go @@ -22,7 +22,7 @@ type IpamsvcHostAssociationsResponse struct { DhcpPktStats *IpamsvcDHCPPacketStats `json:"dhcp_pkt_stats,omitempty"` // The list of HA groups. HaGroups []IpamsvcHAGroup `json:"ha_groups,omitempty"` - Host *IpamsvcHost `json:"host,omitempty"` + Host *IpamsvcHost `json:"host,omitempty"` // The list of subnets. Subnets []IpamsvcSubnet `json:"subnets,omitempty"` } @@ -173,7 +173,7 @@ func (o *IpamsvcHostAssociationsResponse) SetSubnets(v []IpamsvcSubnet) { } func (o IpamsvcHostAssociationsResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -232,5 +232,3 @@ func (v *NullableIpamsvcHostAssociationsResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_host_name.go b/ipam/model_ipamsvc_host_name.go index cff564d..e728d63 100644 --- a/ipam/model_ipamsvc_host_name.go +++ b/ipam/model_ipamsvc_host_name.go @@ -161,7 +161,7 @@ func (o *IpamsvcHostName) SetZone(v string) { } func (o IpamsvcHostName) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -216,5 +216,3 @@ func (v *NullableIpamsvcHostName) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_hostname_rewrite_block.go b/ipam/model_ipamsvc_hostname_rewrite_block.go index dcfd904..c36bd78 100644 --- a/ipam/model_ipamsvc_hostname_rewrite_block.go +++ b/ipam/model_ipamsvc_hostname_rewrite_block.go @@ -141,7 +141,7 @@ func (o *IpamsvcHostnameRewriteBlock) SetHostnameRewriteRegex(v string) { } func (o IpamsvcHostnameRewriteBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -197,5 +197,3 @@ func (v *NullableIpamsvcHostnameRewriteBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ignore_item.go b/ipam/model_ipamsvc_ignore_item.go index 10ae904..8ee7184 100644 --- a/ipam/model_ipamsvc_ignore_item.go +++ b/ipam/model_ipamsvc_ignore_item.go @@ -93,7 +93,7 @@ func (o *IpamsvcIgnoreItem) SetValue(v string) { } func (o IpamsvcIgnoreItem) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -142,5 +142,3 @@ func (v *NullableIpamsvcIgnoreItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_asm_config.go b/ipam/model_ipamsvc_inherited_asm_config.go index fdd80fb..8f39e3d 100644 --- a/ipam/model_ipamsvc_inherited_asm_config.go +++ b/ipam/model_ipamsvc_inherited_asm_config.go @@ -21,11 +21,11 @@ var _ MappedNullable = &IpamsvcInheritedASMConfig{} type IpamsvcInheritedASMConfig struct { AsmEnableBlock *IpamsvcInheritedAsmEnableBlock `json:"asm_enable_block,omitempty"` AsmGrowthBlock *IpamsvcInheritedAsmGrowthBlock `json:"asm_growth_block,omitempty"` - AsmThreshold *InheritanceInheritedUInt32 `json:"asm_threshold,omitempty"` - ForecastPeriod *InheritanceInheritedUInt32 `json:"forecast_period,omitempty"` - History *InheritanceInheritedUInt32 `json:"history,omitempty"` - MinTotal *InheritanceInheritedUInt32 `json:"min_total,omitempty"` - MinUnused *InheritanceInheritedUInt32 `json:"min_unused,omitempty"` + AsmThreshold *InheritanceInheritedUInt32 `json:"asm_threshold,omitempty"` + ForecastPeriod *InheritanceInheritedUInt32 `json:"forecast_period,omitempty"` + History *InheritanceInheritedUInt32 `json:"history,omitempty"` + MinTotal *InheritanceInheritedUInt32 `json:"min_total,omitempty"` + MinUnused *InheritanceInheritedUInt32 `json:"min_unused,omitempty"` } // NewIpamsvcInheritedASMConfig instantiates a new IpamsvcInheritedASMConfig object @@ -270,7 +270,7 @@ func (o *IpamsvcInheritedASMConfig) SetMinUnused(v InheritanceInheritedUInt32) { } func (o IpamsvcInheritedASMConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -338,5 +338,3 @@ func (v *NullableIpamsvcInheritedASMConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_asm_enable_block.go b/ipam/model_ipamsvc_inherited_asm_enable_block.go index 0b86bb6..4122e6c 100644 --- a/ipam/model_ipamsvc_inherited_asm_enable_block.go +++ b/ipam/model_ipamsvc_inherited_asm_enable_block.go @@ -24,8 +24,8 @@ type IpamsvcInheritedAsmEnableBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcAsmEnableBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcAsmEnableBlock `json:"value,omitempty"` } // NewIpamsvcInheritedAsmEnableBlock instantiates a new IpamsvcInheritedAsmEnableBlock object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedAsmEnableBlock) SetValue(v IpamsvcAsmEnableBlock) { } func (o IpamsvcInheritedAsmEnableBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedAsmEnableBlock) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_asm_growth_block.go b/ipam/model_ipamsvc_inherited_asm_growth_block.go index b3e6f2e..1671c66 100644 --- a/ipam/model_ipamsvc_inherited_asm_growth_block.go +++ b/ipam/model_ipamsvc_inherited_asm_growth_block.go @@ -24,8 +24,8 @@ type IpamsvcInheritedAsmGrowthBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcAsmGrowthBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcAsmGrowthBlock `json:"value,omitempty"` } // NewIpamsvcInheritedAsmGrowthBlock instantiates a new IpamsvcInheritedAsmGrowthBlock object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedAsmGrowthBlock) SetValue(v IpamsvcAsmGrowthBlock) { } func (o IpamsvcInheritedAsmGrowthBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedAsmGrowthBlock) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_ddns_block.go b/ipam/model_ipamsvc_inherited_ddns_block.go index 58481eb..3118b48 100644 --- a/ipam/model_ipamsvc_inherited_ddns_block.go +++ b/ipam/model_ipamsvc_inherited_ddns_block.go @@ -24,8 +24,8 @@ type IpamsvcInheritedDDNSBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcDDNSBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcDDNSBlock `json:"value,omitempty"` } // NewIpamsvcInheritedDDNSBlock instantiates a new IpamsvcInheritedDDNSBlock object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedDDNSBlock) SetValue(v IpamsvcDDNSBlock) { } func (o IpamsvcInheritedDDNSBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedDDNSBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_ddns_hostname_block.go b/ipam/model_ipamsvc_inherited_ddns_hostname_block.go index 31a4d3b..0676a6c 100644 --- a/ipam/model_ipamsvc_inherited_ddns_hostname_block.go +++ b/ipam/model_ipamsvc_inherited_ddns_hostname_block.go @@ -24,8 +24,8 @@ type IpamsvcInheritedDDNSHostnameBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcDDNSHostnameBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcDDNSHostnameBlock `json:"value,omitempty"` } // NewIpamsvcInheritedDDNSHostnameBlock instantiates a new IpamsvcInheritedDDNSHostnameBlock object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedDDNSHostnameBlock) SetValue(v IpamsvcDDNSHostnameBlock) } func (o IpamsvcInheritedDDNSHostnameBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedDDNSHostnameBlock) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_ddns_update_block.go b/ipam/model_ipamsvc_inherited_ddns_update_block.go index 8acf3a1..99f4f4c 100644 --- a/ipam/model_ipamsvc_inherited_ddns_update_block.go +++ b/ipam/model_ipamsvc_inherited_ddns_update_block.go @@ -24,8 +24,8 @@ type IpamsvcInheritedDDNSUpdateBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcDDNSUpdateBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcDDNSUpdateBlock `json:"value,omitempty"` } // NewIpamsvcInheritedDDNSUpdateBlock instantiates a new IpamsvcInheritedDDNSUpdateBlock object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedDDNSUpdateBlock) SetValue(v IpamsvcDDNSUpdateBlock) { } func (o IpamsvcInheritedDDNSUpdateBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedDDNSUpdateBlock) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_dhcp_config.go b/ipam/model_ipamsvc_inherited_dhcp_config.go index 59a45f5..8a62fdd 100644 --- a/ipam/model_ipamsvc_inherited_dhcp_config.go +++ b/ipam/model_ipamsvc_inherited_dhcp_config.go @@ -19,16 +19,16 @@ var _ MappedNullable = &IpamsvcInheritedDHCPConfig{} // IpamsvcInheritedDHCPConfig The inheritance configuration for a field of type _DHCPConfig_. type IpamsvcInheritedDHCPConfig struct { - AbandonedReclaimTime *InheritanceInheritedUInt32 `json:"abandoned_reclaim_time,omitempty"` - AbandonedReclaimTimeV6 *InheritanceInheritedUInt32 `json:"abandoned_reclaim_time_v6,omitempty"` - AllowUnknown *InheritanceInheritedBool `json:"allow_unknown,omitempty"` - AllowUnknownV6 *InheritanceInheritedBool `json:"allow_unknown_v6,omitempty"` - Filters *InheritedDHCPConfigFilterList `json:"filters,omitempty"` - FiltersV6 *InheritedDHCPConfigFilterList `json:"filters_v6,omitempty"` - IgnoreClientUid *InheritanceInheritedBool `json:"ignore_client_uid,omitempty"` - IgnoreList *InheritedDHCPConfigIgnoreItemList `json:"ignore_list,omitempty"` - LeaseTime *InheritanceInheritedUInt32 `json:"lease_time,omitempty"` - LeaseTimeV6 *InheritanceInheritedUInt32 `json:"lease_time_v6,omitempty"` + AbandonedReclaimTime *InheritanceInheritedUInt32 `json:"abandoned_reclaim_time,omitempty"` + AbandonedReclaimTimeV6 *InheritanceInheritedUInt32 `json:"abandoned_reclaim_time_v6,omitempty"` + AllowUnknown *InheritanceInheritedBool `json:"allow_unknown,omitempty"` + AllowUnknownV6 *InheritanceInheritedBool `json:"allow_unknown_v6,omitempty"` + Filters *InheritedDHCPConfigFilterList `json:"filters,omitempty"` + FiltersV6 *InheritedDHCPConfigFilterList `json:"filters_v6,omitempty"` + IgnoreClientUid *InheritanceInheritedBool `json:"ignore_client_uid,omitempty"` + IgnoreList *InheritedDHCPConfigIgnoreItemList `json:"ignore_list,omitempty"` + LeaseTime *InheritanceInheritedUInt32 `json:"lease_time,omitempty"` + LeaseTimeV6 *InheritanceInheritedUInt32 `json:"lease_time_v6,omitempty"` } // NewIpamsvcInheritedDHCPConfig instantiates a new IpamsvcInheritedDHCPConfig object @@ -369,7 +369,7 @@ func (o *IpamsvcInheritedDHCPConfig) SetLeaseTimeV6(v InheritanceInheritedUInt32 } func (o IpamsvcInheritedDHCPConfig) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -446,5 +446,3 @@ func (v *NullableIpamsvcInheritedDHCPConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_dhcp_option.go b/ipam/model_ipamsvc_inherited_dhcp_option.go index 50882bf..08b9334 100644 --- a/ipam/model_ipamsvc_inherited_dhcp_option.go +++ b/ipam/model_ipamsvc_inherited_dhcp_option.go @@ -24,8 +24,8 @@ type IpamsvcInheritedDHCPOption struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcInheritedDHCPOptionItem `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcInheritedDHCPOptionItem `json:"value,omitempty"` } // NewIpamsvcInheritedDHCPOption instantiates a new IpamsvcInheritedDHCPOption object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedDHCPOption) SetValue(v IpamsvcInheritedDHCPOptionItem) } func (o IpamsvcInheritedDHCPOption) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedDHCPOption) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_dhcp_option_item.go b/ipam/model_ipamsvc_inherited_dhcp_option_item.go index dbea964..4ff6021 100644 --- a/ipam/model_ipamsvc_inherited_dhcp_option_item.go +++ b/ipam/model_ipamsvc_inherited_dhcp_option_item.go @@ -106,7 +106,7 @@ func (o *IpamsvcInheritedDHCPOptionItem) SetOverridingGroup(v string) { } func (o IpamsvcInheritedDHCPOptionItem) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -159,5 +159,3 @@ func (v *NullableIpamsvcInheritedDHCPOptionItem) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_dhcp_option_list.go b/ipam/model_ipamsvc_inherited_dhcp_option_list.go index 3e0967b..5812d13 100644 --- a/ipam/model_ipamsvc_inherited_dhcp_option_list.go +++ b/ipam/model_ipamsvc_inherited_dhcp_option_list.go @@ -107,7 +107,7 @@ func (o *IpamsvcInheritedDHCPOptionList) SetValue(v []IpamsvcInheritedDHCPOption } func (o IpamsvcInheritedDHCPOptionList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcInheritedDHCPOptionList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_inherited_hostname_rewrite_block.go b/ipam/model_ipamsvc_inherited_hostname_rewrite_block.go index 64da520..82cd83e 100644 --- a/ipam/model_ipamsvc_inherited_hostname_rewrite_block.go +++ b/ipam/model_ipamsvc_inherited_hostname_rewrite_block.go @@ -24,8 +24,8 @@ type IpamsvcInheritedHostnameRewriteBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *IpamsvcHostnameRewriteBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *IpamsvcHostnameRewriteBlock `json:"value,omitempty"` } // NewIpamsvcInheritedHostnameRewriteBlock instantiates a new IpamsvcInheritedHostnameRewriteBlock object @@ -174,7 +174,7 @@ func (o *IpamsvcInheritedHostnameRewriteBlock) SetValue(v IpamsvcHostnameRewrite } func (o IpamsvcInheritedHostnameRewriteBlock) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -233,5 +233,3 @@ func (v *NullableIpamsvcInheritedHostnameRewriteBlock) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ip_space.go b/ipam/model_ipamsvc_ip_space.go index e361b9c..ff974a4 100644 --- a/ipam/model_ipamsvc_ip_space.go +++ b/ipam/model_ipamsvc_ip_space.go @@ -44,8 +44,8 @@ type IpamsvcIPSpace struct { // Instructs the DHCP server to always update the DNS information when a lease is renewed even if its DNS information has not changed. Defaults to _false_. DdnsUpdateOnRenew *bool `json:"ddns_update_on_renew,omitempty"` // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. - DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` - DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` + DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` + DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` // The list of IPv4 DHCP options for IP space. May be either a specific option or a group of options. DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` // The list of IPv6 DHCP options for IP space. May be either a specific option or a group of options. @@ -63,16 +63,16 @@ type IpamsvcIPSpace struct { // The regex bracket expression to match valid characters. Must begin with \"[\" and end with \"]\" and be a compilable POSIX regex. Defaults to \"[^a-zA-Z0-9_.]\". HostnameRewriteRegex *string `json:"hostname_rewrite_regex,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *IpamsvcIPSpaceInheritance `json:"inheritance_sources,omitempty"` // The name of the IP space. Must contain 1 to 256 characters. Can include UTF-8. Name string `json:"name"` // The tags for the IP space in JSON format. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` Threshold *IpamsvcUtilizationThreshold `json:"threshold,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Utilization *IpamsvcUtilization `json:"utilization,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Utilization *IpamsvcUtilization `json:"utilization,omitempty"` UtilizationV6 *IpamsvcUtilizationV6 `json:"utilization_v6,omitempty"` // The resource identifier. VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` @@ -1121,7 +1121,7 @@ func (o *IpamsvcIPSpace) SetVendorSpecificOptionOptionSpace(v string) { } func (o IpamsvcIPSpace) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1259,5 +1259,3 @@ func (v *NullableIpamsvcIPSpace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ip_space_inheritance.go b/ipam/model_ipamsvc_ip_space_inheritance.go index 16fcf76..a70b2bd 100644 --- a/ipam/model_ipamsvc_ip_space_inheritance.go +++ b/ipam/model_ipamsvc_ip_space_inheritance.go @@ -19,23 +19,23 @@ var _ MappedNullable = &IpamsvcIPSpaceInheritance{} // IpamsvcIPSpaceInheritance The __IPSpaceInheritance__ object specifies how and which fields _IPSpace_ object inherits from the parent. type IpamsvcIPSpaceInheritance struct { - AsmConfig *IpamsvcInheritedASMConfig `json:"asm_config,omitempty"` - DdnsClientUpdate *InheritanceInheritedString `json:"ddns_client_update,omitempty"` - DdnsConflictResolutionMode *InheritanceInheritedString `json:"ddns_conflict_resolution_mode,omitempty"` - DdnsEnabled *InheritanceInheritedBool `json:"ddns_enabled,omitempty"` - DdnsHostnameBlock *IpamsvcInheritedDDNSHostnameBlock `json:"ddns_hostname_block,omitempty"` - DdnsTtlPercent *InheritanceInheritedFloat `json:"ddns_ttl_percent,omitempty"` - DdnsUpdateBlock *IpamsvcInheritedDDNSUpdateBlock `json:"ddns_update_block,omitempty"` - DdnsUpdateOnRenew *InheritanceInheritedBool `json:"ddns_update_on_renew,omitempty"` - DdnsUseConflictResolution *InheritanceInheritedBool `json:"ddns_use_conflict_resolution,omitempty"` - DhcpConfig *IpamsvcInheritedDHCPConfig `json:"dhcp_config,omitempty"` - DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` - DhcpOptionsV6 *IpamsvcInheritedDHCPOptionList `json:"dhcp_options_v6,omitempty"` - HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` - HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` - HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` - HostnameRewriteBlock *IpamsvcInheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` - VendorSpecificOptionOptionSpace *InheritanceInheritedIdentifier `json:"vendor_specific_option_option_space,omitempty"` + AsmConfig *IpamsvcInheritedASMConfig `json:"asm_config,omitempty"` + DdnsClientUpdate *InheritanceInheritedString `json:"ddns_client_update,omitempty"` + DdnsConflictResolutionMode *InheritanceInheritedString `json:"ddns_conflict_resolution_mode,omitempty"` + DdnsEnabled *InheritanceInheritedBool `json:"ddns_enabled,omitempty"` + DdnsHostnameBlock *IpamsvcInheritedDDNSHostnameBlock `json:"ddns_hostname_block,omitempty"` + DdnsTtlPercent *InheritanceInheritedFloat `json:"ddns_ttl_percent,omitempty"` + DdnsUpdateBlock *IpamsvcInheritedDDNSUpdateBlock `json:"ddns_update_block,omitempty"` + DdnsUpdateOnRenew *InheritanceInheritedBool `json:"ddns_update_on_renew,omitempty"` + DdnsUseConflictResolution *InheritanceInheritedBool `json:"ddns_use_conflict_resolution,omitempty"` + DhcpConfig *IpamsvcInheritedDHCPConfig `json:"dhcp_config,omitempty"` + DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` + DhcpOptionsV6 *IpamsvcInheritedDHCPOptionList `json:"dhcp_options_v6,omitempty"` + HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` + HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` + HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` + HostnameRewriteBlock *IpamsvcInheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` + VendorSpecificOptionOptionSpace *InheritanceInheritedIdentifier `json:"vendor_specific_option_option_space,omitempty"` } // NewIpamsvcIPSpaceInheritance instantiates a new IpamsvcIPSpaceInheritance object @@ -600,7 +600,7 @@ func (o *IpamsvcIPSpaceInheritance) SetVendorSpecificOptionOptionSpace(v Inherit } func (o IpamsvcIPSpaceInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -698,5 +698,3 @@ func (v *NullableIpamsvcIPSpaceInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_ipam_host.go b/ipam/model_ipamsvc_ipam_host.go index 2f2dc66..f8463e1 100644 --- a/ipam/model_ipamsvc_ipam_host.go +++ b/ipam/model_ipamsvc_ipam_host.go @@ -339,7 +339,7 @@ func (o *IpamsvcIpamHost) SetUpdatedAt(v time.Time) { } func (o IpamsvcIpamHost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -411,5 +411,3 @@ func (v *NullableIpamsvcIpamHost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_kerberos_key.go b/ipam/model_ipamsvc_kerberos_key.go index ad62a4a..86cb3a8 100644 --- a/ipam/model_ipamsvc_kerberos_key.go +++ b/ipam/model_ipamsvc_kerberos_key.go @@ -236,7 +236,7 @@ func (o *IpamsvcKerberosKey) SetVersion(v int64) { } func (o IpamsvcKerberosKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,5 +299,3 @@ func (v *NullableIpamsvcKerberosKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_lease_address.go b/ipam/model_ipamsvc_lease_address.go index 66547a6..f011b7a 100644 --- a/ipam/model_ipamsvc_lease_address.go +++ b/ipam/model_ipamsvc_lease_address.go @@ -107,7 +107,7 @@ func (o *IpamsvcLeaseAddress) SetSpace(v string) { } func (o IpamsvcLeaseAddress) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcLeaseAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_lease_range.go b/ipam/model_ipamsvc_lease_range.go index 9811317..f6923a7 100644 --- a/ipam/model_ipamsvc_lease_range.go +++ b/ipam/model_ipamsvc_lease_range.go @@ -73,7 +73,7 @@ func (o *IpamsvcLeaseRange) SetId(v string) { } func (o IpamsvcLeaseRange) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcLeaseRange) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_lease_subnet.go b/ipam/model_ipamsvc_lease_subnet.go index a3d7545..c4e3fef 100644 --- a/ipam/model_ipamsvc_lease_subnet.go +++ b/ipam/model_ipamsvc_lease_subnet.go @@ -73,7 +73,7 @@ func (o *IpamsvcLeaseSubnet) SetId(v string) { } func (o IpamsvcLeaseSubnet) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcLeaseSubnet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_leases_command.go b/ipam/model_ipamsvc_leases_command.go index f82041f..b0209ea 100644 --- a/ipam/model_ipamsvc_leases_command.go +++ b/ipam/model_ipamsvc_leases_command.go @@ -168,7 +168,7 @@ func (o *IpamsvcLeasesCommand) SetSubnet(v []IpamsvcLeaseSubnet) { } func (o IpamsvcLeasesCommand) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -225,5 +225,3 @@ func (v *NullableIpamsvcLeasesCommand) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_address_block_response.go b/ipam/model_ipamsvc_list_address_block_response.go index 7412cde..2dbcc85 100644 --- a/ipam/model_ipamsvc_list_address_block_response.go +++ b/ipam/model_ipamsvc_list_address_block_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListAddressBlockResponse) SetResults(v []IpamsvcAddressBlock) { } func (o IpamsvcListAddressBlockResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListAddressBlockResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_address_response.go b/ipam/model_ipamsvc_list_address_response.go index d0af5d8..44af1de 100644 --- a/ipam/model_ipamsvc_list_address_response.go +++ b/ipam/model_ipamsvc_list_address_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListAddressResponse) SetResults(v []IpamsvcAddress) { } func (o IpamsvcListAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListAddressResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_asm_response.go b/ipam/model_ipamsvc_list_asm_response.go index 160d0b5..dfa2cec 100644 --- a/ipam/model_ipamsvc_list_asm_response.go +++ b/ipam/model_ipamsvc_list_asm_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListASMResponse) SetResults(v []IpamsvcASM) { } func (o IpamsvcListASMResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListASMResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_dns_usage_response.go b/ipam/model_ipamsvc_list_dns_usage_response.go index de94604..176df1b 100644 --- a/ipam/model_ipamsvc_list_dns_usage_response.go +++ b/ipam/model_ipamsvc_list_dns_usage_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListDNSUsageResponse) SetResults(v []IpamsvcDNSUsage) { } func (o IpamsvcListDNSUsageResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListDNSUsageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_filter_response.go b/ipam/model_ipamsvc_list_filter_response.go index d14806a..f336709 100644 --- a/ipam/model_ipamsvc_list_filter_response.go +++ b/ipam/model_ipamsvc_list_filter_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListFilterResponse) SetResults(v []IpamsvcFilter) { } func (o IpamsvcListFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListFilterResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_fixed_address_response.go b/ipam/model_ipamsvc_list_fixed_address_response.go index c773fa0..6ee5515 100644 --- a/ipam/model_ipamsvc_list_fixed_address_response.go +++ b/ipam/model_ipamsvc_list_fixed_address_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListFixedAddressResponse) SetResults(v []IpamsvcFixedAddress) { } func (o IpamsvcListFixedAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListFixedAddressResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_ha_group_response.go b/ipam/model_ipamsvc_list_ha_group_response.go index fa3a346..6334231 100644 --- a/ipam/model_ipamsvc_list_ha_group_response.go +++ b/ipam/model_ipamsvc_list_ha_group_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListHAGroupResponse) SetResults(v []IpamsvcHAGroup) { } func (o IpamsvcListHAGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListHAGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_hardware_filter_response.go b/ipam/model_ipamsvc_list_hardware_filter_response.go index 288e245..2d3e426 100644 --- a/ipam/model_ipamsvc_list_hardware_filter_response.go +++ b/ipam/model_ipamsvc_list_hardware_filter_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListHardwareFilterResponse) SetResults(v []IpamsvcHardwareFilter } func (o IpamsvcListHardwareFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListHardwareFilterResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_host_response.go b/ipam/model_ipamsvc_list_host_response.go index b5950eb..5cd822a 100644 --- a/ipam/model_ipamsvc_list_host_response.go +++ b/ipam/model_ipamsvc_list_host_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListHostResponse) SetResults(v []IpamsvcHost) { } func (o IpamsvcListHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_ip_space_response.go b/ipam/model_ipamsvc_list_ip_space_response.go index f5e9efd..739f09b 100644 --- a/ipam/model_ipamsvc_list_ip_space_response.go +++ b/ipam/model_ipamsvc_list_ip_space_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListIPSpaceResponse) SetResults(v []IpamsvcIPSpace) { } func (o IpamsvcListIPSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListIPSpaceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_ipam_host_response.go b/ipam/model_ipamsvc_list_ipam_host_response.go index dfea029..3adfca2 100644 --- a/ipam/model_ipamsvc_list_ipam_host_response.go +++ b/ipam/model_ipamsvc_list_ipam_host_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListIpamHostResponse) SetResults(v []IpamsvcIpamHost) { } func (o IpamsvcListIpamHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListIpamHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_option_code_response.go b/ipam/model_ipamsvc_list_option_code_response.go index ab02828..a68728c 100644 --- a/ipam/model_ipamsvc_list_option_code_response.go +++ b/ipam/model_ipamsvc_list_option_code_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListOptionCodeResponse) SetResults(v []IpamsvcOptionCode) { } func (o IpamsvcListOptionCodeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListOptionCodeResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_option_filter_response.go b/ipam/model_ipamsvc_list_option_filter_response.go index 736542b..7a40fa6 100644 --- a/ipam/model_ipamsvc_list_option_filter_response.go +++ b/ipam/model_ipamsvc_list_option_filter_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListOptionFilterResponse) SetResults(v []IpamsvcOptionFilter) { } func (o IpamsvcListOptionFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListOptionFilterResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_option_group_response.go b/ipam/model_ipamsvc_list_option_group_response.go index 9a760dd..d996dee 100644 --- a/ipam/model_ipamsvc_list_option_group_response.go +++ b/ipam/model_ipamsvc_list_option_group_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListOptionGroupResponse) SetResults(v []IpamsvcOptionGroup) { } func (o IpamsvcListOptionGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListOptionGroupResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_option_space_response.go b/ipam/model_ipamsvc_list_option_space_response.go index 2678817..f9404e7 100644 --- a/ipam/model_ipamsvc_list_option_space_response.go +++ b/ipam/model_ipamsvc_list_option_space_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListOptionSpaceResponse) SetResults(v []IpamsvcOptionSpace) { } func (o IpamsvcListOptionSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListOptionSpaceResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_range_response.go b/ipam/model_ipamsvc_list_range_response.go index aa22116..a19c6cd 100644 --- a/ipam/model_ipamsvc_list_range_response.go +++ b/ipam/model_ipamsvc_list_range_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListRangeResponse) SetResults(v []IpamsvcRange) { } func (o IpamsvcListRangeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListRangeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_server_response.go b/ipam/model_ipamsvc_list_server_response.go index 12c490c..9f17a9d 100644 --- a/ipam/model_ipamsvc_list_server_response.go +++ b/ipam/model_ipamsvc_list_server_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListServerResponse) SetResults(v []IpamsvcServer) { } func (o IpamsvcListServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_list_subnet_response.go b/ipam/model_ipamsvc_list_subnet_response.go index a97d60a..1798c35 100644 --- a/ipam/model_ipamsvc_list_subnet_response.go +++ b/ipam/model_ipamsvc_list_subnet_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcListSubnetResponse) SetResults(v []IpamsvcSubnet) { } func (o IpamsvcListSubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcListSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_name.go b/ipam/model_ipamsvc_name.go index f88facf..4bb67e2 100644 --- a/ipam/model_ipamsvc_name.go +++ b/ipam/model_ipamsvc_name.go @@ -93,7 +93,7 @@ func (o *IpamsvcName) SetType(v string) { } func (o IpamsvcName) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -142,5 +142,3 @@ func (v *NullableIpamsvcName) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_nameserver.go b/ipam/model_ipamsvc_nameserver.go index 8e78f64..0534671 100644 --- a/ipam/model_ipamsvc_nameserver.go +++ b/ipam/model_ipamsvc_nameserver.go @@ -31,7 +31,7 @@ type IpamsvcNameserver struct { KerberosTkeyLifetime *int64 `json:"kerberos_tkey_lifetime,omitempty"` // Determines which protocol is used to establish the security context with the external DNS servers, TCP or UDP. Defaults to _tcp_. KerberosTkeyProtocol *string `json:"kerberos_tkey_protocol,omitempty"` - Nameserver *string `json:"nameserver,omitempty"` + Nameserver *string `json:"nameserver,omitempty"` // The Kerberos principal name of this DNS server that will receive updates. Defaults to empty. ServerPrincipal *string `json:"server_principal,omitempty"` } @@ -310,7 +310,7 @@ func (o *IpamsvcNameserver) SetServerPrincipal(v string) { } func (o IpamsvcNameserver) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -381,5 +381,3 @@ func (v *NullableIpamsvcNameserver) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_next_available_ab_response.go b/ipam/model_ipamsvc_next_available_ab_response.go index 51148a6..838f8f7 100644 --- a/ipam/model_ipamsvc_next_available_ab_response.go +++ b/ipam/model_ipamsvc_next_available_ab_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcNextAvailableABResponse) SetResults(v []IpamsvcAddressBlock) { } func (o IpamsvcNextAvailableABResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcNextAvailableABResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_next_available_ip_response.go b/ipam/model_ipamsvc_next_available_ip_response.go index c4890ce..381bb89 100644 --- a/ipam/model_ipamsvc_next_available_ip_response.go +++ b/ipam/model_ipamsvc_next_available_ip_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcNextAvailableIPResponse) SetResults(v []IpamsvcAddress) { } func (o IpamsvcNextAvailableIPResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcNextAvailableIPResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_next_available_subnet_response.go b/ipam/model_ipamsvc_next_available_subnet_response.go index b6b1ee5..2feb1c3 100644 --- a/ipam/model_ipamsvc_next_available_subnet_response.go +++ b/ipam/model_ipamsvc_next_available_subnet_response.go @@ -73,7 +73,7 @@ func (o *IpamsvcNextAvailableSubnetResponse) SetResults(v []IpamsvcSubnet) { } func (o IpamsvcNextAvailableSubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableIpamsvcNextAvailableSubnetResponse) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_code.go b/ipam/model_ipamsvc_option_code.go index 7be9f46..79af98e 100644 --- a/ipam/model_ipamsvc_option_code.go +++ b/ipam/model_ipamsvc_option_code.go @@ -352,7 +352,7 @@ func (o *IpamsvcOptionCode) SetUpdatedAt(v time.Time) { } func (o IpamsvcOptionCode) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -421,5 +421,3 @@ func (v *NullableIpamsvcOptionCode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_filter.go b/ipam/model_ipamsvc_option_filter.go index f221590..5dabbe5 100644 --- a/ipam/model_ipamsvc_option_filter.go +++ b/ipam/model_ipamsvc_option_filter.go @@ -41,7 +41,7 @@ type IpamsvcOptionFilter struct { // The type of protocol of option filter (_ip4_ or _ip6_). Protocol *string `json:"protocol,omitempty"` // The role of DHCP filter (_values_ or _selection_). Defaults to _values_. - Role *string `json:"role,omitempty"` + Role *string `json:"role,omitempty"` Rules IpamsvcOptionFilterRuleList `json:"rules"` // The tags for the option filter in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` @@ -535,7 +535,7 @@ func (o *IpamsvcOptionFilter) SetVendorSpecificOptionOptionSpace(v string) { } func (o IpamsvcOptionFilter) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -623,5 +623,3 @@ func (v *NullableIpamsvcOptionFilter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_filter_rule.go b/ipam/model_ipamsvc_option_filter_rule.go index e380430..7d61417 100644 --- a/ipam/model_ipamsvc_option_filter_rule.go +++ b/ipam/model_ipamsvc_option_filter_rule.go @@ -161,7 +161,7 @@ func (o *IpamsvcOptionFilterRule) SetSubstringOffset(v int64) { } func (o IpamsvcOptionFilterRule) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -216,5 +216,3 @@ func (v *NullableIpamsvcOptionFilterRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_filter_rule_list.go b/ipam/model_ipamsvc_option_filter_rule_list.go index 5f094e8..ce41b98 100644 --- a/ipam/model_ipamsvc_option_filter_rule_list.go +++ b/ipam/model_ipamsvc_option_filter_rule_list.go @@ -107,7 +107,7 @@ func (o *IpamsvcOptionFilterRuleList) SetRules(v []IpamsvcOptionFilterRule) { } func (o IpamsvcOptionFilterRuleList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,5 +160,3 @@ func (v *NullableIpamsvcOptionFilterRuleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_group.go b/ipam/model_ipamsvc_option_group.go index 1ea5c8d..e4f710d 100644 --- a/ipam/model_ipamsvc_option_group.go +++ b/ipam/model_ipamsvc_option_group.go @@ -305,7 +305,7 @@ func (o *IpamsvcOptionGroup) SetUpdatedAt(v time.Time) { } func (o IpamsvcOptionGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -374,5 +374,3 @@ func (v *NullableIpamsvcOptionGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_item.go b/ipam/model_ipamsvc_option_item.go index 8802580..6ed0669 100644 --- a/ipam/model_ipamsvc_option_item.go +++ b/ipam/model_ipamsvc_option_item.go @@ -175,7 +175,7 @@ func (o *IpamsvcOptionItem) SetType(v string) { } func (o IpamsvcOptionItem) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableIpamsvcOptionItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_option_space.go b/ipam/model_ipamsvc_option_space.go index 860e6d7..e126876 100644 --- a/ipam/model_ipamsvc_option_space.go +++ b/ipam/model_ipamsvc_option_space.go @@ -271,7 +271,7 @@ func (o *IpamsvcOptionSpace) SetUpdatedAt(v time.Time) { } func (o IpamsvcOptionSpace) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -337,5 +337,3 @@ func (v *NullableIpamsvcOptionSpace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_range.go b/ipam/model_ipamsvc_range.go index 6acda89..be9f8b4 100644 --- a/ipam/model_ipamsvc_range.go +++ b/ipam/model_ipamsvc_range.go @@ -18,7 +18,7 @@ import ( // checks if the IpamsvcRange type satisfies the MappedNullable interface at compile time var _ MappedNullable = &IpamsvcRange{} -// IpamsvcRange A __Range__ object (_ipam/range_) represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. +// IpamsvcRange A __Range__ object (_ipam/range_) represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. type IpamsvcRange struct { // The description for the range. May contain 0 to 1024 characters. Can include UTF-8. Comment *string `json:"comment,omitempty"` @@ -41,7 +41,7 @@ type IpamsvcRange struct { // The list of the inheritance assigned hosts of the object. InheritanceAssignedHosts []InheritanceAssignedHost `json:"inheritance_assigned_hosts,omitempty"` // The resource identifier. - InheritanceParent *string `json:"inheritance_parent,omitempty"` + InheritanceParent *string `json:"inheritance_parent,omitempty"` InheritanceSources *IpamsvcDHCPOptionsInheritance `json:"inheritance_sources,omitempty"` // The name of the range. May contain 1 to 256 characters. Can include UTF-8. Name *string `json:"name,omitempty"` @@ -54,11 +54,11 @@ type IpamsvcRange struct { // The start IP address of the range. Start string `json:"start"` // The tags for the range in JSON format. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` Threshold *IpamsvcUtilizationThreshold `json:"threshold,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Utilization *IpamsvcUtilization `json:"utilization,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Utilization *IpamsvcUtilization `json:"utilization,omitempty"` UtilizationV6 *IpamsvcUtilizationV6 `json:"utilization_v6,omitempty"` } @@ -770,7 +770,7 @@ func (o *IpamsvcRange) SetUtilizationV6(v IpamsvcUtilizationV6) { } func (o IpamsvcRange) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -879,5 +879,3 @@ func (v *NullableIpamsvcRange) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_address_block_response.go b/ipam/model_ipamsvc_read_address_block_response.go index 4a018ea..5b1debe 100644 --- a/ipam/model_ipamsvc_read_address_block_response.go +++ b/ipam/model_ipamsvc_read_address_block_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadAddressBlockResponse) SetResult(v IpamsvcAddressBlock) { } func (o IpamsvcReadAddressBlockResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadAddressBlockResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_address_response.go b/ipam/model_ipamsvc_read_address_response.go index cd1b711..b5afa03 100644 --- a/ipam/model_ipamsvc_read_address_response.go +++ b/ipam/model_ipamsvc_read_address_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadAddressResponse) SetResult(v IpamsvcAddress) { } func (o IpamsvcReadAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadAddressResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_asm_response.go b/ipam/model_ipamsvc_read_asm_response.go index 90a1a37..046053e 100644 --- a/ipam/model_ipamsvc_read_asm_response.go +++ b/ipam/model_ipamsvc_read_asm_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadASMResponse) SetResult(v IpamsvcASM) { } func (o IpamsvcReadASMResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadASMResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_dns_usage_response.go b/ipam/model_ipamsvc_read_dns_usage_response.go index f587f67..74ef77b 100644 --- a/ipam/model_ipamsvc_read_dns_usage_response.go +++ b/ipam/model_ipamsvc_read_dns_usage_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadDNSUsageResponse) SetResult(v IpamsvcDNSUsage) { } func (o IpamsvcReadDNSUsageResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadDNSUsageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_fixed_address_response.go b/ipam/model_ipamsvc_read_fixed_address_response.go index cd43301..40ceee8 100644 --- a/ipam/model_ipamsvc_read_fixed_address_response.go +++ b/ipam/model_ipamsvc_read_fixed_address_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadFixedAddressResponse) SetResult(v IpamsvcFixedAddress) { } func (o IpamsvcReadFixedAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadFixedAddressResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_global_response.go b/ipam/model_ipamsvc_read_global_response.go index c83e64d..a68f9ac 100644 --- a/ipam/model_ipamsvc_read_global_response.go +++ b/ipam/model_ipamsvc_read_global_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadGlobalResponse) SetResult(v IpamsvcGlobal) { } func (o IpamsvcReadGlobalResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadGlobalResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_ha_group_response.go b/ipam/model_ipamsvc_read_ha_group_response.go index 7769b16..174bb48 100644 --- a/ipam/model_ipamsvc_read_ha_group_response.go +++ b/ipam/model_ipamsvc_read_ha_group_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadHAGroupResponse) SetResult(v IpamsvcHAGroup) { } func (o IpamsvcReadHAGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadHAGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_hardware_filter_response.go b/ipam/model_ipamsvc_read_hardware_filter_response.go index b125140..dd19045 100644 --- a/ipam/model_ipamsvc_read_hardware_filter_response.go +++ b/ipam/model_ipamsvc_read_hardware_filter_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadHardwareFilterResponse) SetResult(v IpamsvcHardwareFilter) { } func (o IpamsvcReadHardwareFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadHardwareFilterResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_host_response.go b/ipam/model_ipamsvc_read_host_response.go index aaeffa7..1ae30f4 100644 --- a/ipam/model_ipamsvc_read_host_response.go +++ b/ipam/model_ipamsvc_read_host_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadHostResponse) SetResult(v IpamsvcHost) { } func (o IpamsvcReadHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_ip_space_response.go b/ipam/model_ipamsvc_read_ip_space_response.go index 9776f2b..18a3eff 100644 --- a/ipam/model_ipamsvc_read_ip_space_response.go +++ b/ipam/model_ipamsvc_read_ip_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadIPSpaceResponse) SetResult(v IpamsvcIPSpace) { } func (o IpamsvcReadIPSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadIPSpaceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_ipam_host_response.go b/ipam/model_ipamsvc_read_ipam_host_response.go index 872ae94..423803c 100644 --- a/ipam/model_ipamsvc_read_ipam_host_response.go +++ b/ipam/model_ipamsvc_read_ipam_host_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadIpamHostResponse) SetResult(v IpamsvcIpamHost) { } func (o IpamsvcReadIpamHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadIpamHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_option_code_response.go b/ipam/model_ipamsvc_read_option_code_response.go index 5aedb15..59555dd 100644 --- a/ipam/model_ipamsvc_read_option_code_response.go +++ b/ipam/model_ipamsvc_read_option_code_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadOptionCodeResponse) SetResult(v IpamsvcOptionCode) { } func (o IpamsvcReadOptionCodeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadOptionCodeResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_option_filter_response.go b/ipam/model_ipamsvc_read_option_filter_response.go index 1de135c..8692cee 100644 --- a/ipam/model_ipamsvc_read_option_filter_response.go +++ b/ipam/model_ipamsvc_read_option_filter_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadOptionFilterResponse) SetResult(v IpamsvcOptionFilter) { } func (o IpamsvcReadOptionFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadOptionFilterResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_option_group_response.go b/ipam/model_ipamsvc_read_option_group_response.go index 6b8c323..9419041 100644 --- a/ipam/model_ipamsvc_read_option_group_response.go +++ b/ipam/model_ipamsvc_read_option_group_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadOptionGroupResponse) SetResult(v IpamsvcOptionGroup) { } func (o IpamsvcReadOptionGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadOptionGroupResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_option_space_response.go b/ipam/model_ipamsvc_read_option_space_response.go index 680cca7..ce5c7dd 100644 --- a/ipam/model_ipamsvc_read_option_space_response.go +++ b/ipam/model_ipamsvc_read_option_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadOptionSpaceResponse) SetResult(v IpamsvcOptionSpace) { } func (o IpamsvcReadOptionSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadOptionSpaceResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_range_response.go b/ipam/model_ipamsvc_read_range_response.go index c498dae..1bdd2cc 100644 --- a/ipam/model_ipamsvc_read_range_response.go +++ b/ipam/model_ipamsvc_read_range_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadRangeResponse) SetResult(v IpamsvcRange) { } func (o IpamsvcReadRangeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadRangeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_server_response.go b/ipam/model_ipamsvc_read_server_response.go index 2ac57fc..0f0e3e4 100644 --- a/ipam/model_ipamsvc_read_server_response.go +++ b/ipam/model_ipamsvc_read_server_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadServerResponse) SetResult(v IpamsvcServer) { } func (o IpamsvcReadServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_read_subnet_response.go b/ipam/model_ipamsvc_read_subnet_response.go index a21e788..9b3a0ee 100644 --- a/ipam/model_ipamsvc_read_subnet_response.go +++ b/ipam/model_ipamsvc_read_subnet_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcReadSubnetResponse) SetResult(v IpamsvcSubnet) { } func (o IpamsvcReadSubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcReadSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_server.go b/ipam/model_ipamsvc_server.go index 1fad962..1dd74ab 100644 --- a/ipam/model_ipamsvc_server.go +++ b/ipam/model_ipamsvc_server.go @@ -47,7 +47,7 @@ type IpamsvcServer struct { // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` // The DNS zones that DDNS updates can be sent to. There is no resolver fallback. The target zone must be explicitly configured for the update to be performed. Updates are sent to the closest enclosing zone. Error if _ddns_enabled_ is _true_ and the _ddns_domain_ does not have a corresponding entry in _ddns_zones_. Error if there are items with duplicate zone in the list. Defaults to empty list. - DdnsZones []IpamsvcDDNSZone `json:"ddns_zones,omitempty"` + DdnsZones []IpamsvcDDNSZone `json:"ddns_zones,omitempty"` DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` // The list of DHCP options or group of options for IPv4. An option list is ordered and may include both option groups and specific options. Multiple occurences of the same option or group is not an error. The last occurence of an option in the list will be used. Error if the graph of referenced groups contains cycles. Defaults to empty list. DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` @@ -68,7 +68,7 @@ type IpamsvcServer struct { // The regex bracket expression to match valid characters. Must begin with \"[\" and end with \"]\" and be a compilable POSIX regex. Defaults to \"[^a-zA-Z0-9_.]\". HostnameRewriteRegex *string `json:"hostname_rewrite_regex,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` InheritanceSources *IpamsvcServerInheritance `json:"inheritance_sources,omitempty"` // Address of Kerberos Key Distribution Center. Defaults to empty. KerberosKdc *string `json:"kerberos_kdc,omitempty"` @@ -1289,7 +1289,7 @@ func (o *IpamsvcServer) SetVendorSpecificOptionOptionSpace(v string) { } func (o IpamsvcServer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1445,5 +1445,3 @@ func (v *NullableIpamsvcServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_server_inheritance.go b/ipam/model_ipamsvc_server_inheritance.go index 29ab706..312e10e 100644 --- a/ipam/model_ipamsvc_server_inheritance.go +++ b/ipam/model_ipamsvc_server_inheritance.go @@ -19,21 +19,21 @@ var _ MappedNullable = &IpamsvcServerInheritance{} // IpamsvcServerInheritance The inheritance configuration specifies how and which fields _Server_ object (DHCP Config Profile) inherits from _Global_ parent. type IpamsvcServerInheritance struct { - DdnsBlock *IpamsvcInheritedDDNSBlock `json:"ddns_block,omitempty"` - DdnsClientUpdate *InheritanceInheritedString `json:"ddns_client_update,omitempty"` - DdnsConflictResolutionMode *InheritanceInheritedString `json:"ddns_conflict_resolution_mode,omitempty"` - DdnsHostnameBlock *IpamsvcInheritedDDNSHostnameBlock `json:"ddns_hostname_block,omitempty"` - DdnsTtlPercent *InheritanceInheritedFloat `json:"ddns_ttl_percent,omitempty"` - DdnsUpdateOnRenew *InheritanceInheritedBool `json:"ddns_update_on_renew,omitempty"` - DdnsUseConflictResolution *InheritanceInheritedBool `json:"ddns_use_conflict_resolution,omitempty"` - DhcpConfig *IpamsvcInheritedDHCPConfig `json:"dhcp_config,omitempty"` - DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` - DhcpOptionsV6 *IpamsvcInheritedDHCPOptionList `json:"dhcp_options_v6,omitempty"` - HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` - HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` - HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` - HostnameRewriteBlock *IpamsvcInheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` - VendorSpecificOptionOptionSpace *InheritanceInheritedIdentifier `json:"vendor_specific_option_option_space,omitempty"` + DdnsBlock *IpamsvcInheritedDDNSBlock `json:"ddns_block,omitempty"` + DdnsClientUpdate *InheritanceInheritedString `json:"ddns_client_update,omitempty"` + DdnsConflictResolutionMode *InheritanceInheritedString `json:"ddns_conflict_resolution_mode,omitempty"` + DdnsHostnameBlock *IpamsvcInheritedDDNSHostnameBlock `json:"ddns_hostname_block,omitempty"` + DdnsTtlPercent *InheritanceInheritedFloat `json:"ddns_ttl_percent,omitempty"` + DdnsUpdateOnRenew *InheritanceInheritedBool `json:"ddns_update_on_renew,omitempty"` + DdnsUseConflictResolution *InheritanceInheritedBool `json:"ddns_use_conflict_resolution,omitempty"` + DhcpConfig *IpamsvcInheritedDHCPConfig `json:"dhcp_config,omitempty"` + DhcpOptions *IpamsvcInheritedDHCPOptionList `json:"dhcp_options,omitempty"` + DhcpOptionsV6 *IpamsvcInheritedDHCPOptionList `json:"dhcp_options_v6,omitempty"` + HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` + HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` + HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` + HostnameRewriteBlock *IpamsvcInheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` + VendorSpecificOptionOptionSpace *InheritanceInheritedIdentifier `json:"vendor_specific_option_option_space,omitempty"` } // NewIpamsvcServerInheritance instantiates a new IpamsvcServerInheritance object @@ -534,7 +534,7 @@ func (o *IpamsvcServerInheritance) SetVendorSpecificOptionOptionSpace(v Inherita } func (o IpamsvcServerInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -626,5 +626,3 @@ func (v *NullableIpamsvcServerInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_subnet.go b/ipam/model_ipamsvc_subnet.go index 08f239b..0f455eb 100644 --- a/ipam/model_ipamsvc_subnet.go +++ b/ipam/model_ipamsvc_subnet.go @@ -21,7 +21,7 @@ var _ MappedNullable = &IpamsvcSubnet{} // IpamsvcSubnet A __Subnet__ object (_ipam/subnet_) is a set of contiguous IP addresses in the same IP space with no gap, expressed as an address and CIDR values. It represents a set of addresses from which addresses are assigned to network equipment interfaces. type IpamsvcSubnet struct { // The address of the subnet in the form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. - Address *string `json:"address,omitempty"` + Address *string `json:"address,omitempty"` AsmConfig *IpamsvcASMConfig `json:"asm_config,omitempty"` // Set to 1 to indicate that the subnet may run out of addresses. AsmScopeFlag *int64 `json:"asm_scope_flag,omitempty"` @@ -48,12 +48,12 @@ type IpamsvcSubnet struct { // Instructs the DHCP server to always update the DNS information when a lease is renewed even if its DNS information has not changed. Defaults to _false_. DdnsUpdateOnRenew *bool `json:"ddns_update_on_renew,omitempty"` // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. - DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` - DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` + DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` + DhcpConfig *IpamsvcDHCPConfig `json:"dhcp_config,omitempty"` // The resource identifier. DhcpHost *string `json:"dhcp_host,omitempty"` // The DHCP options of the subnet. This can either be a specific option or a group of options. - DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` + DhcpOptions []IpamsvcOptionItem `json:"dhcp_options,omitempty"` DhcpUtilization *IpamsvcDHCPUtilization `json:"dhcp_utilization,omitempty"` // Optional. _true_ to disable object. A disabled object is effectively non-existent when generating configuration. Defaults to _false_. DisableDhcp *bool `json:"disable_dhcp,omitempty"` @@ -78,7 +78,7 @@ type IpamsvcSubnet struct { // The list of the inheritance assigned hosts of the object. InheritanceAssignedHosts []InheritanceAssignedHost `json:"inheritance_assigned_hosts,omitempty"` // The resource identifier. - InheritanceParent *string `json:"inheritance_parent,omitempty"` + InheritanceParent *string `json:"inheritance_parent,omitempty"` InheritanceSources *IpamsvcDHCPInheritance `json:"inheritance_sources,omitempty"` // The name of the subnet. May contain 1 to 256 characters. Can include UTF-8. Name *string `json:"name,omitempty"` @@ -93,13 +93,13 @@ type IpamsvcSubnet struct { // The resource identifier. Space *string `json:"space,omitempty"` // The tags for the subnet in JSON format. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` Threshold *IpamsvcUtilizationThreshold `json:"threshold,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The usage is a combination of indicators, each tracking a specific associated use. Listed below are usage indicators with their meaning: usage indicator | description ---------------------- | -------------------------------- _IPAM_ | Subnet is managed in BloxOne DDI. _DHCP_ | Subnet is served by a DHCP Host. _DISCOVERED_ | Subnet is discovered by some network discovery probe like Network Insight or NetMRI in NIOS. - Usage []string `json:"usage,omitempty"` - Utilization *IpamsvcUtilization `json:"utilization,omitempty"` + Usage []string `json:"usage,omitempty"` + Utilization *IpamsvcUtilization `json:"utilization,omitempty"` UtilizationV6 *IpamsvcUtilizationV6 `json:"utilization_v6,omitempty"` } @@ -1529,7 +1529,7 @@ func (o *IpamsvcSubnet) SetUtilizationV6(v IpamsvcUtilizationV6) { } func (o IpamsvcSubnet) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -1708,5 +1708,3 @@ func (v *NullableIpamsvcSubnet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_tsig_key.go b/ipam/model_ipamsvc_tsig_key.go index 9d60d0b..b358da3 100644 --- a/ipam/model_ipamsvc_tsig_key.go +++ b/ipam/model_ipamsvc_tsig_key.go @@ -236,7 +236,7 @@ func (o *IpamsvcTSIGKey) SetSecret(v string) { } func (o IpamsvcTSIGKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,5 +299,3 @@ func (v *NullableIpamsvcTSIGKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_address_block_response.go b/ipam/model_ipamsvc_update_address_block_response.go index 76f654f..a2c7ad0 100644 --- a/ipam/model_ipamsvc_update_address_block_response.go +++ b/ipam/model_ipamsvc_update_address_block_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateAddressBlockResponse) SetResult(v IpamsvcAddressBlock) { } func (o IpamsvcUpdateAddressBlockResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateAddressBlockResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_address_response.go b/ipam/model_ipamsvc_update_address_response.go index e76d5fa..878eb30 100644 --- a/ipam/model_ipamsvc_update_address_response.go +++ b/ipam/model_ipamsvc_update_address_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateAddressResponse) SetResult(v IpamsvcAddress) { } func (o IpamsvcUpdateAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateAddressResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_fixed_address_response.go b/ipam/model_ipamsvc_update_fixed_address_response.go index b1b1839..2d15973 100644 --- a/ipam/model_ipamsvc_update_fixed_address_response.go +++ b/ipam/model_ipamsvc_update_fixed_address_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateFixedAddressResponse) SetResult(v IpamsvcFixedAddress) { } func (o IpamsvcUpdateFixedAddressResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateFixedAddressResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_global_response.go b/ipam/model_ipamsvc_update_global_response.go index 97daed9..dfe6ac2 100644 --- a/ipam/model_ipamsvc_update_global_response.go +++ b/ipam/model_ipamsvc_update_global_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateGlobalResponse) SetResult(v IpamsvcGlobal) { } func (o IpamsvcUpdateGlobalResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateGlobalResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_ha_group_response.go b/ipam/model_ipamsvc_update_ha_group_response.go index f94a72e..6b96556 100644 --- a/ipam/model_ipamsvc_update_ha_group_response.go +++ b/ipam/model_ipamsvc_update_ha_group_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateHAGroupResponse) SetResult(v IpamsvcHAGroup) { } func (o IpamsvcUpdateHAGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateHAGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_hardware_filter_response.go b/ipam/model_ipamsvc_update_hardware_filter_response.go index 8aa4af9..2abe891 100644 --- a/ipam/model_ipamsvc_update_hardware_filter_response.go +++ b/ipam/model_ipamsvc_update_hardware_filter_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateHardwareFilterResponse) SetResult(v IpamsvcHardwareFilter) } func (o IpamsvcUpdateHardwareFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateHardwareFilterResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_host_response.go b/ipam/model_ipamsvc_update_host_response.go index 180eb0d..f838457 100644 --- a/ipam/model_ipamsvc_update_host_response.go +++ b/ipam/model_ipamsvc_update_host_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateHostResponse) SetResult(v IpamsvcHost) { } func (o IpamsvcUpdateHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateHostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_ip_space_response.go b/ipam/model_ipamsvc_update_ip_space_response.go index 6df73d1..54bcd42 100644 --- a/ipam/model_ipamsvc_update_ip_space_response.go +++ b/ipam/model_ipamsvc_update_ip_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateIPSpaceResponse) SetResult(v IpamsvcIPSpace) { } func (o IpamsvcUpdateIPSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateIPSpaceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_ipam_host_response.go b/ipam/model_ipamsvc_update_ipam_host_response.go index 897fe61..d10e650 100644 --- a/ipam/model_ipamsvc_update_ipam_host_response.go +++ b/ipam/model_ipamsvc_update_ipam_host_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateIpamHostResponse) SetResult(v IpamsvcIpamHost) { } func (o IpamsvcUpdateIpamHostResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateIpamHostResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_option_code_response.go b/ipam/model_ipamsvc_update_option_code_response.go index 541c160..5dfa6a4 100644 --- a/ipam/model_ipamsvc_update_option_code_response.go +++ b/ipam/model_ipamsvc_update_option_code_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateOptionCodeResponse) SetResult(v IpamsvcOptionCode) { } func (o IpamsvcUpdateOptionCodeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateOptionCodeResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_option_filter_response.go b/ipam/model_ipamsvc_update_option_filter_response.go index ba02027..a9f929d 100644 --- a/ipam/model_ipamsvc_update_option_filter_response.go +++ b/ipam/model_ipamsvc_update_option_filter_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateOptionFilterResponse) SetResult(v IpamsvcOptionFilter) { } func (o IpamsvcUpdateOptionFilterResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateOptionFilterResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_option_group_response.go b/ipam/model_ipamsvc_update_option_group_response.go index a78ec4c..5dbeec4 100644 --- a/ipam/model_ipamsvc_update_option_group_response.go +++ b/ipam/model_ipamsvc_update_option_group_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateOptionGroupResponse) SetResult(v IpamsvcOptionGroup) { } func (o IpamsvcUpdateOptionGroupResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateOptionGroupResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_option_space_response.go b/ipam/model_ipamsvc_update_option_space_response.go index d60fef3..a1a6286 100644 --- a/ipam/model_ipamsvc_update_option_space_response.go +++ b/ipam/model_ipamsvc_update_option_space_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateOptionSpaceResponse) SetResult(v IpamsvcOptionSpace) { } func (o IpamsvcUpdateOptionSpaceResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateOptionSpaceResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_range_response.go b/ipam/model_ipamsvc_update_range_response.go index 8904318..364b3c9 100644 --- a/ipam/model_ipamsvc_update_range_response.go +++ b/ipam/model_ipamsvc_update_range_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateRangeResponse) SetResult(v IpamsvcRange) { } func (o IpamsvcUpdateRangeResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateRangeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_server_response.go b/ipam/model_ipamsvc_update_server_response.go index 84bd88a..ec51735 100644 --- a/ipam/model_ipamsvc_update_server_response.go +++ b/ipam/model_ipamsvc_update_server_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateServerResponse) SetResult(v IpamsvcServer) { } func (o IpamsvcUpdateServerResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_update_subnet_response.go b/ipam/model_ipamsvc_update_subnet_response.go index a2a9160..9b49514 100644 --- a/ipam/model_ipamsvc_update_subnet_response.go +++ b/ipam/model_ipamsvc_update_subnet_response.go @@ -72,7 +72,7 @@ func (o *IpamsvcUpdateSubnetResponse) SetResult(v IpamsvcSubnet) { } func (o IpamsvcUpdateSubnetResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableIpamsvcUpdateSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_utilization.go b/ipam/model_ipamsvc_utilization.go index b85624a..e18202e 100644 --- a/ipam/model_ipamsvc_utilization.go +++ b/ipam/model_ipamsvc_utilization.go @@ -311,7 +311,7 @@ func (o *IpamsvcUtilization) SetUtilization(v int64) { } func (o IpamsvcUtilization) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -382,5 +382,3 @@ func (v *NullableIpamsvcUtilization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_utilization_threshold.go b/ipam/model_ipamsvc_utilization_threshold.go index 8063f69..c6f492c 100644 --- a/ipam/model_ipamsvc_utilization_threshold.go +++ b/ipam/model_ipamsvc_utilization_threshold.go @@ -120,7 +120,7 @@ func (o *IpamsvcUtilizationThreshold) SetLow(v int64) { } func (o IpamsvcUtilizationThreshold) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -170,5 +170,3 @@ func (v *NullableIpamsvcUtilizationThreshold) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/ipam/model_ipamsvc_utilization_v6.go b/ipam/model_ipamsvc_utilization_v6.go index b8a616e..119f6fd 100644 --- a/ipam/model_ipamsvc_utilization_v6.go +++ b/ipam/model_ipamsvc_utilization_v6.go @@ -20,10 +20,10 @@ var _ MappedNullable = &IpamsvcUtilizationV6{} // IpamsvcUtilizationV6 The __UtilizationV6__ object represents IPV6 address usage statistics for an object. type IpamsvcUtilizationV6 struct { Abandoned *string `json:"abandoned,omitempty"` - Dynamic *string `json:"dynamic,omitempty"` - Static *string `json:"static,omitempty"` - Total *string `json:"total,omitempty"` - Used *string `json:"used,omitempty"` + Dynamic *string `json:"dynamic,omitempty"` + Static *string `json:"static,omitempty"` + Total *string `json:"total,omitempty"` + Used *string `json:"used,omitempty"` } // NewIpamsvcUtilizationV6 instantiates a new IpamsvcUtilizationV6 object @@ -204,7 +204,7 @@ func (o *IpamsvcUtilizationV6) SetUsed(v string) { } func (o IpamsvcUtilizationV6) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -266,5 +266,3 @@ func (v *NullableIpamsvcUtilizationV6) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/api_generate_tsig.go b/keys/api_generate_tsig.go index 62faecc..d4e3ab8 100644 --- a/keys/api_generate_tsig.go +++ b/keys/api_generate_tsig.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -17,19 +17,18 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type GenerateTsigAPI interface { /* - GenerateTsigGenerateTSIG Generate TSIG key with a random secret. + GenerateTsigGenerateTSIG Generate TSIG key with a random secret. - Use this method to generate a TSIG key with a random secret using the specified algorithm. + Use this method to generate a TSIG key with a random secret using the specified algorithm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGenerateTsigGenerateTSIGRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGenerateTsigGenerateTSIGRequest */ GenerateTsigGenerateTSIG(ctx context.Context) ApiGenerateTsigGenerateTSIGRequest @@ -42,9 +41,9 @@ type GenerateTsigAPI interface { type GenerateTsigAPIService internal.Service type ApiGenerateTsigGenerateTSIGRequest struct { - ctx context.Context + ctx context.Context ApiService GenerateTsigAPI - algorithm *string + algorithm *string } // The TSIG key algorithm. Valid values are: * _hmac_sha256_ * _hmac_sha1_ * _hmac_sha224_ * _hmac_sha384_ * _hmac_sha512_ Defaults to _hmac_sha256_. @@ -62,24 +61,25 @@ GenerateTsigGenerateTSIG Generate TSIG key with a random secret. Use this method to generate a TSIG key with a random secret using the specified algorithm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGenerateTsigGenerateTSIGRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGenerateTsigGenerateTSIGRequest */ func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIG(ctx context.Context) ApiGenerateTsigGenerateTSIGRequest { return ApiGenerateTsigGenerateTSIGRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysGenerateTSIGResponse +// +// @return KeysGenerateTSIGResponse func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIGExecute(r ApiGenerateTsigGenerateTSIGRequest) (*KeysGenerateTSIGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysGenerateTSIGResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysGenerateTSIGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GenerateTsigAPIService.GenerateTsigGenerateTSIG") diff --git a/keys/api_kerberos.go b/keys/api_kerberos.go index 08df4c6..30c9520 100644 --- a/keys/api_kerberos.go +++ b/keys/api_kerberos.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -18,21 +18,20 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type KerberosAPI interface { /* - KerberosDelete Delete the Kerberos key. + KerberosDelete Delete the Kerberos key. - Use this method to delete a __KerberosKey__ object. -A __KerberosKey__ object represents a Kerberos key. + Use this method to delete a __KerberosKey__ object. + A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiKerberosDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiKerberosDeleteRequest */ KerberosDelete(ctx context.Context, id string) ApiKerberosDeleteRequest @@ -40,13 +39,13 @@ A __KerberosKey__ object represents a Kerberos key. KerberosDeleteExecute(r ApiKerberosDeleteRequest) (*http.Response, error) /* - KerberosList Retrieve Kerberos keys. + KerberosList Retrieve Kerberos keys. - Use this method to retrieve __KerberosKey__ objects. -A __KerberosKey__ object represents a Kerberos key. + Use this method to retrieve __KerberosKey__ objects. + A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiKerberosListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKerberosListRequest */ KerberosList(ctx context.Context) ApiKerberosListRequest @@ -55,14 +54,14 @@ A __KerberosKey__ object represents a Kerberos key. KerberosListExecute(r ApiKerberosListRequest) (*KeysListKerberosKeyResponse, *http.Response, error) /* - KerberosRead Retrieve the Kerberos key. + KerberosRead Retrieve the Kerberos key. - Use this method to retrieve a __KerberosKey__ object. -A __KerberosKey__ object represents a Kerberos key. + Use this method to retrieve a __KerberosKey__ object. + A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiKerberosReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiKerberosReadRequest */ KerberosRead(ctx context.Context, id string) ApiKerberosReadRequest @@ -71,14 +70,14 @@ A __KerberosKey__ object represents a Kerberos key. KerberosReadExecute(r ApiKerberosReadRequest) (*KeysReadKerberosKeyResponse, *http.Response, error) /* - KerberosUpdate Update the Kerberos key. + KerberosUpdate Update the Kerberos key. - Use this method to update a __KerberosKey__ object. -A __KerberosKey__ object represents a Kerberos key. + Use this method to update a __KerberosKey__ object. + A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiKerberosUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiKerberosUpdateRequest */ KerberosUpdate(ctx context.Context, id string) ApiKerberosUpdateRequest @@ -87,10 +86,10 @@ A __KerberosKey__ object represents a Kerberos key. KerberosUpdateExecute(r ApiKerberosUpdateRequest) (*KeysUpdateKerberosKeyResponse, *http.Response, error) /* - KeysKerberosPost Method for KeysKerberosPost + KeysKerberosPost Method for KeysKerberosPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiKeysKerberosPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKeysKerberosPostRequest */ KeysKerberosPost(ctx context.Context) ApiKeysKerberosPostRequest @@ -103,9 +102,9 @@ A __KerberosKey__ object represents a Kerberos key. type KerberosAPIService internal.Service type ApiKerberosDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService KerberosAPI - id string + id string } func (r ApiKerberosDeleteRequest) Execute() (*http.Response, error) { @@ -118,24 +117,24 @@ KerberosDelete Delete the Kerberos key. Use this method to delete a __KerberosKey__ object. A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiKerberosDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiKerberosDeleteRequest */ func (a *KerberosAPIService) KerberosDelete(ctx context.Context, id string) ApiKerberosDeleteRequest { return ApiKerberosDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *KerberosAPIService) KerberosDeleteExecute(r ApiKerberosDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "KerberosAPIService.KerberosDelete") @@ -207,49 +206,49 @@ func (a *KerberosAPIService) KerberosDeleteExecute(r ApiKerberosDeleteRequest) ( } type ApiKerberosListRequest struct { - ctx context.Context + ctx context.Context ApiService KerberosAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiKerberosListRequest) Fields(fields string) ApiKerberosListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiKerberosListRequest) Filter(filter string) ApiKerberosListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiKerberosListRequest) Offset(offset int32) ApiKerberosListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiKerberosListRequest) Limit(limit int32) ApiKerberosListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiKerberosListRequest) PageToken(pageToken string) ApiKerberosListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiKerberosListRequest) OrderBy(orderBy string) ApiKerberosListRequest { r.orderBy = &orderBy return r @@ -277,24 +276,25 @@ KerberosList Retrieve Kerberos keys. Use this method to retrieve __KerberosKey__ objects. A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiKerberosListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKerberosListRequest */ func (a *KerberosAPIService) KerberosList(ctx context.Context) ApiKerberosListRequest { return ApiKerberosListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysListKerberosKeyResponse +// +// @return KeysListKerberosKeyResponse func (a *KerberosAPIService) KerberosListExecute(r ApiKerberosListRequest) (*KeysListKerberosKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysListKerberosKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysListKerberosKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "KerberosAPIService.KerberosList") @@ -395,13 +395,13 @@ func (a *KerberosAPIService) KerberosListExecute(r ApiKerberosListRequest) (*Key } type ApiKerberosReadRequest struct { - ctx context.Context + ctx context.Context ApiService KerberosAPI - id string - fields *string + id string + 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. +// 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. func (r ApiKerberosReadRequest) Fields(fields string) ApiKerberosReadRequest { r.fields = &fields return r @@ -417,26 +417,27 @@ KerberosRead Retrieve the Kerberos key. Use this method to retrieve a __KerberosKey__ object. A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiKerberosReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiKerberosReadRequest */ func (a *KerberosAPIService) KerberosRead(ctx context.Context, id string) ApiKerberosReadRequest { return ApiKerberosReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return KeysReadKerberosKeyResponse +// +// @return KeysReadKerberosKeyResponse func (a *KerberosAPIService) KerberosReadExecute(r ApiKerberosReadRequest) (*KeysReadKerberosKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysReadKerberosKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysReadKerberosKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "KerberosAPIService.KerberosRead") @@ -517,10 +518,10 @@ func (a *KerberosAPIService) KerberosReadExecute(r ApiKerberosReadRequest) (*Key } type ApiKerberosUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService KerberosAPI - id string - body *KerberosKey + id string + body *KerberosKey } func (r ApiKerberosUpdateRequest) Body(body KerberosKey) ApiKerberosUpdateRequest { @@ -538,26 +539,27 @@ KerberosUpdate Update the Kerberos key. Use this method to update a __KerberosKey__ object. A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiKerberosUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiKerberosUpdateRequest */ func (a *KerberosAPIService) KerberosUpdate(ctx context.Context, id string) ApiKerberosUpdateRequest { return ApiKerberosUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return KeysUpdateKerberosKeyResponse +// +// @return KeysUpdateKerberosKeyResponse func (a *KerberosAPIService) KerberosUpdateExecute(r ApiKerberosUpdateRequest) (*KeysUpdateKerberosKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysUpdateKerberosKeyResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysUpdateKerberosKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "KerberosAPIService.KerberosUpdate") @@ -640,9 +642,9 @@ func (a *KerberosAPIService) KerberosUpdateExecute(r ApiKerberosUpdateRequest) ( } type ApiKeysKerberosPostRequest struct { - ctx context.Context + ctx context.Context ApiService KerberosAPI - body *KerberosKey + body *KerberosKey } func (r ApiKeysKerberosPostRequest) Body(body KerberosKey) ApiKeysKerberosPostRequest { @@ -657,24 +659,25 @@ func (r ApiKeysKerberosPostRequest) Execute() (*KeysListKerberosKeyResponse, *ht /* KeysKerberosPost Method for KeysKerberosPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiKeysKerberosPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKeysKerberosPostRequest */ func (a *KerberosAPIService) KeysKerberosPost(ctx context.Context) ApiKeysKerberosPostRequest { return ApiKeysKerberosPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysListKerberosKeyResponse +// +// @return KeysListKerberosKeyResponse func (a *KerberosAPIService) KeysKerberosPostExecute(r ApiKeysKerberosPostRequest) (*KeysListKerberosKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysListKerberosKeyResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysListKerberosKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "KerberosAPIService.KeysKerberosPost") diff --git a/keys/api_tsig.go b/keys/api_tsig.go index 59cb727..22d08bc 100644 --- a/keys/api_tsig.go +++ b/keys/api_tsig.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -18,20 +18,19 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type TsigAPI interface { /* - TsigCreate Create the TSIG key. + TsigCreate Create the TSIG key. - Use this method to create a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to create a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigCreateRequest */ TsigCreate(ctx context.Context) ApiTsigCreateRequest @@ -40,14 +39,14 @@ A __TSIGKey__ object represents a TSIG key. TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateTSIGKeyResponse, *http.Response, error) /* - TsigDelete Delete the TSIG key. + TsigDelete Delete the TSIG key. - Use this method to delete a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to delete a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiTsigDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiTsigDeleteRequest */ TsigDelete(ctx context.Context, id string) ApiTsigDeleteRequest @@ -55,13 +54,13 @@ A __TSIGKey__ object represents a TSIG key. TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Response, error) /* - TsigList Retrieve TSIG keys. + TsigList Retrieve TSIG keys. - Use this method to retrieve __TSIGKey__ objects. -A __TSIGKey__ object represents a TSIG key. + Use this method to retrieve __TSIGKey__ objects. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigListRequest */ TsigList(ctx context.Context) ApiTsigListRequest @@ -70,14 +69,14 @@ A __TSIGKey__ object represents a TSIG key. TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKeyResponse, *http.Response, error) /* - TsigRead Retrieve the TSIG key. + TsigRead Retrieve the TSIG key. - Use this method to retrieve a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to retrieve a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiTsigReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiTsigReadRequest */ TsigRead(ctx context.Context, id string) ApiTsigReadRequest @@ -86,14 +85,14 @@ A __TSIGKey__ object represents a TSIG key. TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKeyResponse, *http.Response, error) /* - TsigUpdate Update the TSIG key. + TsigUpdate Update the TSIG key. - Use this method to update a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to update a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiTsigUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiTsigUpdateRequest */ TsigUpdate(ctx context.Context, id string) ApiTsigUpdateRequest @@ -106,9 +105,9 @@ A __TSIGKey__ object represents a TSIG key. type TsigAPIService internal.Service type ApiTsigCreateRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - body *KeysTSIGKey + body *KeysTSIGKey } func (r ApiTsigCreateRequest) Body(body KeysTSIGKey) ApiTsigCreateRequest { @@ -126,24 +125,25 @@ TsigCreate Create the TSIG key. Use this method to create a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigCreateRequest */ func (a *TsigAPIService) TsigCreate(ctx context.Context) ApiTsigCreateRequest { return ApiTsigCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysCreateTSIGKeyResponse +// +// @return KeysCreateTSIGKeyResponse func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysCreateTSIGKeyResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysCreateTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigCreate") @@ -225,9 +225,9 @@ func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateT } type ApiTsigDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - id string + id string } func (r ApiTsigDeleteRequest) Execute() (*http.Response, error) { @@ -240,24 +240,24 @@ TsigDelete Delete the TSIG key. Use this method to delete a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiTsigDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiTsigDeleteRequest */ func (a *TsigAPIService) TsigDelete(ctx context.Context, id string) ApiTsigDeleteRequest { return ApiTsigDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *TsigAPIService) TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigDelete") @@ -329,49 +329,49 @@ func (a *TsigAPIService) TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Respon } type ApiTsigListRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *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. +// 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. func (r ApiTsigListRequest) Fields(fields string) ApiTsigListRequest { r.fields = &fields return r } -// 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 | +// 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 | func (r ApiTsigListRequest) Filter(filter string) ApiTsigListRequest { r.filter = &filter return r } -// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. func (r ApiTsigListRequest) Offset(offset int32) ApiTsigListRequest { r.offset = &offset return r } -// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. func (r ApiTsigListRequest) Limit(limit int32) ApiTsigListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiTsigListRequest) PageToken(pageToken string) ApiTsigListRequest { r.pageToken = &pageToken return r } -// 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. +// 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. func (r ApiTsigListRequest) OrderBy(orderBy string) ApiTsigListRequest { r.orderBy = &orderBy return r @@ -399,24 +399,25 @@ TsigList Retrieve TSIG keys. Use this method to retrieve __TSIGKey__ objects. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigListRequest */ func (a *TsigAPIService) TsigList(ctx context.Context) ApiTsigListRequest { return ApiTsigListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysListTSIGKeyResponse +// +// @return KeysListTSIGKeyResponse func (a *TsigAPIService) TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysListTSIGKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysListTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigList") @@ -517,13 +518,13 @@ func (a *TsigAPIService) TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKey } type ApiTsigReadRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - id string - fields *string + id string + 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. +// 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. func (r ApiTsigReadRequest) Fields(fields string) ApiTsigReadRequest { r.fields = &fields return r @@ -539,26 +540,27 @@ TsigRead Retrieve the TSIG key. Use this method to retrieve a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiTsigReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiTsigReadRequest */ func (a *TsigAPIService) TsigRead(ctx context.Context, id string) ApiTsigReadRequest { return ApiTsigReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return KeysReadTSIGKeyResponse +// +// @return KeysReadTSIGKeyResponse func (a *TsigAPIService) TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysReadTSIGKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysReadTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigRead") @@ -639,10 +641,10 @@ func (a *TsigAPIService) TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKey } type ApiTsigUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - id string - body *KeysTSIGKey + id string + body *KeysTSIGKey } func (r ApiTsigUpdateRequest) Body(body KeysTSIGKey) ApiTsigUpdateRequest { @@ -660,26 +662,27 @@ TsigUpdate Update the TSIG key. Use this method to update a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id An application specific resource identity of a resource - @return ApiTsigUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ApiTsigUpdateRequest */ func (a *TsigAPIService) TsigUpdate(ctx context.Context, id string) ApiTsigUpdateRequest { return ApiTsigUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return KeysUpdateTSIGKeyResponse +// +// @return KeysUpdateTSIGKeyResponse func (a *TsigAPIService) TsigUpdateExecute(r ApiTsigUpdateRequest) (*KeysUpdateTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysUpdateTSIGKeyResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysUpdateTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigUpdate") diff --git a/keys/api_upload.go b/keys/api_upload.go index 8c6beb2..3d68206 100644 --- a/keys/api_upload.go +++ b/keys/api_upload.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -17,19 +17,18 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type UploadAPI interface { /* - UploadUpload Upload content to the keys service. + UploadUpload Upload content to the keys service. - Use this method to upload specified content type to the keys service. + Use this method to upload specified content type to the keys service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUploadUploadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUploadUploadRequest */ UploadUpload(ctx context.Context) ApiUploadUploadRequest @@ -42,9 +41,9 @@ type UploadAPI interface { type UploadAPIService internal.Service type ApiUploadUploadRequest struct { - ctx context.Context + ctx context.Context ApiService UploadAPI - body *UploadRequest + body *UploadRequest } func (r ApiUploadUploadRequest) Body(body UploadRequest) ApiUploadUploadRequest { @@ -61,24 +60,25 @@ UploadUpload Upload content to the keys service. Use this method to upload specified content type to the keys service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUploadUploadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUploadUploadRequest */ func (a *UploadAPIService) UploadUpload(ctx context.Context) ApiUploadUploadRequest { return ApiUploadUploadRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return DdiuploadResponse +// +// @return DdiuploadResponse func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*DdiuploadResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DdiuploadResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdiuploadResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UploadAPIService.UploadUpload") diff --git a/keys/client.go b/keys/client.go index 286dc91..b3649a4 100644 --- a/keys/client.go +++ b/keys/client.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 keys import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/api/ddi/v1" @@ -19,20 +19,20 @@ var ServiceBasePath = "/api/ddi/v1" // APIClient manages communication with the DDI Keys API API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services GenerateTsigAPI GenerateTsigAPI - KerberosAPI KerberosAPI - TsigAPI TsigAPI - UploadAPI UploadAPI + KerberosAPI KerberosAPI + TsigAPI TsigAPI + UploadAPI UploadAPI } // 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.GenerateTsigAPI = (*GenerateTsigAPIService)(&c.Common) diff --git a/keys/model_ddiupload_response.go b/keys/model_ddiupload_response.go index e220432..a58ddfb 100644 --- a/keys/model_ddiupload_response.go +++ b/keys/model_ddiupload_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -106,7 +106,7 @@ func (o *DdiuploadResponse) SetWarning(v string) { } func (o DdiuploadResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -159,5 +159,3 @@ func (v *NullableDdiuploadResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_kerberos_key.go b/keys/model_kerberos_key.go index 4285f1e..ee036c9 100644 --- a/keys/model_kerberos_key.go +++ b/keys/model_kerberos_key.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -311,7 +311,7 @@ func (o *KerberosKey) SetVersion(v int64) { } func (o KerberosKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -382,5 +382,3 @@ func (v *NullableKerberosKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_kerberos_keys.go b/keys/model_kerberos_keys.go index 78817e6..1c06064 100644 --- a/keys/model_kerberos_keys.go +++ b/keys/model_kerberos_keys.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KerberosKeys) SetItems(v []KerberosKey) { } func (o KerberosKeys) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKerberosKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_create_tsig_key_response.go b/keys/model_keys_create_tsig_key_response.go index bfe51e4..edd0da5 100644 --- a/keys/model_keys_create_tsig_key_response.go +++ b/keys/model_keys_create_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KeysCreateTSIGKeyResponse) SetResult(v KeysTSIGKey) { } func (o KeysCreateTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysCreateTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_generate_tsig_response.go b/keys/model_keys_generate_tsig_response.go index 5a6ee49..85f10e4 100644 --- a/keys/model_keys_generate_tsig_response.go +++ b/keys/model_keys_generate_tsig_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KeysGenerateTSIGResponse) SetResult(v KeysGenerateTSIGResult) { } func (o KeysGenerateTSIGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysGenerateTSIGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_generate_tsig_result.go b/keys/model_keys_generate_tsig_result.go index 9b7dab8..4f6b49d 100644 --- a/keys/model_keys_generate_tsig_result.go +++ b/keys/model_keys_generate_tsig_result.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -73,7 +73,7 @@ func (o *KeysGenerateTSIGResult) SetSecret(v string) { } func (o KeysGenerateTSIGResult) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableKeysGenerateTSIGResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_list_kerberos_key_response.go b/keys/model_keys_list_kerberos_key_response.go index 31006cc..5966a99 100644 --- a/keys/model_keys_list_kerberos_key_response.go +++ b/keys/model_keys_list_kerberos_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -73,7 +73,7 @@ func (o *KeysListKerberosKeyResponse) SetResults(v []KerberosKey) { } func (o KeysListKerberosKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableKeysListKerberosKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_list_tsig_key_response.go b/keys/model_keys_list_tsig_key_response.go index 5d90120..2a6d699 100644 --- a/keys/model_keys_list_tsig_key_response.go +++ b/keys/model_keys_list_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -73,7 +73,7 @@ func (o *KeysListTSIGKeyResponse) SetResults(v []KeysTSIGKey) { } func (o KeysListTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableKeysListTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_read_kerberos_key_response.go b/keys/model_keys_read_kerberos_key_response.go index daeeb0c..dce9578 100644 --- a/keys/model_keys_read_kerberos_key_response.go +++ b/keys/model_keys_read_kerberos_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KeysReadKerberosKeyResponse) SetResult(v KerberosKey) { } func (o KeysReadKerberosKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysReadKerberosKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_read_tsig_key_response.go b/keys/model_keys_read_tsig_key_response.go index 3eee404..fdc725c 100644 --- a/keys/model_keys_read_tsig_key_response.go +++ b/keys/model_keys_read_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KeysReadTSIGKeyResponse) SetResult(v KeysTSIGKey) { } func (o KeysReadTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysReadTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_tsig_key.go b/keys/model_keys_tsig_key.go index 6c6594d..9ebb444 100644 --- a/keys/model_keys_tsig_key.go +++ b/keys/model_keys_tsig_key.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -332,7 +332,7 @@ func (o *KeysTSIGKey) SetUpdatedAt(v time.Time) { } func (o KeysTSIGKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -402,5 +402,3 @@ func (v *NullableKeysTSIGKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_update_kerberos_key_response.go b/keys/model_keys_update_kerberos_key_response.go index 189d271..9e83ae5 100644 --- a/keys/model_keys_update_kerberos_key_response.go +++ b/keys/model_keys_update_kerberos_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KeysUpdateKerberosKeyResponse) SetResult(v KerberosKey) { } func (o KeysUpdateKerberosKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysUpdateKerberosKeyResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_update_tsig_key_response.go b/keys/model_keys_update_tsig_key_response.go index 2082989..dc1acd7 100644 --- a/keys/model_keys_update_tsig_key_response.go +++ b/keys/model_keys_update_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -72,7 +72,7 @@ func (o *KeysUpdateTSIGKeyResponse) SetResult(v KeysTSIGKey) { } func (o KeysUpdateTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysUpdateTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_protobuf_field_mask.go b/keys/model_protobuf_field_mask.go index 33973a0..c76ddb4 100644 --- a/keys/model_protobuf_field_mask.go +++ b/keys/model_protobuf_field_mask.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -73,7 +73,7 @@ func (o *ProtobufFieldMask) SetPaths(v []string) { } func (o ProtobufFieldMask) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableProtobufFieldMask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_upload_content_type.go b/keys/model_upload_content_type.go index 4052062..dbdf50c 100644 --- a/keys/model_upload_content_type.go +++ b/keys/model_upload_content_type.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -21,7 +21,7 @@ type UploadContentType string // List of uploadContentType const ( UPLOADCONTENTTYPE_UNKNOWN UploadContentType = "UNKNOWN" - UPLOADCONTENTTYPE_KEYTAB UploadContentType = "KEYTAB" + UPLOADCONTENTTYPE_KEYTAB UploadContentType = "KEYTAB" ) // All allowed values of UploadContentType enum @@ -108,4 +108,3 @@ func (v *NullableUploadContentType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/keys/model_upload_request.go b/keys/model_upload_request.go index d6fc746..bb985e6 100644 --- a/keys/model_upload_request.go +++ b/keys/model_upload_request.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */ @@ -22,11 +22,11 @@ type UploadRequest struct { // The description for uploaded content. May contain 0 to 1024 characters. Can include UTF-8. Comment *string `json:"comment,omitempty"` // Base64 encoded content. - Content string `json:"content"` - Fields *ProtobufFieldMask `json:"fields,omitempty"` + Content string `json:"content"` + Fields *ProtobufFieldMask `json:"fields,omitempty"` // The tags for uploaded content in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` - Type UploadContentType `json:"type"` + Type UploadContentType `json:"type"` } // NewUploadRequest instantiates a new UploadRequest object @@ -195,7 +195,7 @@ func (o *UploadRequest) SetType(v UploadContentType) { } func (o UploadRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -253,5 +253,3 @@ func (v *NullableUploadRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/utils.go b/keys/utils.go index ac6ed2b..54647cd 100644 --- a/keys/utils.go +++ b/keys/utils.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. 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 */