diff --git a/dns_config/.openapi-generator/VERSION b/dns_config/.openapi-generator/VERSION index 73a86b1..3769235 100644 --- a/dns_config/.openapi-generator/VERSION +++ b/dns_config/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/dns_config/README.md b/dns_config/README.md index 9289f28..72de352 100644 --- a/dns_config/README.md +++ b/dns_config/README.md @@ -38,7 +38,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `dns_config.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), dns_config.ContextServerIndex, 1) @@ -46,7 +46,7 @@ ctx := context.WithValue(context.Background(), dns_config.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `dns_config.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), dns_config.ContextServerVariables, map[string]string{ @@ -60,7 +60,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `dns_config.ContextOperationServerIndices` and `dns_config.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), dns_config.ContextOperationServerIndices, map[string]int{ @@ -269,8 +269,8 @@ Example ```golang auth := context.WithValue( context.Background(), - sw.ContextAPIKeys, - map[string]sw.APIKey{ + dns_config.ContextAPIKeys, + map[string]dns_config.APIKey{ "Authorization": {Key: "API_KEY_STRING"}, }, ) diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index 9a00650..118dc19 100644 --- a/dns_config/api_acl.go +++ b/dns_config/api_acl.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *AclAPIService) AclCreate(ctx context.Context) ApiAclCreateRequest { } // Execute executes the request -// -// @return ConfigCreateACLResponse +// @return ConfigCreateACLResponse func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateACLResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiAclListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *AclAPIService) AclList(ctx context.Context) ApiAclListRequest { } // Execute executes the request -// -// @return ConfigListACLResponse +// @return ConfigListACLResponse func (a *AclAPIService) AclListExecute(r ApiAclListRequest) (*ConfigListACLResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiAclReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *AclAPIService) AclRead(ctx context.Context, id string) ApiAclReadReques } // Execute executes the request -// -// @return ConfigReadACLResponse +// @return ConfigReadACLResponse func (a *AclAPIService) AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *AclAPIService) AclUpdate(ctx context.Context, id string) ApiAclUpdateRe } // Execute executes the request -// -// @return ConfigUpdateACLResponse +// @return ConfigUpdateACLResponse func (a *AclAPIService) AclUpdateExecute(r ApiAclUpdateRequest) (*ConfigUpdateACLResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_auth_nsg.go b/dns_config/api_auth_nsg.go index 0c50e9c..a9ce06f 100644 --- a/dns_config/api_auth_nsg.go +++ b/dns_config/api_auth_nsg.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *AuthNsgAPIService) AuthNsgCreate(ctx context.Context) ApiAuthNsgCreateR } // Execute executes the request -// -// @return ConfigCreateAuthNSGResponse +// @return ConfigCreateAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*ConfigCreateAuthNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiAuthNsgListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *AuthNsgAPIService) AuthNsgList(ctx context.Context) ApiAuthNsgListReque } // Execute executes the request -// -// @return ConfigListAuthNSGResponse +// @return ConfigListAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgListExecute(r ApiAuthNsgListRequest) (*ConfigListAuthNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiAuthNsgReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *AuthNsgAPIService) AuthNsgRead(ctx context.Context, id string) ApiAuthN } // Execute executes the request -// -// @return ConfigReadAuthNSGResponse +// @return ConfigReadAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*ConfigReadAuthNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *AuthNsgAPIService) AuthNsgUpdate(ctx context.Context, id string) ApiAut } // Execute executes the request -// -// @return ConfigUpdateAuthNSGResponse +// @return ConfigUpdateAuthNSGResponse func (a *AuthNsgAPIService) AuthNsgUpdateExecute(r ApiAuthNsgUpdateRequest) (*ConfigUpdateAuthNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_auth_zone.go b/dns_config/api_auth_zone.go index d703dca..9077d4a 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.go @@ -140,8 +140,8 @@ 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{ @@ -151,8 +151,7 @@ func (a *AuthZoneAPIService) AuthZoneCopy(ctx context.Context) ApiAuthZoneCopyRe } // Execute executes the request -// -// @return ConfigCopyAuthZoneResponse +// @return ConfigCopyAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*ConfigCopyAuthZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -267,8 +266,8 @@ 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{ @@ -278,8 +277,7 @@ func (a *AuthZoneAPIService) AuthZoneCreate(ctx context.Context) ApiAuthZoneCrea } // Execute executes the request -// -// @return ConfigCreateAuthZoneResponse +// @return ConfigCreateAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) (*ConfigCreateAuthZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -385,9 +383,9 @@ 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{ @@ -487,37 +485,37 @@ type ApiAuthZoneListRequest struct { 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 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 @@ -551,8 +549,8 @@ 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{ @@ -562,8 +560,7 @@ func (a *AuthZoneAPIService) AuthZoneList(ctx context.Context) ApiAuthZoneListRe } // Execute executes the request -// -// @return ConfigListAuthZoneResponse +// @return ConfigListAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneListExecute(r ApiAuthZoneListRequest) (*ConfigListAuthZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -680,7 +677,7 @@ type ApiAuthZoneReadRequest struct { 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 @@ -702,9 +699,9 @@ 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{ @@ -715,8 +712,7 @@ func (a *AuthZoneAPIService) AuthZoneRead(ctx context.Context, id string) ApiAut } // Execute executes the request -// -// @return ConfigReadAuthZoneResponse +// @return ConfigReadAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*ConfigReadAuthZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -834,9 +830,9 @@ 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{ @@ -847,8 +843,7 @@ func (a *AuthZoneAPIService) AuthZoneUpdate(ctx context.Context, id string) ApiA } // Execute executes the request -// -// @return ConfigUpdateAuthZoneResponse +// @return ConfigUpdateAuthZoneResponse func (a *AuthZoneAPIService) AuthZoneUpdateExecute(r ApiAuthZoneUpdateRequest) (*ConfigUpdateAuthZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_cache_flush.go b/dns_config/api_cache_flush.go index 0f34c66..92bd83f 100644 --- a/dns_config/api_cache_flush.go +++ b/dns_config/api_cache_flush.go @@ -62,8 +62,8 @@ 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{ @@ -73,8 +73,7 @@ func (a *CacheFlushAPIService) CacheFlushCreate(ctx context.Context) ApiCacheFlu } // 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 diff --git a/dns_config/api_convert_domain_name.go b/dns_config/api_convert_domain_name.go index 3c9e5b0..5daed9f 100644 --- a/dns_config/api_convert_domain_name.go +++ b/dns_config/api_convert_domain_name.go @@ -57,9 +57,9 @@ 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{ @@ -70,8 +70,7 @@ func (a *ConvertDomainNameAPIService) ConvertDomainNameConvert(ctx context.Conte } // Execute executes the request -// -// @return ConfigConvertDomainNameResponse +// @return ConfigConvertDomainNameResponse func (a *ConvertDomainNameAPIService) ConvertDomainNameConvertExecute(r ApiConvertDomainNameConvertRequest) (*ConfigConvertDomainNameResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/dns_config/api_convert_rname.go b/dns_config/api_convert_rname.go index 317d931..e787d93 100644 --- a/dns_config/api_convert_rname.go +++ b/dns_config/api_convert_rname.go @@ -57,9 +57,9 @@ 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{ @@ -70,8 +70,7 @@ func (a *ConvertRnameAPIService) ConvertRnameConvertRName(ctx context.Context, e } // Execute executes the request -// -// @return ConfigConvertRNameResponse +// @return ConfigConvertRNameResponse func (a *ConvertRnameAPIService) ConvertRnameConvertRNameExecute(r ApiConvertRnameConvertRNameRequest) (*ConfigConvertRNameResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/dns_config/api_delegation.go b/dns_config/api_delegation.go index 53a8ba9..69aa634 100644 --- a/dns_config/api_delegation.go +++ b/dns_config/api_delegation.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *DelegationAPIService) DelegationCreate(ctx context.Context) ApiDelegati } // Execute executes the request -// -// @return ConfigCreateDelegationResponse +// @return ConfigCreateDelegationResponse func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequest) (*ConfigCreateDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiDelegationListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *DelegationAPIService) DelegationList(ctx context.Context) ApiDelegation } // Execute executes the request -// -// @return ConfigListDelegationResponse +// @return ConfigListDelegationResponse func (a *DelegationAPIService) DelegationListExecute(r ApiDelegationListRequest) (*ConfigListDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiDelegationReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *DelegationAPIService) DelegationRead(ctx context.Context, id string) Ap } // Execute executes the request -// -// @return ConfigReadDelegationResponse +// @return ConfigReadDelegationResponse func (a *DelegationAPIService) DelegationReadExecute(r ApiDelegationReadRequest) (*ConfigReadDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *DelegationAPIService) DelegationUpdate(ctx context.Context, id string) } // Execute executes the request -// -// @return ConfigUpdateDelegationResponse +// @return ConfigUpdateDelegationResponse func (a *DelegationAPIService) DelegationUpdateExecute(r ApiDelegationUpdateRequest) (*ConfigUpdateDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_forward_nsg.go b/dns_config/api_forward_nsg.go index cfaa11f..0176b84 100644 --- a/dns_config/api_forward_nsg.go +++ b/dns_config/api_forward_nsg.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *ForwardNsgAPIService) ForwardNsgCreate(ctx context.Context) ApiForwardN } // Execute executes the request -// -// @return ConfigCreateForwardNSGResponse +// @return ConfigCreateForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequest) (*ConfigCreateForwardNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiForwardNsgListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *ForwardNsgAPIService) ForwardNsgList(ctx context.Context) ApiForwardNsg } // Execute executes the request -// -// @return ConfigListForwardNSGResponse +// @return ConfigListForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgListExecute(r ApiForwardNsgListRequest) (*ConfigListForwardNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiForwardNsgReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *ForwardNsgAPIService) ForwardNsgRead(ctx context.Context, id string) Ap } // Execute executes the request -// -// @return ConfigReadForwardNSGResponse +// @return ConfigReadForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgReadExecute(r ApiForwardNsgReadRequest) (*ConfigReadForwardNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *ForwardNsgAPIService) ForwardNsgUpdate(ctx context.Context, id string) } // Execute executes the request -// -// @return ConfigUpdateForwardNSGResponse +// @return ConfigUpdateForwardNSGResponse func (a *ForwardNsgAPIService) ForwardNsgUpdateExecute(r ApiForwardNsgUpdateRequest) (*ConfigUpdateForwardNSGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_forward_zone.go b/dns_config/api_forward_zone.go index a01d9a8..3eec5ea 100644 --- a/dns_config/api_forward_zone.go +++ b/dns_config/api_forward_zone.go @@ -140,8 +140,8 @@ 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{ @@ -151,8 +151,7 @@ func (a *ForwardZoneAPIService) ForwardZoneCopy(ctx context.Context) ApiForwardZ } // Execute executes the request -// -// @return ConfigCopyForwardZoneResponse +// @return ConfigCopyForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneCopyExecute(r ApiForwardZoneCopyRequest) (*ConfigCopyForwardZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -260,8 +259,8 @@ 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{ @@ -271,8 +270,7 @@ func (a *ForwardZoneAPIService) ForwardZoneCreate(ctx context.Context) ApiForwar } // Execute executes the request -// -// @return ConfigCreateForwardZoneResponse +// @return ConfigCreateForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateRequest) (*ConfigCreateForwardZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -375,9 +373,9 @@ 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{ @@ -476,37 +474,37 @@ type ApiForwardZoneListRequest struct { 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 @@ -534,8 +532,8 @@ 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{ @@ -545,8 +543,7 @@ func (a *ForwardZoneAPIService) ForwardZoneList(ctx context.Context) ApiForwardZ } // Execute executes the request -// -// @return ConfigListForwardZoneResponse +// @return ConfigListForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneListExecute(r ApiForwardZoneListRequest) (*ConfigListForwardZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -659,7 +656,7 @@ type ApiForwardZoneReadRequest struct { 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 @@ -675,9 +672,9 @@ 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{ @@ -688,8 +685,7 @@ func (a *ForwardZoneAPIService) ForwardZoneRead(ctx context.Context, id string) } // Execute executes the request -// -// @return ConfigReadForwardZoneResponse +// @return ConfigReadForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneReadExecute(r ApiForwardZoneReadRequest) (*ConfigReadForwardZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -797,9 +793,9 @@ 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{ @@ -810,8 +806,7 @@ func (a *ForwardZoneAPIService) ForwardZoneUpdate(ctx context.Context, id string } // Execute executes the request -// -// @return ConfigUpdateForwardZoneResponse +// @return ConfigUpdateForwardZoneResponse func (a *ForwardZoneAPIService) ForwardZoneUpdateExecute(r ApiForwardZoneUpdateRequest) (*ConfigUpdateForwardZoneResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_global.go b/dns_config/api_global.go index b3b9408..ba0a876 100644 --- a/dns_config/api_global.go +++ b/dns_config/api_global.go @@ -95,7 +95,7 @@ type ApiGlobalReadRequest struct { 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 @@ -111,8 +111,8 @@ 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{ @@ -122,8 +122,7 @@ func (a *GlobalAPIService) GlobalRead(ctx context.Context) ApiGlobalReadRequest } // Execute executes the request -// -// @return ConfigReadGlobalResponse +// @return ConfigReadGlobalResponse func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigReadGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -215,7 +214,7 @@ type ApiGlobalRead2Request struct { 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,9 +230,9 @@ 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{ @@ -244,8 +243,7 @@ func (a *GlobalAPIService) GlobalRead2(ctx context.Context, id string) ApiGlobal } // Execute executes the request -// -// @return ConfigReadGlobalResponse +// @return ConfigReadGlobalResponse func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigReadGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -352,8 +350,8 @@ 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{ @@ -363,8 +361,7 @@ func (a *GlobalAPIService) GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequ } // Execute executes the request -// -// @return ConfigUpdateGlobalResponse +// @return ConfigUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*ConfigUpdateGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -473,9 +470,9 @@ 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{ @@ -486,8 +483,7 @@ func (a *GlobalAPIService) GlobalUpdate2(ctx context.Context, id string) ApiGlob } // Execute executes the request -// -// @return ConfigUpdateGlobalResponse +// @return ConfigUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdate2Execute(r ApiGlobalUpdate2Request) (*ConfigUpdateGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_host.go b/dns_config/api_host.go index f3b32e3..6c348cc 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.go @@ -88,37 +88,37 @@ type ApiHostListRequest struct { 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 @@ -152,8 +152,8 @@ 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{ @@ -163,8 +163,7 @@ func (a *HostAPIService) HostList(ctx context.Context) ApiHostListRequest { } // Execute executes the request -// -// @return ConfigListHostResponse +// @return ConfigListHostResponse func (a *HostAPIService) HostListExecute(r ApiHostListRequest) (*ConfigListHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -281,7 +280,7 @@ type ApiHostReadRequest struct { 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,9 +302,9 @@ 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{ @@ -316,8 +315,7 @@ func (a *HostAPIService) HostRead(ctx context.Context, id string) ApiHostReadReq } // Execute executes the request -// -// @return ConfigReadHostResponse +// @return ConfigReadHostResponse func (a *HostAPIService) HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -435,9 +433,9 @@ 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{ @@ -448,8 +446,7 @@ func (a *HostAPIService) HostUpdate(ctx context.Context, id string) ApiHostUpdat } // Execute executes the request -// -// @return ConfigUpdateHostResponse +// @return ConfigUpdateHostResponse func (a *HostAPIService) HostUpdateExecute(r ApiHostUpdateRequest) (*ConfigUpdateHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_lbdn.go b/dns_config/api_lbdn.go index 964f9a3..5c8149c 100644 --- a/dns_config/api_lbdn.go +++ b/dns_config/api_lbdn.go @@ -119,8 +119,8 @@ 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{ @@ -130,8 +130,7 @@ func (a *LbdnAPIService) LbdnCreate(ctx context.Context) ApiLbdnCreateRequest { } // Execute executes the request -// -// @return ConfigCreateLBDNResponse +// @return ConfigCreateLBDNResponse func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreateLBDNResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -233,9 +232,9 @@ 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{ @@ -334,37 +333,37 @@ type ApiLbdnListRequest struct { 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,8 +390,8 @@ 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{ @@ -402,8 +401,7 @@ func (a *LbdnAPIService) LbdnList(ctx context.Context) ApiLbdnListRequest { } // Execute executes the request -// -// @return ConfigListLBDNResponse +// @return ConfigListLBDNResponse func (a *LbdnAPIService) LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -516,7 +514,7 @@ type ApiLbdnReadRequest struct { 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 @@ -531,9 +529,9 @@ 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{ @@ -544,8 +542,7 @@ func (a *LbdnAPIService) LbdnRead(ctx context.Context, id string) ApiLbdnReadReq } // Execute executes the request -// -// @return ConfigReadLBDNResponse +// @return ConfigReadLBDNResponse func (a *LbdnAPIService) LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -652,9 +649,9 @@ 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{ @@ -665,8 +662,7 @@ func (a *LbdnAPIService) LbdnUpdate(ctx context.Context, id string) ApiLbdnUpdat } // Execute executes the request -// -// @return ConfigUpdateLBDNResponse +// @return ConfigUpdateLBDNResponse func (a *LbdnAPIService) LbdnUpdateExecute(r ApiLbdnUpdateRequest) (*ConfigUpdateLBDNResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_server.go b/dns_config/api_server.go index f46fced..f12b6ff 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.go @@ -132,8 +132,8 @@ 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{ @@ -143,8 +143,7 @@ func (a *ServerAPIService) ServerCreate(ctx context.Context) ApiServerCreateRequ } // Execute executes the request -// -// @return ConfigCreateServerResponse +// @return ConfigCreateServerResponse func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*ConfigCreateServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -250,9 +249,9 @@ 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{ @@ -352,37 +351,37 @@ type ApiServerListRequest struct { 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 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,8 +415,8 @@ 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{ @@ -427,8 +426,7 @@ func (a *ServerAPIService) ServerList(ctx context.Context) ApiServerListRequest } // Execute executes the request -// -// @return ConfigListServerResponse +// @return ConfigListServerResponse func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*ConfigListServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -545,7 +543,7 @@ type ApiServerReadRequest struct { 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 @@ -567,9 +565,9 @@ 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{ @@ -580,8 +578,7 @@ func (a *ServerAPIService) ServerRead(ctx context.Context, id string) ApiServerR } // Execute executes the request -// -// @return ConfigReadServerResponse +// @return ConfigReadServerResponse func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*ConfigReadServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -699,9 +696,9 @@ 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{ @@ -712,8 +709,7 @@ func (a *ServerAPIService) ServerUpdate(ctx context.Context, id string) ApiServe } // Execute executes the request -// -// @return ConfigUpdateServerResponse +// @return ConfigUpdateServerResponse func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*ConfigUpdateServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/api_view.go b/dns_config/api_view.go index 86383bc..1dafeab 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.go @@ -142,8 +142,8 @@ 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{ @@ -153,8 +153,7 @@ func (a *ViewAPIService) ViewBulkCopy(ctx context.Context) ApiViewBulkCopyReques } // Execute executes the request -// -// @return ConfigBulkCopyResponse +// @return ConfigBulkCopyResponse func (a *ViewAPIService) ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigBulkCopyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -269,8 +268,8 @@ 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{ @@ -280,8 +279,7 @@ func (a *ViewAPIService) ViewCreate(ctx context.Context) ApiViewCreateRequest { } // Execute executes the request -// -// @return ConfigCreateViewResponse +// @return ConfigCreateViewResponse func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreateViewResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -387,9 +385,9 @@ 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{ @@ -489,37 +487,37 @@ type ApiViewListRequest struct { 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 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 @@ -553,8 +551,8 @@ 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{ @@ -564,8 +562,7 @@ func (a *ViewAPIService) ViewList(ctx context.Context) ApiViewListRequest { } // Execute executes the request -// -// @return ConfigListViewResponse +// @return ConfigListViewResponse func (a *ViewAPIService) ViewListExecute(r ApiViewListRequest) (*ConfigListViewResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -682,7 +679,7 @@ type ApiViewReadRequest struct { 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 @@ -704,9 +701,9 @@ 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{ @@ -717,8 +714,7 @@ func (a *ViewAPIService) ViewRead(ctx context.Context, id string) ApiViewReadReq } // Execute executes the request -// -// @return ConfigReadViewResponse +// @return ConfigReadViewResponse func (a *ViewAPIService) ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -836,9 +832,9 @@ 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{ @@ -849,8 +845,7 @@ func (a *ViewAPIService) ViewUpdate(ctx context.Context, id string) ApiViewUpdat } // Execute executes the request -// -// @return ConfigUpdateViewResponse +// @return ConfigUpdateViewResponse func (a *ViewAPIService) ViewUpdateExecute(r ApiViewUpdateRequest) (*ConfigUpdateViewResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_config/model_config_acl.go b/dns_config/model_config_acl.go index 932e0ce..b59723e 100644 --- a/dns_config/model_config_acl.go +++ b/dns_config/model_config_acl.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigACL type satisfies the MappedNullable interface at compile time @@ -31,6 +32,8 @@ type ConfigACL struct { Tags map[string]interface{} `json:"tags,omitempty"` } +type _ConfigACL ConfigACL + // NewConfigACL instantiates a new ConfigACL object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -227,6 +230,41 @@ func (o ConfigACL) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigACL) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigACL := _ConfigACL{} + + err = json.Unmarshal(bytes, &varConfigACL) + + if err != nil { + return err + } + + *o = ConfigACL(varConfigACL) + + return err +} + type NullableConfigACL struct { value *ConfigACL isSet bool diff --git a/dns_config/model_config_acl_item.go b/dns_config/model_config_acl_item.go index 56a0482..9f21fd9 100644 --- a/dns_config/model_config_acl_item.go +++ b/dns_config/model_config_acl_item.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigACLItem type satisfies the MappedNullable interface at compile time @@ -30,6 +31,8 @@ type ConfigACLItem struct { TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` } +type _ConfigACLItem ConfigACLItem + // NewConfigACLItem instantiates a new ConfigACLItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -217,6 +220,42 @@ func (o ConfigACLItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigACLItem) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "access", + "element", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigACLItem := _ConfigACLItem{} + + err = json.Unmarshal(bytes, &varConfigACLItem) + + if err != nil { + return err + } + + *o = ConfigACLItem(varConfigACLItem) + + return err +} + type NullableConfigACLItem struct { value *ConfigACLItem isSet bool diff --git a/dns_config/model_config_auth_nsg.go b/dns_config/model_config_auth_nsg.go index 86e2519..b0a1228 100644 --- a/dns_config/model_config_auth_nsg.go +++ b/dns_config/model_config_auth_nsg.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigAuthNSG type satisfies the MappedNullable interface at compile time @@ -37,6 +38,8 @@ type ConfigAuthNSG struct { Tags map[string]interface{} `json:"tags,omitempty"` } +type _ConfigAuthNSG ConfigAuthNSG + // NewConfigAuthNSG instantiates a new ConfigAuthNSG object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -338,6 +341,41 @@ func (o ConfigAuthNSG) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigAuthNSG) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigAuthNSG := _ConfigAuthNSG{} + + err = json.Unmarshal(bytes, &varConfigAuthNSG) + + if err != nil { + return err + } + + *o = ConfigAuthNSG(varConfigAuthNSG) + + return err +} + type NullableConfigAuthNSG struct { value *ConfigAuthNSG isSet bool diff --git a/dns_config/model_config_bulk_copy_view.go b/dns_config/model_config_bulk_copy_view.go index d8bbec7..b9dc6f3 100644 --- a/dns_config/model_config_bulk_copy_view.go +++ b/dns_config/model_config_bulk_copy_view.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigBulkCopyView type satisfies the MappedNullable interface at compile time @@ -32,6 +33,8 @@ type ConfigBulkCopyView struct { Target string `json:"target"` } +type _ConfigBulkCopyView ConfigBulkCopyView + // NewConfigBulkCopyView instantiates a new ConfigBulkCopyView object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -289,6 +292,42 @@ func (o ConfigBulkCopyView) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigBulkCopyView) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "resources", + "target", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigBulkCopyView := _ConfigBulkCopyView{} + + err = json.Unmarshal(bytes, &varConfigBulkCopyView) + + if err != nil { + return err + } + + *o = ConfigBulkCopyView(varConfigBulkCopyView) + + return err +} + type NullableConfigBulkCopyView struct { value *ConfigBulkCopyView isSet bool diff --git a/dns_config/model_config_copy_auth_zone.go b/dns_config/model_config_copy_auth_zone.go index 7994869..1674547 100644 --- a/dns_config/model_config_copy_auth_zone.go +++ b/dns_config/model_config_copy_auth_zone.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigCopyAuthZone type satisfies the MappedNullable interface at compile time @@ -39,6 +40,8 @@ type ConfigCopyAuthZone struct { TargetView string `json:"target_view"` } +type _ConfigCopyAuthZone ConfigCopyAuthZone + // NewConfigCopyAuthZone instantiates a new ConfigCopyAuthZone object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -375,6 +378,41 @@ func (o ConfigCopyAuthZone) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigCopyAuthZone) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "target_view", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigCopyAuthZone := _ConfigCopyAuthZone{} + + err = json.Unmarshal(bytes, &varConfigCopyAuthZone) + + if err != nil { + return err + } + + *o = ConfigCopyAuthZone(varConfigCopyAuthZone) + + return err +} + type NullableConfigCopyAuthZone struct { value *ConfigCopyAuthZone isSet bool diff --git a/dns_config/model_config_copy_forward_zone.go b/dns_config/model_config_copy_forward_zone.go index 98b8fb0..e1268bd 100644 --- a/dns_config/model_config_copy_forward_zone.go +++ b/dns_config/model_config_copy_forward_zone.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigCopyForwardZone type satisfies the MappedNullable interface at compile time @@ -39,6 +40,8 @@ type ConfigCopyForwardZone struct { TargetView string `json:"target_view"` } +type _ConfigCopyForwardZone ConfigCopyForwardZone + // NewConfigCopyForwardZone instantiates a new ConfigCopyForwardZone object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -375,6 +378,41 @@ func (o ConfigCopyForwardZone) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigCopyForwardZone) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "target_view", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigCopyForwardZone := _ConfigCopyForwardZone{} + + err = json.Unmarshal(bytes, &varConfigCopyForwardZone) + + if err != nil { + return err + } + + *o = ConfigCopyForwardZone(varConfigCopyForwardZone) + + return err +} + type NullableConfigCopyForwardZone struct { value *ConfigCopyForwardZone isSet bool diff --git a/dns_config/model_config_delegation_server.go b/dns_config/model_config_delegation_server.go index 32171bb..af29421 100644 --- a/dns_config/model_config_delegation_server.go +++ b/dns_config/model_config_delegation_server.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigDelegationServer type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type ConfigDelegationServer struct { ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` } +type _ConfigDelegationServer ConfigDelegationServer + // NewConfigDelegationServer instantiates a new ConfigDelegationServer object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -153,6 +156,41 @@ func (o ConfigDelegationServer) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigDelegationServer) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "fqdn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigDelegationServer := _ConfigDelegationServer{} + + err = json.Unmarshal(bytes, &varConfigDelegationServer) + + if err != nil { + return err + } + + *o = ConfigDelegationServer(varConfigDelegationServer) + + return err +} + type NullableConfigDelegationServer struct { value *ConfigDelegationServer isSet bool diff --git a/dns_config/model_config_ecs_zone.go b/dns_config/model_config_ecs_zone.go index ea54ad5..42b90c0 100644 --- a/dns_config/model_config_ecs_zone.go +++ b/dns_config/model_config_ecs_zone.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigECSZone type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type ConfigECSZone struct { ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` } +type _ConfigECSZone ConfigECSZone + // NewConfigECSZone instantiates a new ConfigECSZone object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -144,6 +147,42 @@ func (o ConfigECSZone) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigECSZone) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "access", + "fqdn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigECSZone := _ConfigECSZone{} + + err = json.Unmarshal(bytes, &varConfigECSZone) + + if err != nil { + return err + } + + *o = ConfigECSZone(varConfigECSZone) + + return err +} + type NullableConfigECSZone struct { value *ConfigECSZone isSet bool diff --git a/dns_config/model_config_external_primary.go b/dns_config/model_config_external_primary.go index a57a1c8..1e4addb 100644 --- a/dns_config/model_config_external_primary.go +++ b/dns_config/model_config_external_primary.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigExternalPrimary type satisfies the MappedNullable interface at compile time @@ -34,6 +35,8 @@ type ConfigExternalPrimary struct { Type string `json:"type"` } +type _ConfigExternalPrimary ConfigExternalPrimary + // NewConfigExternalPrimary instantiates a new ConfigExternalPrimary object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -300,6 +303,41 @@ func (o ConfigExternalPrimary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigExternalPrimary) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigExternalPrimary := _ConfigExternalPrimary{} + + err = json.Unmarshal(bytes, &varConfigExternalPrimary) + + if err != nil { + return err + } + + *o = ConfigExternalPrimary(varConfigExternalPrimary) + + return err +} + type NullableConfigExternalPrimary struct { value *ConfigExternalPrimary isSet bool diff --git a/dns_config/model_config_external_secondary.go b/dns_config/model_config_external_secondary.go index df6480e..e4bfe9d 100644 --- a/dns_config/model_config_external_secondary.go +++ b/dns_config/model_config_external_secondary.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigExternalSecondary type satisfies the MappedNullable interface at compile time @@ -32,6 +33,8 @@ type ConfigExternalSecondary struct { TsigKey *ConfigTSIGKey `json:"tsig_key,omitempty"` } +type _ConfigExternalSecondary ConfigExternalSecondary + // NewConfigExternalSecondary instantiates a new ConfigExternalSecondary object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -254,6 +257,42 @@ func (o ConfigExternalSecondary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigExternalSecondary) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + "fqdn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigExternalSecondary := _ConfigExternalSecondary{} + + err = json.Unmarshal(bytes, &varConfigExternalSecondary) + + if err != nil { + return err + } + + *o = ConfigExternalSecondary(varConfigExternalSecondary) + + return err +} + type NullableConfigExternalSecondary struct { value *ConfigExternalSecondary isSet bool diff --git a/dns_config/model_config_forward_nsg.go b/dns_config/model_config_forward_nsg.go index 6c75052..a3c8661 100644 --- a/dns_config/model_config_forward_nsg.go +++ b/dns_config/model_config_forward_nsg.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigForwardNSG type satisfies the MappedNullable interface at compile time @@ -39,6 +40,8 @@ type ConfigForwardNSG struct { Tags map[string]interface{} `json:"tags,omitempty"` } +type _ConfigForwardNSG ConfigForwardNSG + // NewConfigForwardNSG instantiates a new ConfigForwardNSG object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -375,6 +378,41 @@ func (o ConfigForwardNSG) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigForwardNSG) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigForwardNSG := _ConfigForwardNSG{} + + err = json.Unmarshal(bytes, &varConfigForwardNSG) + + if err != nil { + return err + } + + *o = ConfigForwardNSG(varConfigForwardNSG) + + return err +} + type NullableConfigForwardNSG struct { value *ConfigForwardNSG isSet bool diff --git a/dns_config/model_config_forwarder.go b/dns_config/model_config_forwarder.go index 44684ac..187e1b0 100644 --- a/dns_config/model_config_forwarder.go +++ b/dns_config/model_config_forwarder.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigForwarder type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type ConfigForwarder struct { ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` } +type _ConfigForwarder ConfigForwarder + // NewConfigForwarder instantiates a new ConfigForwarder object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -144,6 +147,42 @@ func (o ConfigForwarder) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigForwarder) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + "fqdn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigForwarder := _ConfigForwarder{} + + err = json.Unmarshal(bytes, &varConfigForwarder) + + if err != nil { + return err + } + + *o = ConfigForwarder(varConfigForwarder) + + return err +} + type NullableConfigForwarder struct { value *ConfigForwarder isSet bool diff --git a/dns_config/model_config_global.go b/dns_config/model_config_global.go index 76ca4ff..91b7e1c 100644 --- a/dns_config/model_config_global.go +++ b/dns_config/model_config_global.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigGlobal type satisfies the MappedNullable interface at compile time @@ -109,6 +110,8 @@ type ConfigGlobal struct { ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` } +type _ConfigGlobal ConfigGlobal + // NewConfigGlobal instantiates a new ConfigGlobal object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1705,6 +1708,41 @@ func (o ConfigGlobal) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigGlobal) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigGlobal := _ConfigGlobal{} + + err = json.Unmarshal(bytes, &varConfigGlobal) + + if err != nil { + return err + } + + *o = ConfigGlobal(varConfigGlobal) + + return err +} + type NullableConfigGlobal struct { value *ConfigGlobal isSet bool diff --git a/dns_config/model_config_internal_secondary.go b/dns_config/model_config_internal_secondary.go index 0a83134..479d478 100644 --- a/dns_config/model_config_internal_secondary.go +++ b/dns_config/model_config_internal_secondary.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigInternalSecondary type satisfies the MappedNullable interface at compile time @@ -23,6 +24,8 @@ type ConfigInternalSecondary struct { Host string `json:"host"` } +type _ConfigInternalSecondary ConfigInternalSecondary + // NewConfigInternalSecondary instantiates a new ConfigInternalSecondary object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -79,6 +82,41 @@ func (o ConfigInternalSecondary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigInternalSecondary) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "host", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigInternalSecondary := _ConfigInternalSecondary{} + + err = json.Unmarshal(bytes, &varConfigInternalSecondary) + + if err != nil { + return err + } + + *o = ConfigInternalSecondary(varConfigInternalSecondary) + + return err +} + type NullableConfigInternalSecondary struct { value *ConfigInternalSecondary isSet bool diff --git a/dns_config/model_config_kerberos_key.go b/dns_config/model_config_kerberos_key.go index a477694..8e15460 100644 --- a/dns_config/model_config_kerberos_key.go +++ b/dns_config/model_config_kerberos_key.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigKerberosKey type satisfies the MappedNullable interface at compile time @@ -33,6 +34,8 @@ type ConfigKerberosKey struct { Version *int64 `json:"version,omitempty"` } +type _ConfigKerberosKey ConfigKerberosKey + // NewConfigKerberosKey instantiates a new ConfigKerberosKey object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -264,6 +267,41 @@ func (o ConfigKerberosKey) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigKerberosKey) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigKerberosKey := _ConfigKerberosKey{} + + err = json.Unmarshal(bytes, &varConfigKerberosKey) + + if err != nil { + return err + } + + *o = ConfigKerberosKey(varConfigKerberosKey) + + return err +} + type NullableConfigKerberosKey struct { value *ConfigKerberosKey isSet bool diff --git a/dns_config/model_config_lbdn.go b/dns_config/model_config_lbdn.go index a60ac09..b751994 100644 --- a/dns_config/model_config_lbdn.go +++ b/dns_config/model_config_lbdn.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigLBDN type satisfies the MappedNullable interface at compile time @@ -39,6 +40,8 @@ type ConfigLBDN struct { View string `json:"view"` } +type _ConfigLBDN ConfigLBDN + // NewConfigLBDN instantiates a new ConfigLBDN object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -401,6 +404,42 @@ func (o ConfigLBDN) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigLBDN) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "view", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigLBDN := _ConfigLBDN{} + + err = json.Unmarshal(bytes, &varConfigLBDN) + + if err != nil { + return err + } + + *o = ConfigLBDN(varConfigLBDN) + + return err +} + type NullableConfigLBDN struct { value *ConfigLBDN isSet bool diff --git a/dns_config/model_config_root_ns.go b/dns_config/model_config_root_ns.go index 3420c41..2280c0b 100644 --- a/dns_config/model_config_root_ns.go +++ b/dns_config/model_config_root_ns.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigRootNS type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type ConfigRootNS struct { ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` } +type _ConfigRootNS ConfigRootNS + // NewConfigRootNS instantiates a new ConfigRootNS object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -144,6 +147,42 @@ func (o ConfigRootNS) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigRootNS) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + "fqdn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigRootNS := _ConfigRootNS{} + + err = json.Unmarshal(bytes, &varConfigRootNS) + + if err != nil { + return err + } + + *o = ConfigRootNS(varConfigRootNS) + + return err +} + type NullableConfigRootNS struct { value *ConfigRootNS isSet bool diff --git a/dns_config/model_config_server.go b/dns_config/model_config_server.go index d671625..7cd1c16 100644 --- a/dns_config/model_config_server.go +++ b/dns_config/model_config_server.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" "time" ) @@ -119,6 +120,8 @@ type ConfigServer struct { Views []ConfigDisplayView `json:"views,omitempty"` } +type _ConfigServer ConfigServer + // NewConfigServer instantiates a new ConfigServer object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1855,6 +1858,41 @@ func (o ConfigServer) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigServer) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigServer := _ConfigServer{} + + err = json.Unmarshal(bytes, &varConfigServer) + + if err != nil { + return err + } + + *o = ConfigServer(varConfigServer) + + return err +} + type NullableConfigServer struct { value *ConfigServer isSet bool diff --git a/dns_config/model_config_sort_list_item.go b/dns_config/model_config_sort_list_item.go index 2fca3ca..60151b0 100644 --- a/dns_config/model_config_sort_list_item.go +++ b/dns_config/model_config_sort_list_item.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigSortListItem type satisfies the MappedNullable interface at compile time @@ -29,6 +30,8 @@ type ConfigSortListItem struct { Source *string `json:"source,omitempty"` } +type _ConfigSortListItem ConfigSortListItem + // NewConfigSortListItem instantiates a new ConfigSortListItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -190,6 +193,41 @@ func (o ConfigSortListItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigSortListItem) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "element", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigSortListItem := _ConfigSortListItem{} + + err = json.Unmarshal(bytes, &varConfigSortListItem) + + if err != nil { + return err + } + + *o = ConfigSortListItem(varConfigSortListItem) + + return err +} + type NullableConfigSortListItem struct { value *ConfigSortListItem isSet bool diff --git a/dns_config/model_config_trust_anchor.go b/dns_config/model_config_trust_anchor.go index eb1d56b..320bd67 100644 --- a/dns_config/model_config_trust_anchor.go +++ b/dns_config/model_config_trust_anchor.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" ) // checks if the ConfigTrustAnchor type satisfies the MappedNullable interface at compile time @@ -30,6 +31,8 @@ type ConfigTrustAnchor struct { Zone string `json:"zone"` } +type _ConfigTrustAnchor ConfigTrustAnchor + // NewConfigTrustAnchor instantiates a new ConfigTrustAnchor object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -208,6 +211,43 @@ func (o ConfigTrustAnchor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigTrustAnchor) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "algorithm", + "public_key", + "zone", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigTrustAnchor := _ConfigTrustAnchor{} + + err = json.Unmarshal(bytes, &varConfigTrustAnchor) + + if err != nil { + return err + } + + *o = ConfigTrustAnchor(varConfigTrustAnchor) + + return err +} + type NullableConfigTrustAnchor struct { value *ConfigTrustAnchor isSet bool diff --git a/dns_config/model_config_view.go b/dns_config/model_config_view.go index 5d21d3e..b3d5289 100644 --- a/dns_config/model_config_view.go +++ b/dns_config/model_config_view.go @@ -12,6 +12,7 @@ package dns_config import ( "encoding/json" + "fmt" "time" ) @@ -115,6 +116,8 @@ type ConfigView struct { ZoneAuthority *ConfigZoneAuthority `json:"zone_authority,omitempty"` } +type _ConfigView ConfigView + // NewConfigView instantiates a new ConfigView object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1816,6 +1819,41 @@ func (o ConfigView) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *ConfigView) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConfigView := _ConfigView{} + + err = json.Unmarshal(bytes, &varConfigView) + + if err != nil { + return err + } + + *o = ConfigView(varConfigView) + + return err +} + type NullableConfigView struct { value *ConfigView isSet bool diff --git a/dns_data/.openapi-generator/VERSION b/dns_data/.openapi-generator/VERSION index 73a86b1..3769235 100644 --- a/dns_data/.openapi-generator/VERSION +++ b/dns_data/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/dns_data/README.md b/dns_data/README.md index c915354..b121beb 100644 --- a/dns_data/README.md +++ b/dns_data/README.md @@ -38,7 +38,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `dns_data.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), dns_data.ContextServerIndex, 1) @@ -46,7 +46,7 @@ ctx := context.WithValue(context.Background(), dns_data.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `dns_data.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), dns_data.ContextServerVariables, map[string]string{ @@ -60,7 +60,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `dns_data.ContextOperationServerIndices` and `dns_data.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), dns_data.ContextOperationServerIndices, map[string]int{ @@ -118,8 +118,8 @@ Example ```golang auth := context.WithValue( context.Background(), - sw.ContextAPIKeys, - map[string]sw.APIKey{ + dns_data.ContextAPIKeys, + map[string]dns_data.APIKey{ "Authorization": {Key: "API_KEY_STRING"}, }, ) diff --git a/dns_data/api_record.go b/dns_data/api_record.go index 844179e..aad4ddc 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.go @@ -148,8 +148,8 @@ 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{ @@ -159,8 +159,7 @@ func (a *RecordAPIService) RecordCreate(ctx context.Context) ApiRecordCreateRequ } // Execute executes the request -// -// @return DataCreateRecordResponse +// @return DataCreateRecordResponse func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataCreateRecordResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -266,9 +265,9 @@ 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{ @@ -368,37 +367,37 @@ type ApiRecordListRequest struct { 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 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,8 +431,8 @@ 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{ @@ -443,8 +442,7 @@ func (a *RecordAPIService) RecordList(ctx context.Context) ApiRecordListRequest } // Execute executes the request -// -// @return DataListRecordResponse +// @return DataListRecordResponse func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListRecordResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -561,7 +559,7 @@ type ApiRecordReadRequest struct { 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 @@ -583,9 +581,9 @@ 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{ @@ -596,8 +594,7 @@ func (a *RecordAPIService) RecordRead(ctx context.Context, id string) ApiRecordR } // Execute executes the request -// -// @return DataReadRecordResponse +// @return DataReadRecordResponse func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadRecordResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -708,9 +705,9 @@ 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{ @@ -721,8 +718,7 @@ func (a *RecordAPIService) RecordSOASerialIncrement(ctx context.Context, id stri } // Execute executes the request -// -// @return DataSOASerialIncrementResponse +// @return DataSOASerialIncrementResponse func (a *RecordAPIService) RecordSOASerialIncrementExecute(r ApiRecordSOASerialIncrementRequest) (*DataSOASerialIncrementResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -839,9 +835,9 @@ 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{ @@ -852,8 +848,7 @@ func (a *RecordAPIService) RecordUpdate(ctx context.Context, id string) ApiRecor } // Execute executes the request -// -// @return DataUpdateRecordResponse +// @return DataUpdateRecordResponse func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataUpdateRecordResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/dns_data/model_data_record.go b/dns_data/model_data_record.go index 35e1911..3021f83 100644 --- a/dns_data/model_data_record.go +++ b/dns_data/model_data_record.go @@ -12,6 +12,7 @@ package dns_data import ( "encoding/json" + "fmt" "time" ) @@ -73,6 +74,8 @@ type DataRecord struct { Zone *string `json:"zone,omitempty"` } +type _DataRecord DataRecord + // NewDataRecord instantiates a new DataRecord object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1004,6 +1007,41 @@ func (o DataRecord) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *DataRecord) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "rdata", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDataRecord := _DataRecord{} + + err = json.Unmarshal(bytes, &varDataRecord) + + if err != nil { + return err + } + + *o = DataRecord(varDataRecord) + + return err +} + type NullableDataRecord struct { value *DataRecord isSet bool diff --git a/infra_mgmt/.openapi-generator/VERSION b/infra_mgmt/.openapi-generator/VERSION index 73a86b1..3769235 100644 --- a/infra_mgmt/.openapi-generator/VERSION +++ b/infra_mgmt/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/infra_mgmt/README.md b/infra_mgmt/README.md index 7a82978..5b073fb 100644 --- a/infra_mgmt/README.md +++ b/infra_mgmt/README.md @@ -85,7 +85,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `infra_mgmt.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), infra_mgmt.ContextServerIndex, 1) @@ -93,7 +93,7 @@ ctx := context.WithValue(context.Background(), infra_mgmt.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `infra_mgmt.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), infra_mgmt.ContextServerVariables, map[string]string{ @@ -107,7 +107,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `infra_mgmt.ContextOperationServerIndices` and `infra_mgmt.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), infra_mgmt.ContextOperationServerIndices, map[string]int{ @@ -194,8 +194,8 @@ Example ```golang auth := context.WithValue( context.Background(), - sw.ContextAPIKeys, - map[string]sw.APIKey{ + infra_mgmt.ContextAPIKeys, + map[string]infra_mgmt.APIKey{ "Authorization": {Key: "API_KEY_STRING"}, }, ) diff --git a/infra_mgmt/api_detail.go b/infra_mgmt/api_detail.go index cb3d549..a9d3b48 100644 --- a/infra_mgmt/api_detail.go +++ b/infra_mgmt/api_detail.go @@ -63,37 +63,37 @@ type ApiDetailHostsListRequest struct { 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 @@ -118,8 +118,8 @@ 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{ @@ -129,8 +129,7 @@ func (a *DetailAPIService) DetailHostsList(ctx context.Context) ApiDetailHostsLi } // Execute executes the request -// -// @return InfraListDetailHostsResponse +// @return InfraListDetailHostsResponse func (a *DetailAPIService) DetailHostsListExecute(r ApiDetailHostsListRequest) (*InfraListDetailHostsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -249,37 +248,37 @@ type ApiDetailServicesListRequest struct { 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,8 +303,8 @@ 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{ @@ -315,8 +314,7 @@ func (a *DetailAPIService) DetailServicesList(ctx context.Context) ApiDetailServ } // Execute executes the request -// -// @return InfraListDetailServicesResponse +// @return InfraListDetailServicesResponse func (a *DetailAPIService) DetailServicesListExecute(r ApiDetailServicesListRequest) (*InfraListDetailServicesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/infra_mgmt/api_hosts.go b/infra_mgmt/api_hosts.go index ceaddbf..17f64a8 100644 --- a/infra_mgmt/api_hosts.go +++ b/infra_mgmt/api_hosts.go @@ -186,8 +186,8 @@ 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{ @@ -197,8 +197,7 @@ func (a *HostsAPIService) HostsAssignTags(ctx context.Context) ApiHostsAssignTag } // 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 @@ -306,8 +305,8 @@ 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{ @@ -317,8 +316,7 @@ func (a *HostsAPIService) HostsCreate(ctx context.Context) ApiHostsCreateRequest } // Execute executes the request -// -// @return InfraCreateHostResponse +// @return InfraCreateHostResponse func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCreateHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -421,9 +419,9 @@ 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{ @@ -530,9 +528,9 @@ 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{ @@ -543,8 +541,7 @@ func (a *HostsAPIService) HostsDisconnect(ctx context.Context, id string) ApiHos } // 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 @@ -645,37 +642,37 @@ type ApiHostsListRequest struct { 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 @@ -700,8 +697,8 @@ 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{ @@ -711,8 +708,7 @@ func (a *HostsAPIService) HostsList(ctx context.Context) ApiHostsListRequest { } // Execute executes the request -// -// @return InfraListHostResponse +// @return InfraListHostResponse func (a *HostsAPIService) HostsListExecute(r ApiHostsListRequest) (*InfraListHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -834,9 +830,9 @@ 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{ @@ -847,8 +843,7 @@ func (a *HostsAPIService) HostsRead(ctx context.Context, id string) ApiHostsRead } // Execute executes the request -// -// @return InfraGetHostResponse +// @return InfraGetHostResponse func (a *HostsAPIService) HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -951,10 +946,10 @@ 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{ @@ -966,8 +961,7 @@ func (a *HostsAPIService) HostsReplace(ctx context.Context, fromResourceId strin } // 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 @@ -1078,8 +1072,8 @@ 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{ @@ -1089,8 +1083,7 @@ func (a *HostsAPIService) HostsUnassignTags(ctx context.Context) ApiHostsUnassig } // 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 @@ -1201,9 +1194,9 @@ 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{ @@ -1214,8 +1207,7 @@ func (a *HostsAPIService) HostsUpdate(ctx context.Context, id string) ApiHostsUp } // Execute executes the request -// -// @return InfraUpdateHostResponse +// @return InfraUpdateHostResponse func (a *HostsAPIService) HostsUpdateExecute(r ApiHostsUpdateRequest) (*InfraUpdateHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/infra_mgmt/api_services.go b/infra_mgmt/api_services.go index f7abd6c..27e3898 100644 --- a/infra_mgmt/api_services.go +++ b/infra_mgmt/api_services.go @@ -141,8 +141,8 @@ 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{ @@ -152,8 +152,7 @@ func (a *ServicesAPIService) ServicesApplications(ctx context.Context) ApiServic } // Execute executes the request -// -// @return InfraApplicationsResponse +// @return InfraApplicationsResponse func (a *ServicesAPIService) ServicesApplicationsExecute(r ApiServicesApplicationsRequest) (*InfraApplicationsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -261,8 +260,8 @@ 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{ @@ -272,8 +271,7 @@ func (a *ServicesAPIService) ServicesCreate(ctx context.Context) ApiServicesCrea } // Execute executes the request -// -// @return InfraCreateServiceResponse +// @return InfraCreateServiceResponse func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) (*InfraCreateServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -376,9 +374,9 @@ 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{ @@ -477,37 +475,37 @@ type ApiServicesListRequest struct { 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 @@ -532,8 +530,8 @@ 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{ @@ -543,8 +541,7 @@ func (a *ServicesAPIService) ServicesList(ctx context.Context) ApiServicesListRe } // Execute executes the request -// -// @return InfraListServiceResponse +// @return InfraListServiceResponse func (a *ServicesAPIService) ServicesListExecute(r ApiServicesListRequest) (*InfraListServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -666,9 +663,9 @@ 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{ @@ -679,8 +676,7 @@ func (a *ServicesAPIService) ServicesRead(ctx context.Context, id string) ApiSer } // Execute executes the request -// -// @return InfraGetServiceResponse +// @return InfraGetServiceResponse func (a *ServicesAPIService) ServicesReadExecute(r ApiServicesReadRequest) (*InfraGetServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -788,9 +784,9 @@ 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{ @@ -801,8 +797,7 @@ func (a *ServicesAPIService) ServicesUpdate(ctx context.Context, id string) ApiS } // Execute executes the request -// -// @return InfraUpdateServiceResponse +// @return InfraUpdateServiceResponse func (a *ServicesAPIService) ServicesUpdateExecute(r ApiServicesUpdateRequest) (*InfraUpdateServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/infra_mgmt/client.go b/infra_mgmt/client.go index 5f9de49..8b6562e 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_infra_host.go b/infra_mgmt/model_infra_host.go index 511d8d7..56a2d50 100644 --- a/infra_mgmt/model_infra_host.go +++ b/infra_mgmt/model_infra_host.go @@ -12,6 +12,7 @@ package infra_mgmt import ( "encoding/json" + "fmt" "time" ) @@ -69,6 +70,8 @@ type InfraHost struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _InfraHost InfraHost + // NewInfraHost instantiates a new InfraHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -930,6 +933,41 @@ func (o InfraHost) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *InfraHost) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "display_name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInfraHost := _InfraHost{} + + err = json.Unmarshal(bytes, &varInfraHost) + + if err != nil { + return err + } + + *o = InfraHost(varInfraHost) + + return err +} + type NullableInfraHost struct { value *InfraHost isSet bool diff --git a/infra_mgmt/model_infra_service.go b/infra_mgmt/model_infra_service.go index 2ae3169..d3884a3 100644 --- a/infra_mgmt/model_infra_service.go +++ b/infra_mgmt/model_infra_service.go @@ -12,6 +12,7 @@ package infra_mgmt import ( "encoding/json" + "fmt" "time" ) @@ -46,6 +47,8 @@ type InfraService struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _InfraService InfraService + // NewInfraService instantiates a new InfraService object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -469,6 +472,43 @@ func (o InfraService) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *InfraService) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "pool_id", + "service_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInfraService := _InfraService{} + + err = json.Unmarshal(bytes, &varInfraService) + + if err != nil { + return err + } + + *o = InfraService(varInfraService) + + return err +} + type NullableInfraService struct { value *InfraService isSet bool diff --git a/infra_mgmt/utils.go b/infra_mgmt/utils.go index 582297a..5c35153 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/.openapi-generator/VERSION b/infra_provision/.openapi-generator/VERSION index 73a86b1..3769235 100644 --- a/infra_provision/.openapi-generator/VERSION +++ b/infra_provision/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/infra_provision/README.md b/infra_provision/README.md index 725d160..1d3586d 100644 --- a/infra_provision/README.md +++ b/infra_provision/README.md @@ -36,7 +36,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `infra_provision.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), infra_provision.ContextServerIndex, 1) @@ -44,7 +44,7 @@ ctx := context.WithValue(context.Background(), infra_provision.ContextServerInde ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `infra_provision.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), infra_provision.ContextServerVariables, map[string]string{ @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `infra_provision.ContextOperationServerIndices` and `infra_provision.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), infra_provision.ContextOperationServerIndices, map[string]int{ @@ -127,8 +127,8 @@ Example ```golang auth := context.WithValue( context.Background(), - sw.ContextAPIKeys, - map[string]sw.APIKey{ + infra_provision.ContextAPIKeys, + map[string]infra_provision.APIKey{ "Authorization": {Key: "API_KEY_STRING"}, }, ) diff --git a/infra_provision/api_ui_join_token.go b/infra_provision/api_ui_join_token.go index a84580c..6f7443c 100644 --- a/infra_provision/api_ui_join_token.go +++ b/infra_provision/api_ui_join_token.go @@ -132,8 +132,8 @@ 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{ @@ -143,8 +143,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenCreate(ctx context.Context) ApiUIJoin } // Execute executes the request -// -// @return HostactivationCreateJoinTokenResponse +// @return HostactivationCreateJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateRequest) (*HostactivationCreateJoinTokenResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -244,9 +243,9 @@ 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{ @@ -350,8 +349,8 @@ 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{ @@ -452,31 +451,31 @@ type ApiUIJoinTokenListRequest struct { 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,8 +502,8 @@ 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{ @@ -514,8 +513,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenList(ctx context.Context) ApiUIJoinTo } // Execute executes the request -// -// @return HostactivationListJoinTokenResponse +// @return HostactivationListJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenListExecute(r ApiUIJoinTokenListRequest) (*HostactivationListJoinTokenResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -625,7 +623,7 @@ type ApiUIJoinTokenReadRequest struct { 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 @@ -638,9 +636,9 @@ 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{ @@ -651,8 +649,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenRead(ctx context.Context, id string) } // Execute executes the request -// -// @return HostactivationReadJoinTokenResponse +// @return HostactivationReadJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenReadExecute(r ApiUIJoinTokenReadRequest) (*HostactivationReadJoinTokenResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -761,9 +758,9 @@ 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{ @@ -774,8 +771,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenUpdate(ctx context.Context, id string } // Execute executes the request -// -// @return HostactivationUpdateJoinTokenResponse +// @return HostactivationUpdateJoinTokenResponse func (a *UIJoinTokenAPIService) UIJoinTokenUpdateExecute(r ApiUIJoinTokenUpdateRequest) (*HostactivationUpdateJoinTokenResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/infra_provision/api_uicsr.go b/infra_provision/api_uicsr.go index 57718bc..d17c934 100644 --- a/infra_provision/api_uicsr.go +++ b/infra_provision/api_uicsr.go @@ -120,9 +120,9 @@ 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{ @@ -133,8 +133,7 @@ func (a *UICSRAPIService) UICSRApprove(ctx context.Context, activationCode strin } // 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 @@ -241,9 +240,9 @@ 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{ @@ -254,8 +253,7 @@ func (a *UICSRAPIService) UICSRDeny(ctx context.Context, activationCode string) } // 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 @@ -355,31 +353,31 @@ type ApiUICSRListRequest struct { 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 @@ -404,8 +402,8 @@ 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{ @@ -415,8 +413,7 @@ func (a *UICSRAPIService) UICSRList(ctx context.Context) ApiUICSRListRequest { } // Execute executes the request -// -// @return HostactivationListCSRsResponse +// @return HostactivationListCSRsResponse func (a *UICSRAPIService) UICSRListExecute(r ApiUICSRListRequest) (*HostactivationListCSRsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -543,9 +540,9 @@ 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{ @@ -556,8 +553,7 @@ func (a *UICSRAPIService) UICSRRevoke(ctx context.Context, certSerial string) Ap } // 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 @@ -669,9 +665,9 @@ 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{ @@ -682,8 +678,7 @@ func (a *UICSRAPIService) UICSRRevoke2(ctx context.Context, ophid string) ApiUIC } // 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 diff --git a/infra_provision/client.go b/infra_provision/client.go index fe18f4d..fc02639 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/docs/HostactivationJoinToken.md b/infra_provision/docs/HostactivationJoinToken.md index 1c95826..342b53e 100644 --- a/infra_provision/docs/HostactivationJoinToken.md +++ b/infra_provision/docs/HostactivationJoinToken.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **ExpiresAt** | Pointer to **time.Time** | | [optional] **Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] **LastUsedAt** | Pointer to **time.Time** | | [optional] [readonly] -**Name** | Pointer to **string** | | [optional] +**Name** | **string** | | **Status** | Pointer to [**JoinTokenJoinTokenStatus**](JoinTokenJoinTokenStatus.md) | | [optional] [default to JOINTOKENJOINTOKENSTATUS_UNKNOWN] **Tags** | Pointer to **map[string]interface{}** | | [optional] **TokenId** | Pointer to **string** | first half of the token. | [optional] [readonly] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewHostactivationJoinToken -`func NewHostactivationJoinToken() *HostactivationJoinToken` +`func NewHostactivationJoinToken(name string, ) *HostactivationJoinToken` NewHostactivationJoinToken instantiates a new HostactivationJoinToken object This constructor will assign default values to properties that have it defined, @@ -178,11 +178,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *HostactivationJoinToken) HasName() bool` - -HasName returns a boolean if a field has been set. ### GetStatus diff --git a/infra_provision/docs/UIJoinTokenAPI.md b/infra_provision/docs/UIJoinTokenAPI.md index 6aa2ab4..54a6829 100644 --- a/infra_provision/docs/UIJoinTokenAPI.md +++ b/infra_provision/docs/UIJoinTokenAPI.md @@ -34,7 +34,7 @@ import ( ) func main() { - body := *openapiclient.NewHostactivationJoinToken() // HostactivationJoinToken | + body := *openapiclient.NewHostactivationJoinToken("Name_example") // HostactivationJoinToken | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -377,7 +377,7 @@ import ( func main() { id := "id_example" // string | An application specific resource identity of a resource - body := *openapiclient.NewHostactivationJoinToken() // HostactivationJoinToken | + body := *openapiclient.NewHostactivationJoinToken("Name_example") // HostactivationJoinToken | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/infra_provision/model_hostactivation_join_token.go b/infra_provision/model_hostactivation_join_token.go index 82892c7..c0533f7 100644 --- a/infra_provision/model_hostactivation_join_token.go +++ b/infra_provision/model_hostactivation_join_token.go @@ -12,6 +12,7 @@ package infra_provision import ( "encoding/json" + "fmt" "time" ) @@ -26,7 +27,7 @@ type HostactivationJoinToken struct { // The resource identifier. Id *string `json:"id,omitempty"` LastUsedAt *time.Time `json:"last_used_at,omitempty"` - Name *string `json:"name,omitempty"` + Name string `json:"name"` Status *JoinTokenJoinTokenStatus `json:"status,omitempty"` Tags map[string]interface{} `json:"tags,omitempty"` // first half of the token. @@ -34,12 +35,15 @@ type HostactivationJoinToken struct { UseCounter *int64 `json:"use_counter,omitempty"` } +type _HostactivationJoinToken HostactivationJoinToken + // NewHostactivationJoinToken instantiates a new HostactivationJoinToken object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewHostactivationJoinToken() *HostactivationJoinToken { +func NewHostactivationJoinToken(name string) *HostactivationJoinToken { this := HostactivationJoinToken{} + this.Name = name var status JoinTokenJoinTokenStatus = JOINTOKENJOINTOKENSTATUS_UNKNOWN this.Status = &status return &this @@ -215,36 +219,28 @@ func (o *HostactivationJoinToken) SetLastUsedAt(v time.Time) { o.LastUsedAt = &v } -// GetName returns the Name field value if set, zero value otherwise. +// GetName returns the Name field value func (o *HostactivationJoinToken) GetName() string { - if o == nil || IsNil(o.Name) { + if o == nil { var ret string return ret } - return *o.Name + + return o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *HostactivationJoinToken) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { + if o == nil { return nil, false } - return o.Name, true + return &o.Name, true } -// HasName returns a boolean if a field has been set. -func (o *HostactivationJoinToken) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. +// SetName sets field value func (o *HostactivationJoinToken) SetName(v string) { - o.Name = &v + o.Name = v } // GetStatus returns the Status field value if set, zero value otherwise. @@ -400,9 +396,7 @@ func (o HostactivationJoinToken) ToMap() (map[string]interface{}, error) { if !IsNil(o.LastUsedAt) { toSerialize["last_used_at"] = o.LastUsedAt } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } + toSerialize["name"] = o.Name if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -418,6 +412,41 @@ func (o HostactivationJoinToken) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *HostactivationJoinToken) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varHostactivationJoinToken := _HostactivationJoinToken{} + + err = json.Unmarshal(bytes, &varHostactivationJoinToken) + + if err != nil { + return err + } + + *o = HostactivationJoinToken(varHostactivationJoinToken) + + return err +} + type NullableHostactivationJoinToken struct { value *HostactivationJoinToken isSet bool diff --git a/ipam/.openapi-generator/VERSION b/ipam/.openapi-generator/VERSION index 73a86b1..3769235 100644 --- a/ipam/.openapi-generator/VERSION +++ b/ipam/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/ipam/README.md b/ipam/README.md index 1bc0c10..eefe1c0 100644 --- a/ipam/README.md +++ b/ipam/README.md @@ -36,7 +36,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `ipam.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), ipam.ContextServerIndex, 1) @@ -44,7 +44,7 @@ ctx := context.WithValue(context.Background(), ipam.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `ipam.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), ipam.ContextServerVariables, map[string]string{ @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `ipam.ContextOperationServerIndices` and `ipam.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), ipam.ContextOperationServerIndices, map[string]int{ @@ -362,8 +362,8 @@ Example ```golang auth := context.WithValue( context.Background(), - sw.ContextAPIKeys, - map[string]sw.APIKey{ + ipam.ContextAPIKeys, + map[string]ipam.APIKey{ "Authorization": {Key: "API_KEY_STRING"}, }, ) diff --git a/ipam/api_address.go b/ipam/api_address.go index 6dd7836..3928993 100644 --- a/ipam/api_address.go +++ b/ipam/api_address.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *AddressAPIService) AddressCreate(ctx context.Context) ApiAddressCreateR } // Execute executes the request -// -// @return IpamsvcCreateAddressResponse +// @return IpamsvcCreateAddressResponse func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*IpamsvcCreateAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -343,37 +342,37 @@ type ApiAddressListRequest struct { 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,8 +410,8 @@ 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{ @@ -422,8 +421,7 @@ func (a *AddressAPIService) AddressList(ctx context.Context) ApiAddressListReque } // Execute executes the request -// -// @return IpamsvcListAddressResponse +// @return IpamsvcListAddressResponse func (a *AddressAPIService) AddressListExecute(r ApiAddressListRequest) (*IpamsvcListAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -542,7 +540,7 @@ type ApiAddressReadRequest struct { 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 @@ -558,9 +556,9 @@ 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{ @@ -571,8 +569,7 @@ func (a *AddressAPIService) AddressRead(ctx context.Context, id string) ApiAddre } // Execute executes the request -// -// @return IpamsvcReadAddressResponse +// @return IpamsvcReadAddressResponse func (a *AddressAPIService) AddressReadExecute(r ApiAddressReadRequest) (*IpamsvcReadAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -680,9 +677,9 @@ 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{ @@ -693,8 +690,7 @@ func (a *AddressAPIService) AddressUpdate(ctx context.Context, id string) ApiAdd } // Execute executes the request -// -// @return IpamsvcUpdateAddressResponse +// @return IpamsvcUpdateAddressResponse func (a *AddressAPIService) AddressUpdateExecute(r ApiAddressUpdateRequest) (*IpamsvcUpdateAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_address_block.go b/ipam/api_address_block.go index 0e14686..e64c4c5 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -238,9 +238,9 @@ 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{ @@ -251,8 +251,7 @@ func (a *AddressBlockAPIService) AddressBlockCopy(ctx context.Context, id string } // Execute executes the request -// -// @return IpamsvcCopyAddressBlockResponse +// @return IpamsvcCopyAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockCopyExecute(r ApiAddressBlockCopyRequest) (*IpamsvcCopyAddressBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -368,8 +367,8 @@ 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{ @@ -379,8 +378,7 @@ func (a *AddressBlockAPIService) AddressBlockCreate(ctx context.Context) ApiAddr } // Execute executes the request -// -// @return IpamsvcCreateAddressBlockResponse +// @return IpamsvcCreateAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCreateRequest) (*IpamsvcCreateAddressBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -514,9 +512,9 @@ 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{ @@ -527,8 +525,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableAB(ctx context.C } // Execute executes the request -// -// @return IpamsvcCreateNextAvailableABResponse +// @return IpamsvcCreateNextAvailableABResponse func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableABExecute(r ApiAddressBlockCreateNextAvailableABRequest) (*IpamsvcCreateNextAvailableABResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -657,9 +654,9 @@ 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{ @@ -670,8 +667,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIP(ctx context.C } // Execute executes the request -// -// @return IpamsvcCreateNextAvailableIPResponse +// @return IpamsvcCreateNextAvailableIPResponse func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIPExecute(r ApiAddressBlockCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -817,9 +813,9 @@ 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{ @@ -830,8 +826,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnet(ctx conte } // Execute executes the request -// -// @return IpamsvcCreateNextAvailableSubnetResponse +// @return IpamsvcCreateNextAvailableSubnetResponse func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnetExecute(r ApiAddressBlockCreateNextAvailableSubnetRequest) (*IpamsvcCreateNextAvailableSubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -949,9 +944,9 @@ 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{ @@ -1051,37 +1046,37 @@ type ApiAddressBlockListRequest struct { 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 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 @@ -1115,8 +1110,8 @@ 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{ @@ -1126,8 +1121,7 @@ func (a *AddressBlockAPIService) AddressBlockList(ctx context.Context) ApiAddres } // Execute executes the request -// -// @return IpamsvcListAddressBlockResponse +// @return IpamsvcListAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockListExecute(r ApiAddressBlockListRequest) (*IpamsvcListAddressBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1280,9 +1274,9 @@ 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{ @@ -1293,8 +1287,7 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableAB(ctx context.Con } // Execute executes the request -// -// @return IpamsvcNextAvailableABResponse +// @return IpamsvcNextAvailableABResponse func (a *AddressBlockAPIService) AddressBlockListNextAvailableABExecute(r ApiAddressBlockListNextAvailableABRequest) (*IpamsvcNextAvailableABResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1419,9 +1412,9 @@ 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{ @@ -1432,8 +1425,7 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableIP(ctx context.Con } // Execute executes the request -// -// @return IpamsvcNextAvailableIPResponse +// @return IpamsvcNextAvailableIPResponse func (a *AddressBlockAPIService) AddressBlockListNextAvailableIPExecute(r ApiAddressBlockListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1573,9 +1565,9 @@ 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{ @@ -1586,8 +1578,7 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnet(ctx context } // Execute executes the request -// -// @return IpamsvcNextAvailableSubnetResponse +// @return IpamsvcNextAvailableSubnetResponse func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnetExecute(r ApiAddressBlockListNextAvailableSubnetRequest) (*IpamsvcNextAvailableSubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1693,7 +1684,7 @@ type ApiAddressBlockReadRequest struct { 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 @@ -1715,9 +1706,9 @@ 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{ @@ -1728,8 +1719,7 @@ func (a *AddressBlockAPIService) AddressBlockRead(ctx context.Context, id string } // Execute executes the request -// -// @return IpamsvcReadAddressBlockResponse +// @return IpamsvcReadAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockReadExecute(r ApiAddressBlockReadRequest) (*IpamsvcReadAddressBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1847,9 +1837,9 @@ 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{ @@ -1860,8 +1850,7 @@ func (a *AddressBlockAPIService) AddressBlockUpdate(ctx context.Context, id stri } // Execute executes the request -// -// @return IpamsvcUpdateAddressBlockResponse +// @return IpamsvcUpdateAddressBlockResponse func (a *AddressBlockAPIService) AddressBlockUpdateExecute(r ApiAddressBlockUpdateRequest) (*IpamsvcUpdateAddressBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_asm.go b/ipam/api_asm.go index c388854..95df3f5 100644 --- a/ipam/api_asm.go +++ b/ipam/api_asm.go @@ -96,8 +96,8 @@ 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{ @@ -107,8 +107,7 @@ func (a *AsmAPIService) AsmCreate(ctx context.Context) ApiAsmCreateRequest { } // Execute executes the request -// -// @return IpamsvcCreateASMResponse +// @return IpamsvcCreateASMResponse func (a *AsmAPIService) AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateASMResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -202,7 +201,7 @@ type ApiAsmListRequest struct { 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,8 +222,8 @@ 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{ @@ -234,8 +233,7 @@ func (a *AsmAPIService) AsmList(ctx context.Context) ApiAsmListRequest { } // Execute executes the request -// -// @return IpamsvcListASMResponse +// @return IpamsvcListASMResponse func (a *AsmAPIService) AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -330,7 +328,7 @@ type ApiAsmReadRequest struct { 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 @@ -346,9 +344,9 @@ 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{ @@ -359,8 +357,7 @@ func (a *AsmAPIService) AsmRead(ctx context.Context, id string) ApiAsmReadReques } // Execute executes the request -// -// @return IpamsvcReadASMResponse +// @return IpamsvcReadASMResponse func (a *AsmAPIService) AsmReadExecute(r ApiAsmReadRequest) (*IpamsvcReadASMResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/ipam/api_dhcp_host.go b/ipam/api_dhcp_host.go index 967a2e0..5d7bf02 100644 --- a/ipam/api_dhcp_host.go +++ b/ipam/api_dhcp_host.go @@ -102,37 +102,37 @@ type ApiDhcpHostListRequest struct { 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 @@ -160,8 +160,8 @@ 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{ @@ -171,8 +171,7 @@ func (a *DhcpHostAPIService) DhcpHostList(ctx context.Context) ApiDhcpHostListRe } // Execute executes the request -// -// @return IpamsvcListHostResponse +// @return IpamsvcListHostResponse func (a *DhcpHostAPIService) DhcpHostListExecute(r ApiDhcpHostListRequest) (*IpamsvcListHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -293,9 +292,9 @@ 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{ @@ -306,8 +305,7 @@ func (a *DhcpHostAPIService) DhcpHostListAssociations(ctx context.Context, id st } // Execute executes the request -// -// @return IpamsvcHostAssociationsResponse +// @return IpamsvcHostAssociationsResponse func (a *DhcpHostAPIService) DhcpHostListAssociationsExecute(r ApiDhcpHostListAssociationsRequest) (*IpamsvcHostAssociationsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -397,7 +395,7 @@ type ApiDhcpHostReadRequest struct { 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 @@ -413,9 +411,9 @@ 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{ @@ -426,8 +424,7 @@ func (a *DhcpHostAPIService) DhcpHostRead(ctx context.Context, id string) ApiDhc } // Execute executes the request -// -// @return IpamsvcReadHostResponse +// @return IpamsvcReadHostResponse func (a *DhcpHostAPIService) DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*IpamsvcReadHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -535,9 +532,9 @@ 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{ @@ -548,8 +545,7 @@ func (a *DhcpHostAPIService) DhcpHostUpdate(ctx context.Context, id string) ApiD } // Execute executes the request -// -// @return IpamsvcUpdateHostResponse +// @return IpamsvcUpdateHostResponse func (a *DhcpHostAPIService) DhcpHostUpdateExecute(r ApiDhcpHostUpdateRequest) (*IpamsvcUpdateHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_dns_usage.go b/ipam/api_dns_usage.go index 009657f..a0cc86a 100644 --- a/ipam/api_dns_usage.go +++ b/ipam/api_dns_usage.go @@ -67,37 +67,37 @@ type ApiDnsUsageListRequest struct { 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 @@ -112,8 +112,8 @@ 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{ @@ -123,8 +123,7 @@ func (a *DnsUsageAPIService) DnsUsageList(ctx context.Context) ApiDnsUsageListRe } // Execute executes the request -// -// @return IpamsvcListDNSUsageResponse +// @return IpamsvcListDNSUsageResponse func (a *DnsUsageAPIService) DnsUsageListExecute(r ApiDnsUsageListRequest) (*IpamsvcListDNSUsageResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -231,7 +230,7 @@ type ApiDnsUsageReadRequest struct { 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,9 +245,9 @@ 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{ @@ -259,8 +258,7 @@ func (a *DnsUsageAPIService) DnsUsageRead(ctx context.Context, id string) ApiDns } // Execute executes the request -// -// @return IpamsvcReadDNSUsageResponse +// @return IpamsvcReadDNSUsageResponse func (a *DnsUsageAPIService) DnsUsageReadExecute(r ApiDnsUsageReadRequest) (*IpamsvcReadDNSUsageResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/ipam/api_filter.go b/ipam/api_filter.go index 173d0a9..f08fbf3 100644 --- a/ipam/api_filter.go +++ b/ipam/api_filter.go @@ -53,37 +53,37 @@ type ApiFilterListRequest struct { 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 @@ -110,8 +110,8 @@ 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{ @@ -121,8 +121,7 @@ func (a *FilterAPIService) FilterList(ctx context.Context) ApiFilterListRequest } // Execute executes the request -// -// @return IpamsvcListFilterResponse +// @return IpamsvcListFilterResponse func (a *FilterAPIService) FilterListExecute(r ApiFilterListRequest) (*IpamsvcListFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/ipam/api_fixed_address.go b/ipam/api_fixed_address.go index 11bcd3e..318d5bc 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -132,8 +132,8 @@ 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{ @@ -143,8 +143,7 @@ func (a *FixedAddressAPIService) FixedAddressCreate(ctx context.Context) ApiFixe } // Execute executes the request -// -// @return IpamsvcCreateFixedAddressResponse +// @return IpamsvcCreateFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCreateRequest) (*IpamsvcCreateFixedAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -250,9 +249,9 @@ 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{ @@ -352,37 +351,37 @@ type ApiFixedAddressListRequest struct { 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 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,8 +415,8 @@ 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{ @@ -427,8 +426,7 @@ func (a *FixedAddressAPIService) FixedAddressList(ctx context.Context) ApiFixedA } // Execute executes the request -// -// @return IpamsvcListFixedAddressResponse +// @return IpamsvcListFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressListExecute(r ApiFixedAddressListRequest) (*IpamsvcListFixedAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -545,7 +543,7 @@ type ApiFixedAddressReadRequest struct { 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 @@ -567,9 +565,9 @@ 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{ @@ -580,8 +578,7 @@ func (a *FixedAddressAPIService) FixedAddressRead(ctx context.Context, id string } // Execute executes the request -// -// @return IpamsvcReadFixedAddressResponse +// @return IpamsvcReadFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressReadExecute(r ApiFixedAddressReadRequest) (*IpamsvcReadFixedAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -699,9 +696,9 @@ 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{ @@ -712,8 +709,7 @@ func (a *FixedAddressAPIService) FixedAddressUpdate(ctx context.Context, id stri } // Execute executes the request -// -// @return IpamsvcUpdateFixedAddressResponse +// @return IpamsvcUpdateFixedAddressResponse func (a *FixedAddressAPIService) FixedAddressUpdateExecute(r ApiFixedAddressUpdateRequest) (*IpamsvcUpdateFixedAddressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_global.go b/ipam/api_global.go index 41d3a22..6da957c 100644 --- a/ipam/api_global.go +++ b/ipam/api_global.go @@ -95,7 +95,7 @@ type ApiGlobalReadRequest struct { 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 @@ -111,8 +111,8 @@ 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{ @@ -122,8 +122,7 @@ func (a *GlobalAPIService) GlobalRead(ctx context.Context) ApiGlobalReadRequest } // Execute executes the request -// -// @return IpamsvcReadGlobalResponse +// @return IpamsvcReadGlobalResponse func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcReadGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -215,7 +214,7 @@ type ApiGlobalRead2Request struct { 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,9 +230,9 @@ 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{ @@ -244,8 +243,7 @@ func (a *GlobalAPIService) GlobalRead2(ctx context.Context, id string) ApiGlobal } // Execute executes the request -// -// @return IpamsvcReadGlobalResponse +// @return IpamsvcReadGlobalResponse func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*IpamsvcReadGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -352,8 +350,8 @@ 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{ @@ -363,8 +361,7 @@ func (a *GlobalAPIService) GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequ } // Execute executes the request -// -// @return IpamsvcUpdateGlobalResponse +// @return IpamsvcUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*IpamsvcUpdateGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -473,9 +470,9 @@ 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{ @@ -486,8 +483,7 @@ func (a *GlobalAPIService) GlobalUpdate2(ctx context.Context, id string) ApiGlob } // Execute executes the request -// -// @return IpamsvcUpdateGlobalResponse +// @return IpamsvcUpdateGlobalResponse func (a *GlobalAPIService) GlobalUpdate2Execute(r ApiGlobalUpdate2Request) (*IpamsvcUpdateGlobalResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_ha_group.go b/ipam/api_ha_group.go index 41187ac..d2e3138 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *HaGroupAPIService) HaGroupCreate(ctx context.Context) ApiHaGroupCreateR } // Execute executes the request -// -// @return IpamsvcCreateHAGroupResponse +// @return IpamsvcCreateHAGroupResponse func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*IpamsvcCreateHAGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -342,37 +341,37 @@ type ApiHaGroupListRequest struct { 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,8 +405,8 @@ 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{ @@ -417,8 +416,7 @@ func (a *HaGroupAPIService) HaGroupList(ctx context.Context) ApiHaGroupListReque } // Execute executes the request -// -// @return IpamsvcListHAGroupResponse +// @return IpamsvcListHAGroupResponse func (a *HaGroupAPIService) HaGroupListExecute(r ApiHaGroupListRequest) (*IpamsvcListHAGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -535,7 +533,7 @@ type ApiHaGroupReadRequest struct { 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 @@ -557,9 +555,9 @@ 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{ @@ -570,8 +568,7 @@ func (a *HaGroupAPIService) HaGroupRead(ctx context.Context, id string) ApiHaGro } // Execute executes the request -// -// @return IpamsvcReadHAGroupResponse +// @return IpamsvcReadHAGroupResponse func (a *HaGroupAPIService) HaGroupReadExecute(r ApiHaGroupReadRequest) (*IpamsvcReadHAGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -682,9 +679,9 @@ 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{ @@ -695,8 +692,7 @@ func (a *HaGroupAPIService) HaGroupUpdate(ctx context.Context, id string) ApiHaG } // Execute executes the request -// -// @return IpamsvcUpdateHAGroupResponse +// @return IpamsvcUpdateHAGroupResponse func (a *HaGroupAPIService) HaGroupUpdateExecute(r ApiHaGroupUpdateRequest) (*IpamsvcUpdateHAGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_hardware_filter.go b/ipam/api_hardware_filter.go index 1e61dcb..43dc16f 100644 --- a/ipam/api_hardware_filter.go +++ b/ipam/api_hardware_filter.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *HardwareFilterAPIService) HardwareFilterCreate(ctx context.Context) Api } // Execute executes the request -// -// @return IpamsvcCreateHardwareFilterResponse +// @return IpamsvcCreateHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilterCreateRequest) (*IpamsvcCreateHardwareFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiHardwareFilterListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *HardwareFilterAPIService) HardwareFilterList(ctx context.Context) ApiHa } // Execute executes the request -// -// @return IpamsvcListHardwareFilterResponse +// @return IpamsvcListHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterListExecute(r ApiHardwareFilterListRequest) (*IpamsvcListHardwareFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiHardwareFilterReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *HardwareFilterAPIService) HardwareFilterRead(ctx context.Context, id st } // Execute executes the request -// -// @return IpamsvcReadHardwareFilterResponse +// @return IpamsvcReadHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterReadExecute(r ApiHardwareFilterReadRequest) (*IpamsvcReadHardwareFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *HardwareFilterAPIService) HardwareFilterUpdate(ctx context.Context, id } // Execute executes the request -// -// @return IpamsvcUpdateHardwareFilterResponse +// @return IpamsvcUpdateHardwareFilterResponse func (a *HardwareFilterAPIService) HardwareFilterUpdateExecute(r ApiHardwareFilterUpdateRequest) (*IpamsvcUpdateHardwareFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_ip_space.go b/ipam/api_ip_space.go index 628b1f9..c663d34 100644 --- a/ipam/api_ip_space.go +++ b/ipam/api_ip_space.go @@ -166,8 +166,8 @@ 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{ @@ -177,8 +177,7 @@ func (a *IpSpaceAPIService) IpSpaceBulkCopy(ctx context.Context) ApiIpSpaceBulkC } // Execute executes the request -// -// @return IpamsvcBulkCopyIPSpaceResponse +// @return IpamsvcBulkCopyIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) (*IpamsvcBulkCopyIPSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -287,9 +286,9 @@ 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{ @@ -300,8 +299,7 @@ func (a *IpSpaceAPIService) IpSpaceCopy(ctx context.Context, id string) ApiIpSpa } // Execute executes the request -// -// @return IpamsvcCopyIPSpaceResponse +// @return IpamsvcCopyIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*IpamsvcCopyIPSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -417,8 +415,8 @@ 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{ @@ -428,8 +426,7 @@ func (a *IpSpaceAPIService) IpSpaceCreate(ctx context.Context) ApiIpSpaceCreateR } // Execute executes the request -// -// @return IpamsvcCreateIPSpaceResponse +// @return IpamsvcCreateIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*IpamsvcCreateIPSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -535,9 +532,9 @@ 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{ @@ -637,37 +634,37 @@ type ApiIpSpaceListRequest struct { 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 @@ -701,8 +698,8 @@ 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{ @@ -712,8 +709,7 @@ func (a *IpSpaceAPIService) IpSpaceList(ctx context.Context) ApiIpSpaceListReque } // Execute executes the request -// -// @return IpamsvcListIPSpaceResponse +// @return IpamsvcListIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceListExecute(r ApiIpSpaceListRequest) (*IpamsvcListIPSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -830,7 +826,7 @@ type ApiIpSpaceReadRequest struct { 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 @@ -852,9 +848,9 @@ 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{ @@ -865,8 +861,7 @@ func (a *IpSpaceAPIService) IpSpaceRead(ctx context.Context, id string) ApiIpSpa } // Execute executes the request -// -// @return IpamsvcReadIPSpaceResponse +// @return IpamsvcReadIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*IpamsvcReadIPSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -984,9 +979,9 @@ 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{ @@ -997,8 +992,7 @@ func (a *IpSpaceAPIService) IpSpaceUpdate(ctx context.Context, id string) ApiIpS } // Execute executes the request -// -// @return IpamsvcUpdateIPSpaceResponse +// @return IpamsvcUpdateIPSpaceResponse func (a *IpSpaceAPIService) IpSpaceUpdateExecute(r ApiIpSpaceUpdateRequest) (*IpamsvcUpdateIPSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_ipam_host.go b/ipam/api_ipam_host.go index be8a550..da4726f 100644 --- a/ipam/api_ipam_host.go +++ b/ipam/api_ipam_host.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *IpamHostAPIService) IpamHostCreate(ctx context.Context) ApiIpamHostCrea } // Execute executes the request -// -// @return IpamsvcCreateIpamHostResponse +// @return IpamsvcCreateIpamHostResponse func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) (*IpamsvcCreateIpamHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiIpamHostListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *IpamHostAPIService) IpamHostList(ctx context.Context) ApiIpamHostListRe } // Execute executes the request -// -// @return IpamsvcListIpamHostResponse +// @return IpamsvcListIpamHostResponse func (a *IpamHostAPIService) IpamHostListExecute(r ApiIpamHostListRequest) (*IpamsvcListIpamHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -525,13 +523,13 @@ type ApiIpamHostReadRequest struct { 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 @@ -547,9 +545,9 @@ 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{ @@ -560,8 +558,7 @@ func (a *IpamHostAPIService) IpamHostRead(ctx context.Context, id string) ApiIpa } // Execute executes the request -// -// @return IpamsvcReadIpamHostResponse +// @return IpamsvcReadIpamHostResponse func (a *IpamHostAPIService) IpamHostReadExecute(r ApiIpamHostReadRequest) (*IpamsvcReadIpamHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -672,9 +669,9 @@ 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{ @@ -685,8 +682,7 @@ func (a *IpamHostAPIService) IpamHostUpdate(ctx context.Context, id string) ApiI } // Execute executes the request -// -// @return IpamsvcUpdateIpamHostResponse +// @return IpamsvcUpdateIpamHostResponse func (a *IpamHostAPIService) IpamHostUpdateExecute(r ApiIpamHostUpdateRequest) (*IpamsvcUpdateIpamHostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_leases_command.go b/ipam/api_leases_command.go index fa16166..cdde103 100644 --- a/ipam/api_leases_command.go +++ b/ipam/api_leases_command.go @@ -62,8 +62,8 @@ 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{ @@ -73,8 +73,7 @@ func (a *LeasesCommandAPIService) LeasesCommandCreate(ctx context.Context) ApiLe } // Execute executes the request -// -// @return IpamsvcCreateLeasesCommandResponse +// @return IpamsvcCreateLeasesCommandResponse func (a *LeasesCommandAPIService) LeasesCommandCreateExecute(r ApiLeasesCommandCreateRequest) (*IpamsvcCreateLeasesCommandResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/ipam/api_option_code.go b/ipam/api_option_code.go index df9daf3..6056b8b 100644 --- a/ipam/api_option_code.go +++ b/ipam/api_option_code.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *OptionCodeAPIService) OptionCodeCreate(ctx context.Context) ApiOptionCo } // Execute executes the request -// -// @return IpamsvcCreateOptionCodeResponse +// @return IpamsvcCreateOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeCreateExecute(r ApiOptionCodeCreateRequest) (*IpamsvcCreateOptionCodeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -339,37 +338,37 @@ type ApiOptionCodeListRequest struct { 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,8 +384,8 @@ 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{ @@ -396,8 +395,7 @@ func (a *OptionCodeAPIService) OptionCodeList(ctx context.Context) ApiOptionCode } // Execute executes the request -// -// @return IpamsvcListOptionCodeResponse +// @return IpamsvcListOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeListExecute(r ApiOptionCodeListRequest) (*IpamsvcListOptionCodeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -504,7 +502,7 @@ type ApiOptionCodeReadRequest struct { 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 @@ -520,9 +518,9 @@ 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{ @@ -533,8 +531,7 @@ func (a *OptionCodeAPIService) OptionCodeRead(ctx context.Context, id string) Ap } // Execute executes the request -// -// @return IpamsvcReadOptionCodeResponse +// @return IpamsvcReadOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeReadExecute(r ApiOptionCodeReadRequest) (*IpamsvcReadOptionCodeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -642,9 +639,9 @@ 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{ @@ -655,8 +652,7 @@ func (a *OptionCodeAPIService) OptionCodeUpdate(ctx context.Context, id string) } // Execute executes the request -// -// @return IpamsvcUpdateOptionCodeResponse +// @return IpamsvcUpdateOptionCodeResponse func (a *OptionCodeAPIService) OptionCodeUpdateExecute(r ApiOptionCodeUpdateRequest) (*IpamsvcUpdateOptionCodeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_option_filter.go b/ipam/api_option_filter.go index fa0ba3e..be20568 100644 --- a/ipam/api_option_filter.go +++ b/ipam/api_option_filter.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *OptionFilterAPIService) OptionFilterCreate(ctx context.Context) ApiOpti } // Execute executes the request -// -// @return IpamsvcCreateOptionFilterResponse +// @return IpamsvcCreateOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCreateRequest) (*IpamsvcCreateOptionFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiOptionFilterListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *OptionFilterAPIService) OptionFilterList(ctx context.Context) ApiOption } // Execute executes the request -// -// @return IpamsvcListOptionFilterResponse +// @return IpamsvcListOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterListExecute(r ApiOptionFilterListRequest) (*IpamsvcListOptionFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiOptionFilterReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *OptionFilterAPIService) OptionFilterRead(ctx context.Context, id string } // Execute executes the request -// -// @return IpamsvcReadOptionFilterResponse +// @return IpamsvcReadOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterReadExecute(r ApiOptionFilterReadRequest) (*IpamsvcReadOptionFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *OptionFilterAPIService) OptionFilterUpdate(ctx context.Context, id stri } // Execute executes the request -// -// @return IpamsvcUpdateOptionFilterResponse +// @return IpamsvcUpdateOptionFilterResponse func (a *OptionFilterAPIService) OptionFilterUpdateExecute(r ApiOptionFilterUpdateRequest) (*IpamsvcUpdateOptionFilterResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_option_group.go b/ipam/api_option_group.go index 702d1b9..197b577 100644 --- a/ipam/api_option_group.go +++ b/ipam/api_option_group.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *OptionGroupAPIService) OptionGroupCreate(ctx context.Context) ApiOption } // Execute executes the request -// -// @return IpamsvcCreateOptionGroupResponse +// @return IpamsvcCreateOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateRequest) (*IpamsvcCreateOptionGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiOptionGroupListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *OptionGroupAPIService) OptionGroupList(ctx context.Context) ApiOptionGr } // Execute executes the request -// -// @return IpamsvcListOptionGroupResponse +// @return IpamsvcListOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupListExecute(r ApiOptionGroupListRequest) (*IpamsvcListOptionGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiOptionGroupReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *OptionGroupAPIService) OptionGroupRead(ctx context.Context, id string) } // Execute executes the request -// -// @return IpamsvcReadOptionGroupResponse +// @return IpamsvcReadOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupReadExecute(r ApiOptionGroupReadRequest) (*IpamsvcReadOptionGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *OptionGroupAPIService) OptionGroupUpdate(ctx context.Context, id string } // Execute executes the request -// -// @return IpamsvcUpdateOptionGroupResponse +// @return IpamsvcUpdateOptionGroupResponse func (a *OptionGroupAPIService) OptionGroupUpdateExecute(r ApiOptionGroupUpdateRequest) (*IpamsvcUpdateOptionGroupResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_option_space.go b/ipam/api_option_space.go index 3f25d66..b242871 100644 --- a/ipam/api_option_space.go +++ b/ipam/api_option_space.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *OptionSpaceAPIService) OptionSpaceCreate(ctx context.Context) ApiOption } // Execute executes the request -// -// @return IpamsvcCreateOptionSpaceResponse +// @return IpamsvcCreateOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateRequest) (*IpamsvcCreateOptionSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiOptionSpaceListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *OptionSpaceAPIService) OptionSpaceList(ctx context.Context) ApiOptionSp } // Execute executes the request -// -// @return IpamsvcListOptionSpaceResponse +// @return IpamsvcListOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceListExecute(r ApiOptionSpaceListRequest) (*IpamsvcListOptionSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiOptionSpaceReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *OptionSpaceAPIService) OptionSpaceRead(ctx context.Context, id string) } // Execute executes the request -// -// @return IpamsvcReadOptionSpaceResponse +// @return IpamsvcReadOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceReadExecute(r ApiOptionSpaceReadRequest) (*IpamsvcReadOptionSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *OptionSpaceAPIService) OptionSpaceUpdate(ctx context.Context, id string } // Execute executes the request -// -// @return IpamsvcUpdateOptionSpaceResponse +// @return IpamsvcUpdateOptionSpaceResponse func (a *OptionSpaceAPIService) OptionSpaceUpdateExecute(r ApiOptionSpaceUpdateRequest) (*IpamsvcUpdateOptionSpaceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_range.go b/ipam/api_range.go index 2c229f6..8422381 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -164,8 +164,8 @@ 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{ @@ -175,8 +175,7 @@ func (a *RangeAPIService) RangeCreate(ctx context.Context) ApiRangeCreateRequest } // Execute executes the request -// -// @return IpamsvcCreateRangeResponse +// @return IpamsvcCreateRangeResponse func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcCreateRangeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -296,9 +295,9 @@ 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{ @@ -309,8 +308,7 @@ func (a *RangeAPIService) RangeCreateNextAvailableIP(ctx context.Context, id str } // Execute executes the request -// -// @return IpamsvcCreateNextAvailableIPResponse +// @return IpamsvcCreateNextAvailableIPResponse func (a *RangeAPIService) RangeCreateNextAvailableIPExecute(r ApiRangeCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -421,9 +419,9 @@ 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{ @@ -523,37 +521,37 @@ type ApiRangeListRequest struct { 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 @@ -587,8 +585,8 @@ 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{ @@ -598,8 +596,7 @@ func (a *RangeAPIService) RangeList(ctx context.Context) ApiRangeListRequest { } // Execute executes the request -// -// @return IpamsvcListRangeResponse +// @return IpamsvcListRangeResponse func (a *RangeAPIService) RangeListExecute(r ApiRangeListRequest) (*IpamsvcListRangeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -738,9 +735,9 @@ 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{ @@ -751,8 +748,7 @@ func (a *RangeAPIService) RangeListNextAvailableIP(ctx context.Context, id strin } // Execute executes the request -// -// @return IpamsvcNextAvailableIPResponse +// @return IpamsvcNextAvailableIPResponse func (a *RangeAPIService) RangeListNextAvailableIPExecute(r ApiRangeListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -849,7 +845,7 @@ type ApiRangeReadRequest struct { 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 @@ -871,9 +867,9 @@ 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{ @@ -884,8 +880,7 @@ func (a *RangeAPIService) RangeRead(ctx context.Context, id string) ApiRangeRead } // Execute executes the request -// -// @return IpamsvcReadRangeResponse +// @return IpamsvcReadRangeResponse func (a *RangeAPIService) RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadRangeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1003,9 +998,9 @@ 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{ @@ -1016,8 +1011,7 @@ func (a *RangeAPIService) RangeUpdate(ctx context.Context, id string) ApiRangeUp } // Execute executes the request -// -// @return IpamsvcUpdateRangeResponse +// @return IpamsvcUpdateRangeResponse func (a *RangeAPIService) RangeUpdateExecute(r ApiRangeUpdateRequest) (*IpamsvcUpdateRangeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_server.go b/ipam/api_server.go index 71ac616..ac5255b 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -132,8 +132,8 @@ 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{ @@ -143,8 +143,7 @@ func (a *ServerAPIService) ServerCreate(ctx context.Context) ApiServerCreateRequ } // Execute executes the request -// -// @return IpamsvcCreateServerResponse +// @return IpamsvcCreateServerResponse func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*IpamsvcCreateServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -250,9 +249,9 @@ 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{ @@ -352,37 +351,37 @@ type ApiServerListRequest struct { 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 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,8 +415,8 @@ 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{ @@ -427,8 +426,7 @@ func (a *ServerAPIService) ServerList(ctx context.Context) ApiServerListRequest } // Execute executes the request -// -// @return IpamsvcListServerResponse +// @return IpamsvcListServerResponse func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*IpamsvcListServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -545,7 +543,7 @@ type ApiServerReadRequest struct { 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 @@ -567,9 +565,9 @@ 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{ @@ -580,8 +578,7 @@ func (a *ServerAPIService) ServerRead(ctx context.Context, id string) ApiServerR } // Execute executes the request -// -// @return IpamsvcReadServerResponse +// @return IpamsvcReadServerResponse func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*IpamsvcReadServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -699,9 +696,9 @@ 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{ @@ -712,8 +709,7 @@ func (a *ServerAPIService) ServerUpdate(ctx context.Context, id string) ApiServe } // Execute executes the request -// -// @return IpamsvcUpdateServerResponse +// @return IpamsvcUpdateServerResponse func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*IpamsvcUpdateServerResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/api_subnet.go b/ipam/api_subnet.go index 8accb55..b60c852 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -174,9 +174,9 @@ 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{ @@ -187,8 +187,7 @@ func (a *SubnetAPIService) SubnetCopy(ctx context.Context, id string) ApiSubnetC } // Execute executes the request -// -// @return IpamsvcCopySubnetResponse +// @return IpamsvcCopySubnetResponse func (a *SubnetAPIService) SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCopySubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -304,8 +303,8 @@ 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{ @@ -315,8 +314,7 @@ func (a *SubnetAPIService) SubnetCreate(ctx context.Context) ApiSubnetCreateRequ } // Execute executes the request -// -// @return IpamsvcCreateSubnetResponse +// @return IpamsvcCreateSubnetResponse func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*IpamsvcCreateSubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -436,9 +434,9 @@ 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{ @@ -449,8 +447,7 @@ func (a *SubnetAPIService) SubnetCreateNextAvailableIP(ctx context.Context, id s } // Execute executes the request -// -// @return IpamsvcCreateNextAvailableIPResponse +// @return IpamsvcCreateNextAvailableIPResponse func (a *SubnetAPIService) SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -561,9 +558,9 @@ 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{ @@ -663,37 +660,37 @@ type ApiSubnetListRequest struct { 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 @@ -727,8 +724,8 @@ 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{ @@ -738,8 +735,7 @@ func (a *SubnetAPIService) SubnetList(ctx context.Context) ApiSubnetListRequest } // Execute executes the request -// -// @return IpamsvcListSubnetResponse +// @return IpamsvcListSubnetResponse func (a *SubnetAPIService) SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcListSubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -878,9 +874,9 @@ 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{ @@ -891,8 +887,7 @@ func (a *SubnetAPIService) SubnetListNextAvailableIP(ctx context.Context, id str } // Execute executes the request -// -// @return IpamsvcNextAvailableIPResponse +// @return IpamsvcNextAvailableIPResponse func (a *SubnetAPIService) SubnetListNextAvailableIPExecute(r ApiSubnetListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -989,7 +984,7 @@ type ApiSubnetReadRequest struct { 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 @@ -1011,9 +1006,9 @@ 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{ @@ -1024,8 +1019,7 @@ func (a *SubnetAPIService) SubnetRead(ctx context.Context, id string) ApiSubnetR } // Execute executes the request -// -// @return IpamsvcReadSubnetResponse +// @return IpamsvcReadSubnetResponse func (a *SubnetAPIService) SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcReadSubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1143,9 +1137,9 @@ 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{ @@ -1156,8 +1150,7 @@ func (a *SubnetAPIService) SubnetUpdate(ctx context.Context, id string) ApiSubne } // Execute executes the request -// -// @return IpamsvcUpdateSubnetResponse +// @return IpamsvcUpdateSubnetResponse func (a *SubnetAPIService) SubnetUpdateExecute(r ApiSubnetUpdateRequest) (*IpamsvcUpdateSubnetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/ipam/model_ipamsvc_access_filter.go b/ipam/model_ipamsvc_access_filter.go index d185ec6..5910f29 100644 --- a/ipam/model_ipamsvc_access_filter.go +++ b/ipam/model_ipamsvc_access_filter.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcAccessFilter type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type IpamsvcAccessFilter struct { OptionFilterId *string `json:"option_filter_id,omitempty"` } +type _IpamsvcAccessFilter IpamsvcAccessFilter + // NewIpamsvcAccessFilter instantiates a new IpamsvcAccessFilter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -153,6 +156,41 @@ func (o IpamsvcAccessFilter) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcAccessFilter) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "access", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcAccessFilter := _IpamsvcAccessFilter{} + + err = json.Unmarshal(bytes, &varIpamsvcAccessFilter) + + if err != nil { + return err + } + + *o = IpamsvcAccessFilter(varIpamsvcAccessFilter) + + return err +} + type NullableIpamsvcAccessFilter struct { value *IpamsvcAccessFilter isSet bool diff --git a/ipam/model_ipamsvc_address.go b/ipam/model_ipamsvc_address.go index 83c73e1..1b27297 100644 --- a/ipam/model_ipamsvc_address.go +++ b/ipam/model_ipamsvc_address.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -61,6 +62,8 @@ type IpamsvcAddress struct { Usage []string `json:"usage,omitempty"` } +type _IpamsvcAddress IpamsvcAddress + // NewIpamsvcAddress instantiates a new IpamsvcAddress object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -782,6 +785,41 @@ func (o IpamsvcAddress) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcAddress) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcAddress := _IpamsvcAddress{} + + err = json.Unmarshal(bytes, &varIpamsvcAddress) + + if err != nil { + return err + } + + *o = IpamsvcAddress(varIpamsvcAddress) + + return err +} + type NullableIpamsvcAddress struct { value *IpamsvcAddress isSet bool diff --git a/ipam/model_ipamsvc_asm.go b/ipam/model_ipamsvc_asm.go index 252a668..1116d62 100644 --- a/ipam/model_ipamsvc_asm.go +++ b/ipam/model_ipamsvc_asm.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcASM type satisfies the MappedNullable interface at compile time @@ -69,6 +70,8 @@ type IpamsvcASM struct { Utilization *int64 `json:"utilization,omitempty"` } +type _IpamsvcASM IpamsvcASM + // NewIpamsvcASM instantiates a new IpamsvcASM object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -930,6 +933,41 @@ func (o IpamsvcASM) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcASM) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "subnet_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcASM := _IpamsvcASM{} + + err = json.Unmarshal(bytes, &varIpamsvcASM) + + if err != nil { + return err + } + + *o = IpamsvcASM(varIpamsvcASM) + + return err +} + type NullableIpamsvcASM struct { value *IpamsvcASM isSet bool diff --git a/ipam/model_ipamsvc_bulk_copy_ip_space.go b/ipam/model_ipamsvc_bulk_copy_ip_space.go index bf4a0ea..e1d81eb 100644 --- a/ipam/model_ipamsvc_bulk_copy_ip_space.go +++ b/ipam/model_ipamsvc_bulk_copy_ip_space.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcBulkCopyIPSpace type satisfies the MappedNullable interface at compile time @@ -31,6 +32,8 @@ type IpamsvcBulkCopyIPSpace struct { Target string `json:"target"` } +type _IpamsvcBulkCopyIPSpace IpamsvcBulkCopyIPSpace + // NewIpamsvcBulkCopyIPSpace instantiates a new IpamsvcBulkCopyIPSpace object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -218,6 +221,42 @@ func (o IpamsvcBulkCopyIPSpace) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcBulkCopyIPSpace) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "copy_objects", + "target", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcBulkCopyIPSpace := _IpamsvcBulkCopyIPSpace{} + + err = json.Unmarshal(bytes, &varIpamsvcBulkCopyIPSpace) + + if err != nil { + return err + } + + *o = IpamsvcBulkCopyIPSpace(varIpamsvcBulkCopyIPSpace) + + return err +} + type NullableIpamsvcBulkCopyIPSpace struct { value *IpamsvcBulkCopyIPSpace isSet bool diff --git a/ipam/model_ipamsvc_copy_address_block.go b/ipam/model_ipamsvc_copy_address_block.go index ac70f2d..0287a95 100644 --- a/ipam/model_ipamsvc_copy_address_block.go +++ b/ipam/model_ipamsvc_copy_address_block.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcCopyAddressBlock type satisfies the MappedNullable interface at compile time @@ -35,6 +36,8 @@ type IpamsvcCopyAddressBlock struct { Space string `json:"space"` } +type _IpamsvcCopyAddressBlock IpamsvcCopyAddressBlock + // NewIpamsvcCopyAddressBlock instantiates a new IpamsvcCopyAddressBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -301,6 +304,41 @@ func (o IpamsvcCopyAddressBlock) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcCopyAddressBlock) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "space", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcCopyAddressBlock := _IpamsvcCopyAddressBlock{} + + err = json.Unmarshal(bytes, &varIpamsvcCopyAddressBlock) + + if err != nil { + return err + } + + *o = IpamsvcCopyAddressBlock(varIpamsvcCopyAddressBlock) + + return err +} + type NullableIpamsvcCopyAddressBlock struct { value *IpamsvcCopyAddressBlock isSet bool diff --git a/ipam/model_ipamsvc_copy_ip_space.go b/ipam/model_ipamsvc_copy_ip_space.go index 7fe0e96..00add0a 100644 --- a/ipam/model_ipamsvc_copy_ip_space.go +++ b/ipam/model_ipamsvc_copy_ip_space.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcCopyIPSpace type satisfies the MappedNullable interface at compile time @@ -31,6 +32,8 @@ type IpamsvcCopyIPSpace struct { SkipOnError *bool `json:"skip_on_error,omitempty"` } +type _IpamsvcCopyIPSpace IpamsvcCopyIPSpace + // NewIpamsvcCopyIPSpace instantiates a new IpamsvcCopyIPSpace object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -227,6 +230,41 @@ func (o IpamsvcCopyIPSpace) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcCopyIPSpace) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcCopyIPSpace := _IpamsvcCopyIPSpace{} + + err = json.Unmarshal(bytes, &varIpamsvcCopyIPSpace) + + if err != nil { + return err + } + + *o = IpamsvcCopyIPSpace(varIpamsvcCopyIPSpace) + + return err +} + type NullableIpamsvcCopyIPSpace struct { value *IpamsvcCopyIPSpace isSet bool diff --git a/ipam/model_ipamsvc_copy_subnet.go b/ipam/model_ipamsvc_copy_subnet.go index 43c101b..e01620d 100644 --- a/ipam/model_ipamsvc_copy_subnet.go +++ b/ipam/model_ipamsvc_copy_subnet.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcCopySubnet type satisfies the MappedNullable interface at compile time @@ -35,6 +36,8 @@ type IpamsvcCopySubnet struct { Space string `json:"space"` } +type _IpamsvcCopySubnet IpamsvcCopySubnet + // NewIpamsvcCopySubnet instantiates a new IpamsvcCopySubnet object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -301,6 +304,41 @@ func (o IpamsvcCopySubnet) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcCopySubnet) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "space", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcCopySubnet := _IpamsvcCopySubnet{} + + err = json.Unmarshal(bytes, &varIpamsvcCopySubnet) + + if err != nil { + return err + } + + *o = IpamsvcCopySubnet(varIpamsvcCopySubnet) + + return err +} + type NullableIpamsvcCopySubnet struct { value *IpamsvcCopySubnet isSet bool diff --git a/ipam/model_ipamsvc_ddns_zone.go b/ipam/model_ipamsvc_ddns_zone.go index c076f5d..dc3031e 100644 --- a/ipam/model_ipamsvc_ddns_zone.go +++ b/ipam/model_ipamsvc_ddns_zone.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcDDNSZone type satisfies the MappedNullable interface at compile time @@ -36,6 +37,8 @@ type IpamsvcDDNSZone struct { Zone string `json:"zone"` } +type _IpamsvcDDNSZone IpamsvcDDNSZone + // NewIpamsvcDDNSZone instantiates a new IpamsvcDDNSZone object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -337,6 +340,41 @@ func (o IpamsvcDDNSZone) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcDDNSZone) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "zone", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcDDNSZone := _IpamsvcDDNSZone{} + + err = json.Unmarshal(bytes, &varIpamsvcDDNSZone) + + if err != nil { + return err + } + + *o = IpamsvcDDNSZone(varIpamsvcDDNSZone) + + return err +} + type NullableIpamsvcDDNSZone struct { value *IpamsvcDDNSZone isSet bool diff --git a/ipam/model_ipamsvc_dhcp_utilization_threshold.go b/ipam/model_ipamsvc_dhcp_utilization_threshold.go index a897e08..a93164c 100644 --- a/ipam/model_ipamsvc_dhcp_utilization_threshold.go +++ b/ipam/model_ipamsvc_dhcp_utilization_threshold.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcDHCPUtilizationThreshold type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type IpamsvcDHCPUtilizationThreshold struct { Low int64 `json:"low"` } +type _IpamsvcDHCPUtilizationThreshold IpamsvcDHCPUtilizationThreshold + // NewIpamsvcDHCPUtilizationThreshold instantiates a new IpamsvcDHCPUtilizationThreshold object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -135,6 +138,43 @@ func (o IpamsvcDHCPUtilizationThreshold) ToMap() (map[string]interface{}, error) return toSerialize, nil } +func (o *IpamsvcDHCPUtilizationThreshold) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "enabled", + "high", + "low", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcDHCPUtilizationThreshold := _IpamsvcDHCPUtilizationThreshold{} + + err = json.Unmarshal(bytes, &varIpamsvcDHCPUtilizationThreshold) + + if err != nil { + return err + } + + *o = IpamsvcDHCPUtilizationThreshold(varIpamsvcDHCPUtilizationThreshold) + + return err +} + type NullableIpamsvcDHCPUtilizationThreshold struct { value *IpamsvcDHCPUtilizationThreshold isSet bool diff --git a/ipam/model_ipamsvc_exclusion_range.go b/ipam/model_ipamsvc_exclusion_range.go index 5f01e73..f516825 100644 --- a/ipam/model_ipamsvc_exclusion_range.go +++ b/ipam/model_ipamsvc_exclusion_range.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcExclusionRange type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type IpamsvcExclusionRange struct { Start string `json:"start"` } +type _IpamsvcExclusionRange IpamsvcExclusionRange + // NewIpamsvcExclusionRange instantiates a new IpamsvcExclusionRange object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -144,6 +147,42 @@ func (o IpamsvcExclusionRange) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcExclusionRange) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "end", + "start", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcExclusionRange := _IpamsvcExclusionRange{} + + err = json.Unmarshal(bytes, &varIpamsvcExclusionRange) + + if err != nil { + return err + } + + *o = IpamsvcExclusionRange(varIpamsvcExclusionRange) + + return err +} + type NullableIpamsvcExclusionRange struct { value *IpamsvcExclusionRange isSet bool diff --git a/ipam/model_ipamsvc_fixed_address.go b/ipam/model_ipamsvc_fixed_address.go index f03d532..f8a9818 100644 --- a/ipam/model_ipamsvc_fixed_address.go +++ b/ipam/model_ipamsvc_fixed_address.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -61,6 +62,8 @@ type IpamsvcFixedAddress struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _IpamsvcFixedAddress IpamsvcFixedAddress + // NewIpamsvcFixedAddress instantiates a new IpamsvcFixedAddress object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -764,6 +767,43 @@ func (o IpamsvcFixedAddress) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcFixedAddress) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + "match_type", + "match_value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcFixedAddress := _IpamsvcFixedAddress{} + + err = json.Unmarshal(bytes, &varIpamsvcFixedAddress) + + if err != nil { + return err + } + + *o = IpamsvcFixedAddress(varIpamsvcFixedAddress) + + return err +} + type NullableIpamsvcFixedAddress struct { value *IpamsvcFixedAddress isSet bool diff --git a/ipam/model_ipamsvc_ha_group.go b/ipam/model_ipamsvc_ha_group.go index a6c11e5..00e202f 100644 --- a/ipam/model_ipamsvc_ha_group.go +++ b/ipam/model_ipamsvc_ha_group.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -44,6 +45,8 @@ type IpamsvcHAGroup struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _IpamsvcHAGroup IpamsvcHAGroup + // NewIpamsvcHAGroup instantiates a new IpamsvcHAGroup object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -441,6 +444,42 @@ func (o IpamsvcHAGroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcHAGroup) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "hosts", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcHAGroup := _IpamsvcHAGroup{} + + err = json.Unmarshal(bytes, &varIpamsvcHAGroup) + + if err != nil { + return err + } + + *o = IpamsvcHAGroup(varIpamsvcHAGroup) + + return err +} + type NullableIpamsvcHAGroup struct { value *IpamsvcHAGroup isSet bool diff --git a/ipam/model_ipamsvc_ha_group_host.go b/ipam/model_ipamsvc_ha_group_host.go index 82d24a1..b2c9ba8 100644 --- a/ipam/model_ipamsvc_ha_group_host.go +++ b/ipam/model_ipamsvc_ha_group_host.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcHAGroupHost type satisfies the MappedNullable interface at compile time @@ -33,6 +34,8 @@ type IpamsvcHAGroupHost struct { State *string `json:"state,omitempty"` } +type _IpamsvcHAGroupHost IpamsvcHAGroupHost + // NewIpamsvcHAGroupHost instantiates a new IpamsvcHAGroupHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -264,6 +267,41 @@ func (o IpamsvcHAGroupHost) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcHAGroupHost) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "host", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcHAGroupHost := _IpamsvcHAGroupHost{} + + err = json.Unmarshal(bytes, &varIpamsvcHAGroupHost) + + if err != nil { + return err + } + + *o = IpamsvcHAGroupHost(varIpamsvcHAGroupHost) + + return err +} + type NullableIpamsvcHAGroupHost struct { value *IpamsvcHAGroupHost isSet bool diff --git a/ipam/model_ipamsvc_hardware_filter.go b/ipam/model_ipamsvc_hardware_filter.go index 357c0b9..997256f 100644 --- a/ipam/model_ipamsvc_hardware_filter.go +++ b/ipam/model_ipamsvc_hardware_filter.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -50,6 +51,8 @@ type IpamsvcHardwareFilter struct { VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` } +type _IpamsvcHardwareFilter IpamsvcHardwareFilter + // NewIpamsvcHardwareFilter instantiates a new IpamsvcHardwareFilter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -561,6 +564,41 @@ func (o IpamsvcHardwareFilter) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcHardwareFilter) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcHardwareFilter := _IpamsvcHardwareFilter{} + + err = json.Unmarshal(bytes, &varIpamsvcHardwareFilter) + + if err != nil { + return err + } + + *o = IpamsvcHardwareFilter(varIpamsvcHardwareFilter) + + return err +} + type NullableIpamsvcHardwareFilter struct { value *IpamsvcHardwareFilter isSet bool diff --git a/ipam/model_ipamsvc_host_name.go b/ipam/model_ipamsvc_host_name.go index e728d63..277a7a2 100644 --- a/ipam/model_ipamsvc_host_name.go +++ b/ipam/model_ipamsvc_host_name.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcHostName type satisfies the MappedNullable interface at compile time @@ -29,6 +30,8 @@ type IpamsvcHostName struct { Zone string `json:"zone"` } +type _IpamsvcHostName IpamsvcHostName + // NewIpamsvcHostName instantiates a new IpamsvcHostName object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -181,6 +184,42 @@ func (o IpamsvcHostName) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcHostName) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "zone", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcHostName := _IpamsvcHostName{} + + err = json.Unmarshal(bytes, &varIpamsvcHostName) + + if err != nil { + return err + } + + *o = IpamsvcHostName(varIpamsvcHostName) + + return err +} + type NullableIpamsvcHostName struct { value *IpamsvcHostName isSet bool diff --git a/ipam/model_ipamsvc_ignore_item.go b/ipam/model_ipamsvc_ignore_item.go index 8ee7184..82895e7 100644 --- a/ipam/model_ipamsvc_ignore_item.go +++ b/ipam/model_ipamsvc_ignore_item.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcIgnoreItem type satisfies the MappedNullable interface at compile time @@ -25,6 +26,8 @@ type IpamsvcIgnoreItem struct { Value string `json:"value"` } +type _IpamsvcIgnoreItem IpamsvcIgnoreItem + // NewIpamsvcIgnoreItem instantiates a new IpamsvcIgnoreItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -107,6 +110,42 @@ func (o IpamsvcIgnoreItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcIgnoreItem) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcIgnoreItem := _IpamsvcIgnoreItem{} + + err = json.Unmarshal(bytes, &varIpamsvcIgnoreItem) + + if err != nil { + return err + } + + *o = IpamsvcIgnoreItem(varIpamsvcIgnoreItem) + + return err +} + type NullableIpamsvcIgnoreItem struct { value *IpamsvcIgnoreItem isSet bool diff --git a/ipam/model_ipamsvc_ip_space.go b/ipam/model_ipamsvc_ip_space.go index ff974a4..d46627d 100644 --- a/ipam/model_ipamsvc_ip_space.go +++ b/ipam/model_ipamsvc_ip_space.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -78,6 +79,8 @@ type IpamsvcIPSpace struct { VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` } +type _IpamsvcIPSpace IpamsvcIPSpace + // NewIpamsvcIPSpace instantiates a new IpamsvcIPSpace object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1224,6 +1227,41 @@ func (o IpamsvcIPSpace) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcIPSpace) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcIPSpace := _IpamsvcIPSpace{} + + err = json.Unmarshal(bytes, &varIpamsvcIPSpace) + + if err != nil { + return err + } + + *o = IpamsvcIPSpace(varIpamsvcIPSpace) + + return err +} + type NullableIpamsvcIPSpace struct { value *IpamsvcIPSpace isSet bool diff --git a/ipam/model_ipamsvc_ipam_host.go b/ipam/model_ipamsvc_ipam_host.go index f8463e1..9847e7a 100644 --- a/ipam/model_ipamsvc_ipam_host.go +++ b/ipam/model_ipamsvc_ipam_host.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -40,6 +41,8 @@ type IpamsvcIpamHost struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _IpamsvcIpamHost IpamsvcIpamHost + // NewIpamsvcIpamHost instantiates a new IpamsvcIpamHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -376,6 +379,41 @@ func (o IpamsvcIpamHost) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcIpamHost) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcIpamHost := _IpamsvcIpamHost{} + + err = json.Unmarshal(bytes, &varIpamsvcIpamHost) + + if err != nil { + return err + } + + *o = IpamsvcIpamHost(varIpamsvcIpamHost) + + return err +} + type NullableIpamsvcIpamHost struct { value *IpamsvcIpamHost isSet bool diff --git a/ipam/model_ipamsvc_kerberos_key.go b/ipam/model_ipamsvc_kerberos_key.go index 86cb3a8..91f9fdc 100644 --- a/ipam/model_ipamsvc_kerberos_key.go +++ b/ipam/model_ipamsvc_kerberos_key.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcKerberosKey type satisfies the MappedNullable interface at compile time @@ -33,6 +34,8 @@ type IpamsvcKerberosKey struct { Version *int64 `json:"version,omitempty"` } +type _IpamsvcKerberosKey IpamsvcKerberosKey + // NewIpamsvcKerberosKey instantiates a new IpamsvcKerberosKey object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -264,6 +267,41 @@ func (o IpamsvcKerberosKey) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcKerberosKey) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcKerberosKey := _IpamsvcKerberosKey{} + + err = json.Unmarshal(bytes, &varIpamsvcKerberosKey) + + if err != nil { + return err + } + + *o = IpamsvcKerberosKey(varIpamsvcKerberosKey) + + return err +} + type NullableIpamsvcKerberosKey struct { value *IpamsvcKerberosKey isSet bool diff --git a/ipam/model_ipamsvc_leases_command.go b/ipam/model_ipamsvc_leases_command.go index b0209ea..7c73a0e 100644 --- a/ipam/model_ipamsvc_leases_command.go +++ b/ipam/model_ipamsvc_leases_command.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcLeasesCommand type satisfies the MappedNullable interface at compile time @@ -29,6 +30,8 @@ type IpamsvcLeasesCommand struct { Subnet []IpamsvcLeaseSubnet `json:"subnet,omitempty"` } +type _IpamsvcLeasesCommand IpamsvcLeasesCommand + // NewIpamsvcLeasesCommand instantiates a new IpamsvcLeasesCommand object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -190,6 +193,41 @@ func (o IpamsvcLeasesCommand) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcLeasesCommand) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "command", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcLeasesCommand := _IpamsvcLeasesCommand{} + + err = json.Unmarshal(bytes, &varIpamsvcLeasesCommand) + + if err != nil { + return err + } + + *o = IpamsvcLeasesCommand(varIpamsvcLeasesCommand) + + return err +} + type NullableIpamsvcLeasesCommand struct { value *IpamsvcLeasesCommand isSet bool diff --git a/ipam/model_ipamsvc_name.go b/ipam/model_ipamsvc_name.go index 4bb67e2..f532417 100644 --- a/ipam/model_ipamsvc_name.go +++ b/ipam/model_ipamsvc_name.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcName type satisfies the MappedNullable interface at compile time @@ -25,6 +26,8 @@ type IpamsvcName struct { Type string `json:"type"` } +type _IpamsvcName IpamsvcName + // NewIpamsvcName instantiates a new IpamsvcName object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -107,6 +110,42 @@ func (o IpamsvcName) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcName) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcName := _IpamsvcName{} + + err = json.Unmarshal(bytes, &varIpamsvcName) + + if err != nil { + return err + } + + *o = IpamsvcName(varIpamsvcName) + + return err +} + type NullableIpamsvcName struct { value *IpamsvcName isSet bool diff --git a/ipam/model_ipamsvc_option_code.go b/ipam/model_ipamsvc_option_code.go index 79af98e..4885131 100644 --- a/ipam/model_ipamsvc_option_code.go +++ b/ipam/model_ipamsvc_option_code.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -42,6 +43,8 @@ type IpamsvcOptionCode struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _IpamsvcOptionCode IpamsvcOptionCode + // NewIpamsvcOptionCode instantiates a new IpamsvcOptionCode object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -386,6 +389,44 @@ func (o IpamsvcOptionCode) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcOptionCode) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "code", + "name", + "option_space", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcOptionCode := _IpamsvcOptionCode{} + + err = json.Unmarshal(bytes, &varIpamsvcOptionCode) + + if err != nil { + return err + } + + *o = IpamsvcOptionCode(varIpamsvcOptionCode) + + return err +} + type NullableIpamsvcOptionCode struct { value *IpamsvcOptionCode isSet bool diff --git a/ipam/model_ipamsvc_option_filter.go b/ipam/model_ipamsvc_option_filter.go index 5dabbe5..e264fa2 100644 --- a/ipam/model_ipamsvc_option_filter.go +++ b/ipam/model_ipamsvc_option_filter.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -51,6 +52,8 @@ type IpamsvcOptionFilter struct { VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` } +type _IpamsvcOptionFilter IpamsvcOptionFilter + // NewIpamsvcOptionFilter instantiates a new IpamsvcOptionFilter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -588,6 +591,42 @@ func (o IpamsvcOptionFilter) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcOptionFilter) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcOptionFilter := _IpamsvcOptionFilter{} + + err = json.Unmarshal(bytes, &varIpamsvcOptionFilter) + + if err != nil { + return err + } + + *o = IpamsvcOptionFilter(varIpamsvcOptionFilter) + + return err +} + type NullableIpamsvcOptionFilter struct { value *IpamsvcOptionFilter isSet bool diff --git a/ipam/model_ipamsvc_option_filter_rule.go b/ipam/model_ipamsvc_option_filter_rule.go index 7d61417..36a1f5d 100644 --- a/ipam/model_ipamsvc_option_filter_rule.go +++ b/ipam/model_ipamsvc_option_filter_rule.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcOptionFilterRule type satisfies the MappedNullable interface at compile time @@ -29,6 +30,8 @@ type IpamsvcOptionFilterRule struct { SubstringOffset *int64 `json:"substring_offset,omitempty"` } +type _IpamsvcOptionFilterRule IpamsvcOptionFilterRule + // NewIpamsvcOptionFilterRule instantiates a new IpamsvcOptionFilterRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -181,6 +184,42 @@ func (o IpamsvcOptionFilterRule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcOptionFilterRule) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "compare", + "option_code", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcOptionFilterRule := _IpamsvcOptionFilterRule{} + + err = json.Unmarshal(bytes, &varIpamsvcOptionFilterRule) + + if err != nil { + return err + } + + *o = IpamsvcOptionFilterRule(varIpamsvcOptionFilterRule) + + return err +} + type NullableIpamsvcOptionFilterRule struct { value *IpamsvcOptionFilterRule isSet bool diff --git a/ipam/model_ipamsvc_option_group.go b/ipam/model_ipamsvc_option_group.go index e4f710d..7281f6a 100644 --- a/ipam/model_ipamsvc_option_group.go +++ b/ipam/model_ipamsvc_option_group.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -38,6 +39,8 @@ type IpamsvcOptionGroup struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _IpamsvcOptionGroup IpamsvcOptionGroup + // NewIpamsvcOptionGroup instantiates a new IpamsvcOptionGroup object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -339,6 +342,41 @@ func (o IpamsvcOptionGroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcOptionGroup) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcOptionGroup := _IpamsvcOptionGroup{} + + err = json.Unmarshal(bytes, &varIpamsvcOptionGroup) + + if err != nil { + return err + } + + *o = IpamsvcOptionGroup(varIpamsvcOptionGroup) + + return err +} + type NullableIpamsvcOptionGroup struct { value *IpamsvcOptionGroup isSet bool diff --git a/ipam/model_ipamsvc_option_space.go b/ipam/model_ipamsvc_option_space.go index e126876..e47a84d 100644 --- a/ipam/model_ipamsvc_option_space.go +++ b/ipam/model_ipamsvc_option_space.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -36,6 +37,8 @@ type IpamsvcOptionSpace struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _IpamsvcOptionSpace IpamsvcOptionSpace + // NewIpamsvcOptionSpace instantiates a new IpamsvcOptionSpace object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -302,6 +305,41 @@ func (o IpamsvcOptionSpace) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcOptionSpace) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcOptionSpace := _IpamsvcOptionSpace{} + + err = json.Unmarshal(bytes, &varIpamsvcOptionSpace) + + if err != nil { + return err + } + + *o = IpamsvcOptionSpace(varIpamsvcOptionSpace) + + return err +} + type NullableIpamsvcOptionSpace struct { value *IpamsvcOptionSpace isSet bool diff --git a/ipam/model_ipamsvc_range.go b/ipam/model_ipamsvc_range.go index be9f8b4..0faf6f5 100644 --- a/ipam/model_ipamsvc_range.go +++ b/ipam/model_ipamsvc_range.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -62,6 +63,8 @@ type IpamsvcRange struct { UtilizationV6 *IpamsvcUtilizationV6 `json:"utilization_v6,omitempty"` } +type _IpamsvcRange IpamsvcRange + // NewIpamsvcRange instantiates a new IpamsvcRange object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -844,6 +847,42 @@ func (o IpamsvcRange) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcRange) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "end", + "start", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcRange := _IpamsvcRange{} + + err = json.Unmarshal(bytes, &varIpamsvcRange) + + if err != nil { + return err + } + + *o = IpamsvcRange(varIpamsvcRange) + + return err +} + type NullableIpamsvcRange struct { value *IpamsvcRange isSet bool diff --git a/ipam/model_ipamsvc_server.go b/ipam/model_ipamsvc_server.go index 1dd74ab..2174b36 100644 --- a/ipam/model_ipamsvc_server.go +++ b/ipam/model_ipamsvc_server.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" "time" ) @@ -94,6 +95,8 @@ type IpamsvcServer struct { VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` } +type _IpamsvcServer IpamsvcServer + // NewIpamsvcServer instantiates a new IpamsvcServer object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1410,6 +1413,41 @@ func (o IpamsvcServer) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcServer) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcServer := _IpamsvcServer{} + + err = json.Unmarshal(bytes, &varIpamsvcServer) + + if err != nil { + return err + } + + *o = IpamsvcServer(varIpamsvcServer) + + return err +} + type NullableIpamsvcServer struct { value *IpamsvcServer isSet bool diff --git a/ipam/model_ipamsvc_tsig_key.go b/ipam/model_ipamsvc_tsig_key.go index b358da3..16473d1 100644 --- a/ipam/model_ipamsvc_tsig_key.go +++ b/ipam/model_ipamsvc_tsig_key.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcTSIGKey type satisfies the MappedNullable interface at compile time @@ -33,6 +34,8 @@ type IpamsvcTSIGKey struct { Secret *string `json:"secret,omitempty"` } +type _IpamsvcTSIGKey IpamsvcTSIGKey + // NewIpamsvcTSIGKey instantiates a new IpamsvcTSIGKey object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -264,6 +267,41 @@ func (o IpamsvcTSIGKey) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcTSIGKey) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcTSIGKey := _IpamsvcTSIGKey{} + + err = json.Unmarshal(bytes, &varIpamsvcTSIGKey) + + if err != nil { + return err + } + + *o = IpamsvcTSIGKey(varIpamsvcTSIGKey) + + return err +} + type NullableIpamsvcTSIGKey struct { value *IpamsvcTSIGKey isSet bool diff --git a/ipam/model_ipamsvc_utilization_threshold.go b/ipam/model_ipamsvc_utilization_threshold.go index c6f492c..6283075 100644 --- a/ipam/model_ipamsvc_utilization_threshold.go +++ b/ipam/model_ipamsvc_utilization_threshold.go @@ -12,6 +12,7 @@ package ipam import ( "encoding/json" + "fmt" ) // checks if the IpamsvcUtilizationThreshold type satisfies the MappedNullable interface at compile time @@ -27,6 +28,8 @@ type IpamsvcUtilizationThreshold struct { Low int64 `json:"low"` } +type _IpamsvcUtilizationThreshold IpamsvcUtilizationThreshold + // NewIpamsvcUtilizationThreshold instantiates a new IpamsvcUtilizationThreshold object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -135,6 +138,43 @@ func (o IpamsvcUtilizationThreshold) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *IpamsvcUtilizationThreshold) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "enabled", + "high", + "low", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIpamsvcUtilizationThreshold := _IpamsvcUtilizationThreshold{} + + err = json.Unmarshal(bytes, &varIpamsvcUtilizationThreshold) + + if err != nil { + return err + } + + *o = IpamsvcUtilizationThreshold(varIpamsvcUtilizationThreshold) + + return err +} + type NullableIpamsvcUtilizationThreshold struct { value *IpamsvcUtilizationThreshold isSet bool diff --git a/keys/.openapi-generator/VERSION b/keys/.openapi-generator/VERSION index 9fe9ff9..3769235 100644 --- a/keys/.openapi-generator/VERSION +++ b/keys/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 +7.1.0 \ No newline at end of file diff --git a/keys/README.md b/keys/README.md index 20dc152..e1e6b9c 100644 --- a/keys/README.md +++ b/keys/README.md @@ -38,7 +38,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `keys.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), keys.ContextServerIndex, 1) @@ -46,7 +46,7 @@ ctx := context.WithValue(context.Background(), keys.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `keys.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), keys.ContextServerVariables, map[string]string{ @@ -60,7 +60,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `keys.ContextOperationServerIndices` and `keys.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), keys.ContextOperationServerIndices, map[string]int{ @@ -84,6 +84,7 @@ Class | Method | HTTP request | Description *KerberosAPI* | [**KerberosList**](docs/KerberosAPI.md#kerberoslist) | **Get** /keys/kerberos | Retrieve Kerberos keys. *KerberosAPI* | [**KerberosRead**](docs/KerberosAPI.md#kerberosread) | **Get** /keys/kerberos/{id} | Retrieve the Kerberos key. *KerberosAPI* | [**KerberosUpdate**](docs/KerberosAPI.md#kerberosupdate) | **Patch** /keys/kerberos/{id} | Update the Kerberos key. +*KerberosAPI* | [**KeysKerberosPost**](docs/KerberosAPI.md#keyskerberospost) | **Post** /keys/kerberos | *TsigAPI* | [**TsigCreate**](docs/TsigAPI.md#tsigcreate) | **Post** /keys/tsig | Create the TSIG key. *TsigAPI* | [**TsigDelete**](docs/TsigAPI.md#tsigdelete) | **Delete** /keys/tsig/{id} | Delete the TSIG key. *TsigAPI* | [**TsigList**](docs/TsigAPI.md#tsiglist) | **Get** /keys/tsig | Retrieve TSIG keys. @@ -129,8 +130,8 @@ Example ```golang auth := context.WithValue( context.Background(), - sw.ContextAPIKeys, - map[string]sw.APIKey{ + keys.ContextAPIKeys, + map[string]keys.APIKey{ "Authorization": {Key: "API_KEY_STRING"}, }, ) diff --git a/keys/api_generate_tsig.go b/keys/api_generate_tsig.go index d4e3ab8..bb7b52d 100644 --- a/keys/api_generate_tsig.go +++ b/keys/api_generate_tsig.go @@ -61,8 +61,8 @@ 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{ @@ -72,8 +72,7 @@ func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIG(ctx context.Context) A } // Execute executes the request -// -// @return KeysGenerateTSIGResponse +// @return KeysGenerateTSIGResponse func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIGExecute(r ApiGenerateTsigGenerateTSIGRequest) (*KeysGenerateTSIGResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/keys/api_kerberos.go b/keys/api_kerberos.go index df70288..3986f79 100644 --- a/keys/api_kerberos.go +++ b/keys/api_kerberos.go @@ -84,6 +84,18 @@ type KerberosAPI interface { // KerberosUpdateExecute executes the request // @return KeysUpdateKerberosKeyResponse KerberosUpdateExecute(r ApiKerberosUpdateRequest) (*KeysUpdateKerberosKeyResponse, *http.Response, error) + + /* + KeysKerberosPost Method for KeysKerberosPost + + @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 + + // KeysKerberosPostExecute executes the request + // @return KeysListKerberosKeyResponse + KeysKerberosPostExecute(r ApiKeysKerberosPostRequest) (*KeysListKerberosKeyResponse, *http.Response, error) } // KerberosAPIService KerberosAPI service @@ -105,9 +117,9 @@ 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{ @@ -206,37 +218,37 @@ type ApiKerberosListRequest struct { 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 @@ -264,8 +276,8 @@ 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{ @@ -275,8 +287,7 @@ func (a *KerberosAPIService) KerberosList(ctx context.Context) ApiKerberosListRe } // Execute executes the request -// -// @return KeysListKerberosKeyResponse +// @return KeysListKerberosKeyResponse func (a *KerberosAPIService) KerberosListExecute(r ApiKerberosListRequest) (*KeysListKerberosKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -389,7 +400,7 @@ type ApiKerberosReadRequest struct { 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 @@ -405,9 +416,9 @@ 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{ @@ -418,8 +429,7 @@ func (a *KerberosAPIService) KerberosRead(ctx context.Context, id string) ApiKer } // Execute executes the request -// -// @return KeysReadKerberosKeyResponse +// @return KeysReadKerberosKeyResponse func (a *KerberosAPIService) KerberosReadExecute(r ApiKerberosReadRequest) (*KeysReadKerberosKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -527,9 +537,9 @@ 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{ @@ -540,8 +550,7 @@ func (a *KerberosAPIService) KerberosUpdate(ctx context.Context, id string) ApiK } // Execute executes the request -// -// @return KeysUpdateKerberosKeyResponse +// @return KeysUpdateKerberosKeyResponse func (a *KerberosAPIService) KerberosUpdateExecute(r ApiKerberosUpdateRequest) (*KeysUpdateKerberosKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -628,3 +637,119 @@ func (a *KerberosAPIService) KerberosUpdateExecute(r ApiKerberosUpdateRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiKeysKerberosPostRequest struct { + ctx context.Context + ApiService KerberosAPI + body *KerberosKey +} + +func (r ApiKeysKerberosPostRequest) Body(body KerberosKey) ApiKeysKerberosPostRequest { + r.body = &body + return r +} + +func (r ApiKeysKerberosPostRequest) Execute() (*KeysListKerberosKeyResponse, *http.Response, error) { + return r.ApiService.KeysKerberosPostExecute(r) +} + +/* +KeysKerberosPost Method for KeysKerberosPost + + @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, + } +} + +// Execute executes the request +// @return KeysListKerberosKeyResponse +func (a *KerberosAPIService) KeysKerberosPostExecute(r ApiKeysKerberosPostRequest) (*KeysListKerberosKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysListKerberosKeyResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "KerberosAPIService.KeysKerberosPost") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/keys/kerberos" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(internal.ContextAPIKeys).(map[string]internal.APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/keys/api_tsig.go b/keys/api_tsig.go index 4386f89..00a7a75 100644 --- a/keys/api_tsig.go +++ b/keys/api_tsig.go @@ -125,8 +125,8 @@ 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{ @@ -136,8 +136,7 @@ func (a *TsigAPIService) TsigCreate(ctx context.Context) ApiTsigCreateRequest { } // Execute executes the request -// -// @return KeysCreateTSIGKeyResponse +// @return KeysCreateTSIGKeyResponse func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateTSIGKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -240,9 +239,9 @@ 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{ @@ -341,37 +340,37 @@ type ApiTsigListRequest struct { 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,8 +398,8 @@ 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{ @@ -410,8 +409,7 @@ func (a *TsigAPIService) TsigList(ctx context.Context) ApiTsigListRequest { } // Execute executes the request -// -// @return KeysListTSIGKeyResponse +// @return KeysListTSIGKeyResponse func (a *TsigAPIService) TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -524,7 +522,7 @@ type ApiTsigReadRequest struct { 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 @@ -540,9 +538,9 @@ 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{ @@ -553,8 +551,7 @@ func (a *TsigAPIService) TsigRead(ctx context.Context, id string) ApiTsigReadReq } // Execute executes the request -// -// @return KeysReadTSIGKeyResponse +// @return KeysReadTSIGKeyResponse func (a *TsigAPIService) TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -662,9 +659,9 @@ 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{ @@ -675,8 +672,7 @@ func (a *TsigAPIService) TsigUpdate(ctx context.Context, id string) ApiTsigUpdat } // Execute executes the request -// -// @return KeysUpdateTSIGKeyResponse +// @return KeysUpdateTSIGKeyResponse func (a *TsigAPIService) TsigUpdateExecute(r ApiTsigUpdateRequest) (*KeysUpdateTSIGKeyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/keys/api_upload.go b/keys/api_upload.go index 3d68206..e924e03 100644 --- a/keys/api_upload.go +++ b/keys/api_upload.go @@ -60,8 +60,8 @@ 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{ @@ -71,8 +71,7 @@ func (a *UploadAPIService) UploadUpload(ctx context.Context) ApiUploadUploadRequ } // Execute executes the request -// -// @return DdiuploadResponse +// @return DdiuploadResponse func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*DdiuploadResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/keys/client.go b/keys/client.go index b3649a4..286dc91 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/docs/KerberosAPI.md b/keys/docs/KerberosAPI.md index 01fc80b..4e0fdb4 100644 --- a/keys/docs/KerberosAPI.md +++ b/keys/docs/KerberosAPI.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**KerberosList**](KerberosAPI.md#KerberosList) | **Get** /keys/kerberos | Retrieve Kerberos keys. [**KerberosRead**](KerberosAPI.md#KerberosRead) | **Get** /keys/kerberos/{id} | Retrieve the Kerberos key. [**KerberosUpdate**](KerberosAPI.md#KerberosUpdate) | **Patch** /keys/kerberos/{id} | Update the Kerberos key. +[**KeysKerberosPost**](KerberosAPI.md#KeysKerberosPost) | **Post** /keys/kerberos | @@ -302,3 +303,67 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## KeysKerberosPost + +> KeysListKerberosKeyResponse KeysKerberosPost(ctx).Body(body).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/infobloxopen/bloxone-go-client" +) + +func main() { + body := *openapiclient.NewKerberosKey() // KerberosKey | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KerberosAPI.KeysKerberosPost(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KerberosAPI.KeysKerberosPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeysKerberosPost`: KeysListKerberosKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KerberosAPI.KeysKerberosPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeysKerberosPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**KerberosKey**](KerberosKey.md) | | + +### Return type + +[**KeysListKerberosKeyResponse**](KeysListKerberosKeyResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/keys/model_keys_tsig_key.go b/keys/model_keys_tsig_key.go index 9ebb444..8b8c5db 100644 --- a/keys/model_keys_tsig_key.go +++ b/keys/model_keys_tsig_key.go @@ -12,6 +12,7 @@ package keys import ( "encoding/json" + "fmt" "time" ) @@ -40,6 +41,8 @@ type KeysTSIGKey struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type _KeysTSIGKey KeysTSIGKey + // NewKeysTSIGKey instantiates a new KeysTSIGKey object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -367,6 +370,42 @@ func (o KeysTSIGKey) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *KeysTSIGKey) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "secret", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varKeysTSIGKey := _KeysTSIGKey{} + + err = json.Unmarshal(bytes, &varKeysTSIGKey) + + if err != nil { + return err + } + + *o = KeysTSIGKey(varKeysTSIGKey) + + return err +} + type NullableKeysTSIGKey struct { value *KeysTSIGKey isSet bool diff --git a/keys/model_upload_request.go b/keys/model_upload_request.go index bb985e6..4068948 100644 --- a/keys/model_upload_request.go +++ b/keys/model_upload_request.go @@ -12,6 +12,7 @@ package keys import ( "encoding/json" + "fmt" ) // checks if the UploadRequest type satisfies the MappedNullable interface at compile time @@ -29,6 +30,8 @@ type UploadRequest struct { Type UploadContentType `json:"type"` } +type _UploadRequest UploadRequest + // NewUploadRequest instantiates a new UploadRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -218,6 +221,42 @@ func (o UploadRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *UploadRequest) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "content", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUploadRequest := _UploadRequest{} + + err = json.Unmarshal(bytes, &varUploadRequest) + + if err != nil { + return err + } + + *o = UploadRequest(varUploadRequest) + + return err +} + type NullableUploadRequest struct { value *UploadRequest isSet bool diff --git a/keys/utils.go b/keys/utils.go index 54647cd..ac6ed2b 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 */