diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..e037eb790e8302bafe9cc926f223e923f937e904 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (C) 2024, Nemergent Solutions SL + Copyright (C) 2024, ETSI OCF + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 851981d85e0a731b2d7dd9adceaa84ebbdea621b..7d631c4dc79416d1e048531bda304d48c9d83c57 --- a/README.md +++ b/README.md @@ -1,93 +1,86 @@ -# clients-go +# CAPIF Go Clients +This repo groups together CAPIF clients implemented in Go by [Nemergent Solutions SL](https://nemergent-solutions.com/). CAPIF clients include: +- CAPIF admin client +- CAPIF provider client +- CAPIF invoker client -## Getting started +## Project structure -To make it easy for you to get started with GitLab, here's a list of recommended next steps. +Folder _cmd_ includes code related to the different CAPIF clients. +Folder _internal_ includes the implementation of the different 5G APIs needed for the clients. +The corresponding executable files are included in the root folder of the project, along with some additional useful files, including: -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! +- Example _config.yaml_ for configuring clients' execution +- Example *ServiceAPIDescription_SS_UserProfileRetrieval_example_localhost.json* Service API Description json file that can be published to CAPIF with the provider client -## Add your files +## Prerequisites -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: +Before being able to make use of the clients successfully, it is necessary to be able to interact with an instance of CAPIF. +In order to achieve that, it is possible to [launch an OpenCAPIF instance yourself](https://ocf.etsi.org/documentation/latest/gettingstarted/howtorun/), but it is also possible to [obtain access to OpenCAPIF sandbox](https://ocf.etsi.org/documentation/latest/sandbox/sandbox/). +The existence of a configuration file including the configuration to interact with the corresponding CAPIF instance is also needed for the execution of the clients. An example named _config.yaml_ is included as part of the repository. -``` -cd existing_repo -git remote add origin https://labs.etsi.org/rep/ocf/example-clients/clients-go.git -git branch -M main -git push -uf origin main -``` +## Set Up -## Integrate with your tools +In order to build the clients, the following command can be used from the root folder of the repository: -- [ ] [Set up project integrations](https://labs.etsi.org/rep/ocf/example-clients/clients-go/-/settings/integrations) + go build -o invoker_example_client ./cmd/go_capif_invoker_client/invoker_client.go -## Collaborate with your team +In order to run the clients, the following command can be used from the root folder of the repository: -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) + ./invoker_client -f -## Test and Deploy +In case of building the code, it is necessary to have [Go installed in the system](https://go.dev/doc/install). -Use the built-in continuous integration in GitLab. +## Execution of clients -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) +All the clients start their execution showing a menu with all the different commands that can be run, along with a description of what each command does. In order to execute a command, the user must write the name of the command and press Enter. The command _menu_ is a common one present in all the clients, which prints again the menu listing the available commands. -*** +### CAPIF Admin client -# Editing this README +This client offers functionality related with managing CAPIF users. -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. + ./admin_client -f config.yaml + * Command Description + * login Login as administrator in CAPIF and obtain the tokens required for admin operations + * refreshAdminToken Refresh the tokend of the administrator user + * createUser Register a new user into CAPIF + * getUsers List information of all te users registered in CAPIF + * deleteUser Remove a previously registered user from CAPIF -## Suggestions for a good README + 'menu' for help > -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. +### CAPIF Provider client -## Name -Choose a self-explaining name for your project. +This client offers functionality as Provider, allowing ultimately to publish API definitions to CAPIF. -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. + ./provider_client -f config.yaml + * Command Description + * getauth Authenticate with a CAPIF user, and gather the necessary token and certificate to perform provider onboarding + * onboardProvider Onboard as a provider into CAPIF + * offboardProvider Offboard a provider from CAPIF + * publishAPIs Publish a Service API Description to CAPIF + * unpublishAPI Remove a Service API Description from CAPIF -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. + 'menu' for help > -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. +### CAPIF Invoker client -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. +This client offers functionality as Invoker, allowing ultimately to discover API definitions from CAPIF. -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. + ./invoker_client -f config.yaml + * Command Description + * getauth Authenticate with a CAPIF user, and gather the necessary token and certificate to perform invoker onboarding + * onboardInvoker Onboard as an invoker into CAPIF + * offboardInvoker Offboard an invoker from CAPIF + * discoverAPIs Discover published Service API Descriptions from CAPIF + * createSecurityContext Request the creation of a security context needed to consume a published API + * accessTokenRequest Request the creation of the token necessary to consume a published API + * callServiceAPI Perform a call to a published API -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. + 'menu' for help > -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. +## 3GPP OpenAPI Specification for 5G APIs -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. +As previously mentioned, folder _internal_ includes the implementation of the different 5G APIs needed for the clients. The OpenAPI Specification Files for 3GPP 5G Core Network available at [the corresponding 3GPP repository](https://forge.3gpp.org/rep/all/5G_APIs) have been used as a baseline for the APIs implementation. In order to generate the code, the [OpenAPI Generator project](https://openapi-generator.tech/) has been used. \ No newline at end of file diff --git a/ServiceAPIDescription_SS_UserProfileRetrieval_example_localhost.json b/ServiceAPIDescription_SS_UserProfileRetrieval_example_localhost.json new file mode 100755 index 0000000000000000000000000000000000000000..61340ebc18291787dc625221bb21fb0b4b5fd56b --- /dev/null +++ b/ServiceAPIDescription_SS_UserProfileRetrieval_example_localhost.json @@ -0,0 +1,51 @@ +{ + "apiName" : "ss-upr", + "aefProfiles": [ + { + "aefId": "Identifier of the API exposing function", + "versions": [ + { + "apiVersion": "v1", + "expiry": "2026-11-30T10:32:02.004Z", + "resources": [ + { + "resourceName": "VAL services endpoint", + "commType": "REQUEST_RESPONSE", + "uri": "/val-services", + "operations": [ + "GET" + ], + "description": "Retrieve VAL User or VAL UE profile information" + } + ] + } + ], + "protocol": "HTTP_1_1", + "dataFormat": "JSON", + "securityMethods": ["Oauth"], + "interfaceDescriptions": [ + { + "ipv4Addr": "localhost", + "port": 8085, + "securityMethods": ["Oauth"] + } + ] + } + ], + "description": "API for SEAL User Profile Retrieval", + "supportedFeatures": "0", + "shareableInfo": { + "isShareable": true, + "capifProvDoms": [ + "List of CAPIF provider domains to which the service API information to be shared" + ] + }, + "serviceAPICategory": "string", + "apiSuppFeats": "fffff", + "pubApiPath": { + "ccfIds": [ + "List of CCF identifiers where the service API is already published" + ] + }, + "ccfId": "CAPIF core function identifier" +} diff --git a/admin_client b/admin_client new file mode 100755 index 0000000000000000000000000000000000000000..0502d8fd0d0c69d14b5b00e8ee36b829407391cf Binary files /dev/null and b/admin_client differ diff --git a/cmd/go_capif_admin_client/admin_client.go b/cmd/go_capif_admin_client/admin_client.go new file mode 100644 index 0000000000000000000000000000000000000000..4b03dbdf7013b5605af78855dcf49a724b91d8f6 --- /dev/null +++ b/cmd/go_capif_admin_client/admin_client.go @@ -0,0 +1,468 @@ +/* +* Copyright (C) 2024, Nemergent Solutions SL + */ + +package main + +import ( + "GolangCapifApis/internal/CapifApiInvokerManagement" + "GolangCapifApis/internal/CapifApiProviderManagement" + "bufio" + "bytes" + "crypto/tls" + "crypto/x509" + "encoding/json" + "flag" + "fmt" + "io" + "log" + "net/http" + "os" + "strings" + "syscall" + + "github.com/turret-io/go-menu/menu" + "golang.org/x/term" + "gopkg.in/yaml.v2" +) + +type Config struct { + CAPIF struct { + CapifUserUsername string `yaml:"capif_user_username"` + CapifUserPassword string `yaml:"capif_user_password"` + RegisterHostname string `yaml:"register_hostname"` + RegisterPort string `yaml:"register_port"` + CapifcoreHostname string `yaml:"capifcore_hostname"` + CapifcorePort string `yaml:"capifcore_port"` + } `yaml:"capif"` +} + +type getAuthDetails struct { + AcessToken *string `json:"access_token"` + CaRoot *string `json:"ca_root"` + CcfApiOnboardingURL *string `json:"ccf_api_onboarding_url"` + CcfDiscoverURL *string `json:"ccf_discover_url"` + CcfOnboardingURL *string `json:"ccf_onboarding_url"` + CcfPublishURL *string `json:"ccf_publish_url"` + CcfSecurityURL *string `json:"ccf_security_url"` + Message *string `json:"message"` +} + +type loginDetails struct { + AccessToken *string `json:"access_token"` + RefreshToken *string `json:"refresh_token"` +} + +type createUserDetails struct { + Username string `json:"username"` + Password string `json:"password"` + Enterprise string `json:"enterprise"` + Country string `json:"country"` + Email string `json:"email"` + Purpose string `json:"purpose"` + Phone string `json:"phone_number,omitempty"` + Web string `json:"company_web,omitempty"` + Description string `json:"description,omitempty"` +} + +var accessToken string = "" +var refreshToken string = "" +var providerIds []string +var invokerIds []string +var getAuthDet *getAuthDetails +var apiProvEnDet *CapifApiProviderManagement.APIProviderEnrolmentDetails +var apiProvFuncAEFDet CapifApiProviderManagement.APIProviderFunctionDetails +var apiProvFuncAMFDet CapifApiProviderManagement.APIProviderFunctionDetails +var apiProvFuncAPFDet CapifApiProviderManagement.APIProviderFunctionDetails +var apiInvEnDet *CapifApiInvokerManagement.APIInvokerEnrolmentDetails + +var cfg Config + +func main() { + + var configFilePath string + flag.StringVar(&configFilePath, "f", "config.yaml", "Config file path") + flag.Parse() + readConfigFile(&cfg, configFilePath) + + commandOptions := []menu.CommandOption{ + menu.CommandOption{"login", "Login as administrator in CAPIF and obtain the tokens required for admin operations", login}, + menu.CommandOption{"refreshAdminToken", "Refresh the tokend of the administrator user", refreshAdminToken}, + menu.CommandOption{"createUser", "Register a new user into CAPIF", createUser}, + menu.CommandOption{"getUsers", "List information of all te users registered in CAPIF", getUsers}, + menu.CommandOption{"deleteUser", "Remove a previously registered user from CAPIF", deleteUser}, + //menu.CommandOption{"getProviders", "Runs getProviders - WIP", getProviders}, + //menu.CommandOption{"getInvokers", "Runs getInvokers - WIP", getInvokers}, + } + menuOptions := menu.NewMenuOptions("'menu' for help > ", 0) + + menu := menu.NewMenu(commandOptions, menuOptions) + menu.Start() + +} + +func login(args ...string) error { + + reader := bufio.NewReader(os.Stdin) + //Ask for username + var username string = "username" + fmt.Println("Insert username for login: ") + username, _ = reader.ReadString('\n') + username = strings.Replace(username, "\n", "", -1) + //Ask for password + var passwd string = "password" + fmt.Println("Insert password for login: ") + bytePasswd, _ := term.ReadPassword(int(syscall.Stdin)) + passwd = string(bytePasswd) + fmt.Println("Username inserted for login is: ", username) + fmt.Println("Password inserted for login is: ", passwd) + + //Send request to /login endpoint with authorization header using username and password + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/login" + fmt.Println("registerUrl: ", registerUrl) + //req, err := http.NewRequest("POST", "https://register:8084/login", nil) + req, err := http.NewRequest("POST", registerUrl, nil) + req.SetBasicAuth(username, passwd) + resp, err := client.Do(req) + fmt.Println("Status code: ", resp.StatusCode) + if err != nil { + fmt.Println(err) + return nil + } + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + var loginDet loginDetails + if err := json.Unmarshal(body, &loginDet); err != nil { + fmt.Println("Can not unmarshal JSON") + } else { + accessToken = *loginDet.AccessToken + refreshToken = *loginDet.RefreshToken + } + + return nil +} + +func refreshAdminToken(args ...string) error { + + //Send request to /refresh endpoint with authorization header using refreshToken + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/refresh" + fmt.Println("registerUrl: ", registerUrl) + //req, err := http.NewRequest("POST", "https://register:8084/login", nil) + req, err := http.NewRequest("POST", registerUrl, nil) + var bearer string = "Bearer " + refreshToken + req.Header.Add("Authorization", bearer) + + resp, err := client.Do(req) + fmt.Println("Status code: ", resp.StatusCode) + if err != nil { + fmt.Println(err) + return nil + } + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + if resp.StatusCode == 200 { + var loginDet loginDetails + if err := json.Unmarshal(body, &loginDet); err != nil { + fmt.Println("Can not unmarshal JSON") + } else { + accessToken = *loginDet.AccessToken + } + } + + return nil +} + +func createUser(args ...string) error { + + createUserDet := getCreateUserDetails() + body, error := json.Marshal(createUserDet) + if error != nil { + panic(error) + } + //Send request to /createUser endpoint with Bearer indicating the access token of the admin user + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/createUser" + //req, err := http.NewRequest("POST", "https://register:8084/createUser", bytes.NewBuffer(body)) + req, err := http.NewRequest("POST", registerUrl, bytes.NewBuffer(body)) + var bearer string = "Bearer " + accessToken + req.Header.Add("Authorization", bearer) + req.Header.Add("Content-type", "application/json") + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + body, error = io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + fmt.Println("Output of createUser") + return nil +} + +func getUsers(args ...string) error { + + //Send request to /getUsers endpoint with authorization header set to admin access token + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/getUsers" + req, err := http.NewRequest("GET", registerUrl, nil) + var bearer string = "Bearer " + accessToken + req.Header.Add("Authorization", bearer) + req.Header.Add("Content-type", "application/json") + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + fmt.Println("Output of getUsers") + return nil +} + +// TODO - Result as of 11/07/2024 - Unauthorized, User role must be superadmin +func getInvokers(args ...string) error { + + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + "/helper/getInvokers" + req, err := http.NewRequest("GET", registerUrl, nil) + var bearer string = "Bearer " + accessToken + req.Header.Add("Authorization", bearer) + req.Header.Add("Content-type", "application/json") + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + fmt.Println("Output of getInvokers") + return nil +} + +func deleteUser(args ...string) error { + + //Send request to /deleteUser endpoint with Bearer indicating the access token of the admin user + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + + //TODO - Request uuid or take it from somewhere - Save uuid and username when creating it? + reader := bufio.NewReader(os.Stdin) + //Ask for user uuid + var userUuid string = "uuid" + fmt.Println("Insert user uuid for user to delete: ") + userUuid, _ = reader.ReadString('\n') + userUuid = strings.Replace(userUuid, "\n", "", -1) + + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/deleteUser/" + userUuid + //url := "https://register:8084/deleteUser/" + userUuid + req, err := http.NewRequest("DELETE", registerUrl, nil) + var bearer string = "Bearer " + accessToken + req.Header.Add("Authorization", bearer) + req.Header.Add("Content-type", "application/json") + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + fmt.Println("Output of deleteUser") + + return nil +} + +func getCreateUserDetails() createUserDetails { + reader := bufio.NewReader(os.Stdin) + var createUserDet createUserDetails + + //Ask for username + var username string = "username" + fmt.Println("Insert username for new user: ") + username, _ = reader.ReadString('\n') + username = strings.Replace(username, "\n", "", -1) + createUserDet.Username = username + //Ask for username + var password string = "password" + fmt.Println("Insert password for new user: ") + password, _ = reader.ReadString('\n') + password = strings.Replace(password, "\n", "", -1) + createUserDet.Password = password + //Ask for username + var enterprise string = "enterprise" + fmt.Println("Insert enterprise for new user: ") + enterprise, _ = reader.ReadString('\n') + enterprise = strings.Replace(enterprise, "\n", "", -1) + createUserDet.Enterprise = enterprise + //Ask for username + var country string = "country" + fmt.Println("Insert country for new user: ") + country, _ = reader.ReadString('\n') + country = strings.Replace(country, "\n", "", -1) + createUserDet.Country = country + //Ask for username + var email string = "email" + fmt.Println("Insert email for new user: ") + email, _ = reader.ReadString('\n') + email = strings.Replace(email, "\n", "", -1) + createUserDet.Email = email + //Ask for username + var purpose string = "purpose" + fmt.Println("Insert purpose for new user: ") + purpose, _ = reader.ReadString('\n') + purpose = strings.Replace(purpose, "\n", "", -1) + createUserDet.Purpose = purpose + + return createUserDet +} + +// TODO - Result as of 11/07/2024 - Unauthorized, User role must be superadmin +func getProviders(args ...string) error { + + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + "/helper/getProviders" + //req, err := http.NewRequest("GET", "https://register/helper/getProviders", nil) + req, err := http.NewRequest("GET", registerUrl, nil) + var bearer string = "Bearer " + accessToken + req.Header.Add("Authorization", bearer) + req.Header.Add("Content-type", "application/json") + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + fmt.Println(string(body)) + defer resp.Body.Close() + + fmt.Println("Output of getProviders") + return nil +} + +func httpClientCACert() *http.Client { + + // Get the SystemCertPool, continue with an empty pool on error + rootCAs, _ := x509.SystemCertPool() + if rootCAs == nil { + rootCAs = x509.NewCertPool() + } + + // Read in the cert file + certs, err := os.ReadFile("ca_root.crt") + if err != nil { + log.Fatalf("Failed to append ca_root.crt to RootCAs: %v", err) + } + + // Append our cert to the system pool + if ok := rootCAs.AppendCertsFromPEM(certs); !ok { + log.Println("No certs appended, using system certs only") + } + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + RootCAs: rootCAs, + }, + }, + } + + return client +} + +func readConfigFile(cfg *Config, configFilePath string) { + + f, err := os.Open(configFilePath) + if err != nil { + fmt.Printf("Unable to open configution file in path (%s): %v \n", configFilePath, err) + os.Exit(2) + } + defer f.Close() + + decoder := yaml.NewDecoder(f) + err = decoder.Decode(cfg) + if err != nil { + fmt.Printf("Unable to decode configution file \n") + os.Exit(2) + } + +} diff --git a/cmd/go_capif_invoker_client/invoker_client.go b/cmd/go_capif_invoker_client/invoker_client.go new file mode 100644 index 0000000000000000000000000000000000000000..4fb211bbf82567ae1bc0321b3f9dbfbdafdca849 --- /dev/null +++ b/cmd/go_capif_invoker_client/invoker_client.go @@ -0,0 +1,815 @@ +/* +* Copyright (C) 2024, Nemergent Solutions SL + */ + +package main + +import ( + "GolangCapifApis/internal/CapifApiInvokerManagement" + "GolangCapifApis/internal/CapifDiscoverService" + "GolangCapifApis/internal/CapifSecurity" + "bufio" + "bytes" + "context" + "crypto/rand" + "crypto/rsa" + "crypto/tls" + "crypto/x509" + "crypto/x509/pkix" + "encoding/json" + "encoding/pem" + "flag" + "fmt" + "io" + "log" + "net/http" + "os" + "strconv" + "strings" + "syscall" + + "github.com/turret-io/go-menu/menu" + "golang.org/x/term" + "gopkg.in/yaml.v2" +) + +type getAuthDetails struct { + AcessToken *string `json:"access_token"` + CaRoot *string `json:"ca_root"` + CcfApiOnboardingURL *string `json:"ccf_api_onboarding_url"` + CcfDiscoverURL *string `json:"ccf_discover_url"` + CcfOnboardingURL *string `json:"ccf_onboarding_url"` + CcfPublishURL *string `json:"ccf_publish_url"` + CcfSecurityURL *string `json:"ccf_security_url"` + Message *string `json:"message"` +} + +type loginDetails struct { + AccessToken *string `json:"access_token"` + RefreshToken *string `json:"refresh_token"` +} + +type Config struct { + CAPIF struct { + CapifUserUsername string `yaml:"capif_user_username"` + CapifUserPassword string `yaml:"capif_user_password"` + RegisterHostname string `yaml:"register_hostname"` + RegisterPort string `yaml:"register_port"` + CapifcoreHostname string `yaml:"capifcore_hostname"` + CapifcorePort string `yaml:"capifcore_port"` + } `yaml:"capif"` +} + +var accessToken string = "" +var refreshToken string = "" +var providerIds []string +var invokerIds []string +var getAuthDet *getAuthDetails +var apiInvEnDet *CapifApiInvokerManagement.APIInvokerEnrolmentDetails +var discApis *CapifDiscoverService.DiscoveredAPIs +var servSec *CapifSecurity.ServiceSecurity +var accessTokenRsp *CapifSecurity.AccessTokenRsp + +var cfg Config + +func main() { + + var configFilePath string + flag.StringVar(&configFilePath, "f", "config.yaml", "Config file path") + flag.Parse() + readConfigFile(&cfg, configFilePath) + + commandOptions := []menu.CommandOption{ + menu.CommandOption{"getauth", "Authenticate with a CAPIF user, and gather the necessary token and certificate to perform invoker onboarding", getauth}, + menu.CommandOption{"onboardInvoker", "Onboard as an invoker into CAPIF", onboardInvoker}, + menu.CommandOption{"offboardInvoker", "Offboard an invoker from CAPIF", offboardInvoker}, + menu.CommandOption{"discoverAPIs", "Discover published Service API Descriptions from CAPIF", discoverAPIs}, + menu.CommandOption{"createSecurityContext", "Request the creation of a security context needed to consume a published API", createSecurityContext}, + menu.CommandOption{"accessTokenRequest", "Request the creation of the token necessary to consume a published API", accessTokenRequest}, + menu.CommandOption{"callServiceAPI", "Perform a call to a published API", callServiceAPI}, + } + menuOptions := menu.NewMenuOptions("'menu' for help > ", 0) + + menu := menu.NewMenu(commandOptions, menuOptions) + menu.Start() + +} + +func getauth(args ...string) error { + + reader := bufio.NewReader(os.Stdin) + //Ask for username + var username string = "username" + fmt.Println("Insert username for getAuth: ") + username, _ = reader.ReadString('\n') + username = strings.Replace(username, "\n", "", -1) + //Ask for password + var passwd string = "password" + fmt.Println("Insert password for getAuth: ") + bytePasswd, _ := term.ReadPassword(int(syscall.Stdin)) + passwd = string(bytePasswd) + + //Send request to /getauth endpoint with authorization header using username and password + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/getauth" + //req, err := http.NewRequest("GET", "https://register:8084/getauth", nil) + req, err := http.NewRequest("GET", registerUrl, nil) + req.SetBasicAuth(username, passwd) + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + /* + resp, httpRes, err := apiClient.DefaultAPI.RegistrationsPostExecute(regPostReq) + localVarHeaderParams := make(map[string]string) + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + localVarHTTPResponse, err := a.client.callAPI(req) + */ + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + + var prettyJSON bytes.Buffer + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + + defer resp.Body.Close() + + //var getAuthDet getAuthDetails + if err := json.Unmarshal(body, &getAuthDet); err != nil { + fmt.Println("Can not unmarshal JSON") + } else { + //Save CA root certificate + //caFile, error := os.Create("ca_root.pem") + caFile, err := os.Create("ca_root.crt") + if error != nil { + panic(err) + } + defer caFile.Close() + _, err = caFile.Write([]byte(*getAuthDet.CaRoot)) + if error != nil { + panic(err) + } + accessTokenFile, err := os.Create("accessToken.txt") + if error != nil { + panic(err) + } + defer accessTokenFile.Close() + _, err = accessTokenFile.Write([]byte(*getAuthDet.AcessToken)) + if error != nil { + panic(err) + } + } + + return nil +} + +// ------------------------------------------ +// CAPIF API Invoker Management API Client +// ------------------------------------------ +func onboardInvoker(args ...string) error { + + if getAuthDet != nil { + + configuration := CapifApiInvokerManagement.NewConfiguration() + client := httpClientCACert() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifApiInvokerManagement.NewAPIClient(configuration) + + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifApiInvokerManagement.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + + apiInvEnDet = CapifApiInvokerManagement.NewAPIInvokerEnrolmentDetailsWithDefaults() + + //(*getAuthDet.AcessToken) + + apiInvEnDet.SetSupportedFeatures("fff") + apiInvEnDet.SetApiInvokerInformation("Nemergent MCX SEAL Invoker") + apiInvEnDet.SetNotificationDestination("http://example.com") //TODO + + onboardingInfo := CapifApiInvokerManagement.NewOnboardingInformationWithDefaults() + apiInvPubKey := generateCSR("Invoker") + onboardingInfo.SetApiInvokerPublicKey(apiInvPubKey) + apiInvEnDet.SetOnboardingInformation(*onboardingInfo) + + serviceApisPostReq := apiClient.DefaultAPI.OnboardedInvokersPost(ctx) + serviceApisPostReq = serviceApisPostReq.APIInvokerEnrolmentDetails(*apiInvEnDet) + resp, httpRes, err := apiClient.DefaultAPI.OnboardedInvokersPostExecute(serviceApisPostReq) + + if err != nil { + fmt.Println(err) + fmt.Println("Status code: ", httpRes.StatusCode) + } + + var prettyJSON bytes.Buffer + body, error := io.ReadAll(httpRes.Body) + if error != nil { + fmt.Println(error) + } + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + + //fmt.Println(resp) + //fmt.Println(httpRes) + //fmt.Println(err) + + if httpRes.StatusCode == 201 { + //TODO - Get header Location which contains the URI of the newly created resource, + //according to the structure {apiRoot}/published-apis/v1/{apfId}/service-apis/{serviceApiId} + serviceAPILocation, _ := httpRes.Location() + fmt.Println("URI of the new service API is: ", serviceAPILocation) + serviceAPILocationString := serviceAPILocation.String() + slicedLocation := strings.Split(serviceAPILocationString, "/") + invokerId := slicedLocation[len(slicedLocation)-1] + invokerIds = append(providerIds, invokerId) + apiInvEnDet = resp + saveCert("Invoker", apiInvEnDet.OnboardingInformation.ApiInvokerCertificate) + } + + } else { + fmt.Println("ERROR. Be sure to get auth in order to onboard an Invoker") + } + + return nil +} + +// TODO - Result as of 09/07/2024 - Unauthorized, user role must be invoker - Seems that it follows old release 0 logic +func offboardInvoker(args ...string) error { + fmt.Println("Output of offboardInvoker") + + if getAuthDet != nil { + + configuration := CapifApiInvokerManagement.NewConfiguration() + client := httpClientInvokerCerts() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifApiInvokerManagement.NewAPIClient(configuration) + + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifApiInvokerManagement.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + + reader := bufio.NewReader(os.Stdin) + //Ask for Invoker ID + var invokerId string = "invokerId" + fmt.Println("Insert Invoker ID for invoker to offboard: ") + invokerId, _ = reader.ReadString('\n') + invokerId = strings.Replace(invokerId, "\n", "", -1) + + serviceApisDelReq := apiClient.DefaultAPI.OnboardedInvokersOnboardingIdDelete(ctx, invokerId) + httpRes, err := apiClient.DefaultAPI.OnboardedInvokersOnboardingIdDeleteExecute(serviceApisDelReq) + if err != nil { + fmt.Println(err) + } + + fmt.Println("Status Code received: ", httpRes.StatusCode) + + if httpRes.StatusCode == 204 { + fmt.Println("Successfully offboarded Invoker with ID", invokerId) + } else { + fmt.Println("Error offboarding Invoker with ID", invokerId) + } + + //fmt.Println(httpRes) + //fmt.Println(err) + + } else { + fmt.Println("ERROR. Be sure to get auth in order to offboard an Invoker") + } + + return nil + +} + +//APF5c95abd5a8124c192f11d2a26f439e + +// ------------------------------------------ +// CAPIF Discover Service API Client +// ------------------------------------------ +func discoverAPIs(args ...string) error { + + configuration := CapifDiscoverService.NewConfiguration() + client := httpClientInvokerCerts() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifDiscoverService.NewAPIClient(configuration) + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifDiscoverService.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + serviceApisGetReq := apiClient.DefaultAPI.AllServiceAPIsGet(ctx) + if apiInvEnDet != nil { + serviceApisGetReq = serviceApisGetReq.ApiInvokerId(*apiInvEnDet.ApiInvokerId) + } + resp, httpRes, err := apiClient.DefaultAPI.AllServiceAPIsGetExecute(serviceApisGetReq) + + //fmt.Println(httpRes) + if resp == nil && httpRes == nil { + fmt.Println(err) + fmt.Println("Be sure to onboard an Invoker in order to be able to discover APIs") + } else if httpRes.StatusCode == 404 { + fmt.Println("No API found") + } else if httpRes.StatusCode == 200 { + var prettyJSON bytes.Buffer + body, error := io.ReadAll(httpRes.Body) + if error != nil { + fmt.Println(error) + } + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + //Save response body + discApis = resp + fmt.Println("APIs discovered: ") + for index, servApiDesc := range discApis.ServiceAPIDescriptions { + fmt.Println(index, ". ", servApiDesc.ApiName) + } + } + + return nil +} + +// ------------------------------------------ +// CAPIF Security API Client +// ------------------------------------------ +func createSecurityContext(args ...string) error { + + if invokerIds == nil { + fmt.Println("Error. No Invoker onboarded") + return nil + } + configuration := CapifSecurity.NewConfiguration() + client := httpClientInvokerCerts() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifSecurity.NewAPIClient(configuration) + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifSecurity.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + trustedInvokerPutReq := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdPut(ctx, invokerIds[0]) //TODO - Modify hardcoded first invoker ID + + var SecMethString string = "Oauth" + secMeth := CapifSecurity.SecurityMethod{String: &SecMethString} + var secInfo CapifSecurity.SecurityInformation + secInfo.SetPrefSecurityMethods([]CapifSecurity.SecurityMethod{secMeth}) + + apiIndex := selectApiIndex() + if apiIndex == -1 || apiIndex >= len(discApis.ServiceAPIDescriptions) { + fmt.Println("Error selecting API for Security Context") + return nil + } + + secInfo.SetAefId(discApis.ServiceAPIDescriptions[apiIndex].AefProfiles[0].AefId) + secInfo.SetApiId(*discApis.ServiceAPIDescriptions[apiIndex].ApiId) + + var servSecurity CapifSecurity.ServiceSecurity + servSecurity.SetSecurityInfo([]CapifSecurity.SecurityInformation{secInfo}) + servSecurity.SetNotificationDestination("http://example.com") //TODO + //servSecurity.SetRequestTestNotification() //Optional + //servSecurity.SetWebsockNotifConfig() //Optional + //servSecurity.SetSupportedFeatures() //Optional + + trustedInvokerPutReq = trustedInvokerPutReq.ServiceSecurity(servSecurity) + resp, httpRes, err := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdPutExecute(trustedInvokerPutReq) + + //fmt.Println(resp) + //fmt.Println(httpRes) + if resp == nil && httpRes == nil { + fmt.Println(err) + fmt.Println("Error in Security Context creation") + } else if httpRes.StatusCode == 404 { + fmt.Println("Security context not found for the API Invoker") + } else if httpRes.StatusCode == 201 { + var prettyJSON bytes.Buffer + body, error := io.ReadAll(httpRes.Body) + if error != nil { + fmt.Println(error) + } + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + servSec = resp + } + + return nil +} + +func accessTokenRequest(args ...string) error { + + if invokerIds == nil { + fmt.Println("Error. No Invoker onboarded") + return nil + } + configuration := CapifSecurity.NewConfiguration() + client := httpClientInvokerCerts() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifSecurity.NewAPIClient(configuration) + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifSecurity.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + secsSecurityIdPostReq := apiClient.DefaultAPI.SecuritiesSecurityIdTokenPost(ctx, invokerIds[0]) //TODO - Modify hardcoded first invoker ID + + secsSecurityIdPostReq = secsSecurityIdPostReq.GrantType("client_credentials") + secsSecurityIdPostReq = secsSecurityIdPostReq.ClientId(invokerIds[0]) + secsSecurityIdPostReq = secsSecurityIdPostReq.ClientSecret("string") + apiIndex := selectApiIndex() + if apiIndex == -1 || apiIndex >= len(discApis.ServiceAPIDescriptions) { + fmt.Println("Error selecting API for Access Token") + return nil + } + secsSecurityIdPostReq = secsSecurityIdPostReq.Scope("3gpp#" + discApis.ServiceAPIDescriptions[apiIndex].AefProfiles[0].AefId + ":" + discApis.ServiceAPIDescriptions[apiIndex].ApiName) + + resp, httpRes, err := apiClient.DefaultAPI.SecuritiesSecurityIdTokenPostExecute(secsSecurityIdPostReq) + + //fmt.Println(resp) + //fmt.Println(httpRes) + if resp == nil && httpRes == nil { + fmt.Println(err) + fmt.Println("Error in Access Token Request") + } else if httpRes.StatusCode == 200 { + var prettyJSON bytes.Buffer + body, error := io.ReadAll(httpRes.Body) + if error != nil { + fmt.Println(error) + } + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + accessTokenRsp = resp + } + + return nil +} + +func callServiceAPI(args ...string) error { + + if accessTokenRsp == nil { + fmt.Println("Error. No Access Token requested for Service API calling") + return nil + } + var err error + apiIndex := selectApiIndex() + if apiIndex == -1 || apiIndex >= len(discApis.ServiceAPIDescriptions) { + fmt.Println("Error selecting API for service call") + return nil + } + var servAPIDesc CapifDiscoverService.ServiceAPIDescription = discApis.ServiceAPIDescriptions[apiIndex] + var resources []CapifDiscoverService.Resource = servAPIDesc.AefProfiles[0].Versions[0].Resources + resourceIndex := selectResourceIndex(apiIndex) + + method := selectOperation(apiIndex, resourceIndex) + if method == "cancel" { + fmt.Println("Command execution canceled") + return nil + } + + var body *bytes.Buffer + if method == http.MethodPost || method == http.MethodPut || method == http.MethodPatch { + body = selectRequestBody() + } + var url string + url = fmt.Sprintf("http://%s:%d/%s/%s%s", + *servAPIDesc.AefProfiles[0].InterfaceDescriptions[0].Ipv4Addr, + *servAPIDesc.AefProfiles[0].InterfaceDescriptions[0].Port, + *&servAPIDesc.ApiName, + *&servAPIDesc.AefProfiles[0].Versions[0].ApiVersion, + resources[resourceIndex].Uri) + var req *http.Request + if body != nil { + req, err = http.NewRequest(method, url, body) + } else { + req, err = http.NewRequest(method, url, nil) + } + if err != nil { + fmt.Println(err) + return nil + } + var bearer string = "Bearer " + accessTokenRsp.AccessToken + req.Header.Add("Authorization", bearer) + req.Header.Add("Content-type", "application/json") + //Send request to service API endpoint with Bearer indicating the access token gathered + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + resp, err := client.Do(req) + if err != nil { + fmt.Println(err) + return nil + } + + var respBody []byte + respBody, err = io.ReadAll(resp.Body) + if err != nil { + fmt.Println(err) + } + if resp.StatusCode != 404 { + fmt.Println("Status Code received:", resp.StatusCode) + var prettyJSON bytes.Buffer + err = json.Indent(&prettyJSON, respBody, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + //fmt.Println(string(respBody)) + } else { + fmt.Println("Response with 404 Not Found code received") + } + + defer resp.Body.Close() + + return nil +} + +func selectRequestBody() *bytes.Buffer { + + reader := bufio.NewReader(os.Stdin) + fmt.Print("Enter path to Request JSON body file: ") + requestBodyJSONPath, _ := reader.ReadString('\n') + requestBodyJSONPath = strings.Replace(requestBodyJSONPath, "\n", "", -1) + fmt.Println(requestBodyJSONPath) + dat, err := os.ReadFile(requestBodyJSONPath) + if err != nil { + fmt.Println(err) + return nil + } else { + bodyBuf := &bytes.Buffer{} + _, err = bodyBuf.Write(dat) + if err != nil { + fmt.Println(err) + return nil + } + return bodyBuf + } + +} + +func selectOperation(apiIndex, resourceIndex int) string { + + reader := bufio.NewReader(os.Stdin) + var httpOperation string = "httpOperation" + operationsBytes := make([][]byte, len(discApis.ServiceAPIDescriptions[apiIndex].AefProfiles[0].Versions[0].Resources[resourceIndex].Operations)) + operationsString := make([]string, len(operationsBytes)) + for idx, operation := range discApis.ServiceAPIDescriptions[apiIndex].AefProfiles[0].Versions[0].Resources[resourceIndex].Operations { + operationsBytes[idx], _ = operation.MarshalJSON() + operationsString[idx] = string(operationsBytes[idx]) + operationsString[idx] = strings.Replace(operationsString[idx], "\"", "", -1) + } + for { + fmt.Println("Select API resource operation among those available: ", operationsString) + fmt.Println("Indicate HTTP operation (or 'cancel' to cancel command) and press Enter") + httpOperation, _ = reader.ReadString('\n') + httpOperation = strings.Replace(httpOperation, "\n", "", -1) + for _, operation := range operationsString { + if (operation == httpOperation) || (httpOperation == "cancel") { + return httpOperation + } + } + fmt.Println("No match with any valid HTTP method") + } +} + +func selectResourceIndex(apiIndex int) int { + + if discApis == nil { + fmt.Println("Error. No Service APIs previously discovered") + return -1 + } + reader := bufio.NewReader(os.Stdin) + //Ask for API + var resourceIndexString string = "apiIndexString" + fmt.Println("Select API resource among those available: ") + for index, resource := range discApis.ServiceAPIDescriptions[apiIndex].AefProfiles[0].Versions[0].Resources { + fmt.Println(index, ". ", resource.ResourceName, ", with uri termination ", resource.Uri) + } + fmt.Println("Indicate number of resource and press Enter") + resourceIndexString, _ = reader.ReadString('\n') + resourceIndexString = strings.Replace(resourceIndexString, "\n", "", -1) + apiIndex, err := strconv.Atoi(resourceIndexString) + if err != nil { + fmt.Println(err) + fmt.Println("Error converting input to int") + return -1 + } + + return apiIndex +} + +func saveCert(fileName string, cert *string) { + + //Save CA root certificate + //caFile, error := os.Create("ca_root.pem") + certFile, error := os.Create(fileName + ".crt") + if error != nil { + panic(error) + } + defer certFile.Close() + _, error = certFile.Write([]byte(*cert)) + if error != nil { + panic(error) + } + +} + +func generateCSR(fileName string) string { + + privateKey, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + panic(err) + } + + privateKeyFile, err := os.Create(fileName + "-private-key.pem") + if err != nil { + panic(err) + } + defer privateKeyFile.Close() + + privateKeyBlock := &pem.Block{Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(privateKey)} + err = pem.Encode(privateKeyFile, privateKeyBlock) + if err != nil { + panic(err) + } + + csrTemplate := x509.CertificateRequest{ + Subject: pkix.Name{ + Country: []string{"ES"}, + Province: []string{"Bilbao"}, + Locality: []string{"Earth"}, + Organization: []string{"Nemergent"}, + OrganizationalUnit: []string{"IT"}, + CommonName: "www.nemergent-solutions.com", + }, + DNSNames: []string{"example.com", "www.example.com"}, + } + + csrDER, err := x509.CreateCertificateRequest(rand.Reader, &csrTemplate, privateKey) + if err != nil { + panic(err) + } + + csrFile, err := os.Create(fileName + "-csr.pem") + if err != nil { + panic(err) + } + defer csrFile.Close() + + csrBlock := &pem.Block{Type: "CERTIFICATE REQUEST", Bytes: csrDER} + err = pem.Encode(csrFile, csrBlock) + if err != nil { + panic(err) + } + + buf, _ := os.ReadFile(fileName + "-csr.pem") + + return string(buf) + +} + +func httpClientCACert() *http.Client { + + // Get the SystemCertPool, continue with an empty pool on error + rootCAs, _ := x509.SystemCertPool() + if rootCAs == nil { + rootCAs = x509.NewCertPool() + } + + // Read in the cert file + certs, err := os.ReadFile("ca_root.crt") + if err != nil { + log.Fatalf("Failed to append ca_root.crt to RootCAs: %v", err) + } + + // Append our cert to the system pool + if ok := rootCAs.AppendCertsFromPEM(certs); !ok { + log.Println("No certs appended, using system certs only") + } + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + RootCAs: rootCAs, + }, + }, + } + + return client +} + +func httpClientInvokerCerts() *http.Client { + + // Get the SystemCertPool, continue with an empty pool on error + rootCAs, _ := x509.SystemCertPool() + if rootCAs == nil { + rootCAs = x509.NewCertPool() + } + + // Read in the cert file + certs, err := os.ReadFile("ca_root.crt") + if err != nil { + log.Fatalf("Failed to append ca_root.crt to RootCAs: %v", err) + } + + // Append our cert to the system pool + if ok := rootCAs.AppendCertsFromPEM(certs); !ok { + log.Println("No certs appended, using system certs only") + } + // cert, _ := tls.LoadX509KeyPair("APF.crt", "client.key") + cert, _ := tls.LoadX509KeyPair("Invoker.crt", "Invoker-private-key.pem") + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + RootCAs: rootCAs, + Certificates: []tls.Certificate{cert}, + }, + }, + } + + return client +} + +func selectApiIndex() int { + + if discApis == nil { + fmt.Println("Error. No Service APIs previously discovered") + return -1 + } + reader := bufio.NewReader(os.Stdin) + //Ask for API + var apiIndexString string = "apiIndexString" + fmt.Println("Select API among those discovered: ") + for index, servApiDesc := range discApis.ServiceAPIDescriptions { + fmt.Println(index, ". ", servApiDesc.ApiName) + } + fmt.Println("Indicate number of API and press Enter") + apiIndexString, _ = reader.ReadString('\n') + apiIndexString = strings.Replace(apiIndexString, "\n", "", -1) + apiIndex, err := strconv.Atoi(apiIndexString) + if err != nil { + fmt.Println(err) + fmt.Println("Error converting input to int") + return -1 + } + + return apiIndex +} + +func readConfigFile(cfg *Config, configFilePath string) { + + f, err := os.Open(configFilePath) + if err != nil { + fmt.Printf("Unable to open configution file in path (%s): %v \n", configFilePath, err) + os.Exit(2) + } + defer f.Close() + + decoder := yaml.NewDecoder(f) + err = decoder.Decode(cfg) + if err != nil { + fmt.Printf("Unable to decode configution file \n") + os.Exit(2) + } + +} diff --git a/cmd/go_capif_provider_client/provider_client.go b/cmd/go_capif_provider_client/provider_client.go new file mode 100644 index 0000000000000000000000000000000000000000..891909d174fe55e27a132fd82dcc394ac729aa1f --- /dev/null +++ b/cmd/go_capif_provider_client/provider_client.go @@ -0,0 +1,657 @@ +/* +* Copyright (C) 2024, Nemergent Solutions SL + */ + +package main + +import ( + "GolangCapifApis/internal/CapifApiProviderManagement" + "GolangCapifApis/internal/CapifPublishService" + "bufio" + "bytes" + "context" + "crypto/rand" + "crypto/rsa" + "crypto/tls" + "crypto/x509" + "crypto/x509/pkix" + "encoding/json" + "encoding/pem" + "flag" + "fmt" + "io" + "log" + "net/http" + "os" + "strings" + "syscall" + + "github.com/turret-io/go-menu/menu" + "golang.org/x/term" + "gopkg.in/yaml.v2" +) + +type Config struct { + CAPIF struct { + CapifUserUsername string `yaml:"capif_user_username"` + CapifUserPassword string `yaml:"capif_user_password"` + RegisterHostname string `yaml:"register_hostname"` + RegisterPort string `yaml:"register_port"` + CapifcoreHostname string `yaml:"capifcore_hostname"` + CapifcorePort string `yaml:"capifcore_port"` + } `yaml:"capif"` +} + +type getAuthDetails struct { + AcessToken *string `json:"access_token"` + CaRoot *string `json:"ca_root"` + CcfApiOnboardingURL *string `json:"ccf_api_onboarding_url"` + CcfDiscoverURL *string `json:"ccf_discover_url"` + CcfOnboardingURL *string `json:"ccf_onboarding_url"` + CcfPublishURL *string `json:"ccf_publish_url"` + CcfSecurityURL *string `json:"ccf_security_url"` + Message *string `json:"message"` +} + +type loginDetails struct { + AccessToken *string `json:"access_token"` + RefreshToken *string `json:"refresh_token"` +} + +var accessToken string = "" +var refreshToken string = "" +var providerIds []string +var getAuthDet *getAuthDetails +var apiProvEnDet *CapifApiProviderManagement.APIProviderEnrolmentDetails +var apiProvFuncAEFDet CapifApiProviderManagement.APIProviderFunctionDetails +var apiProvFuncAMFDet CapifApiProviderManagement.APIProviderFunctionDetails +var apiProvFuncAPFDet CapifApiProviderManagement.APIProviderFunctionDetails +var serviceAPIDesc *CapifPublishService.ServiceAPIDescription + +var cfg Config + +func main() { + + var configFilePath string + flag.StringVar(&configFilePath, "f", "config.yaml", "Config file path") + flag.Parse() + readConfigFile(&cfg, configFilePath) + + commandOptions := []menu.CommandOption{ + menu.CommandOption{"getauth", "Authenticate with a CAPIF user, and gather the necessary token and certificate to perform provider onboarding", getauth}, + menu.CommandOption{"onboardProvider", "Onboard as a provider into CAPIF", onboardProvider}, + menu.CommandOption{"offboardProvider", "Offboard a provider from CAPIF", offboardProvider}, + menu.CommandOption{"publishAPIs", "Publish a Service API Description to CAPIF", publishAPIs}, + menu.CommandOption{"unpublishAPI", "Remove a Service API Description from CAPIF", unpublishAPI}, + } + menuOptions := menu.NewMenuOptions("'menu' for help > ", 0) + + menu := menu.NewMenu(commandOptions, menuOptions) + menu.Start() + +} + +func getauth(args ...string) error { + + reader := bufio.NewReader(os.Stdin) + //Ask for username + var username string = "username" + fmt.Println("Insert username for getAuth: ") + username, _ = reader.ReadString('\n') + username = strings.Replace(username, "\n", "", -1) + //Ask for password + var passwd string = "password" + fmt.Println("Insert password for getAuth: ") + bytePasswd, _ := term.ReadPassword(int(syscall.Stdin)) + passwd = string(bytePasswd) + + //Send request to /getauth endpoint with authorization header using username and password + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + }, + } + var registerUrl string = "https://" + cfg.CAPIF.RegisterHostname + ":" + cfg.CAPIF.RegisterPort + "/getauth" + //req, err := http.NewRequest("GET", "https://register:8084/getauth", nil) + req, err := http.NewRequest("GET", registerUrl, nil) + req.SetBasicAuth(username, passwd) + resp, err := client.Do(req) + if err != nil { + log.Fatal(err) + } + + /* + resp, httpRes, err := apiClient.DefaultAPI.RegistrationsPostExecute(regPostReq) + localVarHeaderParams := make(map[string]string) + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + localVarHTTPResponse, err := a.client.callAPI(req) + */ + + //Decode response and save all parameters + body, error := io.ReadAll(resp.Body) + if error != nil { + fmt.Println(error) + } + var prettyJSON bytes.Buffer + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + defer resp.Body.Close() + + //var getAuthDet getAuthDetails + if err := json.Unmarshal(body, &getAuthDet); err != nil { + fmt.Println("Can not unmarshal JSON") + } else { + //Save CA root certificate + //caFile, error := os.Create("ca_root.pem") + caFile, err := os.Create("ca_root.crt") + if error != nil { + panic(err) + } + defer caFile.Close() + _, err = caFile.Write([]byte(*getAuthDet.CaRoot)) + if error != nil { + panic(err) + } + accessTokenFile, err := os.Create("accessToken.txt") + if error != nil { + panic(err) + } + defer accessTokenFile.Close() + _, err = accessTokenFile.Write([]byte(*getAuthDet.AcessToken)) + if error != nil { + panic(err) + } + } + + return nil +} + +// ------------------------------------------ +// CAPIF API Provider Management API Client +// ------------------------------------------ +func onboardProvider(args ...string) error { + // Do something + fmt.Println("Output of onboardProvider") + + if getAuthDet != nil { + + configuration := CapifApiProviderManagement.NewConfiguration() + client := httpClientCACert() + configuration.HTTPClient = client + //configuration.Debug = true + fmt.Fprintf(os.Stdout, "URL: %s\n", configuration.Servers[0].URL) + + /* + mapString := make(map[string]string) + mapString["apiRoot"] = "test" + //newURL, _ := configuration.Servers.URL(0, mapString) + newURL, _ := configuration.ServerURL(0, mapString) + fmt.Fprintf(os.Stdout, "New URL: %s\n", newURL) + newnewURL, _ := configuration.ServerURLWithContext(context.Background(), "http://testendpoint") + fmt.Fprintf(os.Stdout, "New new URL: %s\n", newnewURL) + */ + + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifApiProviderManagement.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + + apiProvEnDet = CapifApiProviderManagement.NewAPIProviderEnrolmentDetailsWithDefaults() + apiProvEnDet.SetSuppFeat("fff") //TODO - Review this + apiProvEnDet.SetApiProvDomInfo("Nemergent CAPIF Provider") + apiProvEnDet.SetRegSec(*getAuthDet.AcessToken) + stringAEF := "AEF" + stringAMF := "AMF" + stringAPF := "APF" + apiProvFuncAEFDet.SetApiProvFuncRole(&stringAEF) + apiProvFuncAMFDet.SetApiProvFuncRole(&stringAMF) + apiProvFuncAPFDet.SetApiProvFuncRole(&stringAPF) + apiProvFuncAEFDet.SetApiProvFuncInfo("NEM AEF") + apiProvFuncAMFDet.SetApiProvFuncInfo("NEM AMF") + apiProvFuncAPFDet.SetApiProvFuncInfo("NEM APF") + apiProvPubKeyAEF := generateCSR("AEF") + apiProvPubKeyAMF := generateCSR("AMF") + apiProvPubKeyAPF := generateCSR("APF") + apiProvFuncAEFDet.SetRegInfo(*CapifApiProviderManagement.NewRegistrationInformation(apiProvPubKeyAEF)) + apiProvFuncAMFDet.SetRegInfo(*CapifApiProviderManagement.NewRegistrationInformation(apiProvPubKeyAMF)) + apiProvFuncAPFDet.SetRegInfo(*CapifApiProviderManagement.NewRegistrationInformation(apiProvPubKeyAPF)) + + apiProvFuncs := []CapifApiProviderManagement.APIProviderFunctionDetails{apiProvFuncAEFDet, apiProvFuncAMFDet, apiProvFuncAPFDet} + + apiProvEnDet.SetApiProvFuncs(apiProvFuncs) // Set Provider functions AEF, AMF, APF + + apiClient := CapifApiProviderManagement.NewAPIClient(configuration) + + //resp, httpRes, err := apiClient.DefaultAPI.RegistrationsPost(ctx).Execute() + regPostReq := apiClient.DefaultAPI.RegistrationsPost(ctx) // This generates a new default aPIProviderEnrolmentDetails + regPostReq = regPostReq.APIProviderEnrolmentDetails(*apiProvEnDet) + resp, httpRes, err := apiClient.DefaultAPI.RegistrationsPostExecute(regPostReq) + + var prettyJSON bytes.Buffer + body, error := io.ReadAll(httpRes.Body) + if error != nil { + fmt.Println(error) + } + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + + //fmt.Println(resp) + //fmt.Println(httpRes) + //fmt.Println(err) + + if err == nil { + if httpRes.StatusCode == 201 { + //TODO - Get header Location which contains the URI of the newly created resource, + //according to the structure {apiRoot}/api-provider-management/v1/registrations/{registrationId} + apiProvLocation, _ := httpRes.Location() + fmt.Println("URI of the new API Provider is: ", apiProvLocation) + apiProvLocationString := apiProvLocation.String() + slicedLocation := strings.Split(apiProvLocationString, "/") + providerId := slicedLocation[len(slicedLocation)-1] + providerIds = append(providerIds, providerId) + apiProvEnDet = resp + for _, detail := range apiProvEnDet.ApiProvFuncs { + saveCert(*detail.ApiProvFuncRole, detail.RegInfo.ApiProvCert) + if *detail.ApiProvFuncRole == "AEF" { + apiProvFuncAEFDet = detail + } else if *detail.ApiProvFuncRole == "AMF" { + apiProvFuncAMFDet = detail + } else if *detail.ApiProvFuncRole == "APF" { + apiProvFuncAPFDet = detail + } + } + } + } + } else { + fmt.Println("ERROR. Be sure to request access token in order to onboard a Provider") + } + + return nil +} + +func offboardProvider(args ...string) error { + fmt.Println("Output of offboardProvider") + + if getAuthDet != nil { + + configuration := CapifApiProviderManagement.NewConfiguration() + client := httpClientAMFCerts() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifApiProviderManagement.NewAPIClient(configuration) + + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifApiProviderManagement.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + + reader := bufio.NewReader(os.Stdin) + //Ask for Invoker ID + var providerId string = "providerId" + fmt.Println("Insert Provider ID for provider to offboard: ") + providerId, _ = reader.ReadString('\n') + providerId = strings.Replace(providerId, "\n", "", -1) + + regDelReq := apiClient.DefaultAPI.RegistrationsRegistrationIdDelete(ctx, providerId) + httpRes, err := apiClient.DefaultAPI.RegistrationsRegistrationIdDeleteExecute(regDelReq) + if err != nil { + fmt.Println(err) + } + + if httpRes.StatusCode == 204 { + fmt.Println("Successfully offboarded Provider with ID", providerId) + } else { + fmt.Println("Error offboarding Provider with ID", providerId) + } + + //fmt.Println(httpRes) + //fmt.Println(err) + + } else { + fmt.Println("ERROR. Be sure to request access token in order to offboard a Provider") + } + + return nil +} + +// ------------------------------------------ +// CAPIF Publish Service API +// ------------------------------------------ +func publishAPIs(args ...string) error { + // Do something + fmt.Println("Output of publishAPIs") + + if apiProvEnDet != nil { + + serviceAPIDesc = CapifPublishService.NewServiceAPIDescription("apiName") + + reader := bufio.NewReader(os.Stdin) + fmt.Print("Enter path to Service API Description JSON: ") + serviceApiDescJSONPath, _ := reader.ReadString('\n') + serviceApiDescJSONPath = strings.Replace(serviceApiDescJSONPath, "\n", "", -1) + fmt.Println(serviceApiDescJSONPath) + if serviceApiDescJSONPath == "" { + defaultserviceAPIDesc(serviceAPIDesc) + } else { + dat, err := os.ReadFile(serviceApiDescJSONPath) + if err != nil { + fmt.Println(err) + return nil + } else { + err := serviceAPIDesc.UnmarshalJSON(dat) + if err != nil { + fmt.Println(err) + return nil + } + } + } + + configuration := CapifPublishService.NewConfiguration() + client := httpClientProviderCerts() + configuration.HTTPClient = client + //configuration.Debug = true + apiClient := CapifPublishService.NewAPIClient(configuration) + + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifPublishService.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + + //resp, httpRes, err := apiClient.DefaultAPI.ApfIdServiceApisPost(context.Background(), apfId).Execute() + serviceAPIsPostReq := apiClient.DefaultAPI.ApfIdServiceApisPost(ctx, *apiProvFuncAPFDet.ApiProvFuncId) + serviceAPIDesc.AefProfiles[0].AefId = *apiProvFuncAEFDet.ApiProvFuncId + serviceAPIsPostReq = serviceAPIsPostReq.ServiceAPIDescription(*serviceAPIDesc) + resp, httpRes, err := apiClient.DefaultAPI.ApfIdServiceApisPostExecute(serviceAPIsPostReq) + + var prettyJSON bytes.Buffer + body, error := io.ReadAll(httpRes.Body) + if error != nil { + fmt.Println(error) + } + err = json.Indent(&prettyJSON, body, "", "\t") + if err != nil { + fmt.Println(err) + } else { + fmt.Println(prettyJSON.String()) + } + + //fmt.Println(resp) + //fmt.Println(httpRes) + //fmt.Println(err) + + if httpRes.StatusCode == 201 { + //TODO - Get header Location which contains the URI of the newly created resource, + //according to the structure {apiRoot}/published-apis/v1/{apfId}/service-apis/{serviceApiId} + serviceAPILocation, _ := httpRes.Location() + fmt.Println("URI of the new service API is: ", serviceAPILocation) + serviceAPIDesc = resp + } + } else { + fmt.Println("ERROR. Be sure to onboard a Provider in order to be able to publish APIs") + } + + return nil +} + +func unpublishAPI(args ...string) error { + + if apiProvEnDet != nil { + + configuration := CapifPublishService.NewConfiguration() + client := httpClientProviderCerts() + configuration.HTTPClient = client + configuration.Debug = true + apiClient := CapifPublishService.NewAPIClient(configuration) + + var capifcoreUrl string = "https://" + cfg.CAPIF.CapifcoreHostname + ":" + cfg.CAPIF.CapifcorePort + ctx := context.WithValue(context.Background(), CapifPublishService.ContextServerVariables, map[string]string{ + "apiRoot": capifcoreUrl, + //"apiRoot": "https://capifcore", + }) + + reader := bufio.NewReader(os.Stdin) + //Ask for API ID + var serviceApiId string = "ID" + fmt.Println("Insert service API ID to unpublish: ") + serviceApiId, _ = reader.ReadString('\n') + serviceApiId = strings.Replace(serviceApiId, "\n", "", -1) + + serviceAPIsDeleteReq := apiClient.DefaultAPI.ApfIdServiceApisServiceApiIdDelete(ctx, serviceApiId, *apiProvFuncAPFDet.ApiProvFuncId) + httpRes, err := apiClient.DefaultAPI.ApfIdServiceApisServiceApiIdDeleteExecute(serviceAPIsDeleteReq) + if err != nil { + fmt.Println(err) + } + + //fmt.Println(httpRes) + //fmt.Println(err) + + if httpRes.StatusCode == 204 { + fmt.Println("Successfully unpublished API with ID", serviceApiId) + } else { + fmt.Println("Error unpublishing API with ID", serviceApiId) + } + } else { + fmt.Println("ERROR. Be sure to onboard a Provider in order to be able to unpublish APIs") + } + + return nil +} + +func defaultserviceAPIDesc(serviceAPIDesc *CapifPublishService.ServiceAPIDescription) { + + var apiName, apiDescription, servAPICat string + + serviceAPIDesc.SetApiName(apiName) + serviceAPIDesc.SetDescription(apiDescription) + serviceAPIDesc.SetSupportedFeatures("fff") //TODO - Review this + serviceAPIDesc.SetServiceAPICategory(servAPICat) + serviceAPIDesc.SetApiSuppFeats("fff") //TODO - Review this + + var pubAPIPath CapifPublishService.PublishedApiPath + //TODO - Fill pubAPIPath - Needed?? + serviceAPIDesc.SetPubApiPath(pubAPIPath) + + var sharInfo CapifPublishService.ShareableInformation + //TODO - Fill sharInfo + serviceAPIDesc.SetShareableInfo(sharInfo) + + var aefProfs []CapifPublishService.AefProfile + //TODO - Fill AefProfiles + serviceAPIDesc.SetAefProfiles(aefProfs) + +} + +func saveCert(fileName string, cert *string) { + + //Save CA root certificate + //caFile, error := os.Create("ca_root.pem") + certFile, error := os.Create(fileName + ".crt") + if error != nil { + panic(error) + } + defer certFile.Close() + _, error = certFile.Write([]byte(*cert)) + if error != nil { + panic(error) + } + +} + +func generateCSR(fileName string) string { + + privateKey, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + panic(err) + } + + privateKeyFile, err := os.Create(fileName + "-private-key.pem") + if err != nil { + panic(err) + } + defer privateKeyFile.Close() + + privateKeyBlock := &pem.Block{Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(privateKey)} + err = pem.Encode(privateKeyFile, privateKeyBlock) + if err != nil { + panic(err) + } + + csrTemplate := x509.CertificateRequest{ + Subject: pkix.Name{ + Country: []string{"ES"}, + Province: []string{"Bilbao"}, + Locality: []string{"Earth"}, + Organization: []string{"Nemergent"}, + OrganizationalUnit: []string{"IT"}, + CommonName: "www.nemergent-solutions.com", + }, + DNSNames: []string{"example.com", "www.example.com"}, + } + + csrDER, err := x509.CreateCertificateRequest(rand.Reader, &csrTemplate, privateKey) + if err != nil { + panic(err) + } + + csrFile, err := os.Create(fileName + "-csr.pem") + if err != nil { + panic(err) + } + defer csrFile.Close() + + csrBlock := &pem.Block{Type: "CERTIFICATE REQUEST", Bytes: csrDER} + err = pem.Encode(csrFile, csrBlock) + if err != nil { + panic(err) + } + + buf, _ := os.ReadFile(fileName + "-csr.pem") + + return string(buf) + +} + +func httpClientCACert() *http.Client { + + // Get the SystemCertPool, continue with an empty pool on error + rootCAs, _ := x509.SystemCertPool() + if rootCAs == nil { + rootCAs = x509.NewCertPool() + } + + // Read in the cert file + certs, err := os.ReadFile("ca_root.crt") + if err != nil { + log.Fatalf("Failed to append ca_root.crt to RootCAs: %v", err) + } + + // Append our cert to the system pool + if ok := rootCAs.AppendCertsFromPEM(certs); !ok { + log.Println("No certs appended, using system certs only") + } + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + RootCAs: rootCAs, + }, + }, + } + + return client +} + +func httpClientAMFCerts() *http.Client { + + // Get the SystemCertPool, continue with an empty pool on error + rootCAs, _ := x509.SystemCertPool() + if rootCAs == nil { + rootCAs = x509.NewCertPool() + } + + // Read in the cert file + certs, err := os.ReadFile("ca_root.crt") + if err != nil { + log.Fatalf("Failed to append ca_root.crt to RootCAs: %v", err) + } + + // Append our cert to the system pool + if ok := rootCAs.AppendCertsFromPEM(certs); !ok { + log.Println("No certs appended, using system certs only") + } + // cert, _ := tls.LoadX509KeyPair("APF.crt", "client.key") + cert, _ := tls.LoadX509KeyPair("AMF.crt", "AMF-private-key.pem") + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + RootCAs: rootCAs, + Certificates: []tls.Certificate{cert}, + }, + }, + } + + return client +} + +func httpClientProviderCerts() *http.Client { + + // Get the SystemCertPool, continue with an empty pool on error + rootCAs, _ := x509.SystemCertPool() + if rootCAs == nil { + rootCAs = x509.NewCertPool() + } + + // Read in the cert file + certs, err := os.ReadFile("ca_root.crt") + if err != nil { + log.Fatalf("Failed to append ca_root.crt to RootCAs: %v", err) + } + + // Append our cert to the system pool + if ok := rootCAs.AppendCertsFromPEM(certs); !ok { + log.Println("No certs appended, using system certs only") + } + // cert, _ := tls.LoadX509KeyPair("APF.crt", "client.key") + cert, _ := tls.LoadX509KeyPair("APF.crt", "APF-private-key.pem") + client := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + RootCAs: rootCAs, + Certificates: []tls.Certificate{cert}, + }, + }, + } + + return client +} + +func readConfigFile(cfg *Config, configFilePath string) { + + f, err := os.Open(configFilePath) + if err != nil { + fmt.Printf("Unable to open configution file in path (%s): %v \n", configFilePath, err) + os.Exit(2) + } + defer f.Close() + + decoder := yaml.NewDecoder(f) + err = decoder.Decode(cfg) + if err != nil { + fmt.Printf("Unable to decode configution file \n") + os.Exit(2) + } + +} diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a68d286275f14591f0e38d4bd59b6e7b07dda7fd --- /dev/null +++ b/config.yaml @@ -0,0 +1,7 @@ +capif: + capif_user_username: "username" + capif_user_password: "password" + register_hostname: "register-opencapif.etsi.org" + register_port: "443" + capifcore_hostname: "opencapif.etsi.org" + capifcore_port: "443" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..c848fdd8b3c953e1a2157b4f83156bbc7c258ffe --- /dev/null +++ b/go.mod @@ -0,0 +1,47 @@ +module GolangCapifApis + +go 1.22 + +toolchain go1.22.3 + +require ( + github.com/flopp/go-staticmaps v0.0.0-20240606055734-0bdd9c1c1478 + github.com/fogleman/gg v1.3.0 + github.com/golang/geo v0.0.0-20230421003525-6adc56603217 + github.com/gorilla/mux v1.8.1 + github.com/jftuga/geodist v1.0.0 + github.com/redis/go-redis/v9 v9.6.0 + github.com/stretchr/testify v1.9.0 + github.com/turret-io/go-menu v1.0.2 + golang.org/x/term v0.27.0 + gopkg.in/yaml.v2 v2.4.0 +) + +require ( + filippo.io/edwards25519 v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flopp/go-coordsparser v0.0.0-20240403152942-4891dc40d0a7 // indirect + github.com/go-sql-driver/mysql v1.8.1 // indirect + github.com/golang-jwt/jwt v3.2.2+incompatible // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect + github.com/jackc/pgx/v5 v5.7.2 // indirect + github.com/mazznoer/csscolorparser v0.1.5 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/tkrajina/gpxgo v1.4.0 // indirect + golang.org/x/crypto v0.31.0 // indirect + golang.org/x/image v0.20.0 // indirect + golang.org/x/net v0.28.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect + gopkg.in/validator.v2 v2.0.1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +//require CapifApiInvokerManagementApiOpenapiGenerator v0.0.0 +//replace CapifApiInvokerManagementApiOpenapiGenerator => ./internal/CapifApiInvokerManagementApiOpenapiGenerator +//require CapifApiProviderManagementApiOpenapiGenerator v0.0.0 +//replace CapifApiProviderManagementApiOpenapiGenerator => ./internal/CapifApiProviderManagementApiOpenapiGenerator diff --git a/go.sum b/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..243c7a421683af706c26abf553d9e6aacb30ac92 --- /dev/null +++ b/go.sum @@ -0,0 +1,81 @@ +filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= +filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/flopp/go-coordsparser v0.0.0-20240403152942-4891dc40d0a7 h1:ZYEbOgGPFGLZwkLxRjV9zxZAIR1lExrNfFnObG/peek= +github.com/flopp/go-coordsparser v0.0.0-20240403152942-4891dc40d0a7/go.mod h1:7y/2PxXfR1mGtIQFNtFE1daHIka2e8J480Bsm+MiCpk= +github.com/flopp/go-staticmaps v0.0.0-20240606055734-0bdd9c1c1478 h1:rKlN4NCEUFdQ+pFGHchbZmRarzflkKtupcmqbxZNOZY= +github.com/flopp/go-staticmaps v0.0.0-20240606055734-0bdd9c1c1478/go.mod h1:Rr7/JmBsMZMKycTY56uTrDJtTPp3dbqxIudNljFNYs4= +github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= +github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= +github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/geo v0.0.0-20230421003525-6adc56603217 h1:HKlyj6in2JV6wVkmQ4XmG/EIm+SCYlPZ+V4GWit7Z+I= +github.com/golang/geo v0.0.0-20230421003525-6adc56603217/go.mod h1:8wI0hitZ3a1IxZfeH3/5I97CI8i5cLGsYe7xNhQGs9U= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo= +github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgx/v5 v5.7.2 h1:mLoDLV6sonKlvjIEsV56SkWNCnuNv531l94GaIzO+XI= +github.com/jackc/pgx/v5 v5.7.2/go.mod h1:ncY89UGWxg82EykZUwSpUKEfccBGGYq1xjrOpsbsfGQ= +github.com/jftuga/geodist v1.0.0 h1:PFPQlZtj10u8ETAYTyxE0DWMl1bwA+Xzrqb4+oLkkC0= +github.com/jftuga/geodist v1.0.0/go.mod h1:BohEDxpZ8S5ADAxW/9EKPSKWOVl0+3wHENIT40m4UO4= +github.com/mazznoer/csscolorparser v0.1.5 h1:Wr4uNIE+pHWN3TqZn2SGpA2nLRG064gB7WdSfSS5cz4= +github.com/mazznoer/csscolorparser v0.1.5/go.mod h1:OQRVvgCyHDCAquR1YWfSwwaDcM0LhnSffGnlbOew/3I= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/redis/go-redis/v9 v9.6.0 h1:NLck+Rab3AOTHw21CGRpvQpgTrAU4sgdCswqGtlhGRA= +github.com/redis/go-redis/v9 v9.6.0/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/tkrajina/gpxgo v1.4.0 h1:cSD5uSwy3VZuNFieTEZLyRnuIwhonQEkGPkPGW4XNag= +github.com/tkrajina/gpxgo v1.4.0/go.mod h1:BXSMfUAvKiEhMEXAFM2NvNsbjsSvp394mOvdcNjettg= +github.com/turret-io/go-menu v1.0.2 h1:wnxh52FwySBKHgASpJq/x5fQLYwcZwroJVFf4uJ8v/g= +github.com/turret-io/go-menu v1.0.2/go.mod h1:k7e/ziL/JqwImhubSklas2BjL8Co9zzIrv68Qsmufsk= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/image v0.20.0 h1:7cVCUjQwfL18gyBJOmYvptfSHS8Fb3YUDtfLIZ7Nbpw= +golang.org/x/image v0.20.0/go.mod h1:0a88To4CYVBAHp5FXJm8o7QbUl37Vd85ply1vyD8auM= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= +golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= +golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= +golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= +golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/validator.v2 v2.0.1 h1:xF0KWyGWXm/LM2G1TrEjqOu4pa6coO9AlWSf3msVfDY= +gopkg.in/validator.v2 v2.0.1/go.mod h1:lIUZBlB3Im4s/eYp39Ry/wkR02yOPhZ9IwIRBjuPuG8= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/CapifApiInvokerManagement/.gitignore b/internal/CapifApiInvokerManagement/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..daf913b1b347aae6de6f48d599bc89ef8c8693d6 --- /dev/null +++ b/internal/CapifApiInvokerManagement/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/internal/CapifApiInvokerManagement/.openapi-generator-ignore b/internal/CapifApiInvokerManagement/.openapi-generator-ignore new file mode 100644 index 0000000000000000000000000000000000000000..7484ee590a3894506cf063799b885428f95a71be --- /dev/null +++ b/internal/CapifApiInvokerManagement/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/internal/CapifApiInvokerManagement/.openapi-generator/FILES b/internal/CapifApiInvokerManagement/.openapi-generator/FILES new file mode 100644 index 0000000000000000000000000000000000000000..7d311c2395d4a6b4a4801ef71dcb4c745efc42e0 --- /dev/null +++ b/internal/CapifApiInvokerManagement/.openapi-generator/FILES @@ -0,0 +1,98 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +api_individual_api_invoker_enrolment_details.go +client.go +configuration.go +docs/APIInvokerEnrolmentDetails.md +docs/APIInvokerEnrolmentDetailsPatch.md +docs/APIList.md +docs/AefLocation.md +docs/AefProfile.md +docs/CivicAddress.md +docs/CommunicationType.md +docs/CustomOperation.md +docs/DataFormat.md +docs/DefaultAPI.md +docs/EllipsoidArc.md +docs/GADShape.md +docs/GeographicArea.md +docs/GeographicalCoordinates.md +docs/IndividualAPIInvokerEnrolmentDetailsAPI.md +docs/InterfaceDescription.md +docs/InvalidParam.md +docs/Local2dPointUncertaintyEllipse.md +docs/Local3dPointUncertaintyEllipsoid.md +docs/LocalOrigin.md +docs/OnboardingInformation.md +docs/OnboardingNotification.md +docs/Operation.md +docs/Point.md +docs/PointAltitude.md +docs/PointAltitudeUncertainty.md +docs/PointUncertaintyCircle.md +docs/PointUncertaintyEllipse.md +docs/Polygon.md +docs/ProblemDetails.md +docs/Protocol.md +docs/PublishedApiPath.md +docs/RelativeCartesianLocation.md +docs/Resource.md +docs/SecurityMethod.md +docs/ServiceAPIDescription.md +docs/ShareableInformation.md +docs/SupportedGADShapes.md +docs/UncertaintyEllipse.md +docs/UncertaintyEllipsoid.md +docs/Version.md +docs/WebsockNotifConfig.md +git_push.sh +go.mod +go.sum +model_aef_location.go +model_aef_profile.go +model_api_invoker_enrolment_details.go +model_api_invoker_enrolment_details_patch.go +model_api_list.go +model_civic_address.go +model_communication_type.go +model_custom_operation.go +model_data_format.go +model_ellipsoid_arc.go +model_gad_shape.go +model_geographic_area.go +model_geographical_coordinates.go +model_interface_description.go +model_invalid_param.go +model_local2d_point_uncertainty_ellipse.go +model_local3d_point_uncertainty_ellipsoid.go +model_local_origin.go +model_onboarding_information.go +model_onboarding_notification.go +model_operation.go +model_point.go +model_point_altitude.go +model_point_altitude_uncertainty.go +model_point_uncertainty_circle.go +model_point_uncertainty_ellipse.go +model_polygon.go +model_problem_details.go +model_protocol.go +model_published_api_path.go +model_relative_cartesian_location.go +model_resource.go +model_security_method.go +model_service_api_description.go +model_shareable_information.go +model_supported_gad_shapes.go +model_uncertainty_ellipse.go +model_uncertainty_ellipsoid.go +model_version.go +model_websock_notif_config.go +response.go +test/api_default_test.go +test/api_individual_api_invoker_enrolment_details_test.go +utils.go diff --git a/internal/CapifApiInvokerManagement/.openapi-generator/VERSION b/internal/CapifApiInvokerManagement/.openapi-generator/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..93c8ddab9fef3d606dcbc0d562545592cdc40dce --- /dev/null +++ b/internal/CapifApiInvokerManagement/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.6.0 diff --git a/internal/CapifApiInvokerManagement/.travis.yml b/internal/CapifApiInvokerManagement/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..f5cb2ce9a5aad73c57eed886e845d2e79c2899d1 --- /dev/null +++ b/internal/CapifApiInvokerManagement/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/internal/CapifApiInvokerManagement/README.md b/internal/CapifApiInvokerManagement/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2a8593aa21ba0026814e5c9bb1e87f5efc682d5f --- /dev/null +++ b/internal/CapifApiInvokerManagement/README.md @@ -0,0 +1,158 @@ +# Go API client for CapifApiInvokerManagement + +API for API invoker management. +© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). +All rights reserved. + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.2.1 +- Package version: 1.0.0 +- Generator version: 7.6.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import CapifApiInvokerManagement "github.com/GIT_USER_ID/GIT_REPO_ID" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `CapifApiInvokerManagement.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), CapifApiInvokerManagement.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `CapifApiInvokerManagement.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), CapifApiInvokerManagement.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +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 `CapifApiInvokerManagement.ContextOperationServerIndices` and `CapifApiInvokerManagement.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), CapifApiInvokerManagement.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), CapifApiInvokerManagement.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://example.com/api-invoker-management/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultAPI* | [**OnboardedInvokersOnboardingIdDelete**](docs/DefaultAPI.md#onboardedinvokersonboardingiddelete) | **Delete** /onboardedInvokers/{onboardingId} | +*DefaultAPI* | [**OnboardedInvokersOnboardingIdPut**](docs/DefaultAPI.md#onboardedinvokersonboardingidput) | **Put** /onboardedInvokers/{onboardingId} | +*DefaultAPI* | [**OnboardedInvokersPost**](docs/DefaultAPI.md#onboardedinvokerspost) | **Post** /onboardedInvokers | +*IndividualAPIInvokerEnrolmentDetailsAPI* | [**ModifyIndApiInvokeEnrolment**](docs/IndividualAPIInvokerEnrolmentDetailsAPI.md#modifyindapiinvokeenrolment) | **Patch** /onboardedInvokers/{onboardingId} | + + +## Documentation For Models + + - [APIInvokerEnrolmentDetails](docs/APIInvokerEnrolmentDetails.md) + - [APIInvokerEnrolmentDetailsPatch](docs/APIInvokerEnrolmentDetailsPatch.md) + - [APIList](docs/APIList.md) + - [AefLocation](docs/AefLocation.md) + - [AefProfile](docs/AefProfile.md) + - [CivicAddress](docs/CivicAddress.md) + - [CommunicationType](docs/CommunicationType.md) + - [CustomOperation](docs/CustomOperation.md) + - [DataFormat](docs/DataFormat.md) + - [EllipsoidArc](docs/EllipsoidArc.md) + - [GADShape](docs/GADShape.md) + - [GeographicArea](docs/GeographicArea.md) + - [GeographicalCoordinates](docs/GeographicalCoordinates.md) + - [InterfaceDescription](docs/InterfaceDescription.md) + - [InvalidParam](docs/InvalidParam.md) + - [Local2dPointUncertaintyEllipse](docs/Local2dPointUncertaintyEllipse.md) + - [Local3dPointUncertaintyEllipsoid](docs/Local3dPointUncertaintyEllipsoid.md) + - [LocalOrigin](docs/LocalOrigin.md) + - [OnboardingInformation](docs/OnboardingInformation.md) + - [OnboardingNotification](docs/OnboardingNotification.md) + - [Operation](docs/Operation.md) + - [Point](docs/Point.md) + - [PointAltitude](docs/PointAltitude.md) + - [PointAltitudeUncertainty](docs/PointAltitudeUncertainty.md) + - [PointUncertaintyCircle](docs/PointUncertaintyCircle.md) + - [PointUncertaintyEllipse](docs/PointUncertaintyEllipse.md) + - [Polygon](docs/Polygon.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [Protocol](docs/Protocol.md) + - [PublishedApiPath](docs/PublishedApiPath.md) + - [RelativeCartesianLocation](docs/RelativeCartesianLocation.md) + - [Resource](docs/Resource.md) + - [SecurityMethod](docs/SecurityMethod.md) + - [ServiceAPIDescription](docs/ServiceAPIDescription.md) + - [ShareableInformation](docs/ShareableInformation.md) + - [SupportedGADShapes](docs/SupportedGADShapes.md) + - [UncertaintyEllipse](docs/UncertaintyEllipse.md) + - [UncertaintyEllipsoid](docs/UncertaintyEllipsoid.md) + - [Version](docs/Version.md) + - [WebsockNotifConfig](docs/WebsockNotifConfig.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/internal/CapifApiInvokerManagement/api/openapi.yaml b/internal/CapifApiInvokerManagement/api/openapi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf6c096440c0987df759fa1e3339a9e9ce9ca4a6 --- /dev/null +++ b/internal/CapifApiInvokerManagement/api/openapi.yaml @@ -0,0 +1,4328 @@ +openapi: 3.0.0 +info: + description: "API for API invoker management. \n© 2022, 3GPP Organizational Partners\ + \ (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). \nAll rights reserved.\n" + title: CAPIF_API_Invoker_Management_API + version: 1.2.1 +externalDocs: + description: 3GPP TS 29.222 V17.7.0 Common API Framework for 3GPP Northbound APIs + url: https://www.3gpp.org/ftp/Specs/archive/29_series/29.222/ +servers: +- url: "{apiRoot}/api-invoker-management/v1" + variables: + apiRoot: + default: https://example.com + description: apiRoot as defined in clause 7.5 of 3GPP TS 29.222 +paths: + /onboardedInvokers: + post: + callbacks: + notificationDestination: + '{request.body#/notificationDestination}': + post: + description: Notify the API Invoker about the onboarding completion + operationId: notificationDestination_request_bodyNotificationDestinationPost + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OnboardingNotification' + required: true + responses: + "204": + description: No Content (successful onboarding notification) + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + x-callback-request: true + description: Creates a new individual API Invoker profile. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/APIInvokerEnrolmentDetails' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/APIInvokerEnrolmentDetails' + description: API invoker on-boarded successfully. + headers: + Location: + description: | + Contains the URI of the newly created resource, according to the structure {apiRoot}/api-invoker-management/v1/onboardedInvokers/{onboardingId} + explode: false + required: true + schema: + type: string + style: simple + "202": + description: The CAPIF core has accepted the Onboarding request and is processing + it. + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + /onboardedInvokers/{onboardingId}: + delete: + description: Deletes an individual API Invoker. + parameters: + - description: String identifying an individual on-boarded API invoker resource + explode: false + in: path + name: onboardingId + required: true + schema: + type: string + style: simple + responses: + "204": + description: The individual API Invoker matching onboardingId was offboarded. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + patch: + description: Modify an individual API invoker details. + operationId: ModifyIndApiInvokeEnrolment + parameters: + - explode: false + in: path + name: onboardingId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/APIInvokerEnrolmentDetailsPatch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/APIInvokerEnrolmentDetails' + description: | + The definition of the service API is modified successfully and a representation of the updated service API is returned in the request body. + "202": + description: The request is accepted and under processing. + "204": + description: No Content. The definition of the service API is modified successfully. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + tags: + - Individual API Invoker enrolment details + put: + callbacks: + notificationDestination: + '{request.body#/notificationDestination}': + post: + description: Notify the API Invoker about the API invoker update completion + operationId: notificationDestination_request_bodyNotificationDestinationPost + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OnboardingNotification' + required: true + responses: + "204": + description: No Content (successful API invoker update notification) + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + x-callback-request: true + description: Updates an individual API invoker details. + parameters: + - description: String identifying an individual on-boarded API invoker resource + explode: false + in: path + name: onboardingId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/APIInvokerEnrolmentDetails' + description: representation of the API invoker details to be updated in CAPIF + core function + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/APIInvokerEnrolmentDetails' + description: API invoker details updated successfully. + "202": + description: | + The CAPIF core has accepted the API invoker update details request and is processing it. + "204": + description: | + API invoker's information updated successfully, with no content to be sent in the response body. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error +components: + responses: + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + schemas: + OnboardingInformation: + description: Represents on-boarding information of the API invoker. + example: + apiInvokerPublicKey: apiInvokerPublicKey + onboardingSecret: onboardingSecret + apiInvokerCertificate: apiInvokerCertificate + properties: + apiInvokerPublicKey: + description: The API Invoker's public key + type: string + apiInvokerCertificate: + description: | + The API Invoker's generic client certificate, provided by the CAPIF core function. + type: string + onboardingSecret: + description: | + The API Invoker's onboarding secret, provided by the CAPIF core function. + type: string + required: + - apiInvokerPublicKey + type: object + APIList: + description: Represents a list of APIs. + example: + serviceAPIDescriptions: + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + serviceAPIDescriptions: + description: The list of service APIs that the API Invoker is allowed to + invoke. + items: + $ref: '#/components/schemas/ServiceAPIDescription' + minItems: 1 + type: array + type: object + APIInvokerEnrolmentDetails: + description: Information about the API Invoker that requested to onboard + example: + notificationDestination: notificationDestination + supportedFeatures: supportedFeatures + apiInvokerId: apiInvokerId + apiInvokerInformation: apiInvokerInformation + websockNotifConfig: + requestWebsocketUri: true + websocketUri: websocketUri + onboardingInformation: + apiInvokerPublicKey: apiInvokerPublicKey + onboardingSecret: onboardingSecret + apiInvokerCertificate: apiInvokerCertificate + requestTestNotification: true + apiList: + serviceAPIDescriptions: + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + apiInvokerId: + description: | + API invoker ID assigned by the CAPIF core function to the API invoker while on-boarding the API invoker. Shall not be present in the HTTP POST request from the API invoker to the CAPIF core function, to on-board itself. Shall be present in all other HTTP requests and responses. + readOnly: true + type: string + onboardingInformation: + $ref: '#/components/schemas/OnboardingInformation' + notificationDestination: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + requestTestNotification: + description: | + Set to true by Subscriber to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. + type: boolean + websockNotifConfig: + $ref: '#/components/schemas/WebsockNotifConfig' + apiList: + $ref: '#/components/schemas/APIList' + apiInvokerInformation: + description: | + Generic information related to the API invoker such as details of the device or the application. + type: string + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + required: + - notificationDestination + - onboardingInformation + type: object + OnboardingNotification: + description: Represents a notification of on-boarding or update result. + example: + result: true + apiInvokerEnrolmentDetails: + notificationDestination: notificationDestination + supportedFeatures: supportedFeatures + apiInvokerId: apiInvokerId + apiInvokerInformation: apiInvokerInformation + websockNotifConfig: + requestWebsocketUri: true + websocketUri: websocketUri + onboardingInformation: + apiInvokerPublicKey: apiInvokerPublicKey + onboardingSecret: onboardingSecret + apiInvokerCertificate: apiInvokerCertificate + requestTestNotification: true + apiList: + serviceAPIDescriptions: + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + resourceLocation: resourceLocation + apiList: + serviceAPIDescriptions: + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + result: + description: Set to "true" indicate successful on-boarding. Otherwise set + to "false" + type: boolean + resourceLocation: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + apiInvokerEnrolmentDetails: + $ref: '#/components/schemas/APIInvokerEnrolmentDetails' + apiList: + $ref: '#/components/schemas/APIList' + required: + - result + type: object + APIInvokerEnrolmentDetailsPatch: + description: Represents an API Invoker's enrolment details to be updated. + properties: + onboardingInformation: + $ref: '#/components/schemas/OnboardingInformation' + notificationDestination: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + apiList: + $ref: '#/components/schemas/APIList' + apiInvokerInformation: + description: | + Generic information related to the API invoker such as details of the device or the application. + type: string + type: object + ProblemDetails: + description: Represents additional information and details on an error response. + properties: + type: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + title: + description: "A short, human-readable summary of the problem type. It should\ + \ not change from occurrence to occurrence of the problem." + type: string + status: + description: The HTTP status code for this occurrence of the problem. + type: integer + detail: + description: A human-readable explanation specific to this occurrence of + the problem. + type: string + instance: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + cause: + description: "A machine-readable application error cause specific to this\ + \ occurrence of the problem. This IE should be present and provide application-related\ + \ error information, if available." + type: string + invalidParams: + description: "Description of invalid parameters, for a request rejected\ + \ due to invalid parameters." + items: + $ref: '#/components/schemas/InvalidParam' + minItems: 1 + type: array + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + type: object + Uri: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + InvalidParam: + description: "Represents the description of invalid parameters, for a request\ + \ rejected due to invalid parameters." + properties: + param: + description: "Attribute's name encoded as a JSON Pointer, or header's name." + type: string + reason: + description: "A human-readable reason, e.g. \"must be a positive integer\"\ + ." + type: string + required: + - param + type: object + ServiceAPIDescription: + description: Represents the description of a service API as published by the + APF. + example: + serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + apiName: + description: "API name, it is set as {apiName} part of the URI structure\ + \ as defined in clause 5.2.4 of 3GPP TS 29.122." + type: string + apiId: + description: | + API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). + type: string + aefProfiles: + description: | + AEF profile information, which includes the exposed API details (e.g. protocol). + items: + $ref: '#/components/schemas/AefProfile' + minItems: 1 + type: array + description: + description: Text description of the API + type: string + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + shareableInfo: + $ref: '#/components/schemas/ShareableInformation' + serviceAPICategory: + type: string + apiSuppFeats: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + pubApiPath: + $ref: '#/components/schemas/PublishedApiPath' + ccfId: + description: CAPIF core function identifier. + type: string + required: + - apiName + type: object + AefProfile: + description: Represents the AEF profile data. + example: + protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + aefId: + description: Identifier of the API exposing function + type: string + versions: + description: API version + items: + $ref: '#/components/schemas/Version' + minItems: 1 + type: array + protocol: + $ref: '#/components/schemas/Protocol' + dataFormat: + $ref: '#/components/schemas/DataFormat' + securityMethods: + description: Security methods supported by the AEF + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + domainName: + description: Domain to which API belongs to + type: string + interfaceDescriptions: + description: Interface details + items: + $ref: '#/components/schemas/InterfaceDescription' + minItems: 1 + type: array + aefLocation: + $ref: '#/components/schemas/AefLocation' + required: + - aefId + - versions + type: object + Version: + description: Represents the API version information. + example: + apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + properties: + apiVersion: + description: API major version in URI (e.g. v1) + type: string + expiry: + description: string with format "date-time" as defined in OpenAPI. + format: date-time + type: string + resources: + description: Resources supported by the API. + items: + $ref: '#/components/schemas/Resource' + minItems: 1 + type: array + custOperations: + description: Custom operations without resource association. + items: + $ref: '#/components/schemas/CustomOperation' + minItems: 1 + type: array + required: + - apiVersion + type: object + Resource: + description: Represents the API resource data. + example: + operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + properties: + resourceName: + description: Resource name + type: string + commType: + $ref: '#/components/schemas/CommunicationType' + uri: + description: | + Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + custOpName: + description: | + it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + operations: + description: | + Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + items: + $ref: '#/components/schemas/Operation' + minItems: 1 + type: array + description: + description: Text description of the API resource + type: string + required: + - commType + - resourceName + - uri + type: object + CommunicationType: + anyOf: + - enum: + - REQUEST_RESPONSE + - SUBSCRIBE_NOTIFY + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - REQUEST_RESPONSE: The communication is of the type request-response + - SUBSCRIBE_NOTIFY: The communication is of the type subscribe-notify + Operation: + anyOf: + - enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - GET: HTTP GET method + - POST: HTTP POST method + - PUT: HTTP PUT method + - PATCH: HTTP PATCH method + - DELETE: HTTP DELETE method + CustomOperation: + description: Represents the description of a custom operation. + example: + operations: + - null + - null + commType: null + description: description + custOpName: custOpName + properties: + commType: + $ref: '#/components/schemas/CommunicationType' + custOpName: + description: | + it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + operations: + description: | + Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + items: + $ref: '#/components/schemas/Operation' + minItems: 1 + type: array + description: + description: Text description of the custom operation + type: string + required: + - commType + - custOpName + type: object + Protocol: + anyOf: + - enum: + - HTTP_1_1 + - HTTP_2 + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - HTTP_1_1: HTTP version 1.1 + - HTTP_2: HTTP version 2 + DataFormat: + anyOf: + - enum: + - JSON + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - JSON: JavaScript Object Notation + SecurityMethod: + anyOf: + - enum: + - PSK + - PKI + - OAUTH + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 + - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 + - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 + InterfaceDescription: + description: Represents the description of an API's interface. + example: + ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted + decimal" notation as defined in IETF RFC 1166. + type: string + ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 + of IETF RFC 5952 shall not be used. + type: string + port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + securityMethods: + description: | + Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + type: object + AefLocation: + description: | + The location information (e.g. civic address, GPS coordinates, data center ID) where the AEF providing the service API is located. + example: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + properties: + civicAddr: + $ref: '#/components/schemas/CivicAddress' + geoArea: + $ref: '#/components/schemas/GeographicArea' + dcId: + description: | + Identifies the data center where the AEF providing the service API is located. + type: string + type: object + ShareableInformation: + description: | + Indicates whether the service API and/or the service API category can be shared to the list of CAPIF provider domains. + example: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + properties: + isShareable: + description: | + Set to "true" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to "false". + type: boolean + capifProvDoms: + description: | + List of CAPIF provider domains to which the service API information to be shared. + items: + type: string + minItems: 1 + type: array + required: + - isShareable + type: object + PublishedApiPath: + description: Represents the published API path within the same CAPIF provider + domain. + example: + ccfIds: + - ccfIds + - ccfIds + properties: + ccfIds: + description: A list of CCF identifiers where the service API is already + published. + items: + type: string + minItems: 1 + type: array + type: object + WebsockNotifConfig: + description: Represents the configuration information for the delivery of notifications + over Websockets. + example: + requestWebsocketUri: true + websocketUri: websocketUri + properties: + websocketUri: + description: string formatted according to IETF RFC 3986 identifying a referenced + resource. + type: string + requestWebsocketUri: + description: Set by the SCS/AS to indicate that the Websocket delivery is + requested. + type: boolean + type: object + Link: + description: string formatted according to IETF RFC 3986 identifying a referenced + resource. + type: string + SupportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + DateTime: + description: string with format "date-time" as defined in OpenAPI. + format: date-time + type: string + Ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted decimal" + notation as defined in IETF RFC 1166. + type: string + Ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of + IETF RFC 5952 shall not be used. + type: string + Port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + CivicAddress: + description: Indicates a Civic address. + example: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + properties: + country: + type: string + A1: + type: string + A2: + type: string + A3: + type: string + A4: + type: string + A5: + type: string + A6: + type: string + PRD: + type: string + POD: + type: string + STS: + type: string + HNO: + type: string + HNS: + type: string + LMK: + type: string + LOC: + type: string + NAM: + type: string + PC: + type: string + BLD: + type: string + UNIT: + type: string + FLR: + type: string + ROOM: + type: string + PLC: + type: string + PCN: + type: string + POBOX: + type: string + ADDCODE: + type: string + SEAT: + type: string + RD: + type: string + RDSEC: + type: string + RDBR: + type: string + RDSUBBR: + type: string + PRM: + type: string + POM: + type: string + usageRules: + type: string + method: + type: string + providedBy: + type: string + type: object + GeographicArea: + anyOf: + - $ref: '#/components/schemas/Point' + - $ref: '#/components/schemas/PointUncertaintyCircle' + - $ref: '#/components/schemas/PointUncertaintyEllipse' + - $ref: '#/components/schemas/Polygon' + - $ref: '#/components/schemas/PointAltitude' + - $ref: '#/components/schemas/PointAltitudeUncertainty' + - $ref: '#/components/schemas/EllipsoidArc' + description: Geographic area specified by different shape. + Point: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + required: + - point + type: object + description: Ellipsoid Point. + example: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + GADShape: + description: Common base type for GAD shapes. + discriminator: + mapping: + POINT: '#/components/schemas/Point' + POINT_UNCERTAINTY_CIRCLE: '#/components/schemas/PointUncertaintyCircle' + POINT_UNCERTAINTY_ELLIPSE: '#/components/schemas/PointUncertaintyEllipse' + POLYGON: '#/components/schemas/Polygon' + POINT_ALTITUDE: '#/components/schemas/PointAltitude' + POINT_ALTITUDE_UNCERTAINTY: '#/components/schemas/PointAltitudeUncertainty' + ELLIPSOID_ARC: '#/components/schemas/EllipsoidArc' + LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE: '#/components/schemas/Local2dPointUncertaintyEllipse' + LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID: '#/components/schemas/Local3dPointUncertaintyEllipsoid' + propertyName: shape + properties: + shape: + $ref: '#/components/schemas/SupportedGADShapes' + required: + - shape + type: object + SupportedGADShapes: + anyOf: + - enum: + - POINT + - POINT_UNCERTAINTY_CIRCLE + - POINT_UNCERTAINTY_ELLIPSE + - POLYGON + - POINT_ALTITUDE + - POINT_ALTITUDE_UNCERTAINTY + - ELLIPSOID_ARC + - LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE + - LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID + type: string + - type: string + description: Indicates supported GAD shapes. + PointUncertaintyCircle: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + uncertainty: + $ref: '#/components/schemas/Uncertainty' + required: + - point + - uncertainty + type: object + description: Ellipsoid point with uncertainty circle. + GeographicalCoordinates: + description: Geographical coordinates. + example: + lon: 36.988422590534526 + lat: -63.615366350946985 + properties: + lon: + format: double + maximum: 180 + minimum: -180 + type: number + lat: + format: double + maximum: 90 + minimum: -90 + type: number + required: + - lat + - lon + type: object + Uncertainty: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + PointUncertaintyEllipse: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - point + - uncertaintyEllipse + type: object + description: Ellipsoid point with uncertainty ellipse. + UncertaintyEllipse: + description: Ellipse with uncertainty. + properties: + semiMajor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + semiMinor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + orientationMajor: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + required: + - orientationMajor + - semiMajor + - semiMinor + type: object + Orientation: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + Confidence: + description: Indicates value of confidence. + maximum: 100 + minimum: 0 + type: integer + Polygon: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + pointList: + $ref: '#/components/schemas/PointList' + required: + - pointList + type: object + description: Polygon. + PointList: + description: List of points. + items: + $ref: '#/components/schemas/GeographicalCoordinates' + maxItems: 15 + minItems: 3 + type: array + PointAltitude: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + altitude: + $ref: '#/components/schemas/Altitude' + required: + - altitude + - point + type: object + description: Ellipsoid point with altitude. + Altitude: + description: Indicates value of altitude. + format: double + maximum: 32767 + minimum: -32767 + type: number + PointAltitudeUncertainty: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + altitude: + $ref: '#/components/schemas/Altitude' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + uncertaintyAltitude: + $ref: '#/components/schemas/Uncertainty' + confidence: + $ref: '#/components/schemas/Confidence' + vConfidence: + $ref: '#/components/schemas/Confidence' + required: + - altitude + - confidence + - point + - uncertaintyAltitude + - uncertaintyEllipse + type: object + description: Ellipsoid point with altitude and uncertainty ellipsoid. + EllipsoidArc: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + innerRadius: + $ref: '#/components/schemas/InnerRadius' + uncertaintyRadius: + $ref: '#/components/schemas/Uncertainty' + offsetAngle: + $ref: '#/components/schemas/Angle' + includedAngle: + $ref: '#/components/schemas/Angle' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - includedAngle + - innerRadius + - offsetAngle + - point + - uncertaintyRadius + type: object + description: Ellipsoid Arc. + InnerRadius: + description: Indicates value of the inner radius. + format: int32 + maximum: 327675 + minimum: 0 + type: integer + Angle: + description: Indicates value of angle. + maximum: 360 + minimum: 0 + type: integer + Local2dPointUncertaintyEllipse: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + localOrigin: + $ref: '#/components/schemas/LocalOrigin' + point: + $ref: '#/components/schemas/RelativeCartesianLocation' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - localOrigin + - point + - uncertaintyEllipse + type: object + description: Local 2D point with uncertainty ellipse + LocalOrigin: + description: Indicates a Local origin in a reference system + properties: + coordinateId: + type: string + point: + $ref: '#/components/schemas/GeographicalCoordinates' + type: object + RelativeCartesianLocation: + description: Relative Cartesian Location + properties: + x: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + "y": + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + z: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + required: + - x + - "y" + type: object + Local3dPointUncertaintyEllipsoid: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + localOrigin: + $ref: '#/components/schemas/LocalOrigin' + point: + $ref: '#/components/schemas/RelativeCartesianLocation' + uncertaintyEllipsoid: + $ref: '#/components/schemas/UncertaintyEllipsoid' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - localOrigin + - point + - uncertaintyEllipsoid + type: object + description: Local 3D point with uncertainty ellipsoid + UncertaintyEllipsoid: + description: Ellipsoid with uncertainty + properties: + semiMajor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + semiMinor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + vertical: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + orientationMajor: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + required: + - orientationMajor + - semiMajor + - semiMinor + - vertical + type: object + Float: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number diff --git a/internal/CapifApiInvokerManagement/api_default.go b/internal/CapifApiInvokerManagement/api_default.go new file mode 100644 index 0000000000000000000000000000000000000000..17d324fb6e31004cab1d073ecd3ff2b10c394143 --- /dev/null +++ b/internal/CapifApiInvokerManagement/api_default.go @@ -0,0 +1,644 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "os" +) + + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiOnboardedInvokersOnboardingIdDeleteRequest struct { + ctx context.Context + ApiService *DefaultAPIService + onboardingId string +} + +func (r ApiOnboardedInvokersOnboardingIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.OnboardedInvokersOnboardingIdDeleteExecute(r) +} + +/* +OnboardedInvokersOnboardingIdDelete Method for OnboardedInvokersOnboardingIdDelete + +Deletes an individual API Invoker. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param onboardingId String identifying an individual on-boarded API invoker resource + @return ApiOnboardedInvokersOnboardingIdDeleteRequest +*/ +func (a *DefaultAPIService) OnboardedInvokersOnboardingIdDelete(ctx context.Context, onboardingId string) ApiOnboardedInvokersOnboardingIdDeleteRequest { + return ApiOnboardedInvokersOnboardingIdDeleteRequest{ + ApiService: a, + ctx: ctx, + onboardingId: onboardingId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) OnboardedInvokersOnboardingIdDeleteExecute(r ApiOnboardedInvokersOnboardingIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.OnboardedInvokersOnboardingIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/onboardedInvokers/{onboardingId}" + localVarPath = strings.Replace(localVarPath, "{"+"onboardingId"+"}", url.PathEscape(parameterValueToString(r.onboardingId, "onboardingId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiOnboardedInvokersOnboardingIdPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + onboardingId string + aPIInvokerEnrolmentDetails *APIInvokerEnrolmentDetails +} + +// representation of the API invoker details to be updated in CAPIF core function +func (r ApiOnboardedInvokersOnboardingIdPutRequest) APIInvokerEnrolmentDetails(aPIInvokerEnrolmentDetails APIInvokerEnrolmentDetails) ApiOnboardedInvokersOnboardingIdPutRequest { + r.aPIInvokerEnrolmentDetails = &aPIInvokerEnrolmentDetails + return r +} + +func (r ApiOnboardedInvokersOnboardingIdPutRequest) Execute() (*APIInvokerEnrolmentDetails, *http.Response, error) { + return r.ApiService.OnboardedInvokersOnboardingIdPutExecute(r) +} + +/* +OnboardedInvokersOnboardingIdPut Method for OnboardedInvokersOnboardingIdPut + +Updates an individual API invoker details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param onboardingId String identifying an individual on-boarded API invoker resource + @return ApiOnboardedInvokersOnboardingIdPutRequest +*/ +func (a *DefaultAPIService) OnboardedInvokersOnboardingIdPut(ctx context.Context, onboardingId string) ApiOnboardedInvokersOnboardingIdPutRequest { + return ApiOnboardedInvokersOnboardingIdPutRequest{ + ApiService: a, + ctx: ctx, + onboardingId: onboardingId, + } +} + +// Execute executes the request +// @return APIInvokerEnrolmentDetails +func (a *DefaultAPIService) OnboardedInvokersOnboardingIdPutExecute(r ApiOnboardedInvokersOnboardingIdPutRequest) (*APIInvokerEnrolmentDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIInvokerEnrolmentDetails + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.OnboardedInvokersOnboardingIdPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/onboardedInvokers/{onboardingId}" + localVarPath = strings.Replace(localVarPath, "{"+"onboardingId"+"}", url.PathEscape(parameterValueToString(r.onboardingId, "onboardingId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aPIInvokerEnrolmentDetails == nil { + return localVarReturnValue, nil, reportError("aPIInvokerEnrolmentDetails is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aPIInvokerEnrolmentDetails + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOnboardedInvokersPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + aPIInvokerEnrolmentDetails *APIInvokerEnrolmentDetails +} + +func (r ApiOnboardedInvokersPostRequest) APIInvokerEnrolmentDetails(aPIInvokerEnrolmentDetails APIInvokerEnrolmentDetails) ApiOnboardedInvokersPostRequest { + r.aPIInvokerEnrolmentDetails = &aPIInvokerEnrolmentDetails + return r +} + +func (r ApiOnboardedInvokersPostRequest) Execute() (*APIInvokerEnrolmentDetails, *http.Response, error) { + return r.ApiService.OnboardedInvokersPostExecute(r) +} + +/* +OnboardedInvokersPost Method for OnboardedInvokersPost + +Creates a new individual API Invoker profile. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOnboardedInvokersPostRequest +*/ +func (a *DefaultAPIService) OnboardedInvokersPost(ctx context.Context) ApiOnboardedInvokersPostRequest { + return ApiOnboardedInvokersPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return APIInvokerEnrolmentDetails +func (a *DefaultAPIService) OnboardedInvokersPostExecute(r ApiOnboardedInvokersPostRequest) (*APIInvokerEnrolmentDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIInvokerEnrolmentDetails + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.OnboardedInvokersPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/onboardedInvokers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aPIInvokerEnrolmentDetails == nil { + return localVarReturnValue, nil, reportError("aPIInvokerEnrolmentDetails is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + + //Addition for needed Authorization header - Too janky solution + accessToken, err := os.ReadFile("accessToken.txt") + localVarHeaderParams["Authorization"] = "Bearer " + string(accessToken) + + // body params + localVarPostBody = r.aPIInvokerEnrolmentDetails + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifApiInvokerManagement/api_individual_api_invoker_enrolment_details.go b/internal/CapifApiInvokerManagement/api_individual_api_invoker_enrolment_details.go new file mode 100644 index 0000000000000000000000000000000000000000..4f58fdd6624caa825490e7a40abbe96c6e4b4b9b --- /dev/null +++ b/internal/CapifApiInvokerManagement/api_individual_api_invoker_enrolment_details.go @@ -0,0 +1,248 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// IndividualAPIInvokerEnrolmentDetailsAPIService IndividualAPIInvokerEnrolmentDetailsAPI service +type IndividualAPIInvokerEnrolmentDetailsAPIService service + +type ApiModifyIndApiInvokeEnrolmentRequest struct { + ctx context.Context + ApiService *IndividualAPIInvokerEnrolmentDetailsAPIService + onboardingId string + aPIInvokerEnrolmentDetailsPatch *APIInvokerEnrolmentDetailsPatch +} + +func (r ApiModifyIndApiInvokeEnrolmentRequest) APIInvokerEnrolmentDetailsPatch(aPIInvokerEnrolmentDetailsPatch APIInvokerEnrolmentDetailsPatch) ApiModifyIndApiInvokeEnrolmentRequest { + r.aPIInvokerEnrolmentDetailsPatch = &aPIInvokerEnrolmentDetailsPatch + return r +} + +func (r ApiModifyIndApiInvokeEnrolmentRequest) Execute() (*APIInvokerEnrolmentDetails, *http.Response, error) { + return r.ApiService.ModifyIndApiInvokeEnrolmentExecute(r) +} + +/* +ModifyIndApiInvokeEnrolment Method for ModifyIndApiInvokeEnrolment + +Modify an individual API invoker details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param onboardingId + @return ApiModifyIndApiInvokeEnrolmentRequest +*/ +func (a *IndividualAPIInvokerEnrolmentDetailsAPIService) ModifyIndApiInvokeEnrolment(ctx context.Context, onboardingId string) ApiModifyIndApiInvokeEnrolmentRequest { + return ApiModifyIndApiInvokeEnrolmentRequest{ + ApiService: a, + ctx: ctx, + onboardingId: onboardingId, + } +} + +// Execute executes the request +// @return APIInvokerEnrolmentDetails +func (a *IndividualAPIInvokerEnrolmentDetailsAPIService) ModifyIndApiInvokeEnrolmentExecute(r ApiModifyIndApiInvokeEnrolmentRequest) (*APIInvokerEnrolmentDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIInvokerEnrolmentDetails + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IndividualAPIInvokerEnrolmentDetailsAPIService.ModifyIndApiInvokeEnrolment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/onboardedInvokers/{onboardingId}" + localVarPath = strings.Replace(localVarPath, "{"+"onboardingId"+"}", url.PathEscape(parameterValueToString(r.onboardingId, "onboardingId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aPIInvokerEnrolmentDetailsPatch == nil { + return localVarReturnValue, nil, reportError("aPIInvokerEnrolmentDetailsPatch is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aPIInvokerEnrolmentDetailsPatch + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifApiInvokerManagement/client.go b/internal/CapifApiInvokerManagement/client.go new file mode 100644 index 0000000000000000000000000000000000000000..c298a2fff350d8a7904b4b1eb37d2786ddd788cc --- /dev/null +++ b/internal/CapifApiInvokerManagement/client.go @@ -0,0 +1,663 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the CAPIF_API_Invoker_Management_API API v1.2.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI *DefaultAPIService + + IndividualAPIInvokerEnrolmentDetailsAPI *IndividualAPIInvokerEnrolmentDetailsAPIService +} + +type service struct { + client *APIClient +} + +// 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 *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.IndividualAPIInvokerEnrolmentDetailsAPI = (*IndividualAPIInvokerEnrolmentDetailsAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/internal/CapifApiInvokerManagement/configuration.go b/internal/CapifApiInvokerManagement/configuration.go new file mode 100644 index 0000000000000000000000000000000000000000..7044ea45c9bb9d6af7ca4aeae1f28ffd27e3afea --- /dev/null +++ b/internal/CapifApiInvokerManagement/configuration.go @@ -0,0 +1,221 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "{apiRoot}/api-invoker-management/v1", + Description: "No description provided", + Variables: map[string]ServerVariable{ + "apiRoot": ServerVariable{ + Description: "apiRoot as defined in clause 7.5 of 3GPP TS 29.222", + DefaultValue: "https://example.com", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/internal/CapifApiInvokerManagement/docs/APIInvokerEnrolmentDetails.md b/internal/CapifApiInvokerManagement/docs/APIInvokerEnrolmentDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..655091b30bb2cb1ef8c7dd1d99ef2a13209c981c --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/APIInvokerEnrolmentDetails.md @@ -0,0 +1,228 @@ +# APIInvokerEnrolmentDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiInvokerId** | Pointer to **string** | API invoker ID assigned by the CAPIF core function to the API invoker while on-boarding the API invoker. Shall not be present in the HTTP POST request from the API invoker to the CAPIF core function, to on-board itself. Shall be present in all other HTTP requests and responses. | [optional] [readonly] +**OnboardingInformation** | [**OnboardingInformation**](OnboardingInformation.md) | | +**NotificationDestination** | **string** | string providing an URI formatted according to IETF RFC 3986. | +**RequestTestNotification** | Pointer to **bool** | Set to true by Subscriber to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. | [optional] +**WebsockNotifConfig** | Pointer to [**WebsockNotifConfig**](WebsockNotifConfig.md) | | [optional] +**ApiList** | Pointer to [**APIList**](APIList.md) | | [optional] +**ApiInvokerInformation** | Pointer to **string** | Generic information related to the API invoker such as details of the device or the application. | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewAPIInvokerEnrolmentDetails + +`func NewAPIInvokerEnrolmentDetails(onboardingInformation OnboardingInformation, notificationDestination string, ) *APIInvokerEnrolmentDetails` + +NewAPIInvokerEnrolmentDetails instantiates a new APIInvokerEnrolmentDetails 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 + +### NewAPIInvokerEnrolmentDetailsWithDefaults + +`func NewAPIInvokerEnrolmentDetailsWithDefaults() *APIInvokerEnrolmentDetails` + +NewAPIInvokerEnrolmentDetailsWithDefaults instantiates a new APIInvokerEnrolmentDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiInvokerId + +`func (o *APIInvokerEnrolmentDetails) GetApiInvokerId() string` + +GetApiInvokerId returns the ApiInvokerId field if non-nil, zero value otherwise. + +### GetApiInvokerIdOk + +`func (o *APIInvokerEnrolmentDetails) GetApiInvokerIdOk() (*string, bool)` + +GetApiInvokerIdOk returns a tuple with the ApiInvokerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerId + +`func (o *APIInvokerEnrolmentDetails) SetApiInvokerId(v string)` + +SetApiInvokerId sets ApiInvokerId field to given value. + +### HasApiInvokerId + +`func (o *APIInvokerEnrolmentDetails) HasApiInvokerId() bool` + +HasApiInvokerId returns a boolean if a field has been set. + +### GetOnboardingInformation + +`func (o *APIInvokerEnrolmentDetails) GetOnboardingInformation() OnboardingInformation` + +GetOnboardingInformation returns the OnboardingInformation field if non-nil, zero value otherwise. + +### GetOnboardingInformationOk + +`func (o *APIInvokerEnrolmentDetails) GetOnboardingInformationOk() (*OnboardingInformation, bool)` + +GetOnboardingInformationOk returns a tuple with the OnboardingInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnboardingInformation + +`func (o *APIInvokerEnrolmentDetails) SetOnboardingInformation(v OnboardingInformation)` + +SetOnboardingInformation sets OnboardingInformation field to given value. + + +### GetNotificationDestination + +`func (o *APIInvokerEnrolmentDetails) GetNotificationDestination() string` + +GetNotificationDestination returns the NotificationDestination field if non-nil, zero value otherwise. + +### GetNotificationDestinationOk + +`func (o *APIInvokerEnrolmentDetails) GetNotificationDestinationOk() (*string, bool)` + +GetNotificationDestinationOk returns a tuple with the NotificationDestination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationDestination + +`func (o *APIInvokerEnrolmentDetails) SetNotificationDestination(v string)` + +SetNotificationDestination sets NotificationDestination field to given value. + + +### GetRequestTestNotification + +`func (o *APIInvokerEnrolmentDetails) GetRequestTestNotification() bool` + +GetRequestTestNotification returns the RequestTestNotification field if non-nil, zero value otherwise. + +### GetRequestTestNotificationOk + +`func (o *APIInvokerEnrolmentDetails) GetRequestTestNotificationOk() (*bool, bool)` + +GetRequestTestNotificationOk returns a tuple with the RequestTestNotification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTestNotification + +`func (o *APIInvokerEnrolmentDetails) SetRequestTestNotification(v bool)` + +SetRequestTestNotification sets RequestTestNotification field to given value. + +### HasRequestTestNotification + +`func (o *APIInvokerEnrolmentDetails) HasRequestTestNotification() bool` + +HasRequestTestNotification returns a boolean if a field has been set. + +### GetWebsockNotifConfig + +`func (o *APIInvokerEnrolmentDetails) GetWebsockNotifConfig() WebsockNotifConfig` + +GetWebsockNotifConfig returns the WebsockNotifConfig field if non-nil, zero value otherwise. + +### GetWebsockNotifConfigOk + +`func (o *APIInvokerEnrolmentDetails) GetWebsockNotifConfigOk() (*WebsockNotifConfig, bool)` + +GetWebsockNotifConfigOk returns a tuple with the WebsockNotifConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsockNotifConfig + +`func (o *APIInvokerEnrolmentDetails) SetWebsockNotifConfig(v WebsockNotifConfig)` + +SetWebsockNotifConfig sets WebsockNotifConfig field to given value. + +### HasWebsockNotifConfig + +`func (o *APIInvokerEnrolmentDetails) HasWebsockNotifConfig() bool` + +HasWebsockNotifConfig returns a boolean if a field has been set. + +### GetApiList + +`func (o *APIInvokerEnrolmentDetails) GetApiList() APIList` + +GetApiList returns the ApiList field if non-nil, zero value otherwise. + +### GetApiListOk + +`func (o *APIInvokerEnrolmentDetails) GetApiListOk() (*APIList, bool)` + +GetApiListOk returns a tuple with the ApiList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiList + +`func (o *APIInvokerEnrolmentDetails) SetApiList(v APIList)` + +SetApiList sets ApiList field to given value. + +### HasApiList + +`func (o *APIInvokerEnrolmentDetails) HasApiList() bool` + +HasApiList returns a boolean if a field has been set. + +### GetApiInvokerInformation + +`func (o *APIInvokerEnrolmentDetails) GetApiInvokerInformation() string` + +GetApiInvokerInformation returns the ApiInvokerInformation field if non-nil, zero value otherwise. + +### GetApiInvokerInformationOk + +`func (o *APIInvokerEnrolmentDetails) GetApiInvokerInformationOk() (*string, bool)` + +GetApiInvokerInformationOk returns a tuple with the ApiInvokerInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerInformation + +`func (o *APIInvokerEnrolmentDetails) SetApiInvokerInformation(v string)` + +SetApiInvokerInformation sets ApiInvokerInformation field to given value. + +### HasApiInvokerInformation + +`func (o *APIInvokerEnrolmentDetails) HasApiInvokerInformation() bool` + +HasApiInvokerInformation returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *APIInvokerEnrolmentDetails) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *APIInvokerEnrolmentDetails) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *APIInvokerEnrolmentDetails) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *APIInvokerEnrolmentDetails) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/APIInvokerEnrolmentDetailsPatch.md b/internal/CapifApiInvokerManagement/docs/APIInvokerEnrolmentDetailsPatch.md new file mode 100644 index 0000000000000000000000000000000000000000..29279aa2661884542b87a15617b7c1e5d81cb642 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/APIInvokerEnrolmentDetailsPatch.md @@ -0,0 +1,134 @@ +# APIInvokerEnrolmentDetailsPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnboardingInformation** | Pointer to [**OnboardingInformation**](OnboardingInformation.md) | | [optional] +**NotificationDestination** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**ApiList** | Pointer to [**APIList**](APIList.md) | | [optional] +**ApiInvokerInformation** | Pointer to **string** | Generic information related to the API invoker such as details of the device or the application. | [optional] + +## Methods + +### NewAPIInvokerEnrolmentDetailsPatch + +`func NewAPIInvokerEnrolmentDetailsPatch() *APIInvokerEnrolmentDetailsPatch` + +NewAPIInvokerEnrolmentDetailsPatch instantiates a new APIInvokerEnrolmentDetailsPatch 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 + +### NewAPIInvokerEnrolmentDetailsPatchWithDefaults + +`func NewAPIInvokerEnrolmentDetailsPatchWithDefaults() *APIInvokerEnrolmentDetailsPatch` + +NewAPIInvokerEnrolmentDetailsPatchWithDefaults instantiates a new APIInvokerEnrolmentDetailsPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOnboardingInformation + +`func (o *APIInvokerEnrolmentDetailsPatch) GetOnboardingInformation() OnboardingInformation` + +GetOnboardingInformation returns the OnboardingInformation field if non-nil, zero value otherwise. + +### GetOnboardingInformationOk + +`func (o *APIInvokerEnrolmentDetailsPatch) GetOnboardingInformationOk() (*OnboardingInformation, bool)` + +GetOnboardingInformationOk returns a tuple with the OnboardingInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnboardingInformation + +`func (o *APIInvokerEnrolmentDetailsPatch) SetOnboardingInformation(v OnboardingInformation)` + +SetOnboardingInformation sets OnboardingInformation field to given value. + +### HasOnboardingInformation + +`func (o *APIInvokerEnrolmentDetailsPatch) HasOnboardingInformation() bool` + +HasOnboardingInformation returns a boolean if a field has been set. + +### GetNotificationDestination + +`func (o *APIInvokerEnrolmentDetailsPatch) GetNotificationDestination() string` + +GetNotificationDestination returns the NotificationDestination field if non-nil, zero value otherwise. + +### GetNotificationDestinationOk + +`func (o *APIInvokerEnrolmentDetailsPatch) GetNotificationDestinationOk() (*string, bool)` + +GetNotificationDestinationOk returns a tuple with the NotificationDestination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationDestination + +`func (o *APIInvokerEnrolmentDetailsPatch) SetNotificationDestination(v string)` + +SetNotificationDestination sets NotificationDestination field to given value. + +### HasNotificationDestination + +`func (o *APIInvokerEnrolmentDetailsPatch) HasNotificationDestination() bool` + +HasNotificationDestination returns a boolean if a field has been set. + +### GetApiList + +`func (o *APIInvokerEnrolmentDetailsPatch) GetApiList() APIList` + +GetApiList returns the ApiList field if non-nil, zero value otherwise. + +### GetApiListOk + +`func (o *APIInvokerEnrolmentDetailsPatch) GetApiListOk() (*APIList, bool)` + +GetApiListOk returns a tuple with the ApiList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiList + +`func (o *APIInvokerEnrolmentDetailsPatch) SetApiList(v APIList)` + +SetApiList sets ApiList field to given value. + +### HasApiList + +`func (o *APIInvokerEnrolmentDetailsPatch) HasApiList() bool` + +HasApiList returns a boolean if a field has been set. + +### GetApiInvokerInformation + +`func (o *APIInvokerEnrolmentDetailsPatch) GetApiInvokerInformation() string` + +GetApiInvokerInformation returns the ApiInvokerInformation field if non-nil, zero value otherwise. + +### GetApiInvokerInformationOk + +`func (o *APIInvokerEnrolmentDetailsPatch) GetApiInvokerInformationOk() (*string, bool)` + +GetApiInvokerInformationOk returns a tuple with the ApiInvokerInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerInformation + +`func (o *APIInvokerEnrolmentDetailsPatch) SetApiInvokerInformation(v string)` + +SetApiInvokerInformation sets ApiInvokerInformation field to given value. + +### HasApiInvokerInformation + +`func (o *APIInvokerEnrolmentDetailsPatch) HasApiInvokerInformation() bool` + +HasApiInvokerInformation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/APIList.md b/internal/CapifApiInvokerManagement/docs/APIList.md new file mode 100644 index 0000000000000000000000000000000000000000..be432a358151a7c53ca4bdb9664c9d4833e1b292 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/APIList.md @@ -0,0 +1,56 @@ +# APIList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceAPIDescriptions** | Pointer to [**[]ServiceAPIDescription**](ServiceAPIDescription.md) | The list of service APIs that the API Invoker is allowed to invoke. | [optional] + +## Methods + +### NewAPIList + +`func NewAPIList() *APIList` + +NewAPIList instantiates a new APIList 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 + +### NewAPIListWithDefaults + +`func NewAPIListWithDefaults() *APIList` + +NewAPIListWithDefaults instantiates a new APIList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceAPIDescriptions + +`func (o *APIList) GetServiceAPIDescriptions() []ServiceAPIDescription` + +GetServiceAPIDescriptions returns the ServiceAPIDescriptions field if non-nil, zero value otherwise. + +### GetServiceAPIDescriptionsOk + +`func (o *APIList) GetServiceAPIDescriptionsOk() (*[]ServiceAPIDescription, bool)` + +GetServiceAPIDescriptionsOk returns a tuple with the ServiceAPIDescriptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAPIDescriptions + +`func (o *APIList) SetServiceAPIDescriptions(v []ServiceAPIDescription)` + +SetServiceAPIDescriptions sets ServiceAPIDescriptions field to given value. + +### HasServiceAPIDescriptions + +`func (o *APIList) HasServiceAPIDescriptions() bool` + +HasServiceAPIDescriptions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/AefLocation.md b/internal/CapifApiInvokerManagement/docs/AefLocation.md new file mode 100644 index 0000000000000000000000000000000000000000..c2a4a09046a05483ec75ce407bb7e502b14235d9 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/AefLocation.md @@ -0,0 +1,108 @@ +# AefLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CivicAddr** | Pointer to [**CivicAddress**](CivicAddress.md) | | [optional] +**GeoArea** | Pointer to [**GeographicArea**](GeographicArea.md) | | [optional] +**DcId** | Pointer to **string** | Identifies the data center where the AEF providing the service API is located. | [optional] + +## Methods + +### NewAefLocation + +`func NewAefLocation() *AefLocation` + +NewAefLocation instantiates a new AefLocation 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 + +### NewAefLocationWithDefaults + +`func NewAefLocationWithDefaults() *AefLocation` + +NewAefLocationWithDefaults instantiates a new AefLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCivicAddr + +`func (o *AefLocation) GetCivicAddr() CivicAddress` + +GetCivicAddr returns the CivicAddr field if non-nil, zero value otherwise. + +### GetCivicAddrOk + +`func (o *AefLocation) GetCivicAddrOk() (*CivicAddress, bool)` + +GetCivicAddrOk returns a tuple with the CivicAddr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCivicAddr + +`func (o *AefLocation) SetCivicAddr(v CivicAddress)` + +SetCivicAddr sets CivicAddr field to given value. + +### HasCivicAddr + +`func (o *AefLocation) HasCivicAddr() bool` + +HasCivicAddr returns a boolean if a field has been set. + +### GetGeoArea + +`func (o *AefLocation) GetGeoArea() GeographicArea` + +GetGeoArea returns the GeoArea field if non-nil, zero value otherwise. + +### GetGeoAreaOk + +`func (o *AefLocation) GetGeoAreaOk() (*GeographicArea, bool)` + +GetGeoAreaOk returns a tuple with the GeoArea field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeoArea + +`func (o *AefLocation) SetGeoArea(v GeographicArea)` + +SetGeoArea sets GeoArea field to given value. + +### HasGeoArea + +`func (o *AefLocation) HasGeoArea() bool` + +HasGeoArea returns a boolean if a field has been set. + +### GetDcId + +`func (o *AefLocation) GetDcId() string` + +GetDcId returns the DcId field if non-nil, zero value otherwise. + +### GetDcIdOk + +`func (o *AefLocation) GetDcIdOk() (*string, bool)` + +GetDcIdOk returns a tuple with the DcId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDcId + +`func (o *AefLocation) SetDcId(v string)` + +SetDcId sets DcId field to given value. + +### HasDcId + +`func (o *AefLocation) HasDcId() bool` + +HasDcId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/AefProfile.md b/internal/CapifApiInvokerManagement/docs/AefProfile.md new file mode 100644 index 0000000000000000000000000000000000000000..8da52da6ea5609a2f7df5628bdc44e92e5f32236 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/AefProfile.md @@ -0,0 +1,228 @@ +# AefProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AefId** | **string** | Identifier of the API exposing function | +**Versions** | [**[]Version**](Version.md) | API version | +**Protocol** | Pointer to [**Protocol**](Protocol.md) | | [optional] +**DataFormat** | Pointer to [**DataFormat**](DataFormat.md) | | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the AEF | [optional] +**DomainName** | Pointer to **string** | Domain to which API belongs to | [optional] +**InterfaceDescriptions** | Pointer to [**[]InterfaceDescription**](InterfaceDescription.md) | Interface details | [optional] +**AefLocation** | Pointer to [**AefLocation**](AefLocation.md) | | [optional] + +## Methods + +### NewAefProfile + +`func NewAefProfile(aefId string, versions []Version, ) *AefProfile` + +NewAefProfile instantiates a new AefProfile 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 + +### NewAefProfileWithDefaults + +`func NewAefProfileWithDefaults() *AefProfile` + +NewAefProfileWithDefaults instantiates a new AefProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAefId + +`func (o *AefProfile) GetAefId() string` + +GetAefId returns the AefId field if non-nil, zero value otherwise. + +### GetAefIdOk + +`func (o *AefProfile) GetAefIdOk() (*string, bool)` + +GetAefIdOk returns a tuple with the AefId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefId + +`func (o *AefProfile) SetAefId(v string)` + +SetAefId sets AefId field to given value. + + +### GetVersions + +`func (o *AefProfile) GetVersions() []Version` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AefProfile) GetVersionsOk() (*[]Version, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AefProfile) SetVersions(v []Version)` + +SetVersions sets Versions field to given value. + + +### GetProtocol + +`func (o *AefProfile) GetProtocol() Protocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *AefProfile) GetProtocolOk() (*Protocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *AefProfile) SetProtocol(v Protocol)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *AefProfile) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetDataFormat + +`func (o *AefProfile) GetDataFormat() DataFormat` + +GetDataFormat returns the DataFormat field if non-nil, zero value otherwise. + +### GetDataFormatOk + +`func (o *AefProfile) GetDataFormatOk() (*DataFormat, bool)` + +GetDataFormatOk returns a tuple with the DataFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFormat + +`func (o *AefProfile) SetDataFormat(v DataFormat)` + +SetDataFormat sets DataFormat field to given value. + +### HasDataFormat + +`func (o *AefProfile) HasDataFormat() bool` + +HasDataFormat returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *AefProfile) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *AefProfile) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *AefProfile) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *AefProfile) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + +### GetDomainName + +`func (o *AefProfile) GetDomainName() string` + +GetDomainName returns the DomainName field if non-nil, zero value otherwise. + +### GetDomainNameOk + +`func (o *AefProfile) GetDomainNameOk() (*string, bool)` + +GetDomainNameOk returns a tuple with the DomainName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainName + +`func (o *AefProfile) SetDomainName(v string)` + +SetDomainName sets DomainName field to given value. + +### HasDomainName + +`func (o *AefProfile) HasDomainName() bool` + +HasDomainName returns a boolean if a field has been set. + +### GetInterfaceDescriptions + +`func (o *AefProfile) GetInterfaceDescriptions() []InterfaceDescription` + +GetInterfaceDescriptions returns the InterfaceDescriptions field if non-nil, zero value otherwise. + +### GetInterfaceDescriptionsOk + +`func (o *AefProfile) GetInterfaceDescriptionsOk() (*[]InterfaceDescription, bool)` + +GetInterfaceDescriptionsOk returns a tuple with the InterfaceDescriptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceDescriptions + +`func (o *AefProfile) SetInterfaceDescriptions(v []InterfaceDescription)` + +SetInterfaceDescriptions sets InterfaceDescriptions field to given value. + +### HasInterfaceDescriptions + +`func (o *AefProfile) HasInterfaceDescriptions() bool` + +HasInterfaceDescriptions returns a boolean if a field has been set. + +### GetAefLocation + +`func (o *AefProfile) GetAefLocation() AefLocation` + +GetAefLocation returns the AefLocation field if non-nil, zero value otherwise. + +### GetAefLocationOk + +`func (o *AefProfile) GetAefLocationOk() (*AefLocation, bool)` + +GetAefLocationOk returns a tuple with the AefLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefLocation + +`func (o *AefProfile) SetAefLocation(v AefLocation)` + +SetAefLocation sets AefLocation field to given value. + +### HasAefLocation + +`func (o *AefProfile) HasAefLocation() bool` + +HasAefLocation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/CivicAddress.md b/internal/CapifApiInvokerManagement/docs/CivicAddress.md new file mode 100644 index 0000000000000000000000000000000000000000..42a88edddf4709626a8c5653d9ccf25c58ac0fc0 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/CivicAddress.md @@ -0,0 +1,914 @@ +# CivicAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | Pointer to **string** | | [optional] +**A1** | Pointer to **string** | | [optional] +**A2** | Pointer to **string** | | [optional] +**A3** | Pointer to **string** | | [optional] +**A4** | Pointer to **string** | | [optional] +**A5** | Pointer to **string** | | [optional] +**A6** | Pointer to **string** | | [optional] +**PRD** | Pointer to **string** | | [optional] +**POD** | Pointer to **string** | | [optional] +**STS** | Pointer to **string** | | [optional] +**HNO** | Pointer to **string** | | [optional] +**HNS** | Pointer to **string** | | [optional] +**LMK** | Pointer to **string** | | [optional] +**LOC** | Pointer to **string** | | [optional] +**NAM** | Pointer to **string** | | [optional] +**PC** | Pointer to **string** | | [optional] +**BLD** | Pointer to **string** | | [optional] +**UNIT** | Pointer to **string** | | [optional] +**FLR** | Pointer to **string** | | [optional] +**ROOM** | Pointer to **string** | | [optional] +**PLC** | Pointer to **string** | | [optional] +**PCN** | Pointer to **string** | | [optional] +**POBOX** | Pointer to **string** | | [optional] +**ADDCODE** | Pointer to **string** | | [optional] +**SEAT** | Pointer to **string** | | [optional] +**RD** | Pointer to **string** | | [optional] +**RDSEC** | Pointer to **string** | | [optional] +**RDBR** | Pointer to **string** | | [optional] +**RDSUBBR** | Pointer to **string** | | [optional] +**PRM** | Pointer to **string** | | [optional] +**POM** | Pointer to **string** | | [optional] +**UsageRules** | Pointer to **string** | | [optional] +**Method** | Pointer to **string** | | [optional] +**ProvidedBy** | Pointer to **string** | | [optional] + +## Methods + +### NewCivicAddress + +`func NewCivicAddress() *CivicAddress` + +NewCivicAddress instantiates a new CivicAddress 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 + +### NewCivicAddressWithDefaults + +`func NewCivicAddressWithDefaults() *CivicAddress` + +NewCivicAddressWithDefaults instantiates a new CivicAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCountry + +`func (o *CivicAddress) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *CivicAddress) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *CivicAddress) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *CivicAddress) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + +### GetA1 + +`func (o *CivicAddress) GetA1() string` + +GetA1 returns the A1 field if non-nil, zero value otherwise. + +### GetA1Ok + +`func (o *CivicAddress) GetA1Ok() (*string, bool)` + +GetA1Ok returns a tuple with the A1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA1 + +`func (o *CivicAddress) SetA1(v string)` + +SetA1 sets A1 field to given value. + +### HasA1 + +`func (o *CivicAddress) HasA1() bool` + +HasA1 returns a boolean if a field has been set. + +### GetA2 + +`func (o *CivicAddress) GetA2() string` + +GetA2 returns the A2 field if non-nil, zero value otherwise. + +### GetA2Ok + +`func (o *CivicAddress) GetA2Ok() (*string, bool)` + +GetA2Ok returns a tuple with the A2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA2 + +`func (o *CivicAddress) SetA2(v string)` + +SetA2 sets A2 field to given value. + +### HasA2 + +`func (o *CivicAddress) HasA2() bool` + +HasA2 returns a boolean if a field has been set. + +### GetA3 + +`func (o *CivicAddress) GetA3() string` + +GetA3 returns the A3 field if non-nil, zero value otherwise. + +### GetA3Ok + +`func (o *CivicAddress) GetA3Ok() (*string, bool)` + +GetA3Ok returns a tuple with the A3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA3 + +`func (o *CivicAddress) SetA3(v string)` + +SetA3 sets A3 field to given value. + +### HasA3 + +`func (o *CivicAddress) HasA3() bool` + +HasA3 returns a boolean if a field has been set. + +### GetA4 + +`func (o *CivicAddress) GetA4() string` + +GetA4 returns the A4 field if non-nil, zero value otherwise. + +### GetA4Ok + +`func (o *CivicAddress) GetA4Ok() (*string, bool)` + +GetA4Ok returns a tuple with the A4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA4 + +`func (o *CivicAddress) SetA4(v string)` + +SetA4 sets A4 field to given value. + +### HasA4 + +`func (o *CivicAddress) HasA4() bool` + +HasA4 returns a boolean if a field has been set. + +### GetA5 + +`func (o *CivicAddress) GetA5() string` + +GetA5 returns the A5 field if non-nil, zero value otherwise. + +### GetA5Ok + +`func (o *CivicAddress) GetA5Ok() (*string, bool)` + +GetA5Ok returns a tuple with the A5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA5 + +`func (o *CivicAddress) SetA5(v string)` + +SetA5 sets A5 field to given value. + +### HasA5 + +`func (o *CivicAddress) HasA5() bool` + +HasA5 returns a boolean if a field has been set. + +### GetA6 + +`func (o *CivicAddress) GetA6() string` + +GetA6 returns the A6 field if non-nil, zero value otherwise. + +### GetA6Ok + +`func (o *CivicAddress) GetA6Ok() (*string, bool)` + +GetA6Ok returns a tuple with the A6 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA6 + +`func (o *CivicAddress) SetA6(v string)` + +SetA6 sets A6 field to given value. + +### HasA6 + +`func (o *CivicAddress) HasA6() bool` + +HasA6 returns a boolean if a field has been set. + +### GetPRD + +`func (o *CivicAddress) GetPRD() string` + +GetPRD returns the PRD field if non-nil, zero value otherwise. + +### GetPRDOk + +`func (o *CivicAddress) GetPRDOk() (*string, bool)` + +GetPRDOk returns a tuple with the PRD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPRD + +`func (o *CivicAddress) SetPRD(v string)` + +SetPRD sets PRD field to given value. + +### HasPRD + +`func (o *CivicAddress) HasPRD() bool` + +HasPRD returns a boolean if a field has been set. + +### GetPOD + +`func (o *CivicAddress) GetPOD() string` + +GetPOD returns the POD field if non-nil, zero value otherwise. + +### GetPODOk + +`func (o *CivicAddress) GetPODOk() (*string, bool)` + +GetPODOk returns a tuple with the POD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOD + +`func (o *CivicAddress) SetPOD(v string)` + +SetPOD sets POD field to given value. + +### HasPOD + +`func (o *CivicAddress) HasPOD() bool` + +HasPOD returns a boolean if a field has been set. + +### GetSTS + +`func (o *CivicAddress) GetSTS() string` + +GetSTS returns the STS field if non-nil, zero value otherwise. + +### GetSTSOk + +`func (o *CivicAddress) GetSTSOk() (*string, bool)` + +GetSTSOk returns a tuple with the STS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSTS + +`func (o *CivicAddress) SetSTS(v string)` + +SetSTS sets STS field to given value. + +### HasSTS + +`func (o *CivicAddress) HasSTS() bool` + +HasSTS returns a boolean if a field has been set. + +### GetHNO + +`func (o *CivicAddress) GetHNO() string` + +GetHNO returns the HNO field if non-nil, zero value otherwise. + +### GetHNOOk + +`func (o *CivicAddress) GetHNOOk() (*string, bool)` + +GetHNOOk returns a tuple with the HNO field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHNO + +`func (o *CivicAddress) SetHNO(v string)` + +SetHNO sets HNO field to given value. + +### HasHNO + +`func (o *CivicAddress) HasHNO() bool` + +HasHNO returns a boolean if a field has been set. + +### GetHNS + +`func (o *CivicAddress) GetHNS() string` + +GetHNS returns the HNS field if non-nil, zero value otherwise. + +### GetHNSOk + +`func (o *CivicAddress) GetHNSOk() (*string, bool)` + +GetHNSOk returns a tuple with the HNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHNS + +`func (o *CivicAddress) SetHNS(v string)` + +SetHNS sets HNS field to given value. + +### HasHNS + +`func (o *CivicAddress) HasHNS() bool` + +HasHNS returns a boolean if a field has been set. + +### GetLMK + +`func (o *CivicAddress) GetLMK() string` + +GetLMK returns the LMK field if non-nil, zero value otherwise. + +### GetLMKOk + +`func (o *CivicAddress) GetLMKOk() (*string, bool)` + +GetLMKOk returns a tuple with the LMK field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLMK + +`func (o *CivicAddress) SetLMK(v string)` + +SetLMK sets LMK field to given value. + +### HasLMK + +`func (o *CivicAddress) HasLMK() bool` + +HasLMK returns a boolean if a field has been set. + +### GetLOC + +`func (o *CivicAddress) GetLOC() string` + +GetLOC returns the LOC field if non-nil, zero value otherwise. + +### GetLOCOk + +`func (o *CivicAddress) GetLOCOk() (*string, bool)` + +GetLOCOk returns a tuple with the LOC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLOC + +`func (o *CivicAddress) SetLOC(v string)` + +SetLOC sets LOC field to given value. + +### HasLOC + +`func (o *CivicAddress) HasLOC() bool` + +HasLOC returns a boolean if a field has been set. + +### GetNAM + +`func (o *CivicAddress) GetNAM() string` + +GetNAM returns the NAM field if non-nil, zero value otherwise. + +### GetNAMOk + +`func (o *CivicAddress) GetNAMOk() (*string, bool)` + +GetNAMOk returns a tuple with the NAM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNAM + +`func (o *CivicAddress) SetNAM(v string)` + +SetNAM sets NAM field to given value. + +### HasNAM + +`func (o *CivicAddress) HasNAM() bool` + +HasNAM returns a boolean if a field has been set. + +### GetPC + +`func (o *CivicAddress) GetPC() string` + +GetPC returns the PC field if non-nil, zero value otherwise. + +### GetPCOk + +`func (o *CivicAddress) GetPCOk() (*string, bool)` + +GetPCOk returns a tuple with the PC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPC + +`func (o *CivicAddress) SetPC(v string)` + +SetPC sets PC field to given value. + +### HasPC + +`func (o *CivicAddress) HasPC() bool` + +HasPC returns a boolean if a field has been set. + +### GetBLD + +`func (o *CivicAddress) GetBLD() string` + +GetBLD returns the BLD field if non-nil, zero value otherwise. + +### GetBLDOk + +`func (o *CivicAddress) GetBLDOk() (*string, bool)` + +GetBLDOk returns a tuple with the BLD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBLD + +`func (o *CivicAddress) SetBLD(v string)` + +SetBLD sets BLD field to given value. + +### HasBLD + +`func (o *CivicAddress) HasBLD() bool` + +HasBLD returns a boolean if a field has been set. + +### GetUNIT + +`func (o *CivicAddress) GetUNIT() string` + +GetUNIT returns the UNIT field if non-nil, zero value otherwise. + +### GetUNITOk + +`func (o *CivicAddress) GetUNITOk() (*string, bool)` + +GetUNITOk returns a tuple with the UNIT field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUNIT + +`func (o *CivicAddress) SetUNIT(v string)` + +SetUNIT sets UNIT field to given value. + +### HasUNIT + +`func (o *CivicAddress) HasUNIT() bool` + +HasUNIT returns a boolean if a field has been set. + +### GetFLR + +`func (o *CivicAddress) GetFLR() string` + +GetFLR returns the FLR field if non-nil, zero value otherwise. + +### GetFLROk + +`func (o *CivicAddress) GetFLROk() (*string, bool)` + +GetFLROk returns a tuple with the FLR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFLR + +`func (o *CivicAddress) SetFLR(v string)` + +SetFLR sets FLR field to given value. + +### HasFLR + +`func (o *CivicAddress) HasFLR() bool` + +HasFLR returns a boolean if a field has been set. + +### GetROOM + +`func (o *CivicAddress) GetROOM() string` + +GetROOM returns the ROOM field if non-nil, zero value otherwise. + +### GetROOMOk + +`func (o *CivicAddress) GetROOMOk() (*string, bool)` + +GetROOMOk returns a tuple with the ROOM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetROOM + +`func (o *CivicAddress) SetROOM(v string)` + +SetROOM sets ROOM field to given value. + +### HasROOM + +`func (o *CivicAddress) HasROOM() bool` + +HasROOM returns a boolean if a field has been set. + +### GetPLC + +`func (o *CivicAddress) GetPLC() string` + +GetPLC returns the PLC field if non-nil, zero value otherwise. + +### GetPLCOk + +`func (o *CivicAddress) GetPLCOk() (*string, bool)` + +GetPLCOk returns a tuple with the PLC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPLC + +`func (o *CivicAddress) SetPLC(v string)` + +SetPLC sets PLC field to given value. + +### HasPLC + +`func (o *CivicAddress) HasPLC() bool` + +HasPLC returns a boolean if a field has been set. + +### GetPCN + +`func (o *CivicAddress) GetPCN() string` + +GetPCN returns the PCN field if non-nil, zero value otherwise. + +### GetPCNOk + +`func (o *CivicAddress) GetPCNOk() (*string, bool)` + +GetPCNOk returns a tuple with the PCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPCN + +`func (o *CivicAddress) SetPCN(v string)` + +SetPCN sets PCN field to given value. + +### HasPCN + +`func (o *CivicAddress) HasPCN() bool` + +HasPCN returns a boolean if a field has been set. + +### GetPOBOX + +`func (o *CivicAddress) GetPOBOX() string` + +GetPOBOX returns the POBOX field if non-nil, zero value otherwise. + +### GetPOBOXOk + +`func (o *CivicAddress) GetPOBOXOk() (*string, bool)` + +GetPOBOXOk returns a tuple with the POBOX field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOBOX + +`func (o *CivicAddress) SetPOBOX(v string)` + +SetPOBOX sets POBOX field to given value. + +### HasPOBOX + +`func (o *CivicAddress) HasPOBOX() bool` + +HasPOBOX returns a boolean if a field has been set. + +### GetADDCODE + +`func (o *CivicAddress) GetADDCODE() string` + +GetADDCODE returns the ADDCODE field if non-nil, zero value otherwise. + +### GetADDCODEOk + +`func (o *CivicAddress) GetADDCODEOk() (*string, bool)` + +GetADDCODEOk returns a tuple with the ADDCODE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetADDCODE + +`func (o *CivicAddress) SetADDCODE(v string)` + +SetADDCODE sets ADDCODE field to given value. + +### HasADDCODE + +`func (o *CivicAddress) HasADDCODE() bool` + +HasADDCODE returns a boolean if a field has been set. + +### GetSEAT + +`func (o *CivicAddress) GetSEAT() string` + +GetSEAT returns the SEAT field if non-nil, zero value otherwise. + +### GetSEATOk + +`func (o *CivicAddress) GetSEATOk() (*string, bool)` + +GetSEATOk returns a tuple with the SEAT field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSEAT + +`func (o *CivicAddress) SetSEAT(v string)` + +SetSEAT sets SEAT field to given value. + +### HasSEAT + +`func (o *CivicAddress) HasSEAT() bool` + +HasSEAT returns a boolean if a field has been set. + +### GetRD + +`func (o *CivicAddress) GetRD() string` + +GetRD returns the RD field if non-nil, zero value otherwise. + +### GetRDOk + +`func (o *CivicAddress) GetRDOk() (*string, bool)` + +GetRDOk returns a tuple with the RD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRD + +`func (o *CivicAddress) SetRD(v string)` + +SetRD sets RD field to given value. + +### HasRD + +`func (o *CivicAddress) HasRD() bool` + +HasRD returns a boolean if a field has been set. + +### GetRDSEC + +`func (o *CivicAddress) GetRDSEC() string` + +GetRDSEC returns the RDSEC field if non-nil, zero value otherwise. + +### GetRDSECOk + +`func (o *CivicAddress) GetRDSECOk() (*string, bool)` + +GetRDSECOk returns a tuple with the RDSEC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDSEC + +`func (o *CivicAddress) SetRDSEC(v string)` + +SetRDSEC sets RDSEC field to given value. + +### HasRDSEC + +`func (o *CivicAddress) HasRDSEC() bool` + +HasRDSEC returns a boolean if a field has been set. + +### GetRDBR + +`func (o *CivicAddress) GetRDBR() string` + +GetRDBR returns the RDBR field if non-nil, zero value otherwise. + +### GetRDBROk + +`func (o *CivicAddress) GetRDBROk() (*string, bool)` + +GetRDBROk returns a tuple with the RDBR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDBR + +`func (o *CivicAddress) SetRDBR(v string)` + +SetRDBR sets RDBR field to given value. + +### HasRDBR + +`func (o *CivicAddress) HasRDBR() bool` + +HasRDBR returns a boolean if a field has been set. + +### GetRDSUBBR + +`func (o *CivicAddress) GetRDSUBBR() string` + +GetRDSUBBR returns the RDSUBBR field if non-nil, zero value otherwise. + +### GetRDSUBBROk + +`func (o *CivicAddress) GetRDSUBBROk() (*string, bool)` + +GetRDSUBBROk returns a tuple with the RDSUBBR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDSUBBR + +`func (o *CivicAddress) SetRDSUBBR(v string)` + +SetRDSUBBR sets RDSUBBR field to given value. + +### HasRDSUBBR + +`func (o *CivicAddress) HasRDSUBBR() bool` + +HasRDSUBBR returns a boolean if a field has been set. + +### GetPRM + +`func (o *CivicAddress) GetPRM() string` + +GetPRM returns the PRM field if non-nil, zero value otherwise. + +### GetPRMOk + +`func (o *CivicAddress) GetPRMOk() (*string, bool)` + +GetPRMOk returns a tuple with the PRM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPRM + +`func (o *CivicAddress) SetPRM(v string)` + +SetPRM sets PRM field to given value. + +### HasPRM + +`func (o *CivicAddress) HasPRM() bool` + +HasPRM returns a boolean if a field has been set. + +### GetPOM + +`func (o *CivicAddress) GetPOM() string` + +GetPOM returns the POM field if non-nil, zero value otherwise. + +### GetPOMOk + +`func (o *CivicAddress) GetPOMOk() (*string, bool)` + +GetPOMOk returns a tuple with the POM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOM + +`func (o *CivicAddress) SetPOM(v string)` + +SetPOM sets POM field to given value. + +### HasPOM + +`func (o *CivicAddress) HasPOM() bool` + +HasPOM returns a boolean if a field has been set. + +### GetUsageRules + +`func (o *CivicAddress) GetUsageRules() string` + +GetUsageRules returns the UsageRules field if non-nil, zero value otherwise. + +### GetUsageRulesOk + +`func (o *CivicAddress) GetUsageRulesOk() (*string, bool)` + +GetUsageRulesOk returns a tuple with the UsageRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageRules + +`func (o *CivicAddress) SetUsageRules(v string)` + +SetUsageRules sets UsageRules field to given value. + +### HasUsageRules + +`func (o *CivicAddress) HasUsageRules() bool` + +HasUsageRules returns a boolean if a field has been set. + +### GetMethod + +`func (o *CivicAddress) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *CivicAddress) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *CivicAddress) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *CivicAddress) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### GetProvidedBy + +`func (o *CivicAddress) GetProvidedBy() string` + +GetProvidedBy returns the ProvidedBy field if non-nil, zero value otherwise. + +### GetProvidedByOk + +`func (o *CivicAddress) GetProvidedByOk() (*string, bool)` + +GetProvidedByOk returns a tuple with the ProvidedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvidedBy + +`func (o *CivicAddress) SetProvidedBy(v string)` + +SetProvidedBy sets ProvidedBy field to given value. + +### HasProvidedBy + +`func (o *CivicAddress) HasProvidedBy() bool` + +HasProvidedBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/CommunicationType.md b/internal/CapifApiInvokerManagement/docs/CommunicationType.md new file mode 100644 index 0000000000000000000000000000000000000000..50d76aa21e1651495e464996cbec140260e39ac6 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/CommunicationType.md @@ -0,0 +1,30 @@ +# CommunicationType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewCommunicationType + +`func NewCommunicationType() *CommunicationType` + +NewCommunicationType instantiates a new CommunicationType 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 + +### NewCommunicationTypeWithDefaults + +`func NewCommunicationTypeWithDefaults() *CommunicationType` + +NewCommunicationTypeWithDefaults instantiates a new CommunicationType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/CustomOperation.md b/internal/CapifApiInvokerManagement/docs/CustomOperation.md new file mode 100644 index 0000000000000000000000000000000000000000..3f34fd8ea700a560f7d528685bc18248150cda63 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/CustomOperation.md @@ -0,0 +1,124 @@ +# CustomOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommType** | [**CommunicationType**](CommunicationType.md) | | +**CustOpName** | **string** | it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. | +**Operations** | Pointer to [**[]Operation**](Operation.md) | Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. | [optional] +**Description** | Pointer to **string** | Text description of the custom operation | [optional] + +## Methods + +### NewCustomOperation + +`func NewCustomOperation(commType CommunicationType, custOpName string, ) *CustomOperation` + +NewCustomOperation instantiates a new CustomOperation 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 + +### NewCustomOperationWithDefaults + +`func NewCustomOperationWithDefaults() *CustomOperation` + +NewCustomOperationWithDefaults instantiates a new CustomOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommType + +`func (o *CustomOperation) GetCommType() CommunicationType` + +GetCommType returns the CommType field if non-nil, zero value otherwise. + +### GetCommTypeOk + +`func (o *CustomOperation) GetCommTypeOk() (*CommunicationType, bool)` + +GetCommTypeOk returns a tuple with the CommType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommType + +`func (o *CustomOperation) SetCommType(v CommunicationType)` + +SetCommType sets CommType field to given value. + + +### GetCustOpName + +`func (o *CustomOperation) GetCustOpName() string` + +GetCustOpName returns the CustOpName field if non-nil, zero value otherwise. + +### GetCustOpNameOk + +`func (o *CustomOperation) GetCustOpNameOk() (*string, bool)` + +GetCustOpNameOk returns a tuple with the CustOpName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOpName + +`func (o *CustomOperation) SetCustOpName(v string)` + +SetCustOpName sets CustOpName field to given value. + + +### GetOperations + +`func (o *CustomOperation) GetOperations() []Operation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *CustomOperation) GetOperationsOk() (*[]Operation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *CustomOperation) SetOperations(v []Operation)` + +SetOperations sets Operations field to given value. + +### HasOperations + +`func (o *CustomOperation) HasOperations() bool` + +HasOperations returns a boolean if a field has been set. + +### GetDescription + +`func (o *CustomOperation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CustomOperation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CustomOperation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CustomOperation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/DataFormat.md b/internal/CapifApiInvokerManagement/docs/DataFormat.md new file mode 100644 index 0000000000000000000000000000000000000000..5bc351926828a2a9f33f03050d85d230cbb7ea5a --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/DataFormat.md @@ -0,0 +1,30 @@ +# DataFormat + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewDataFormat + +`func NewDataFormat() *DataFormat` + +NewDataFormat instantiates a new DataFormat 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 + +### NewDataFormatWithDefaults + +`func NewDataFormatWithDefaults() *DataFormat` + +NewDataFormatWithDefaults instantiates a new DataFormat object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/DefaultAPI.md b/internal/CapifApiInvokerManagement/docs/DefaultAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..163a7b318aae77bf250cc6ce90522282c7398523 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/DefaultAPI.md @@ -0,0 +1,217 @@ +# \DefaultAPI + +All URIs are relative to *https://example.com/api-invoker-management/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**OnboardedInvokersOnboardingIdDelete**](DefaultAPI.md#OnboardedInvokersOnboardingIdDelete) | **Delete** /onboardedInvokers/{onboardingId} | +[**OnboardedInvokersOnboardingIdPut**](DefaultAPI.md#OnboardedInvokersOnboardingIdPut) | **Put** /onboardedInvokers/{onboardingId} | +[**OnboardedInvokersPost**](DefaultAPI.md#OnboardedInvokersPost) | **Post** /onboardedInvokers | + + + +## OnboardedInvokersOnboardingIdDelete + +> OnboardedInvokersOnboardingIdDelete(ctx, onboardingId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + onboardingId := "onboardingId_example" // string | String identifying an individual on-boarded API invoker resource + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.OnboardedInvokersOnboardingIdDelete(context.Background(), onboardingId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.OnboardedInvokersOnboardingIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**onboardingId** | **string** | String identifying an individual on-boarded API invoker resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOnboardedInvokersOnboardingIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/problem+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) + + +## OnboardedInvokersOnboardingIdPut + +> APIInvokerEnrolmentDetails OnboardedInvokersOnboardingIdPut(ctx, onboardingId).APIInvokerEnrolmentDetails(aPIInvokerEnrolmentDetails).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + onboardingId := "onboardingId_example" // string | String identifying an individual on-boarded API invoker resource + aPIInvokerEnrolmentDetails := *openapiclient.NewAPIInvokerEnrolmentDetails(*openapiclient.NewOnboardingInformation("ApiInvokerPublicKey_example"), "NotificationDestination_example") // APIInvokerEnrolmentDetails | representation of the API invoker details to be updated in CAPIF core function + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.OnboardedInvokersOnboardingIdPut(context.Background(), onboardingId).APIInvokerEnrolmentDetails(aPIInvokerEnrolmentDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.OnboardedInvokersOnboardingIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OnboardedInvokersOnboardingIdPut`: APIInvokerEnrolmentDetails + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.OnboardedInvokersOnboardingIdPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**onboardingId** | **string** | String identifying an individual on-boarded API invoker resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOnboardedInvokersOnboardingIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **aPIInvokerEnrolmentDetails** | [**APIInvokerEnrolmentDetails**](APIInvokerEnrolmentDetails.md) | representation of the API invoker details to be updated in CAPIF core function | + +### Return type + +[**APIInvokerEnrolmentDetails**](APIInvokerEnrolmentDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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) + + +## OnboardedInvokersPost + +> APIInvokerEnrolmentDetails OnboardedInvokersPost(ctx).APIInvokerEnrolmentDetails(aPIInvokerEnrolmentDetails).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + aPIInvokerEnrolmentDetails := *openapiclient.NewAPIInvokerEnrolmentDetails(*openapiclient.NewOnboardingInformation("ApiInvokerPublicKey_example"), "NotificationDestination_example") // APIInvokerEnrolmentDetails | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.OnboardedInvokersPost(context.Background()).APIInvokerEnrolmentDetails(aPIInvokerEnrolmentDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.OnboardedInvokersPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OnboardedInvokersPost`: APIInvokerEnrolmentDetails + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.OnboardedInvokersPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOnboardedInvokersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aPIInvokerEnrolmentDetails** | [**APIInvokerEnrolmentDetails**](APIInvokerEnrolmentDetails.md) | | + +### Return type + +[**APIInvokerEnrolmentDetails**](APIInvokerEnrolmentDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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/internal/CapifApiInvokerManagement/docs/EllipsoidArc.md b/internal/CapifApiInvokerManagement/docs/EllipsoidArc.md new file mode 100644 index 0000000000000000000000000000000000000000..eb8e00ee36031436acded8a294b36b1938456ad2 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/EllipsoidArc.md @@ -0,0 +1,156 @@ +# EllipsoidArc + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**InnerRadius** | **int32** | Indicates value of the inner radius. | +**UncertaintyRadius** | **float32** | Indicates value of uncertainty. | +**OffsetAngle** | **int32** | Indicates value of angle. | +**IncludedAngle** | **int32** | Indicates value of angle. | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewEllipsoidArc + +`func NewEllipsoidArc(point GeographicalCoordinates, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, confidence int32, ) *EllipsoidArc` + +NewEllipsoidArc instantiates a new EllipsoidArc 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 + +### NewEllipsoidArcWithDefaults + +`func NewEllipsoidArcWithDefaults() *EllipsoidArc` + +NewEllipsoidArcWithDefaults instantiates a new EllipsoidArc object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *EllipsoidArc) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *EllipsoidArc) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *EllipsoidArc) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetInnerRadius + +`func (o *EllipsoidArc) GetInnerRadius() int32` + +GetInnerRadius returns the InnerRadius field if non-nil, zero value otherwise. + +### GetInnerRadiusOk + +`func (o *EllipsoidArc) GetInnerRadiusOk() (*int32, bool)` + +GetInnerRadiusOk returns a tuple with the InnerRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInnerRadius + +`func (o *EllipsoidArc) SetInnerRadius(v int32)` + +SetInnerRadius sets InnerRadius field to given value. + + +### GetUncertaintyRadius + +`func (o *EllipsoidArc) GetUncertaintyRadius() float32` + +GetUncertaintyRadius returns the UncertaintyRadius field if non-nil, zero value otherwise. + +### GetUncertaintyRadiusOk + +`func (o *EllipsoidArc) GetUncertaintyRadiusOk() (*float32, bool)` + +GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyRadius + +`func (o *EllipsoidArc) SetUncertaintyRadius(v float32)` + +SetUncertaintyRadius sets UncertaintyRadius field to given value. + + +### GetOffsetAngle + +`func (o *EllipsoidArc) GetOffsetAngle() int32` + +GetOffsetAngle returns the OffsetAngle field if non-nil, zero value otherwise. + +### GetOffsetAngleOk + +`func (o *EllipsoidArc) GetOffsetAngleOk() (*int32, bool)` + +GetOffsetAngleOk returns a tuple with the OffsetAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffsetAngle + +`func (o *EllipsoidArc) SetOffsetAngle(v int32)` + +SetOffsetAngle sets OffsetAngle field to given value. + + +### GetIncludedAngle + +`func (o *EllipsoidArc) GetIncludedAngle() int32` + +GetIncludedAngle returns the IncludedAngle field if non-nil, zero value otherwise. + +### GetIncludedAngleOk + +`func (o *EllipsoidArc) GetIncludedAngleOk() (*int32, bool)` + +GetIncludedAngleOk returns a tuple with the IncludedAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludedAngle + +`func (o *EllipsoidArc) SetIncludedAngle(v int32)` + +SetIncludedAngle sets IncludedAngle field to given value. + + +### GetConfidence + +`func (o *EllipsoidArc) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *EllipsoidArc) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *EllipsoidArc) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/GADShape.md b/internal/CapifApiInvokerManagement/docs/GADShape.md new file mode 100644 index 0000000000000000000000000000000000000000..45ec8f3625d43b289474c686df3806f4204ea399 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/GADShape.md @@ -0,0 +1,51 @@ +# GADShape + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | [**SupportedGADShapes**](SupportedGADShapes.md) | | + +## Methods + +### NewGADShape + +`func NewGADShape(shape SupportedGADShapes, ) *GADShape` + +NewGADShape instantiates a new GADShape 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 + +### NewGADShapeWithDefaults + +`func NewGADShapeWithDefaults() *GADShape` + +NewGADShapeWithDefaults instantiates a new GADShape object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShape + +`func (o *GADShape) GetShape() SupportedGADShapes` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *GADShape) GetShapeOk() (*SupportedGADShapes, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *GADShape) SetShape(v SupportedGADShapes)` + +SetShape sets Shape field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/GeographicArea.md b/internal/CapifApiInvokerManagement/docs/GeographicArea.md new file mode 100644 index 0000000000000000000000000000000000000000..ccde5ace62bfeb6321e0dea8ab3c9739e0198820 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/GeographicArea.md @@ -0,0 +1,308 @@ +# GeographicArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | [**SupportedGADShapes**](SupportedGADShapes.md) | | +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Uncertainty** | **float32** | Indicates value of uncertainty. | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | +**PointList** | [**[]GeographicalCoordinates**](GeographicalCoordinates.md) | List of points. | +**Altitude** | **float64** | Indicates value of altitude. | +**UncertaintyAltitude** | **float32** | Indicates value of uncertainty. | +**VConfidence** | Pointer to **int32** | Indicates value of confidence. | [optional] +**InnerRadius** | **int32** | Indicates value of the inner radius. | +**UncertaintyRadius** | **float32** | Indicates value of uncertainty. | +**OffsetAngle** | **int32** | Indicates value of angle. | +**IncludedAngle** | **int32** | Indicates value of angle. | + +## Methods + +### NewGeographicArea + +`func NewGeographicArea(shape SupportedGADShapes, point GeographicalCoordinates, uncertainty float32, uncertaintyEllipse UncertaintyEllipse, confidence int32, pointList []GeographicalCoordinates, altitude float64, uncertaintyAltitude float32, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, ) *GeographicArea` + +NewGeographicArea instantiates a new GeographicArea 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 + +### NewGeographicAreaWithDefaults + +`func NewGeographicAreaWithDefaults() *GeographicArea` + +NewGeographicAreaWithDefaults instantiates a new GeographicArea object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShape + +`func (o *GeographicArea) GetShape() SupportedGADShapes` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *GeographicArea) GetShapeOk() (*SupportedGADShapes, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *GeographicArea) SetShape(v SupportedGADShapes)` + +SetShape sets Shape field to given value. + + +### GetPoint + +`func (o *GeographicArea) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *GeographicArea) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *GeographicArea) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertainty + +`func (o *GeographicArea) GetUncertainty() float32` + +GetUncertainty returns the Uncertainty field if non-nil, zero value otherwise. + +### GetUncertaintyOk + +`func (o *GeographicArea) GetUncertaintyOk() (*float32, bool)` + +GetUncertaintyOk returns a tuple with the Uncertainty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertainty + +`func (o *GeographicArea) SetUncertainty(v float32)` + +SetUncertainty sets Uncertainty field to given value. + + +### GetUncertaintyEllipse + +`func (o *GeographicArea) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *GeographicArea) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *GeographicArea) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *GeographicArea) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *GeographicArea) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *GeographicArea) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + +### GetPointList + +`func (o *GeographicArea) GetPointList() []GeographicalCoordinates` + +GetPointList returns the PointList field if non-nil, zero value otherwise. + +### GetPointListOk + +`func (o *GeographicArea) GetPointListOk() (*[]GeographicalCoordinates, bool)` + +GetPointListOk returns a tuple with the PointList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointList + +`func (o *GeographicArea) SetPointList(v []GeographicalCoordinates)` + +SetPointList sets PointList field to given value. + + +### GetAltitude + +`func (o *GeographicArea) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *GeographicArea) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *GeographicArea) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + +### GetUncertaintyAltitude + +`func (o *GeographicArea) GetUncertaintyAltitude() float32` + +GetUncertaintyAltitude returns the UncertaintyAltitude field if non-nil, zero value otherwise. + +### GetUncertaintyAltitudeOk + +`func (o *GeographicArea) GetUncertaintyAltitudeOk() (*float32, bool)` + +GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyAltitude + +`func (o *GeographicArea) SetUncertaintyAltitude(v float32)` + +SetUncertaintyAltitude sets UncertaintyAltitude field to given value. + + +### GetVConfidence + +`func (o *GeographicArea) GetVConfidence() int32` + +GetVConfidence returns the VConfidence field if non-nil, zero value otherwise. + +### GetVConfidenceOk + +`func (o *GeographicArea) GetVConfidenceOk() (*int32, bool)` + +GetVConfidenceOk returns a tuple with the VConfidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVConfidence + +`func (o *GeographicArea) SetVConfidence(v int32)` + +SetVConfidence sets VConfidence field to given value. + +### HasVConfidence + +`func (o *GeographicArea) HasVConfidence() bool` + +HasVConfidence returns a boolean if a field has been set. + +### GetInnerRadius + +`func (o *GeographicArea) GetInnerRadius() int32` + +GetInnerRadius returns the InnerRadius field if non-nil, zero value otherwise. + +### GetInnerRadiusOk + +`func (o *GeographicArea) GetInnerRadiusOk() (*int32, bool)` + +GetInnerRadiusOk returns a tuple with the InnerRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInnerRadius + +`func (o *GeographicArea) SetInnerRadius(v int32)` + +SetInnerRadius sets InnerRadius field to given value. + + +### GetUncertaintyRadius + +`func (o *GeographicArea) GetUncertaintyRadius() float32` + +GetUncertaintyRadius returns the UncertaintyRadius field if non-nil, zero value otherwise. + +### GetUncertaintyRadiusOk + +`func (o *GeographicArea) GetUncertaintyRadiusOk() (*float32, bool)` + +GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyRadius + +`func (o *GeographicArea) SetUncertaintyRadius(v float32)` + +SetUncertaintyRadius sets UncertaintyRadius field to given value. + + +### GetOffsetAngle + +`func (o *GeographicArea) GetOffsetAngle() int32` + +GetOffsetAngle returns the OffsetAngle field if non-nil, zero value otherwise. + +### GetOffsetAngleOk + +`func (o *GeographicArea) GetOffsetAngleOk() (*int32, bool)` + +GetOffsetAngleOk returns a tuple with the OffsetAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffsetAngle + +`func (o *GeographicArea) SetOffsetAngle(v int32)` + +SetOffsetAngle sets OffsetAngle field to given value. + + +### GetIncludedAngle + +`func (o *GeographicArea) GetIncludedAngle() int32` + +GetIncludedAngle returns the IncludedAngle field if non-nil, zero value otherwise. + +### GetIncludedAngleOk + +`func (o *GeographicArea) GetIncludedAngleOk() (*int32, bool)` + +GetIncludedAngleOk returns a tuple with the IncludedAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludedAngle + +`func (o *GeographicArea) SetIncludedAngle(v int32)` + +SetIncludedAngle sets IncludedAngle field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/GeographicalCoordinates.md b/internal/CapifApiInvokerManagement/docs/GeographicalCoordinates.md new file mode 100644 index 0000000000000000000000000000000000000000..1bcb866ca23d2369ced3e7e1ce370bd230e17130 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/GeographicalCoordinates.md @@ -0,0 +1,72 @@ +# GeographicalCoordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lon** | **float64** | | +**Lat** | **float64** | | + +## Methods + +### NewGeographicalCoordinates + +`func NewGeographicalCoordinates(lon float64, lat float64, ) *GeographicalCoordinates` + +NewGeographicalCoordinates instantiates a new GeographicalCoordinates 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 + +### NewGeographicalCoordinatesWithDefaults + +`func NewGeographicalCoordinatesWithDefaults() *GeographicalCoordinates` + +NewGeographicalCoordinatesWithDefaults instantiates a new GeographicalCoordinates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLon + +`func (o *GeographicalCoordinates) GetLon() float64` + +GetLon returns the Lon field if non-nil, zero value otherwise. + +### GetLonOk + +`func (o *GeographicalCoordinates) GetLonOk() (*float64, bool)` + +GetLonOk returns a tuple with the Lon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLon + +`func (o *GeographicalCoordinates) SetLon(v float64)` + +SetLon sets Lon field to given value. + + +### GetLat + +`func (o *GeographicalCoordinates) GetLat() float64` + +GetLat returns the Lat field if non-nil, zero value otherwise. + +### GetLatOk + +`func (o *GeographicalCoordinates) GetLatOk() (*float64, bool)` + +GetLatOk returns a tuple with the Lat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLat + +`func (o *GeographicalCoordinates) SetLat(v float64)` + +SetLat sets Lat field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/IndividualAPIInvokerEnrolmentDetailsAPI.md b/internal/CapifApiInvokerManagement/docs/IndividualAPIInvokerEnrolmentDetailsAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..63ac7acdaba3dc16488d1446e5f81c87e3414733 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/IndividualAPIInvokerEnrolmentDetailsAPI.md @@ -0,0 +1,81 @@ +# \IndividualAPIInvokerEnrolmentDetailsAPI + +All URIs are relative to *https://example.com/api-invoker-management/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ModifyIndApiInvokeEnrolment**](IndividualAPIInvokerEnrolmentDetailsAPI.md#ModifyIndApiInvokeEnrolment) | **Patch** /onboardedInvokers/{onboardingId} | + + + +## ModifyIndApiInvokeEnrolment + +> APIInvokerEnrolmentDetails ModifyIndApiInvokeEnrolment(ctx, onboardingId).APIInvokerEnrolmentDetailsPatch(aPIInvokerEnrolmentDetailsPatch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + onboardingId := "onboardingId_example" // string | + aPIInvokerEnrolmentDetailsPatch := *openapiclient.NewAPIInvokerEnrolmentDetailsPatch() // APIInvokerEnrolmentDetailsPatch | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IndividualAPIInvokerEnrolmentDetailsAPI.ModifyIndApiInvokeEnrolment(context.Background(), onboardingId).APIInvokerEnrolmentDetailsPatch(aPIInvokerEnrolmentDetailsPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IndividualAPIInvokerEnrolmentDetailsAPI.ModifyIndApiInvokeEnrolment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ModifyIndApiInvokeEnrolment`: APIInvokerEnrolmentDetails + fmt.Fprintf(os.Stdout, "Response from `IndividualAPIInvokerEnrolmentDetailsAPI.ModifyIndApiInvokeEnrolment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**onboardingId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiModifyIndApiInvokeEnrolmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **aPIInvokerEnrolmentDetailsPatch** | [**APIInvokerEnrolmentDetailsPatch**](APIInvokerEnrolmentDetailsPatch.md) | | + +### Return type + +[**APIInvokerEnrolmentDetails**](APIInvokerEnrolmentDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/merge-patch+json +- **Accept**: application/json, application/problem+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/internal/CapifApiInvokerManagement/docs/InterfaceDescription.md b/internal/CapifApiInvokerManagement/docs/InterfaceDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..d8028b51f483c1c26475863a957495fda5cf11d5 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/InterfaceDescription.md @@ -0,0 +1,134 @@ +# InterfaceDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ipv4Addr** | Pointer to **string** | string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. | [optional] +**Ipv6Addr** | Pointer to **string** | string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. | [optional] +**Port** | Pointer to **int32** | Unsigned integer with valid values between 0 and 65535. | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. | [optional] + +## Methods + +### NewInterfaceDescription + +`func NewInterfaceDescription() *InterfaceDescription` + +NewInterfaceDescription instantiates a new InterfaceDescription 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 + +### NewInterfaceDescriptionWithDefaults + +`func NewInterfaceDescriptionWithDefaults() *InterfaceDescription` + +NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIpv4Addr + +`func (o *InterfaceDescription) GetIpv4Addr() string` + +GetIpv4Addr returns the Ipv4Addr field if non-nil, zero value otherwise. + +### GetIpv4AddrOk + +`func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool)` + +GetIpv4AddrOk returns a tuple with the Ipv4Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv4Addr + +`func (o *InterfaceDescription) SetIpv4Addr(v string)` + +SetIpv4Addr sets Ipv4Addr field to given value. + +### HasIpv4Addr + +`func (o *InterfaceDescription) HasIpv4Addr() bool` + +HasIpv4Addr returns a boolean if a field has been set. + +### GetIpv6Addr + +`func (o *InterfaceDescription) GetIpv6Addr() string` + +GetIpv6Addr returns the Ipv6Addr field if non-nil, zero value otherwise. + +### GetIpv6AddrOk + +`func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool)` + +GetIpv6AddrOk returns a tuple with the Ipv6Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv6Addr + +`func (o *InterfaceDescription) SetIpv6Addr(v string)` + +SetIpv6Addr sets Ipv6Addr field to given value. + +### HasIpv6Addr + +`func (o *InterfaceDescription) HasIpv6Addr() bool` + +HasIpv6Addr returns a boolean if a field has been set. + +### GetPort + +`func (o *InterfaceDescription) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *InterfaceDescription) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *InterfaceDescription) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *InterfaceDescription) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *InterfaceDescription) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *InterfaceDescription) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/InvalidParam.md b/internal/CapifApiInvokerManagement/docs/InvalidParam.md new file mode 100644 index 0000000000000000000000000000000000000000..f809021f398e0f4e40114ee3686d7c45edd829fe --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/InvalidParam.md @@ -0,0 +1,77 @@ +# InvalidParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Param** | **string** | Attribute's name encoded as a JSON Pointer, or header's name. | +**Reason** | Pointer to **string** | A human-readable reason, e.g. \"must be a positive integer\". | [optional] + +## Methods + +### NewInvalidParam + +`func NewInvalidParam(param string, ) *InvalidParam` + +NewInvalidParam instantiates a new InvalidParam 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 + +### NewInvalidParamWithDefaults + +`func NewInvalidParamWithDefaults() *InvalidParam` + +NewInvalidParamWithDefaults instantiates a new InvalidParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParam + +`func (o *InvalidParam) GetParam() string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *InvalidParam) GetParamOk() (*string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *InvalidParam) SetParam(v string)` + +SetParam sets Param field to given value. + + +### GetReason + +`func (o *InvalidParam) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InvalidParam) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InvalidParam) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InvalidParam) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Local2dPointUncertaintyEllipse.md b/internal/CapifApiInvokerManagement/docs/Local2dPointUncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..10e11811b30a294808b21f2c8a1d8b708e82f371 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Local2dPointUncertaintyEllipse.md @@ -0,0 +1,114 @@ +# Local2dPointUncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalOrigin** | [**LocalOrigin**](LocalOrigin.md) | | +**Point** | [**RelativeCartesianLocation**](RelativeCartesianLocation.md) | | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewLocal2dPointUncertaintyEllipse + +`func NewLocal2dPointUncertaintyEllipse(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipse UncertaintyEllipse, confidence int32, ) *Local2dPointUncertaintyEllipse` + +NewLocal2dPointUncertaintyEllipse instantiates a new Local2dPointUncertaintyEllipse 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 + +### NewLocal2dPointUncertaintyEllipseWithDefaults + +`func NewLocal2dPointUncertaintyEllipseWithDefaults() *Local2dPointUncertaintyEllipse` + +NewLocal2dPointUncertaintyEllipseWithDefaults instantiates a new Local2dPointUncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocalOrigin + +`func (o *Local2dPointUncertaintyEllipse) GetLocalOrigin() LocalOrigin` + +GetLocalOrigin returns the LocalOrigin field if non-nil, zero value otherwise. + +### GetLocalOriginOk + +`func (o *Local2dPointUncertaintyEllipse) GetLocalOriginOk() (*LocalOrigin, bool)` + +GetLocalOriginOk returns a tuple with the LocalOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalOrigin + +`func (o *Local2dPointUncertaintyEllipse) SetLocalOrigin(v LocalOrigin)` + +SetLocalOrigin sets LocalOrigin field to given value. + + +### GetPoint + +`func (o *Local2dPointUncertaintyEllipse) GetPoint() RelativeCartesianLocation` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Local2dPointUncertaintyEllipse) GetPointOk() (*RelativeCartesianLocation, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Local2dPointUncertaintyEllipse) SetPoint(v RelativeCartesianLocation)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipse + +`func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *Local2dPointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *Local2dPointUncertaintyEllipse) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *Local2dPointUncertaintyEllipse) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *Local2dPointUncertaintyEllipse) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Local3dPointUncertaintyEllipsoid.md b/internal/CapifApiInvokerManagement/docs/Local3dPointUncertaintyEllipsoid.md new file mode 100644 index 0000000000000000000000000000000000000000..a0bd82efc0353e52d221339b2e22e5d5139bd7ff --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Local3dPointUncertaintyEllipsoid.md @@ -0,0 +1,114 @@ +# Local3dPointUncertaintyEllipsoid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalOrigin** | [**LocalOrigin**](LocalOrigin.md) | | +**Point** | [**RelativeCartesianLocation**](RelativeCartesianLocation.md) | | +**UncertaintyEllipsoid** | [**UncertaintyEllipsoid**](UncertaintyEllipsoid.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewLocal3dPointUncertaintyEllipsoid + +`func NewLocal3dPointUncertaintyEllipsoid(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipsoid UncertaintyEllipsoid, confidence int32, ) *Local3dPointUncertaintyEllipsoid` + +NewLocal3dPointUncertaintyEllipsoid instantiates a new Local3dPointUncertaintyEllipsoid 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 + +### NewLocal3dPointUncertaintyEllipsoidWithDefaults + +`func NewLocal3dPointUncertaintyEllipsoidWithDefaults() *Local3dPointUncertaintyEllipsoid` + +NewLocal3dPointUncertaintyEllipsoidWithDefaults instantiates a new Local3dPointUncertaintyEllipsoid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocalOrigin + +`func (o *Local3dPointUncertaintyEllipsoid) GetLocalOrigin() LocalOrigin` + +GetLocalOrigin returns the LocalOrigin field if non-nil, zero value otherwise. + +### GetLocalOriginOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetLocalOriginOk() (*LocalOrigin, bool)` + +GetLocalOriginOk returns a tuple with the LocalOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalOrigin + +`func (o *Local3dPointUncertaintyEllipsoid) SetLocalOrigin(v LocalOrigin)` + +SetLocalOrigin sets LocalOrigin field to given value. + + +### GetPoint + +`func (o *Local3dPointUncertaintyEllipsoid) GetPoint() RelativeCartesianLocation` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetPointOk() (*RelativeCartesianLocation, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Local3dPointUncertaintyEllipsoid) SetPoint(v RelativeCartesianLocation)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipsoid + +`func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoid() UncertaintyEllipsoid` + +GetUncertaintyEllipsoid returns the UncertaintyEllipsoid field if non-nil, zero value otherwise. + +### GetUncertaintyEllipsoidOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoidOk() (*UncertaintyEllipsoid, bool)` + +GetUncertaintyEllipsoidOk returns a tuple with the UncertaintyEllipsoid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipsoid + +`func (o *Local3dPointUncertaintyEllipsoid) SetUncertaintyEllipsoid(v UncertaintyEllipsoid)` + +SetUncertaintyEllipsoid sets UncertaintyEllipsoid field to given value. + + +### GetConfidence + +`func (o *Local3dPointUncertaintyEllipsoid) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *Local3dPointUncertaintyEllipsoid) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/LocalOrigin.md b/internal/CapifApiInvokerManagement/docs/LocalOrigin.md new file mode 100644 index 0000000000000000000000000000000000000000..8a5de33d298adf4cbecd699033d699319db73b68 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/LocalOrigin.md @@ -0,0 +1,82 @@ +# LocalOrigin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CoordinateId** | Pointer to **string** | | [optional] +**Point** | Pointer to [**GeographicalCoordinates**](GeographicalCoordinates.md) | | [optional] + +## Methods + +### NewLocalOrigin + +`func NewLocalOrigin() *LocalOrigin` + +NewLocalOrigin instantiates a new LocalOrigin 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 + +### NewLocalOriginWithDefaults + +`func NewLocalOriginWithDefaults() *LocalOrigin` + +NewLocalOriginWithDefaults instantiates a new LocalOrigin object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCoordinateId + +`func (o *LocalOrigin) GetCoordinateId() string` + +GetCoordinateId returns the CoordinateId field if non-nil, zero value otherwise. + +### GetCoordinateIdOk + +`func (o *LocalOrigin) GetCoordinateIdOk() (*string, bool)` + +GetCoordinateIdOk returns a tuple with the CoordinateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoordinateId + +`func (o *LocalOrigin) SetCoordinateId(v string)` + +SetCoordinateId sets CoordinateId field to given value. + +### HasCoordinateId + +`func (o *LocalOrigin) HasCoordinateId() bool` + +HasCoordinateId returns a boolean if a field has been set. + +### GetPoint + +`func (o *LocalOrigin) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *LocalOrigin) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *LocalOrigin) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + +### HasPoint + +`func (o *LocalOrigin) HasPoint() bool` + +HasPoint returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/OnboardingInformation.md b/internal/CapifApiInvokerManagement/docs/OnboardingInformation.md new file mode 100644 index 0000000000000000000000000000000000000000..8d001691c7e0419bc67803e9434c03ff3a754108 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/OnboardingInformation.md @@ -0,0 +1,103 @@ +# OnboardingInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiInvokerPublicKey** | **string** | The API Invoker's public key | +**ApiInvokerCertificate** | Pointer to **string** | The API Invoker's generic client certificate, provided by the CAPIF core function. | [optional] +**OnboardingSecret** | Pointer to **string** | The API Invoker's onboarding secret, provided by the CAPIF core function. | [optional] + +## Methods + +### NewOnboardingInformation + +`func NewOnboardingInformation(apiInvokerPublicKey string, ) *OnboardingInformation` + +NewOnboardingInformation instantiates a new OnboardingInformation 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 + +### NewOnboardingInformationWithDefaults + +`func NewOnboardingInformationWithDefaults() *OnboardingInformation` + +NewOnboardingInformationWithDefaults instantiates a new OnboardingInformation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiInvokerPublicKey + +`func (o *OnboardingInformation) GetApiInvokerPublicKey() string` + +GetApiInvokerPublicKey returns the ApiInvokerPublicKey field if non-nil, zero value otherwise. + +### GetApiInvokerPublicKeyOk + +`func (o *OnboardingInformation) GetApiInvokerPublicKeyOk() (*string, bool)` + +GetApiInvokerPublicKeyOk returns a tuple with the ApiInvokerPublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerPublicKey + +`func (o *OnboardingInformation) SetApiInvokerPublicKey(v string)` + +SetApiInvokerPublicKey sets ApiInvokerPublicKey field to given value. + + +### GetApiInvokerCertificate + +`func (o *OnboardingInformation) GetApiInvokerCertificate() string` + +GetApiInvokerCertificate returns the ApiInvokerCertificate field if non-nil, zero value otherwise. + +### GetApiInvokerCertificateOk + +`func (o *OnboardingInformation) GetApiInvokerCertificateOk() (*string, bool)` + +GetApiInvokerCertificateOk returns a tuple with the ApiInvokerCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerCertificate + +`func (o *OnboardingInformation) SetApiInvokerCertificate(v string)` + +SetApiInvokerCertificate sets ApiInvokerCertificate field to given value. + +### HasApiInvokerCertificate + +`func (o *OnboardingInformation) HasApiInvokerCertificate() bool` + +HasApiInvokerCertificate returns a boolean if a field has been set. + +### GetOnboardingSecret + +`func (o *OnboardingInformation) GetOnboardingSecret() string` + +GetOnboardingSecret returns the OnboardingSecret field if non-nil, zero value otherwise. + +### GetOnboardingSecretOk + +`func (o *OnboardingInformation) GetOnboardingSecretOk() (*string, bool)` + +GetOnboardingSecretOk returns a tuple with the OnboardingSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnboardingSecret + +`func (o *OnboardingInformation) SetOnboardingSecret(v string)` + +SetOnboardingSecret sets OnboardingSecret field to given value. + +### HasOnboardingSecret + +`func (o *OnboardingInformation) HasOnboardingSecret() bool` + +HasOnboardingSecret returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/OnboardingNotification.md b/internal/CapifApiInvokerManagement/docs/OnboardingNotification.md new file mode 100644 index 0000000000000000000000000000000000000000..e4aed10b9dbaf9842be0dd17890b0ab6cfe19b15 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/OnboardingNotification.md @@ -0,0 +1,129 @@ +# OnboardingNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **bool** | Set to \"true\" indicate successful on-boarding. Otherwise set to \"false\" | +**ResourceLocation** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**ApiInvokerEnrolmentDetails** | Pointer to [**APIInvokerEnrolmentDetails**](APIInvokerEnrolmentDetails.md) | | [optional] +**ApiList** | Pointer to [**APIList**](APIList.md) | | [optional] + +## Methods + +### NewOnboardingNotification + +`func NewOnboardingNotification(result bool, ) *OnboardingNotification` + +NewOnboardingNotification instantiates a new OnboardingNotification 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 + +### NewOnboardingNotificationWithDefaults + +`func NewOnboardingNotificationWithDefaults() *OnboardingNotification` + +NewOnboardingNotificationWithDefaults instantiates a new OnboardingNotification object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResult + +`func (o *OnboardingNotification) GetResult() bool` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *OnboardingNotification) GetResultOk() (*bool, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *OnboardingNotification) SetResult(v bool)` + +SetResult sets Result field to given value. + + +### GetResourceLocation + +`func (o *OnboardingNotification) GetResourceLocation() string` + +GetResourceLocation returns the ResourceLocation field if non-nil, zero value otherwise. + +### GetResourceLocationOk + +`func (o *OnboardingNotification) GetResourceLocationOk() (*string, bool)` + +GetResourceLocationOk returns a tuple with the ResourceLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceLocation + +`func (o *OnboardingNotification) SetResourceLocation(v string)` + +SetResourceLocation sets ResourceLocation field to given value. + +### HasResourceLocation + +`func (o *OnboardingNotification) HasResourceLocation() bool` + +HasResourceLocation returns a boolean if a field has been set. + +### GetApiInvokerEnrolmentDetails + +`func (o *OnboardingNotification) GetApiInvokerEnrolmentDetails() APIInvokerEnrolmentDetails` + +GetApiInvokerEnrolmentDetails returns the ApiInvokerEnrolmentDetails field if non-nil, zero value otherwise. + +### GetApiInvokerEnrolmentDetailsOk + +`func (o *OnboardingNotification) GetApiInvokerEnrolmentDetailsOk() (*APIInvokerEnrolmentDetails, bool)` + +GetApiInvokerEnrolmentDetailsOk returns a tuple with the ApiInvokerEnrolmentDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerEnrolmentDetails + +`func (o *OnboardingNotification) SetApiInvokerEnrolmentDetails(v APIInvokerEnrolmentDetails)` + +SetApiInvokerEnrolmentDetails sets ApiInvokerEnrolmentDetails field to given value. + +### HasApiInvokerEnrolmentDetails + +`func (o *OnboardingNotification) HasApiInvokerEnrolmentDetails() bool` + +HasApiInvokerEnrolmentDetails returns a boolean if a field has been set. + +### GetApiList + +`func (o *OnboardingNotification) GetApiList() APIList` + +GetApiList returns the ApiList field if non-nil, zero value otherwise. + +### GetApiListOk + +`func (o *OnboardingNotification) GetApiListOk() (*APIList, bool)` + +GetApiListOk returns a tuple with the ApiList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiList + +`func (o *OnboardingNotification) SetApiList(v APIList)` + +SetApiList sets ApiList field to given value. + +### HasApiList + +`func (o *OnboardingNotification) HasApiList() bool` + +HasApiList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Operation.md b/internal/CapifApiInvokerManagement/docs/Operation.md new file mode 100644 index 0000000000000000000000000000000000000000..2940414796e3dd8521e2d483ba10b32da911c20d --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Operation.md @@ -0,0 +1,30 @@ +# Operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewOperation + +`func NewOperation() *Operation` + +NewOperation instantiates a new Operation 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 + +### NewOperationWithDefaults + +`func NewOperationWithDefaults() *Operation` + +NewOperationWithDefaults instantiates a new Operation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Point.md b/internal/CapifApiInvokerManagement/docs/Point.md new file mode 100644 index 0000000000000000000000000000000000000000..68b2d10ad0b5a1c898bb7acebf057b198f87d38f --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Point.md @@ -0,0 +1,51 @@ +# Point + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | + +## Methods + +### NewPoint + +`func NewPoint(point GeographicalCoordinates, ) *Point` + +NewPoint instantiates a new Point 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 + +### NewPointWithDefaults + +`func NewPointWithDefaults() *Point` + +NewPointWithDefaults instantiates a new Point object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *Point) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Point) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Point) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/PointAltitude.md b/internal/CapifApiInvokerManagement/docs/PointAltitude.md new file mode 100644 index 0000000000000000000000000000000000000000..e2219e8b3577588553438dde423e73039e8e9893 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/PointAltitude.md @@ -0,0 +1,72 @@ +# PointAltitude + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Altitude** | **float64** | Indicates value of altitude. | + +## Methods + +### NewPointAltitude + +`func NewPointAltitude(point GeographicalCoordinates, altitude float64, ) *PointAltitude` + +NewPointAltitude instantiates a new PointAltitude 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 + +### NewPointAltitudeWithDefaults + +`func NewPointAltitudeWithDefaults() *PointAltitude` + +NewPointAltitudeWithDefaults instantiates a new PointAltitude object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointAltitude) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointAltitude) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointAltitude) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetAltitude + +`func (o *PointAltitude) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *PointAltitude) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *PointAltitude) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/PointAltitudeUncertainty.md b/internal/CapifApiInvokerManagement/docs/PointAltitudeUncertainty.md new file mode 100644 index 0000000000000000000000000000000000000000..c79c4cf57a9b856abb33d5fa81da2603396985df --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/PointAltitudeUncertainty.md @@ -0,0 +1,161 @@ +# PointAltitudeUncertainty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Altitude** | **float64** | Indicates value of altitude. | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**UncertaintyAltitude** | **float32** | Indicates value of uncertainty. | +**Confidence** | **int32** | Indicates value of confidence. | +**VConfidence** | Pointer to **int32** | Indicates value of confidence. | [optional] + +## Methods + +### NewPointAltitudeUncertainty + +`func NewPointAltitudeUncertainty(point GeographicalCoordinates, altitude float64, uncertaintyEllipse UncertaintyEllipse, uncertaintyAltitude float32, confidence int32, ) *PointAltitudeUncertainty` + +NewPointAltitudeUncertainty instantiates a new PointAltitudeUncertainty 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 + +### NewPointAltitudeUncertaintyWithDefaults + +`func NewPointAltitudeUncertaintyWithDefaults() *PointAltitudeUncertainty` + +NewPointAltitudeUncertaintyWithDefaults instantiates a new PointAltitudeUncertainty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointAltitudeUncertainty) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointAltitudeUncertainty) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointAltitudeUncertainty) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetAltitude + +`func (o *PointAltitudeUncertainty) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *PointAltitudeUncertainty) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *PointAltitudeUncertainty) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + +### GetUncertaintyEllipse + +`func (o *PointAltitudeUncertainty) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *PointAltitudeUncertainty) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *PointAltitudeUncertainty) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetUncertaintyAltitude + +`func (o *PointAltitudeUncertainty) GetUncertaintyAltitude() float32` + +GetUncertaintyAltitude returns the UncertaintyAltitude field if non-nil, zero value otherwise. + +### GetUncertaintyAltitudeOk + +`func (o *PointAltitudeUncertainty) GetUncertaintyAltitudeOk() (*float32, bool)` + +GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyAltitude + +`func (o *PointAltitudeUncertainty) SetUncertaintyAltitude(v float32)` + +SetUncertaintyAltitude sets UncertaintyAltitude field to given value. + + +### GetConfidence + +`func (o *PointAltitudeUncertainty) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *PointAltitudeUncertainty) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *PointAltitudeUncertainty) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + +### GetVConfidence + +`func (o *PointAltitudeUncertainty) GetVConfidence() int32` + +GetVConfidence returns the VConfidence field if non-nil, zero value otherwise. + +### GetVConfidenceOk + +`func (o *PointAltitudeUncertainty) GetVConfidenceOk() (*int32, bool)` + +GetVConfidenceOk returns a tuple with the VConfidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVConfidence + +`func (o *PointAltitudeUncertainty) SetVConfidence(v int32)` + +SetVConfidence sets VConfidence field to given value. + +### HasVConfidence + +`func (o *PointAltitudeUncertainty) HasVConfidence() bool` + +HasVConfidence returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/PointUncertaintyCircle.md b/internal/CapifApiInvokerManagement/docs/PointUncertaintyCircle.md new file mode 100644 index 0000000000000000000000000000000000000000..1499a24f3c25d954717cb2c858d940300ecbf586 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/PointUncertaintyCircle.md @@ -0,0 +1,72 @@ +# PointUncertaintyCircle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Uncertainty** | **float32** | Indicates value of uncertainty. | + +## Methods + +### NewPointUncertaintyCircle + +`func NewPointUncertaintyCircle(point GeographicalCoordinates, uncertainty float32, ) *PointUncertaintyCircle` + +NewPointUncertaintyCircle instantiates a new PointUncertaintyCircle 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 + +### NewPointUncertaintyCircleWithDefaults + +`func NewPointUncertaintyCircleWithDefaults() *PointUncertaintyCircle` + +NewPointUncertaintyCircleWithDefaults instantiates a new PointUncertaintyCircle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointUncertaintyCircle) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointUncertaintyCircle) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointUncertaintyCircle) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertainty + +`func (o *PointUncertaintyCircle) GetUncertainty() float32` + +GetUncertainty returns the Uncertainty field if non-nil, zero value otherwise. + +### GetUncertaintyOk + +`func (o *PointUncertaintyCircle) GetUncertaintyOk() (*float32, bool)` + +GetUncertaintyOk returns a tuple with the Uncertainty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertainty + +`func (o *PointUncertaintyCircle) SetUncertainty(v float32)` + +SetUncertainty sets Uncertainty field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/PointUncertaintyEllipse.md b/internal/CapifApiInvokerManagement/docs/PointUncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..786c3074e38de51d3071ea13f8cd6f0cd44ad766 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/PointUncertaintyEllipse.md @@ -0,0 +1,93 @@ +# PointUncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewPointUncertaintyEllipse + +`func NewPointUncertaintyEllipse(point GeographicalCoordinates, uncertaintyEllipse UncertaintyEllipse, confidence int32, ) *PointUncertaintyEllipse` + +NewPointUncertaintyEllipse instantiates a new PointUncertaintyEllipse 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 + +### NewPointUncertaintyEllipseWithDefaults + +`func NewPointUncertaintyEllipseWithDefaults() *PointUncertaintyEllipse` + +NewPointUncertaintyEllipseWithDefaults instantiates a new PointUncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointUncertaintyEllipse) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointUncertaintyEllipse) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointUncertaintyEllipse) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipse + +`func (o *PointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *PointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *PointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *PointUncertaintyEllipse) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *PointUncertaintyEllipse) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *PointUncertaintyEllipse) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Polygon.md b/internal/CapifApiInvokerManagement/docs/Polygon.md new file mode 100644 index 0000000000000000000000000000000000000000..ddee5f0fa288b28cc417b9e75cab33bb2bea662b --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Polygon.md @@ -0,0 +1,51 @@ +# Polygon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PointList** | [**[]GeographicalCoordinates**](GeographicalCoordinates.md) | List of points. | + +## Methods + +### NewPolygon + +`func NewPolygon(pointList []GeographicalCoordinates, ) *Polygon` + +NewPolygon instantiates a new Polygon 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 + +### NewPolygonWithDefaults + +`func NewPolygonWithDefaults() *Polygon` + +NewPolygonWithDefaults instantiates a new Polygon object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPointList + +`func (o *Polygon) GetPointList() []GeographicalCoordinates` + +GetPointList returns the PointList field if non-nil, zero value otherwise. + +### GetPointListOk + +`func (o *Polygon) GetPointListOk() (*[]GeographicalCoordinates, bool)` + +GetPointListOk returns a tuple with the PointList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointList + +`func (o *Polygon) SetPointList(v []GeographicalCoordinates)` + +SetPointList sets PointList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/ProblemDetails.md b/internal/CapifApiInvokerManagement/docs/ProblemDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..0f3b997d8cd366e0219cbf8828307d3241a1cdaf --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/ProblemDetails.md @@ -0,0 +1,238 @@ +# ProblemDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Title** | Pointer to **string** | A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. | [optional] +**Status** | Pointer to **int32** | The HTTP status code for this occurrence of the problem. | [optional] +**Detail** | Pointer to **string** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**Instance** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Cause** | Pointer to **string** | A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. | [optional] +**InvalidParams** | Pointer to [**[]InvalidParam**](InvalidParam.md) | Description of invalid parameters, for a request rejected due to invalid parameters. | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewProblemDetails + +`func NewProblemDetails() *ProblemDetails` + +NewProblemDetails instantiates a new ProblemDetails 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 + +### NewProblemDetailsWithDefaults + +`func NewProblemDetailsWithDefaults() *ProblemDetails` + +NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ProblemDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProblemDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProblemDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProblemDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTitle + +`func (o *ProblemDetails) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ProblemDetails) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ProblemDetails) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ProblemDetails) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProblemDetails) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProblemDetails) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProblemDetails) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ProblemDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDetail + +`func (o *ProblemDetails) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ProblemDetails) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ProblemDetails) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ProblemDetails) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetInstance + +`func (o *ProblemDetails) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ProblemDetails) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ProblemDetails) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ProblemDetails) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetCause + +`func (o *ProblemDetails) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ProblemDetails) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ProblemDetails) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ProblemDetails) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInvalidParams + +`func (o *ProblemDetails) GetInvalidParams() []InvalidParam` + +GetInvalidParams returns the InvalidParams field if non-nil, zero value otherwise. + +### GetInvalidParamsOk + +`func (o *ProblemDetails) GetInvalidParamsOk() (*[]InvalidParam, bool)` + +GetInvalidParamsOk returns a tuple with the InvalidParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidParams + +`func (o *ProblemDetails) SetInvalidParams(v []InvalidParam)` + +SetInvalidParams sets InvalidParams field to given value. + +### HasInvalidParams + +`func (o *ProblemDetails) HasInvalidParams() bool` + +HasInvalidParams returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ProblemDetails) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ProblemDetails) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ProblemDetails) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Protocol.md b/internal/CapifApiInvokerManagement/docs/Protocol.md new file mode 100644 index 0000000000000000000000000000000000000000..be484b8f7278d3ab560eb6f6808f6c0b4688d081 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Protocol.md @@ -0,0 +1,30 @@ +# Protocol + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewProtocol + +`func NewProtocol() *Protocol` + +NewProtocol instantiates a new Protocol 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 + +### NewProtocolWithDefaults + +`func NewProtocolWithDefaults() *Protocol` + +NewProtocolWithDefaults instantiates a new Protocol object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/PublishedApiPath.md b/internal/CapifApiInvokerManagement/docs/PublishedApiPath.md new file mode 100644 index 0000000000000000000000000000000000000000..57cfe6c9650882b25fb02ec80a63ef7f0ee0ee41 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/PublishedApiPath.md @@ -0,0 +1,56 @@ +# PublishedApiPath + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CcfIds** | Pointer to **[]string** | A list of CCF identifiers where the service API is already published. | [optional] + +## Methods + +### NewPublishedApiPath + +`func NewPublishedApiPath() *PublishedApiPath` + +NewPublishedApiPath instantiates a new PublishedApiPath 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 + +### NewPublishedApiPathWithDefaults + +`func NewPublishedApiPathWithDefaults() *PublishedApiPath` + +NewPublishedApiPathWithDefaults instantiates a new PublishedApiPath object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCcfIds + +`func (o *PublishedApiPath) GetCcfIds() []string` + +GetCcfIds returns the CcfIds field if non-nil, zero value otherwise. + +### GetCcfIdsOk + +`func (o *PublishedApiPath) GetCcfIdsOk() (*[]string, bool)` + +GetCcfIdsOk returns a tuple with the CcfIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfIds + +`func (o *PublishedApiPath) SetCcfIds(v []string)` + +SetCcfIds sets CcfIds field to given value. + +### HasCcfIds + +`func (o *PublishedApiPath) HasCcfIds() bool` + +HasCcfIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/RelativeCartesianLocation.md b/internal/CapifApiInvokerManagement/docs/RelativeCartesianLocation.md new file mode 100644 index 0000000000000000000000000000000000000000..e43596ff74165438f506bc441546699928e107d3 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/RelativeCartesianLocation.md @@ -0,0 +1,98 @@ +# RelativeCartesianLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**X** | **float32** | string with format 'float' as defined in OpenAPI. | +**Y** | **float32** | string with format 'float' as defined in OpenAPI. | +**Z** | Pointer to **float32** | string with format 'float' as defined in OpenAPI. | [optional] + +## Methods + +### NewRelativeCartesianLocation + +`func NewRelativeCartesianLocation(x float32, y float32, ) *RelativeCartesianLocation` + +NewRelativeCartesianLocation instantiates a new RelativeCartesianLocation 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 + +### NewRelativeCartesianLocationWithDefaults + +`func NewRelativeCartesianLocationWithDefaults() *RelativeCartesianLocation` + +NewRelativeCartesianLocationWithDefaults instantiates a new RelativeCartesianLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetX + +`func (o *RelativeCartesianLocation) GetX() float32` + +GetX returns the X field if non-nil, zero value otherwise. + +### GetXOk + +`func (o *RelativeCartesianLocation) GetXOk() (*float32, bool)` + +GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX + +`func (o *RelativeCartesianLocation) SetX(v float32)` + +SetX sets X field to given value. + + +### GetY + +`func (o *RelativeCartesianLocation) GetY() float32` + +GetY returns the Y field if non-nil, zero value otherwise. + +### GetYOk + +`func (o *RelativeCartesianLocation) GetYOk() (*float32, bool)` + +GetYOk returns a tuple with the Y field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetY + +`func (o *RelativeCartesianLocation) SetY(v float32)` + +SetY sets Y field to given value. + + +### GetZ + +`func (o *RelativeCartesianLocation) GetZ() float32` + +GetZ returns the Z field if non-nil, zero value otherwise. + +### GetZOk + +`func (o *RelativeCartesianLocation) GetZOk() (*float32, bool)` + +GetZOk returns a tuple with the Z field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZ + +`func (o *RelativeCartesianLocation) SetZ(v float32)` + +SetZ sets Z field to given value. + +### HasZ + +`func (o *RelativeCartesianLocation) HasZ() bool` + +HasZ returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Resource.md b/internal/CapifApiInvokerManagement/docs/Resource.md new file mode 100644 index 0000000000000000000000000000000000000000..a21f56e669c62e935e6fcd02a881166d4e7f953e --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Resource.md @@ -0,0 +1,171 @@ +# Resource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceName** | **string** | Resource name | +**CommType** | [**CommunicationType**](CommunicationType.md) | | +**Uri** | **string** | Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | +**CustOpName** | Pointer to **string** | it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. | [optional] +**Operations** | Pointer to [**[]Operation**](Operation.md) | Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. | [optional] +**Description** | Pointer to **string** | Text description of the API resource | [optional] + +## Methods + +### NewResource + +`func NewResource(resourceName string, commType CommunicationType, uri string, ) *Resource` + +NewResource instantiates a new Resource 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 + +### NewResourceWithDefaults + +`func NewResourceWithDefaults() *Resource` + +NewResourceWithDefaults instantiates a new Resource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResourceName + +`func (o *Resource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *Resource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *Resource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + + +### GetCommType + +`func (o *Resource) GetCommType() CommunicationType` + +GetCommType returns the CommType field if non-nil, zero value otherwise. + +### GetCommTypeOk + +`func (o *Resource) GetCommTypeOk() (*CommunicationType, bool)` + +GetCommTypeOk returns a tuple with the CommType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommType + +`func (o *Resource) SetCommType(v CommunicationType)` + +SetCommType sets CommType field to given value. + + +### GetUri + +`func (o *Resource) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *Resource) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *Resource) SetUri(v string)` + +SetUri sets Uri field to given value. + + +### GetCustOpName + +`func (o *Resource) GetCustOpName() string` + +GetCustOpName returns the CustOpName field if non-nil, zero value otherwise. + +### GetCustOpNameOk + +`func (o *Resource) GetCustOpNameOk() (*string, bool)` + +GetCustOpNameOk returns a tuple with the CustOpName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOpName + +`func (o *Resource) SetCustOpName(v string)` + +SetCustOpName sets CustOpName field to given value. + +### HasCustOpName + +`func (o *Resource) HasCustOpName() bool` + +HasCustOpName returns a boolean if a field has been set. + +### GetOperations + +`func (o *Resource) GetOperations() []Operation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *Resource) GetOperationsOk() (*[]Operation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *Resource) SetOperations(v []Operation)` + +SetOperations sets Operations field to given value. + +### HasOperations + +`func (o *Resource) HasOperations() bool` + +HasOperations returns a boolean if a field has been set. + +### GetDescription + +`func (o *Resource) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Resource) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Resource) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Resource) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/SecurityMethod.md b/internal/CapifApiInvokerManagement/docs/SecurityMethod.md new file mode 100644 index 0000000000000000000000000000000000000000..c2bc7c0499975a1153aa5a5c0ab0343ea2c218c8 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/SecurityMethod.md @@ -0,0 +1,30 @@ +# SecurityMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSecurityMethod + +`func NewSecurityMethod() *SecurityMethod` + +NewSecurityMethod instantiates a new SecurityMethod 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 + +### NewSecurityMethodWithDefaults + +`func NewSecurityMethodWithDefaults() *SecurityMethod` + +NewSecurityMethodWithDefaults instantiates a new SecurityMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/ServiceAPIDescription.md b/internal/CapifApiInvokerManagement/docs/ServiceAPIDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..50fce14878b96816e5ae5f42c65ddf6ec886447c --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/ServiceAPIDescription.md @@ -0,0 +1,285 @@ +# ServiceAPIDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiName** | **string** | API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | +**ApiId** | Pointer to **string** | API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). | [optional] +**AefProfiles** | Pointer to [**[]AefProfile**](AefProfile.md) | AEF profile information, which includes the exposed API details (e.g. protocol). | [optional] +**Description** | Pointer to **string** | Text description of the API | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**ShareableInfo** | Pointer to [**ShareableInformation**](ShareableInformation.md) | | [optional] +**ServiceAPICategory** | Pointer to **string** | | [optional] +**ApiSuppFeats** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**PubApiPath** | Pointer to [**PublishedApiPath**](PublishedApiPath.md) | | [optional] +**CcfId** | Pointer to **string** | CAPIF core function identifier. | [optional] + +## Methods + +### NewServiceAPIDescription + +`func NewServiceAPIDescription(apiName string, ) *ServiceAPIDescription` + +NewServiceAPIDescription instantiates a new ServiceAPIDescription 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 + +### NewServiceAPIDescriptionWithDefaults + +`func NewServiceAPIDescriptionWithDefaults() *ServiceAPIDescription` + +NewServiceAPIDescriptionWithDefaults instantiates a new ServiceAPIDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiName + +`func (o *ServiceAPIDescription) GetApiName() string` + +GetApiName returns the ApiName field if non-nil, zero value otherwise. + +### GetApiNameOk + +`func (o *ServiceAPIDescription) GetApiNameOk() (*string, bool)` + +GetApiNameOk returns a tuple with the ApiName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiName + +`func (o *ServiceAPIDescription) SetApiName(v string)` + +SetApiName sets ApiName field to given value. + + +### GetApiId + +`func (o *ServiceAPIDescription) GetApiId() string` + +GetApiId returns the ApiId field if non-nil, zero value otherwise. + +### GetApiIdOk + +`func (o *ServiceAPIDescription) GetApiIdOk() (*string, bool)` + +GetApiIdOk returns a tuple with the ApiId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiId + +`func (o *ServiceAPIDescription) SetApiId(v string)` + +SetApiId sets ApiId field to given value. + +### HasApiId + +`func (o *ServiceAPIDescription) HasApiId() bool` + +HasApiId returns a boolean if a field has been set. + +### GetAefProfiles + +`func (o *ServiceAPIDescription) GetAefProfiles() []AefProfile` + +GetAefProfiles returns the AefProfiles field if non-nil, zero value otherwise. + +### GetAefProfilesOk + +`func (o *ServiceAPIDescription) GetAefProfilesOk() (*[]AefProfile, bool)` + +GetAefProfilesOk returns a tuple with the AefProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefProfiles + +`func (o *ServiceAPIDescription) SetAefProfiles(v []AefProfile)` + +SetAefProfiles sets AefProfiles field to given value. + +### HasAefProfiles + +`func (o *ServiceAPIDescription) HasAefProfiles() bool` + +HasAefProfiles returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAPIDescription) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAPIDescription) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAPIDescription) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAPIDescription) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ServiceAPIDescription) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ServiceAPIDescription) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ServiceAPIDescription) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ServiceAPIDescription) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + +### GetShareableInfo + +`func (o *ServiceAPIDescription) GetShareableInfo() ShareableInformation` + +GetShareableInfo returns the ShareableInfo field if non-nil, zero value otherwise. + +### GetShareableInfoOk + +`func (o *ServiceAPIDescription) GetShareableInfoOk() (*ShareableInformation, bool)` + +GetShareableInfoOk returns a tuple with the ShareableInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareableInfo + +`func (o *ServiceAPIDescription) SetShareableInfo(v ShareableInformation)` + +SetShareableInfo sets ShareableInfo field to given value. + +### HasShareableInfo + +`func (o *ServiceAPIDescription) HasShareableInfo() bool` + +HasShareableInfo returns a boolean if a field has been set. + +### GetServiceAPICategory + +`func (o *ServiceAPIDescription) GetServiceAPICategory() string` + +GetServiceAPICategory returns the ServiceAPICategory field if non-nil, zero value otherwise. + +### GetServiceAPICategoryOk + +`func (o *ServiceAPIDescription) GetServiceAPICategoryOk() (*string, bool)` + +GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAPICategory + +`func (o *ServiceAPIDescription) SetServiceAPICategory(v string)` + +SetServiceAPICategory sets ServiceAPICategory field to given value. + +### HasServiceAPICategory + +`func (o *ServiceAPIDescription) HasServiceAPICategory() bool` + +HasServiceAPICategory returns a boolean if a field has been set. + +### GetApiSuppFeats + +`func (o *ServiceAPIDescription) GetApiSuppFeats() string` + +GetApiSuppFeats returns the ApiSuppFeats field if non-nil, zero value otherwise. + +### GetApiSuppFeatsOk + +`func (o *ServiceAPIDescription) GetApiSuppFeatsOk() (*string, bool)` + +GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiSuppFeats + +`func (o *ServiceAPIDescription) SetApiSuppFeats(v string)` + +SetApiSuppFeats sets ApiSuppFeats field to given value. + +### HasApiSuppFeats + +`func (o *ServiceAPIDescription) HasApiSuppFeats() bool` + +HasApiSuppFeats returns a boolean if a field has been set. + +### GetPubApiPath + +`func (o *ServiceAPIDescription) GetPubApiPath() PublishedApiPath` + +GetPubApiPath returns the PubApiPath field if non-nil, zero value otherwise. + +### GetPubApiPathOk + +`func (o *ServiceAPIDescription) GetPubApiPathOk() (*PublishedApiPath, bool)` + +GetPubApiPathOk returns a tuple with the PubApiPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPubApiPath + +`func (o *ServiceAPIDescription) SetPubApiPath(v PublishedApiPath)` + +SetPubApiPath sets PubApiPath field to given value. + +### HasPubApiPath + +`func (o *ServiceAPIDescription) HasPubApiPath() bool` + +HasPubApiPath returns a boolean if a field has been set. + +### GetCcfId + +`func (o *ServiceAPIDescription) GetCcfId() string` + +GetCcfId returns the CcfId field if non-nil, zero value otherwise. + +### GetCcfIdOk + +`func (o *ServiceAPIDescription) GetCcfIdOk() (*string, bool)` + +GetCcfIdOk returns a tuple with the CcfId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfId + +`func (o *ServiceAPIDescription) SetCcfId(v string)` + +SetCcfId sets CcfId field to given value. + +### HasCcfId + +`func (o *ServiceAPIDescription) HasCcfId() bool` + +HasCcfId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/ShareableInformation.md b/internal/CapifApiInvokerManagement/docs/ShareableInformation.md new file mode 100644 index 0000000000000000000000000000000000000000..c96c533fd46eb16a6d5f89ed89135bfe28755d08 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/ShareableInformation.md @@ -0,0 +1,77 @@ +# ShareableInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsShareable** | **bool** | Set to \"true\" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to \"false\". | +**CapifProvDoms** | Pointer to **[]string** | List of CAPIF provider domains to which the service API information to be shared. | [optional] + +## Methods + +### NewShareableInformation + +`func NewShareableInformation(isShareable bool, ) *ShareableInformation` + +NewShareableInformation instantiates a new ShareableInformation 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 + +### NewShareableInformationWithDefaults + +`func NewShareableInformationWithDefaults() *ShareableInformation` + +NewShareableInformationWithDefaults instantiates a new ShareableInformation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsShareable + +`func (o *ShareableInformation) GetIsShareable() bool` + +GetIsShareable returns the IsShareable field if non-nil, zero value otherwise. + +### GetIsShareableOk + +`func (o *ShareableInformation) GetIsShareableOk() (*bool, bool)` + +GetIsShareableOk returns a tuple with the IsShareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsShareable + +`func (o *ShareableInformation) SetIsShareable(v bool)` + +SetIsShareable sets IsShareable field to given value. + + +### GetCapifProvDoms + +`func (o *ShareableInformation) GetCapifProvDoms() []string` + +GetCapifProvDoms returns the CapifProvDoms field if non-nil, zero value otherwise. + +### GetCapifProvDomsOk + +`func (o *ShareableInformation) GetCapifProvDomsOk() (*[]string, bool)` + +GetCapifProvDomsOk returns a tuple with the CapifProvDoms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapifProvDoms + +`func (o *ShareableInformation) SetCapifProvDoms(v []string)` + +SetCapifProvDoms sets CapifProvDoms field to given value. + +### HasCapifProvDoms + +`func (o *ShareableInformation) HasCapifProvDoms() bool` + +HasCapifProvDoms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/SupportedGADShapes.md b/internal/CapifApiInvokerManagement/docs/SupportedGADShapes.md new file mode 100644 index 0000000000000000000000000000000000000000..f5d216ecf841b87ac5ee6c06892e087503c504e9 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/SupportedGADShapes.md @@ -0,0 +1,30 @@ +# SupportedGADShapes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSupportedGADShapes + +`func NewSupportedGADShapes() *SupportedGADShapes` + +NewSupportedGADShapes instantiates a new SupportedGADShapes 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 + +### NewSupportedGADShapesWithDefaults + +`func NewSupportedGADShapesWithDefaults() *SupportedGADShapes` + +NewSupportedGADShapesWithDefaults instantiates a new SupportedGADShapes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/UncertaintyEllipse.md b/internal/CapifApiInvokerManagement/docs/UncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..c183d397df665dd9e97670f9de7f1318351d4f15 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/UncertaintyEllipse.md @@ -0,0 +1,93 @@ +# UncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SemiMajor** | **float32** | Indicates value of uncertainty. | +**SemiMinor** | **float32** | Indicates value of uncertainty. | +**OrientationMajor** | **int32** | Indicates value of orientation angle. | + +## Methods + +### NewUncertaintyEllipse + +`func NewUncertaintyEllipse(semiMajor float32, semiMinor float32, orientationMajor int32, ) *UncertaintyEllipse` + +NewUncertaintyEllipse instantiates a new UncertaintyEllipse 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 + +### NewUncertaintyEllipseWithDefaults + +`func NewUncertaintyEllipseWithDefaults() *UncertaintyEllipse` + +NewUncertaintyEllipseWithDefaults instantiates a new UncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSemiMajor + +`func (o *UncertaintyEllipse) GetSemiMajor() float32` + +GetSemiMajor returns the SemiMajor field if non-nil, zero value otherwise. + +### GetSemiMajorOk + +`func (o *UncertaintyEllipse) GetSemiMajorOk() (*float32, bool)` + +GetSemiMajorOk returns a tuple with the SemiMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMajor + +`func (o *UncertaintyEllipse) SetSemiMajor(v float32)` + +SetSemiMajor sets SemiMajor field to given value. + + +### GetSemiMinor + +`func (o *UncertaintyEllipse) GetSemiMinor() float32` + +GetSemiMinor returns the SemiMinor field if non-nil, zero value otherwise. + +### GetSemiMinorOk + +`func (o *UncertaintyEllipse) GetSemiMinorOk() (*float32, bool)` + +GetSemiMinorOk returns a tuple with the SemiMinor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMinor + +`func (o *UncertaintyEllipse) SetSemiMinor(v float32)` + +SetSemiMinor sets SemiMinor field to given value. + + +### GetOrientationMajor + +`func (o *UncertaintyEllipse) GetOrientationMajor() int32` + +GetOrientationMajor returns the OrientationMajor field if non-nil, zero value otherwise. + +### GetOrientationMajorOk + +`func (o *UncertaintyEllipse) GetOrientationMajorOk() (*int32, bool)` + +GetOrientationMajorOk returns a tuple with the OrientationMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrientationMajor + +`func (o *UncertaintyEllipse) SetOrientationMajor(v int32)` + +SetOrientationMajor sets OrientationMajor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/UncertaintyEllipsoid.md b/internal/CapifApiInvokerManagement/docs/UncertaintyEllipsoid.md new file mode 100644 index 0000000000000000000000000000000000000000..8ef0a2cea838fad4083570661cd06099ac73d6db --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/UncertaintyEllipsoid.md @@ -0,0 +1,114 @@ +# UncertaintyEllipsoid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SemiMajor** | **float32** | Indicates value of uncertainty. | +**SemiMinor** | **float32** | Indicates value of uncertainty. | +**Vertical** | **float32** | Indicates value of uncertainty. | +**OrientationMajor** | **int32** | Indicates value of orientation angle. | + +## Methods + +### NewUncertaintyEllipsoid + +`func NewUncertaintyEllipsoid(semiMajor float32, semiMinor float32, vertical float32, orientationMajor int32, ) *UncertaintyEllipsoid` + +NewUncertaintyEllipsoid instantiates a new UncertaintyEllipsoid 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 + +### NewUncertaintyEllipsoidWithDefaults + +`func NewUncertaintyEllipsoidWithDefaults() *UncertaintyEllipsoid` + +NewUncertaintyEllipsoidWithDefaults instantiates a new UncertaintyEllipsoid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSemiMajor + +`func (o *UncertaintyEllipsoid) GetSemiMajor() float32` + +GetSemiMajor returns the SemiMajor field if non-nil, zero value otherwise. + +### GetSemiMajorOk + +`func (o *UncertaintyEllipsoid) GetSemiMajorOk() (*float32, bool)` + +GetSemiMajorOk returns a tuple with the SemiMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMajor + +`func (o *UncertaintyEllipsoid) SetSemiMajor(v float32)` + +SetSemiMajor sets SemiMajor field to given value. + + +### GetSemiMinor + +`func (o *UncertaintyEllipsoid) GetSemiMinor() float32` + +GetSemiMinor returns the SemiMinor field if non-nil, zero value otherwise. + +### GetSemiMinorOk + +`func (o *UncertaintyEllipsoid) GetSemiMinorOk() (*float32, bool)` + +GetSemiMinorOk returns a tuple with the SemiMinor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMinor + +`func (o *UncertaintyEllipsoid) SetSemiMinor(v float32)` + +SetSemiMinor sets SemiMinor field to given value. + + +### GetVertical + +`func (o *UncertaintyEllipsoid) GetVertical() float32` + +GetVertical returns the Vertical field if non-nil, zero value otherwise. + +### GetVerticalOk + +`func (o *UncertaintyEllipsoid) GetVerticalOk() (*float32, bool)` + +GetVerticalOk returns a tuple with the Vertical field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVertical + +`func (o *UncertaintyEllipsoid) SetVertical(v float32)` + +SetVertical sets Vertical field to given value. + + +### GetOrientationMajor + +`func (o *UncertaintyEllipsoid) GetOrientationMajor() int32` + +GetOrientationMajor returns the OrientationMajor field if non-nil, zero value otherwise. + +### GetOrientationMajorOk + +`func (o *UncertaintyEllipsoid) GetOrientationMajorOk() (*int32, bool)` + +GetOrientationMajorOk returns a tuple with the OrientationMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrientationMajor + +`func (o *UncertaintyEllipsoid) SetOrientationMajor(v int32)` + +SetOrientationMajor sets OrientationMajor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/Version.md b/internal/CapifApiInvokerManagement/docs/Version.md new file mode 100644 index 0000000000000000000000000000000000000000..4c153842c87b93e6fbad2f651bc9952dda9c92bc --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/Version.md @@ -0,0 +1,129 @@ +# Version + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **string** | API major version in URI (e.g. v1) | +**Expiry** | Pointer to **time.Time** | string with format \"date-time\" as defined in OpenAPI. | [optional] +**Resources** | Pointer to [**[]Resource**](Resource.md) | Resources supported by the API. | [optional] +**CustOperations** | Pointer to [**[]CustomOperation**](CustomOperation.md) | Custom operations without resource association. | [optional] + +## Methods + +### NewVersion + +`func NewVersion(apiVersion string, ) *Version` + +NewVersion instantiates a new Version 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 + +### NewVersionWithDefaults + +`func NewVersionWithDefaults() *Version` + +NewVersionWithDefaults instantiates a new Version object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *Version) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *Version) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *Version) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + + +### GetExpiry + +`func (o *Version) GetExpiry() time.Time` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *Version) GetExpiryOk() (*time.Time, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *Version) SetExpiry(v time.Time)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *Version) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + +### GetResources + +`func (o *Version) GetResources() []Resource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *Version) GetResourcesOk() (*[]Resource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *Version) SetResources(v []Resource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *Version) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetCustOperations + +`func (o *Version) GetCustOperations() []CustomOperation` + +GetCustOperations returns the CustOperations field if non-nil, zero value otherwise. + +### GetCustOperationsOk + +`func (o *Version) GetCustOperationsOk() (*[]CustomOperation, bool)` + +GetCustOperationsOk returns a tuple with the CustOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOperations + +`func (o *Version) SetCustOperations(v []CustomOperation)` + +SetCustOperations sets CustOperations field to given value. + +### HasCustOperations + +`func (o *Version) HasCustOperations() bool` + +HasCustOperations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/docs/WebsockNotifConfig.md b/internal/CapifApiInvokerManagement/docs/WebsockNotifConfig.md new file mode 100644 index 0000000000000000000000000000000000000000..99a885f97f18cd450c6d4eea760c16786d4cbaa0 --- /dev/null +++ b/internal/CapifApiInvokerManagement/docs/WebsockNotifConfig.md @@ -0,0 +1,82 @@ +# WebsockNotifConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebsocketUri** | Pointer to **string** | string formatted according to IETF RFC 3986 identifying a referenced resource. | [optional] +**RequestWebsocketUri** | Pointer to **bool** | Set by the SCS/AS to indicate that the Websocket delivery is requested. | [optional] + +## Methods + +### NewWebsockNotifConfig + +`func NewWebsockNotifConfig() *WebsockNotifConfig` + +NewWebsockNotifConfig instantiates a new WebsockNotifConfig 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 + +### NewWebsockNotifConfigWithDefaults + +`func NewWebsockNotifConfigWithDefaults() *WebsockNotifConfig` + +NewWebsockNotifConfigWithDefaults instantiates a new WebsockNotifConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWebsocketUri + +`func (o *WebsockNotifConfig) GetWebsocketUri() string` + +GetWebsocketUri returns the WebsocketUri field if non-nil, zero value otherwise. + +### GetWebsocketUriOk + +`func (o *WebsockNotifConfig) GetWebsocketUriOk() (*string, bool)` + +GetWebsocketUriOk returns a tuple with the WebsocketUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketUri + +`func (o *WebsockNotifConfig) SetWebsocketUri(v string)` + +SetWebsocketUri sets WebsocketUri field to given value. + +### HasWebsocketUri + +`func (o *WebsockNotifConfig) HasWebsocketUri() bool` + +HasWebsocketUri returns a boolean if a field has been set. + +### GetRequestWebsocketUri + +`func (o *WebsockNotifConfig) GetRequestWebsocketUri() bool` + +GetRequestWebsocketUri returns the RequestWebsocketUri field if non-nil, zero value otherwise. + +### GetRequestWebsocketUriOk + +`func (o *WebsockNotifConfig) GetRequestWebsocketUriOk() (*bool, bool)` + +GetRequestWebsocketUriOk returns a tuple with the RequestWebsocketUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestWebsocketUri + +`func (o *WebsockNotifConfig) SetRequestWebsocketUri(v bool)` + +SetRequestWebsocketUri sets RequestWebsocketUri field to given value. + +### HasRequestWebsocketUri + +`func (o *WebsockNotifConfig) HasRequestWebsocketUri() bool` + +HasRequestWebsocketUri returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiInvokerManagement/go.sum b/internal/CapifApiInvokerManagement/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..c966c8ddfd0dc3dad992126bb0eb50503ecce01a --- /dev/null +++ b/internal/CapifApiInvokerManagement/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/internal/CapifApiInvokerManagement/model_aef_location.go b/internal/CapifApiInvokerManagement/model_aef_location.go new file mode 100644 index 0000000000000000000000000000000000000000..28360640598bcfb2a949606a588fc7d1dd116d44 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_aef_location.go @@ -0,0 +1,199 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the AefLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AefLocation{} + +// AefLocation The location information (e.g. civic address, GPS coordinates, data center ID) where the AEF providing the service API is located. +type AefLocation struct { + CivicAddr *CivicAddress `json:"civicAddr,omitempty"` + GeoArea *GeographicArea `json:"geoArea,omitempty"` + // Identifies the data center where the AEF providing the service API is located. + DcId *string `json:"dcId,omitempty"` +} + +// NewAefLocation instantiates a new AefLocation 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 NewAefLocation() *AefLocation { + this := AefLocation{} + return &this +} + +// NewAefLocationWithDefaults instantiates a new AefLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAefLocationWithDefaults() *AefLocation { + this := AefLocation{} + return &this +} + +// GetCivicAddr returns the CivicAddr field value if set, zero value otherwise. +func (o *AefLocation) GetCivicAddr() CivicAddress { + if o == nil || IsNil(o.CivicAddr) { + var ret CivicAddress + return ret + } + return *o.CivicAddr +} + +// GetCivicAddrOk returns a tuple with the CivicAddr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetCivicAddrOk() (*CivicAddress, bool) { + if o == nil || IsNil(o.CivicAddr) { + return nil, false + } + return o.CivicAddr, true +} + +// HasCivicAddr returns a boolean if a field has been set. +func (o *AefLocation) HasCivicAddr() bool { + if o != nil && !IsNil(o.CivicAddr) { + return true + } + + return false +} + +// SetCivicAddr gets a reference to the given CivicAddress and assigns it to the CivicAddr field. +func (o *AefLocation) SetCivicAddr(v CivicAddress) { + o.CivicAddr = &v +} + +// GetGeoArea returns the GeoArea field value if set, zero value otherwise. +func (o *AefLocation) GetGeoArea() GeographicArea { + if o == nil || IsNil(o.GeoArea) { + var ret GeographicArea + return ret + } + return *o.GeoArea +} + +// GetGeoAreaOk returns a tuple with the GeoArea field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetGeoAreaOk() (*GeographicArea, bool) { + if o == nil || IsNil(o.GeoArea) { + return nil, false + } + return o.GeoArea, true +} + +// HasGeoArea returns a boolean if a field has been set. +func (o *AefLocation) HasGeoArea() bool { + if o != nil && !IsNil(o.GeoArea) { + return true + } + + return false +} + +// SetGeoArea gets a reference to the given GeographicArea and assigns it to the GeoArea field. +func (o *AefLocation) SetGeoArea(v GeographicArea) { + o.GeoArea = &v +} + +// GetDcId returns the DcId field value if set, zero value otherwise. +func (o *AefLocation) GetDcId() string { + if o == nil || IsNil(o.DcId) { + var ret string + return ret + } + return *o.DcId +} + +// GetDcIdOk returns a tuple with the DcId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetDcIdOk() (*string, bool) { + if o == nil || IsNil(o.DcId) { + return nil, false + } + return o.DcId, true +} + +// HasDcId returns a boolean if a field has been set. +func (o *AefLocation) HasDcId() bool { + if o != nil && !IsNil(o.DcId) { + return true + } + + return false +} + +// SetDcId gets a reference to the given string and assigns it to the DcId field. +func (o *AefLocation) SetDcId(v string) { + o.DcId = &v +} + +func (o AefLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AefLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CivicAddr) { + toSerialize["civicAddr"] = o.CivicAddr + } + if !IsNil(o.GeoArea) { + toSerialize["geoArea"] = o.GeoArea + } + if !IsNil(o.DcId) { + toSerialize["dcId"] = o.DcId + } + return toSerialize, nil +} + +type NullableAefLocation struct { + value *AefLocation + isSet bool +} + +func (v NullableAefLocation) Get() *AefLocation { + return v.value +} + +func (v *NullableAefLocation) Set(val *AefLocation) { + v.value = val + v.isSet = true +} + +func (v NullableAefLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableAefLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAefLocation(val *AefLocation) *NullableAefLocation { + return &NullableAefLocation{value: val, isSet: true} +} + +func (v NullableAefLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAefLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_aef_profile.go b/internal/CapifApiInvokerManagement/model_aef_profile.go new file mode 100644 index 0000000000000000000000000000000000000000..2aa179a8d4b0a4c2131d054cd67de699b91b1c2f --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_aef_profile.go @@ -0,0 +1,405 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AefProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AefProfile{} + +// AefProfile Represents the AEF profile data. +type AefProfile struct { + // Identifier of the API exposing function + AefId string `json:"aefId"` + // API version + Versions []Version `json:"versions"` + Protocol *Protocol `json:"protocol,omitempty"` + DataFormat *DataFormat `json:"dataFormat,omitempty"` + // Security methods supported by the AEF + SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"` + // Domain to which API belongs to + DomainName *string `json:"domainName,omitempty"` + // Interface details + InterfaceDescriptions []InterfaceDescription `json:"interfaceDescriptions,omitempty"` + AefLocation *AefLocation `json:"aefLocation,omitempty"` +} + +type _AefProfile AefProfile + +// NewAefProfile instantiates a new AefProfile 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 NewAefProfile(aefId string, versions []Version) *AefProfile { + this := AefProfile{} + return &this +} + +// NewAefProfileWithDefaults instantiates a new AefProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAefProfileWithDefaults() *AefProfile { + this := AefProfile{} + return &this +} + +// GetAefId returns the AefId field value +func (o *AefProfile) GetAefId() string { + if o == nil { + var ret string + return ret + } + + return o.AefId +} + +// GetAefIdOk returns a tuple with the AefId field value +// and a boolean to check if the value has been set. +func (o *AefProfile) GetAefIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AefId, true +} + +// SetAefId sets field value +func (o *AefProfile) SetAefId(v string) { + o.AefId = v +} + +// GetVersions returns the Versions field value +func (o *AefProfile) GetVersions() []Version { + if o == nil { + var ret []Version + return ret + } + + return o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value +// and a boolean to check if the value has been set. +func (o *AefProfile) GetVersionsOk() ([]Version, bool) { + if o == nil { + return nil, false + } + return o.Versions, true +} + +// SetVersions sets field value +func (o *AefProfile) SetVersions(v []Version) { + o.Versions = v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *AefProfile) GetProtocol() Protocol { + if o == nil || IsNil(o.Protocol) { + var ret Protocol + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetProtocolOk() (*Protocol, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *AefProfile) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given Protocol and assigns it to the Protocol field. +func (o *AefProfile) SetProtocol(v Protocol) { + o.Protocol = &v +} + +// GetDataFormat returns the DataFormat field value if set, zero value otherwise. +func (o *AefProfile) GetDataFormat() DataFormat { + if o == nil || IsNil(o.DataFormat) { + var ret DataFormat + return ret + } + return *o.DataFormat +} + +// GetDataFormatOk returns a tuple with the DataFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetDataFormatOk() (*DataFormat, bool) { + if o == nil || IsNil(o.DataFormat) { + return nil, false + } + return o.DataFormat, true +} + +// HasDataFormat returns a boolean if a field has been set. +func (o *AefProfile) HasDataFormat() bool { + if o != nil && !IsNil(o.DataFormat) { + return true + } + + return false +} + +// SetDataFormat gets a reference to the given DataFormat and assigns it to the DataFormat field. +func (o *AefProfile) SetDataFormat(v DataFormat) { + o.DataFormat = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *AefProfile) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *AefProfile) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *AefProfile) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +// GetDomainName returns the DomainName field value if set, zero value otherwise. +func (o *AefProfile) GetDomainName() string { + if o == nil || IsNil(o.DomainName) { + var ret string + return ret + } + return *o.DomainName +} + +// GetDomainNameOk returns a tuple with the DomainName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetDomainNameOk() (*string, bool) { + if o == nil || IsNil(o.DomainName) { + return nil, false + } + return o.DomainName, true +} + +// HasDomainName returns a boolean if a field has been set. +func (o *AefProfile) HasDomainName() bool { + if o != nil && !IsNil(o.DomainName) { + return true + } + + return false +} + +// SetDomainName gets a reference to the given string and assigns it to the DomainName field. +func (o *AefProfile) SetDomainName(v string) { + o.DomainName = &v +} + +// GetInterfaceDescriptions returns the InterfaceDescriptions field value if set, zero value otherwise. +func (o *AefProfile) GetInterfaceDescriptions() []InterfaceDescription { + if o == nil || IsNil(o.InterfaceDescriptions) { + var ret []InterfaceDescription + return ret + } + return o.InterfaceDescriptions +} + +// GetInterfaceDescriptionsOk returns a tuple with the InterfaceDescriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetInterfaceDescriptionsOk() ([]InterfaceDescription, bool) { + if o == nil || IsNil(o.InterfaceDescriptions) { + return nil, false + } + return o.InterfaceDescriptions, true +} + +// HasInterfaceDescriptions returns a boolean if a field has been set. +func (o *AefProfile) HasInterfaceDescriptions() bool { + if o != nil && !IsNil(o.InterfaceDescriptions) { + return true + } + + return false +} + +// SetInterfaceDescriptions gets a reference to the given []InterfaceDescription and assigns it to the InterfaceDescriptions field. +func (o *AefProfile) SetInterfaceDescriptions(v []InterfaceDescription) { + o.InterfaceDescriptions = v +} + +// GetAefLocation returns the AefLocation field value if set, zero value otherwise. +func (o *AefProfile) GetAefLocation() AefLocation { + if o == nil || IsNil(o.AefLocation) { + var ret AefLocation + return ret + } + return *o.AefLocation +} + +// GetAefLocationOk returns a tuple with the AefLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetAefLocationOk() (*AefLocation, bool) { + if o == nil || IsNil(o.AefLocation) { + return nil, false + } + return o.AefLocation, true +} + +// HasAefLocation returns a boolean if a field has been set. +func (o *AefProfile) HasAefLocation() bool { + if o != nil && !IsNil(o.AefLocation) { + return true + } + + return false +} + +// SetAefLocation gets a reference to the given AefLocation and assigns it to the AefLocation field. +func (o *AefProfile) SetAefLocation(v AefLocation) { + o.AefLocation = &v +} + +func (o AefProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AefProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["aefId"] = o.AefId + toSerialize["versions"] = o.Versions + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.DataFormat) { + toSerialize["dataFormat"] = o.DataFormat + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + if !IsNil(o.DomainName) { + toSerialize["domainName"] = o.DomainName + } + if !IsNil(o.InterfaceDescriptions) { + toSerialize["interfaceDescriptions"] = o.InterfaceDescriptions + } + if !IsNil(o.AefLocation) { + toSerialize["aefLocation"] = o.AefLocation + } + return toSerialize, nil +} + +func (o *AefProfile) UnmarshalJSON(data []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{ + "aefId", + "versions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAefProfile := _AefProfile{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAefProfile) + + if err != nil { + return err + } + + *o = AefProfile(varAefProfile) + + return err +} + +type NullableAefProfile struct { + value *AefProfile + isSet bool +} + +func (v NullableAefProfile) Get() *AefProfile { + return v.value +} + +func (v *NullableAefProfile) Set(val *AefProfile) { + v.value = val + v.isSet = true +} + +func (v NullableAefProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableAefProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAefProfile(val *AefProfile) *NullableAefProfile { + return &NullableAefProfile{value: val, isSet: true} +} + +func (v NullableAefProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAefProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_api_invoker_enrolment_details.go b/internal/CapifApiInvokerManagement/model_api_invoker_enrolment_details.go new file mode 100644 index 0000000000000000000000000000000000000000..296ce8442ef4736884ea773b5de012179581db5b --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_api_invoker_enrolment_details.go @@ -0,0 +1,407 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the APIInvokerEnrolmentDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIInvokerEnrolmentDetails{} + +// APIInvokerEnrolmentDetails Information about the API Invoker that requested to onboard +type APIInvokerEnrolmentDetails struct { + // API invoker ID assigned by the CAPIF core function to the API invoker while on-boarding the API invoker. Shall not be present in the HTTP POST request from the API invoker to the CAPIF core function, to on-board itself. Shall be present in all other HTTP requests and responses. + ApiInvokerId *string `json:"apiInvokerId,omitempty"` + OnboardingInformation OnboardingInformation `json:"onboardingInformation"` + // string providing an URI formatted according to IETF RFC 3986. + NotificationDestination string `json:"notificationDestination"` + // Set to true by Subscriber to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. + RequestTestNotification *bool `json:"requestTestNotification,omitempty"` + WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,omitempty"` + ApiList *APIList `json:"apiList,omitempty"` + // Generic information related to the API invoker such as details of the device or the application. + ApiInvokerInformation *string `json:"apiInvokerInformation,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` +} + +type _APIInvokerEnrolmentDetails APIInvokerEnrolmentDetails + +// NewAPIInvokerEnrolmentDetails instantiates a new APIInvokerEnrolmentDetails 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 NewAPIInvokerEnrolmentDetails(onboardingInformation OnboardingInformation, notificationDestination string) *APIInvokerEnrolmentDetails { + this := APIInvokerEnrolmentDetails{} + this.OnboardingInformation = onboardingInformation + this.NotificationDestination = notificationDestination + return &this +} + +// NewAPIInvokerEnrolmentDetailsWithDefaults instantiates a new APIInvokerEnrolmentDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIInvokerEnrolmentDetailsWithDefaults() *APIInvokerEnrolmentDetails { + this := APIInvokerEnrolmentDetails{} + return &this +} + +// GetApiInvokerId returns the ApiInvokerId field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetails) GetApiInvokerId() string { + if o == nil || IsNil(o.ApiInvokerId) { + var ret string + return ret + } + return *o.ApiInvokerId +} + +// GetApiInvokerIdOk returns a tuple with the ApiInvokerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetApiInvokerIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiInvokerId) { + return nil, false + } + return o.ApiInvokerId, true +} + +// HasApiInvokerId returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetails) HasApiInvokerId() bool { + if o != nil && !IsNil(o.ApiInvokerId) { + return true + } + + return false +} + +// SetApiInvokerId gets a reference to the given string and assigns it to the ApiInvokerId field. +func (o *APIInvokerEnrolmentDetails) SetApiInvokerId(v string) { + o.ApiInvokerId = &v +} + +// GetOnboardingInformation returns the OnboardingInformation field value +func (o *APIInvokerEnrolmentDetails) GetOnboardingInformation() OnboardingInformation { + if o == nil { + var ret OnboardingInformation + return ret + } + + return o.OnboardingInformation +} + +// GetOnboardingInformationOk returns a tuple with the OnboardingInformation field value +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetOnboardingInformationOk() (*OnboardingInformation, bool) { + if o == nil { + return nil, false + } + return &o.OnboardingInformation, true +} + +// SetOnboardingInformation sets field value +func (o *APIInvokerEnrolmentDetails) SetOnboardingInformation(v OnboardingInformation) { + o.OnboardingInformation = v +} + +// GetNotificationDestination returns the NotificationDestination field value +func (o *APIInvokerEnrolmentDetails) GetNotificationDestination() string { + if o == nil { + var ret string + return ret + } + + return o.NotificationDestination +} + +// GetNotificationDestinationOk returns a tuple with the NotificationDestination field value +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetNotificationDestinationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NotificationDestination, true +} + +// SetNotificationDestination sets field value +func (o *APIInvokerEnrolmentDetails) SetNotificationDestination(v string) { + o.NotificationDestination = v +} + +// GetRequestTestNotification returns the RequestTestNotification field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetails) GetRequestTestNotification() bool { + if o == nil || IsNil(o.RequestTestNotification) { + var ret bool + return ret + } + return *o.RequestTestNotification +} + +// GetRequestTestNotificationOk returns a tuple with the RequestTestNotification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetRequestTestNotificationOk() (*bool, bool) { + if o == nil || IsNil(o.RequestTestNotification) { + return nil, false + } + return o.RequestTestNotification, true +} + +// HasRequestTestNotification returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetails) HasRequestTestNotification() bool { + if o != nil && !IsNil(o.RequestTestNotification) { + return true + } + + return false +} + +// SetRequestTestNotification gets a reference to the given bool and assigns it to the RequestTestNotification field. +func (o *APIInvokerEnrolmentDetails) SetRequestTestNotification(v bool) { + o.RequestTestNotification = &v +} + +// GetWebsockNotifConfig returns the WebsockNotifConfig field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetails) GetWebsockNotifConfig() WebsockNotifConfig { + if o == nil || IsNil(o.WebsockNotifConfig) { + var ret WebsockNotifConfig + return ret + } + return *o.WebsockNotifConfig +} + +// GetWebsockNotifConfigOk returns a tuple with the WebsockNotifConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetWebsockNotifConfigOk() (*WebsockNotifConfig, bool) { + if o == nil || IsNil(o.WebsockNotifConfig) { + return nil, false + } + return o.WebsockNotifConfig, true +} + +// HasWebsockNotifConfig returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetails) HasWebsockNotifConfig() bool { + if o != nil && !IsNil(o.WebsockNotifConfig) { + return true + } + + return false +} + +// SetWebsockNotifConfig gets a reference to the given WebsockNotifConfig and assigns it to the WebsockNotifConfig field. +func (o *APIInvokerEnrolmentDetails) SetWebsockNotifConfig(v WebsockNotifConfig) { + o.WebsockNotifConfig = &v +} + +// GetApiList returns the ApiList field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetails) GetApiList() APIList { + if o == nil || IsNil(o.ApiList) { + var ret APIList + return ret + } + return *o.ApiList +} + +// GetApiListOk returns a tuple with the ApiList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetApiListOk() (*APIList, bool) { + if o == nil || IsNil(o.ApiList) { + return nil, false + } + return o.ApiList, true +} + +// HasApiList returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetails) HasApiList() bool { + if o != nil && !IsNil(o.ApiList) { + return true + } + + return false +} + +// SetApiList gets a reference to the given APIList and assigns it to the ApiList field. +func (o *APIInvokerEnrolmentDetails) SetApiList(v APIList) { + o.ApiList = &v +} + +// GetApiInvokerInformation returns the ApiInvokerInformation field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetails) GetApiInvokerInformation() string { + if o == nil || IsNil(o.ApiInvokerInformation) { + var ret string + return ret + } + return *o.ApiInvokerInformation +} + +// GetApiInvokerInformationOk returns a tuple with the ApiInvokerInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetApiInvokerInformationOk() (*string, bool) { + if o == nil || IsNil(o.ApiInvokerInformation) { + return nil, false + } + return o.ApiInvokerInformation, true +} + +// HasApiInvokerInformation returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetails) HasApiInvokerInformation() bool { + if o != nil && !IsNil(o.ApiInvokerInformation) { + return true + } + + return false +} + +// SetApiInvokerInformation gets a reference to the given string and assigns it to the ApiInvokerInformation field. +func (o *APIInvokerEnrolmentDetails) SetApiInvokerInformation(v string) { + o.ApiInvokerInformation = &v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetails) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetails) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetails) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *APIInvokerEnrolmentDetails) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o APIInvokerEnrolmentDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIInvokerEnrolmentDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiInvokerId) { + toSerialize["apiInvokerId"] = o.ApiInvokerId + } + toSerialize["onboardingInformation"] = o.OnboardingInformation + toSerialize["notificationDestination"] = o.NotificationDestination + if !IsNil(o.RequestTestNotification) { + toSerialize["requestTestNotification"] = o.RequestTestNotification + } + if !IsNil(o.WebsockNotifConfig) { + toSerialize["websockNotifConfig"] = o.WebsockNotifConfig + } + if !IsNil(o.ApiList) { + toSerialize["apiList"] = o.ApiList + } + if !IsNil(o.ApiInvokerInformation) { + toSerialize["apiInvokerInformation"] = o.ApiInvokerInformation + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +func (o *APIInvokerEnrolmentDetails) UnmarshalJSON(data []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{ + "onboardingInformation", + "notificationDestination", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAPIInvokerEnrolmentDetails := _APIInvokerEnrolmentDetails{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIInvokerEnrolmentDetails) + + if err != nil { + return err + } + + *o = APIInvokerEnrolmentDetails(varAPIInvokerEnrolmentDetails) + + return err +} + +type NullableAPIInvokerEnrolmentDetails struct { + value *APIInvokerEnrolmentDetails + isSet bool +} + +func (v NullableAPIInvokerEnrolmentDetails) Get() *APIInvokerEnrolmentDetails { + return v.value +} + +func (v *NullableAPIInvokerEnrolmentDetails) Set(val *APIInvokerEnrolmentDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAPIInvokerEnrolmentDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIInvokerEnrolmentDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIInvokerEnrolmentDetails(val *APIInvokerEnrolmentDetails) *NullableAPIInvokerEnrolmentDetails { + return &NullableAPIInvokerEnrolmentDetails{value: val, isSet: true} +} + +func (v NullableAPIInvokerEnrolmentDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIInvokerEnrolmentDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_api_invoker_enrolment_details_patch.go b/internal/CapifApiInvokerManagement/model_api_invoker_enrolment_details_patch.go new file mode 100644 index 0000000000000000000000000000000000000000..3c53226e636d72e6c8c52361eb54761eaa838cc1 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_api_invoker_enrolment_details_patch.go @@ -0,0 +1,236 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the APIInvokerEnrolmentDetailsPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIInvokerEnrolmentDetailsPatch{} + +// APIInvokerEnrolmentDetailsPatch Represents an API Invoker's enrolment details to be updated. +type APIInvokerEnrolmentDetailsPatch struct { + OnboardingInformation *OnboardingInformation `json:"onboardingInformation,omitempty"` + // string providing an URI formatted according to IETF RFC 3986. + NotificationDestination *string `json:"notificationDestination,omitempty"` + ApiList *APIList `json:"apiList,omitempty"` + // Generic information related to the API invoker such as details of the device or the application. + ApiInvokerInformation *string `json:"apiInvokerInformation,omitempty"` +} + +// NewAPIInvokerEnrolmentDetailsPatch instantiates a new APIInvokerEnrolmentDetailsPatch 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 NewAPIInvokerEnrolmentDetailsPatch() *APIInvokerEnrolmentDetailsPatch { + this := APIInvokerEnrolmentDetailsPatch{} + return &this +} + +// NewAPIInvokerEnrolmentDetailsPatchWithDefaults instantiates a new APIInvokerEnrolmentDetailsPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIInvokerEnrolmentDetailsPatchWithDefaults() *APIInvokerEnrolmentDetailsPatch { + this := APIInvokerEnrolmentDetailsPatch{} + return &this +} + +// GetOnboardingInformation returns the OnboardingInformation field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetailsPatch) GetOnboardingInformation() OnboardingInformation { + if o == nil || IsNil(o.OnboardingInformation) { + var ret OnboardingInformation + return ret + } + return *o.OnboardingInformation +} + +// GetOnboardingInformationOk returns a tuple with the OnboardingInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetailsPatch) GetOnboardingInformationOk() (*OnboardingInformation, bool) { + if o == nil || IsNil(o.OnboardingInformation) { + return nil, false + } + return o.OnboardingInformation, true +} + +// HasOnboardingInformation returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetailsPatch) HasOnboardingInformation() bool { + if o != nil && !IsNil(o.OnboardingInformation) { + return true + } + + return false +} + +// SetOnboardingInformation gets a reference to the given OnboardingInformation and assigns it to the OnboardingInformation field. +func (o *APIInvokerEnrolmentDetailsPatch) SetOnboardingInformation(v OnboardingInformation) { + o.OnboardingInformation = &v +} + +// GetNotificationDestination returns the NotificationDestination field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetailsPatch) GetNotificationDestination() string { + if o == nil || IsNil(o.NotificationDestination) { + var ret string + return ret + } + return *o.NotificationDestination +} + +// GetNotificationDestinationOk returns a tuple with the NotificationDestination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetailsPatch) GetNotificationDestinationOk() (*string, bool) { + if o == nil || IsNil(o.NotificationDestination) { + return nil, false + } + return o.NotificationDestination, true +} + +// HasNotificationDestination returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetailsPatch) HasNotificationDestination() bool { + if o != nil && !IsNil(o.NotificationDestination) { + return true + } + + return false +} + +// SetNotificationDestination gets a reference to the given string and assigns it to the NotificationDestination field. +func (o *APIInvokerEnrolmentDetailsPatch) SetNotificationDestination(v string) { + o.NotificationDestination = &v +} + +// GetApiList returns the ApiList field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetailsPatch) GetApiList() APIList { + if o == nil || IsNil(o.ApiList) { + var ret APIList + return ret + } + return *o.ApiList +} + +// GetApiListOk returns a tuple with the ApiList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetailsPatch) GetApiListOk() (*APIList, bool) { + if o == nil || IsNil(o.ApiList) { + return nil, false + } + return o.ApiList, true +} + +// HasApiList returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetailsPatch) HasApiList() bool { + if o != nil && !IsNil(o.ApiList) { + return true + } + + return false +} + +// SetApiList gets a reference to the given APIList and assigns it to the ApiList field. +func (o *APIInvokerEnrolmentDetailsPatch) SetApiList(v APIList) { + o.ApiList = &v +} + +// GetApiInvokerInformation returns the ApiInvokerInformation field value if set, zero value otherwise. +func (o *APIInvokerEnrolmentDetailsPatch) GetApiInvokerInformation() string { + if o == nil || IsNil(o.ApiInvokerInformation) { + var ret string + return ret + } + return *o.ApiInvokerInformation +} + +// GetApiInvokerInformationOk returns a tuple with the ApiInvokerInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIInvokerEnrolmentDetailsPatch) GetApiInvokerInformationOk() (*string, bool) { + if o == nil || IsNil(o.ApiInvokerInformation) { + return nil, false + } + return o.ApiInvokerInformation, true +} + +// HasApiInvokerInformation returns a boolean if a field has been set. +func (o *APIInvokerEnrolmentDetailsPatch) HasApiInvokerInformation() bool { + if o != nil && !IsNil(o.ApiInvokerInformation) { + return true + } + + return false +} + +// SetApiInvokerInformation gets a reference to the given string and assigns it to the ApiInvokerInformation field. +func (o *APIInvokerEnrolmentDetailsPatch) SetApiInvokerInformation(v string) { + o.ApiInvokerInformation = &v +} + +func (o APIInvokerEnrolmentDetailsPatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIInvokerEnrolmentDetailsPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OnboardingInformation) { + toSerialize["onboardingInformation"] = o.OnboardingInformation + } + if !IsNil(o.NotificationDestination) { + toSerialize["notificationDestination"] = o.NotificationDestination + } + if !IsNil(o.ApiList) { + toSerialize["apiList"] = o.ApiList + } + if !IsNil(o.ApiInvokerInformation) { + toSerialize["apiInvokerInformation"] = o.ApiInvokerInformation + } + return toSerialize, nil +} + +type NullableAPIInvokerEnrolmentDetailsPatch struct { + value *APIInvokerEnrolmentDetailsPatch + isSet bool +} + +func (v NullableAPIInvokerEnrolmentDetailsPatch) Get() *APIInvokerEnrolmentDetailsPatch { + return v.value +} + +func (v *NullableAPIInvokerEnrolmentDetailsPatch) Set(val *APIInvokerEnrolmentDetailsPatch) { + v.value = val + v.isSet = true +} + +func (v NullableAPIInvokerEnrolmentDetailsPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIInvokerEnrolmentDetailsPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIInvokerEnrolmentDetailsPatch(val *APIInvokerEnrolmentDetailsPatch) *NullableAPIInvokerEnrolmentDetailsPatch { + return &NullableAPIInvokerEnrolmentDetailsPatch{value: val, isSet: true} +} + +func (v NullableAPIInvokerEnrolmentDetailsPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIInvokerEnrolmentDetailsPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_api_list.go b/internal/CapifApiInvokerManagement/model_api_list.go new file mode 100644 index 0000000000000000000000000000000000000000..7419e80edd37e08a056b4b35edb7059439ca06fa --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_api_list.go @@ -0,0 +1,127 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the APIList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIList{} + +// APIList Represents a list of APIs. +type APIList struct { + // The list of service APIs that the API Invoker is allowed to invoke. + ServiceAPIDescriptions []ServiceAPIDescription `json:"serviceAPIDescriptions,omitempty"` +} + +// NewAPIList instantiates a new APIList 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 NewAPIList() *APIList { + this := APIList{} + return &this +} + +// NewAPIListWithDefaults instantiates a new APIList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIListWithDefaults() *APIList { + this := APIList{} + return &this +} + +// GetServiceAPIDescriptions returns the ServiceAPIDescriptions field value if set, zero value otherwise. +func (o *APIList) GetServiceAPIDescriptions() []ServiceAPIDescription { + if o == nil || IsNil(o.ServiceAPIDescriptions) { + var ret []ServiceAPIDescription + return ret + } + return o.ServiceAPIDescriptions +} + +// GetServiceAPIDescriptionsOk returns a tuple with the ServiceAPIDescriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIList) GetServiceAPIDescriptionsOk() ([]ServiceAPIDescription, bool) { + if o == nil || IsNil(o.ServiceAPIDescriptions) { + return nil, false + } + return o.ServiceAPIDescriptions, true +} + +// HasServiceAPIDescriptions returns a boolean if a field has been set. +func (o *APIList) HasServiceAPIDescriptions() bool { + if o != nil && !IsNil(o.ServiceAPIDescriptions) { + return true + } + + return false +} + +// SetServiceAPIDescriptions gets a reference to the given []ServiceAPIDescription and assigns it to the ServiceAPIDescriptions field. +func (o *APIList) SetServiceAPIDescriptions(v []ServiceAPIDescription) { + o.ServiceAPIDescriptions = v +} + +func (o APIList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceAPIDescriptions) { + toSerialize["serviceAPIDescriptions"] = o.ServiceAPIDescriptions + } + return toSerialize, nil +} + +type NullableAPIList struct { + value *APIList + isSet bool +} + +func (v NullableAPIList) Get() *APIList { + return v.value +} + +func (v *NullableAPIList) Set(val *APIList) { + v.value = val + v.isSet = true +} + +func (v NullableAPIList) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIList(val *APIList) *NullableAPIList { + return &NullableAPIList{value: val, isSet: true} +} + +func (v NullableAPIList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_civic_address.go b/internal/CapifApiInvokerManagement/model_civic_address.go new file mode 100644 index 0000000000000000000000000000000000000000..fe8071e440ef9f3d58d9b06ca593421ffd406dee --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_civic_address.go @@ -0,0 +1,1314 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the CivicAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CivicAddress{} + +// CivicAddress Indicates a Civic address. +type CivicAddress struct { + Country *string `json:"country,omitempty"` + A1 *string `json:"A1,omitempty"` + A2 *string `json:"A2,omitempty"` + A3 *string `json:"A3,omitempty"` + A4 *string `json:"A4,omitempty"` + A5 *string `json:"A5,omitempty"` + A6 *string `json:"A6,omitempty"` + PRD *string `json:"PRD,omitempty"` + POD *string `json:"POD,omitempty"` + STS *string `json:"STS,omitempty"` + HNO *string `json:"HNO,omitempty"` + HNS *string `json:"HNS,omitempty"` + LMK *string `json:"LMK,omitempty"` + LOC *string `json:"LOC,omitempty"` + NAM *string `json:"NAM,omitempty"` + PC *string `json:"PC,omitempty"` + BLD *string `json:"BLD,omitempty"` + UNIT *string `json:"UNIT,omitempty"` + FLR *string `json:"FLR,omitempty"` + ROOM *string `json:"ROOM,omitempty"` + PLC *string `json:"PLC,omitempty"` + PCN *string `json:"PCN,omitempty"` + POBOX *string `json:"POBOX,omitempty"` + ADDCODE *string `json:"ADDCODE,omitempty"` + SEAT *string `json:"SEAT,omitempty"` + RD *string `json:"RD,omitempty"` + RDSEC *string `json:"RDSEC,omitempty"` + RDBR *string `json:"RDBR,omitempty"` + RDSUBBR *string `json:"RDSUBBR,omitempty"` + PRM *string `json:"PRM,omitempty"` + POM *string `json:"POM,omitempty"` + UsageRules *string `json:"usageRules,omitempty"` + Method *string `json:"method,omitempty"` + ProvidedBy *string `json:"providedBy,omitempty"` +} + +// NewCivicAddress instantiates a new CivicAddress 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 NewCivicAddress() *CivicAddress { + this := CivicAddress{} + return &this +} + +// NewCivicAddressWithDefaults instantiates a new CivicAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCivicAddressWithDefaults() *CivicAddress { + this := CivicAddress{} + return &this +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *CivicAddress) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *CivicAddress) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *CivicAddress) SetCountry(v string) { + o.Country = &v +} + +// GetA1 returns the A1 field value if set, zero value otherwise. +func (o *CivicAddress) GetA1() string { + if o == nil || IsNil(o.A1) { + var ret string + return ret + } + return *o.A1 +} + +// GetA1Ok returns a tuple with the A1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA1Ok() (*string, bool) { + if o == nil || IsNil(o.A1) { + return nil, false + } + return o.A1, true +} + +// HasA1 returns a boolean if a field has been set. +func (o *CivicAddress) HasA1() bool { + if o != nil && !IsNil(o.A1) { + return true + } + + return false +} + +// SetA1 gets a reference to the given string and assigns it to the A1 field. +func (o *CivicAddress) SetA1(v string) { + o.A1 = &v +} + +// GetA2 returns the A2 field value if set, zero value otherwise. +func (o *CivicAddress) GetA2() string { + if o == nil || IsNil(o.A2) { + var ret string + return ret + } + return *o.A2 +} + +// GetA2Ok returns a tuple with the A2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA2Ok() (*string, bool) { + if o == nil || IsNil(o.A2) { + return nil, false + } + return o.A2, true +} + +// HasA2 returns a boolean if a field has been set. +func (o *CivicAddress) HasA2() bool { + if o != nil && !IsNil(o.A2) { + return true + } + + return false +} + +// SetA2 gets a reference to the given string and assigns it to the A2 field. +func (o *CivicAddress) SetA2(v string) { + o.A2 = &v +} + +// GetA3 returns the A3 field value if set, zero value otherwise. +func (o *CivicAddress) GetA3() string { + if o == nil || IsNil(o.A3) { + var ret string + return ret + } + return *o.A3 +} + +// GetA3Ok returns a tuple with the A3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA3Ok() (*string, bool) { + if o == nil || IsNil(o.A3) { + return nil, false + } + return o.A3, true +} + +// HasA3 returns a boolean if a field has been set. +func (o *CivicAddress) HasA3() bool { + if o != nil && !IsNil(o.A3) { + return true + } + + return false +} + +// SetA3 gets a reference to the given string and assigns it to the A3 field. +func (o *CivicAddress) SetA3(v string) { + o.A3 = &v +} + +// GetA4 returns the A4 field value if set, zero value otherwise. +func (o *CivicAddress) GetA4() string { + if o == nil || IsNil(o.A4) { + var ret string + return ret + } + return *o.A4 +} + +// GetA4Ok returns a tuple with the A4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA4Ok() (*string, bool) { + if o == nil || IsNil(o.A4) { + return nil, false + } + return o.A4, true +} + +// HasA4 returns a boolean if a field has been set. +func (o *CivicAddress) HasA4() bool { + if o != nil && !IsNil(o.A4) { + return true + } + + return false +} + +// SetA4 gets a reference to the given string and assigns it to the A4 field. +func (o *CivicAddress) SetA4(v string) { + o.A4 = &v +} + +// GetA5 returns the A5 field value if set, zero value otherwise. +func (o *CivicAddress) GetA5() string { + if o == nil || IsNil(o.A5) { + var ret string + return ret + } + return *o.A5 +} + +// GetA5Ok returns a tuple with the A5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA5Ok() (*string, bool) { + if o == nil || IsNil(o.A5) { + return nil, false + } + return o.A5, true +} + +// HasA5 returns a boolean if a field has been set. +func (o *CivicAddress) HasA5() bool { + if o != nil && !IsNil(o.A5) { + return true + } + + return false +} + +// SetA5 gets a reference to the given string and assigns it to the A5 field. +func (o *CivicAddress) SetA5(v string) { + o.A5 = &v +} + +// GetA6 returns the A6 field value if set, zero value otherwise. +func (o *CivicAddress) GetA6() string { + if o == nil || IsNil(o.A6) { + var ret string + return ret + } + return *o.A6 +} + +// GetA6Ok returns a tuple with the A6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA6Ok() (*string, bool) { + if o == nil || IsNil(o.A6) { + return nil, false + } + return o.A6, true +} + +// HasA6 returns a boolean if a field has been set. +func (o *CivicAddress) HasA6() bool { + if o != nil && !IsNil(o.A6) { + return true + } + + return false +} + +// SetA6 gets a reference to the given string and assigns it to the A6 field. +func (o *CivicAddress) SetA6(v string) { + o.A6 = &v +} + +// GetPRD returns the PRD field value if set, zero value otherwise. +func (o *CivicAddress) GetPRD() string { + if o == nil || IsNil(o.PRD) { + var ret string + return ret + } + return *o.PRD +} + +// GetPRDOk returns a tuple with the PRD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPRDOk() (*string, bool) { + if o == nil || IsNil(o.PRD) { + return nil, false + } + return o.PRD, true +} + +// HasPRD returns a boolean if a field has been set. +func (o *CivicAddress) HasPRD() bool { + if o != nil && !IsNil(o.PRD) { + return true + } + + return false +} + +// SetPRD gets a reference to the given string and assigns it to the PRD field. +func (o *CivicAddress) SetPRD(v string) { + o.PRD = &v +} + +// GetPOD returns the POD field value if set, zero value otherwise. +func (o *CivicAddress) GetPOD() string { + if o == nil || IsNil(o.POD) { + var ret string + return ret + } + return *o.POD +} + +// GetPODOk returns a tuple with the POD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPODOk() (*string, bool) { + if o == nil || IsNil(o.POD) { + return nil, false + } + return o.POD, true +} + +// HasPOD returns a boolean if a field has been set. +func (o *CivicAddress) HasPOD() bool { + if o != nil && !IsNil(o.POD) { + return true + } + + return false +} + +// SetPOD gets a reference to the given string and assigns it to the POD field. +func (o *CivicAddress) SetPOD(v string) { + o.POD = &v +} + +// GetSTS returns the STS field value if set, zero value otherwise. +func (o *CivicAddress) GetSTS() string { + if o == nil || IsNil(o.STS) { + var ret string + return ret + } + return *o.STS +} + +// GetSTSOk returns a tuple with the STS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetSTSOk() (*string, bool) { + if o == nil || IsNil(o.STS) { + return nil, false + } + return o.STS, true +} + +// HasSTS returns a boolean if a field has been set. +func (o *CivicAddress) HasSTS() bool { + if o != nil && !IsNil(o.STS) { + return true + } + + return false +} + +// SetSTS gets a reference to the given string and assigns it to the STS field. +func (o *CivicAddress) SetSTS(v string) { + o.STS = &v +} + +// GetHNO returns the HNO field value if set, zero value otherwise. +func (o *CivicAddress) GetHNO() string { + if o == nil || IsNil(o.HNO) { + var ret string + return ret + } + return *o.HNO +} + +// GetHNOOk returns a tuple with the HNO field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetHNOOk() (*string, bool) { + if o == nil || IsNil(o.HNO) { + return nil, false + } + return o.HNO, true +} + +// HasHNO returns a boolean if a field has been set. +func (o *CivicAddress) HasHNO() bool { + if o != nil && !IsNil(o.HNO) { + return true + } + + return false +} + +// SetHNO gets a reference to the given string and assigns it to the HNO field. +func (o *CivicAddress) SetHNO(v string) { + o.HNO = &v +} + +// GetHNS returns the HNS field value if set, zero value otherwise. +func (o *CivicAddress) GetHNS() string { + if o == nil || IsNil(o.HNS) { + var ret string + return ret + } + return *o.HNS +} + +// GetHNSOk returns a tuple with the HNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetHNSOk() (*string, bool) { + if o == nil || IsNil(o.HNS) { + return nil, false + } + return o.HNS, true +} + +// HasHNS returns a boolean if a field has been set. +func (o *CivicAddress) HasHNS() bool { + if o != nil && !IsNil(o.HNS) { + return true + } + + return false +} + +// SetHNS gets a reference to the given string and assigns it to the HNS field. +func (o *CivicAddress) SetHNS(v string) { + o.HNS = &v +} + +// GetLMK returns the LMK field value if set, zero value otherwise. +func (o *CivicAddress) GetLMK() string { + if o == nil || IsNil(o.LMK) { + var ret string + return ret + } + return *o.LMK +} + +// GetLMKOk returns a tuple with the LMK field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetLMKOk() (*string, bool) { + if o == nil || IsNil(o.LMK) { + return nil, false + } + return o.LMK, true +} + +// HasLMK returns a boolean if a field has been set. +func (o *CivicAddress) HasLMK() bool { + if o != nil && !IsNil(o.LMK) { + return true + } + + return false +} + +// SetLMK gets a reference to the given string and assigns it to the LMK field. +func (o *CivicAddress) SetLMK(v string) { + o.LMK = &v +} + +// GetLOC returns the LOC field value if set, zero value otherwise. +func (o *CivicAddress) GetLOC() string { + if o == nil || IsNil(o.LOC) { + var ret string + return ret + } + return *o.LOC +} + +// GetLOCOk returns a tuple with the LOC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetLOCOk() (*string, bool) { + if o == nil || IsNil(o.LOC) { + return nil, false + } + return o.LOC, true +} + +// HasLOC returns a boolean if a field has been set. +func (o *CivicAddress) HasLOC() bool { + if o != nil && !IsNil(o.LOC) { + return true + } + + return false +} + +// SetLOC gets a reference to the given string and assigns it to the LOC field. +func (o *CivicAddress) SetLOC(v string) { + o.LOC = &v +} + +// GetNAM returns the NAM field value if set, zero value otherwise. +func (o *CivicAddress) GetNAM() string { + if o == nil || IsNil(o.NAM) { + var ret string + return ret + } + return *o.NAM +} + +// GetNAMOk returns a tuple with the NAM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetNAMOk() (*string, bool) { + if o == nil || IsNil(o.NAM) { + return nil, false + } + return o.NAM, true +} + +// HasNAM returns a boolean if a field has been set. +func (o *CivicAddress) HasNAM() bool { + if o != nil && !IsNil(o.NAM) { + return true + } + + return false +} + +// SetNAM gets a reference to the given string and assigns it to the NAM field. +func (o *CivicAddress) SetNAM(v string) { + o.NAM = &v +} + +// GetPC returns the PC field value if set, zero value otherwise. +func (o *CivicAddress) GetPC() string { + if o == nil || IsNil(o.PC) { + var ret string + return ret + } + return *o.PC +} + +// GetPCOk returns a tuple with the PC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPCOk() (*string, bool) { + if o == nil || IsNil(o.PC) { + return nil, false + } + return o.PC, true +} + +// HasPC returns a boolean if a field has been set. +func (o *CivicAddress) HasPC() bool { + if o != nil && !IsNil(o.PC) { + return true + } + + return false +} + +// SetPC gets a reference to the given string and assigns it to the PC field. +func (o *CivicAddress) SetPC(v string) { + o.PC = &v +} + +// GetBLD returns the BLD field value if set, zero value otherwise. +func (o *CivicAddress) GetBLD() string { + if o == nil || IsNil(o.BLD) { + var ret string + return ret + } + return *o.BLD +} + +// GetBLDOk returns a tuple with the BLD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetBLDOk() (*string, bool) { + if o == nil || IsNil(o.BLD) { + return nil, false + } + return o.BLD, true +} + +// HasBLD returns a boolean if a field has been set. +func (o *CivicAddress) HasBLD() bool { + if o != nil && !IsNil(o.BLD) { + return true + } + + return false +} + +// SetBLD gets a reference to the given string and assigns it to the BLD field. +func (o *CivicAddress) SetBLD(v string) { + o.BLD = &v +} + +// GetUNIT returns the UNIT field value if set, zero value otherwise. +func (o *CivicAddress) GetUNIT() string { + if o == nil || IsNil(o.UNIT) { + var ret string + return ret + } + return *o.UNIT +} + +// GetUNITOk returns a tuple with the UNIT field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetUNITOk() (*string, bool) { + if o == nil || IsNil(o.UNIT) { + return nil, false + } + return o.UNIT, true +} + +// HasUNIT returns a boolean if a field has been set. +func (o *CivicAddress) HasUNIT() bool { + if o != nil && !IsNil(o.UNIT) { + return true + } + + return false +} + +// SetUNIT gets a reference to the given string and assigns it to the UNIT field. +func (o *CivicAddress) SetUNIT(v string) { + o.UNIT = &v +} + +// GetFLR returns the FLR field value if set, zero value otherwise. +func (o *CivicAddress) GetFLR() string { + if o == nil || IsNil(o.FLR) { + var ret string + return ret + } + return *o.FLR +} + +// GetFLROk returns a tuple with the FLR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetFLROk() (*string, bool) { + if o == nil || IsNil(o.FLR) { + return nil, false + } + return o.FLR, true +} + +// HasFLR returns a boolean if a field has been set. +func (o *CivicAddress) HasFLR() bool { + if o != nil && !IsNil(o.FLR) { + return true + } + + return false +} + +// SetFLR gets a reference to the given string and assigns it to the FLR field. +func (o *CivicAddress) SetFLR(v string) { + o.FLR = &v +} + +// GetROOM returns the ROOM field value if set, zero value otherwise. +func (o *CivicAddress) GetROOM() string { + if o == nil || IsNil(o.ROOM) { + var ret string + return ret + } + return *o.ROOM +} + +// GetROOMOk returns a tuple with the ROOM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetROOMOk() (*string, bool) { + if o == nil || IsNil(o.ROOM) { + return nil, false + } + return o.ROOM, true +} + +// HasROOM returns a boolean if a field has been set. +func (o *CivicAddress) HasROOM() bool { + if o != nil && !IsNil(o.ROOM) { + return true + } + + return false +} + +// SetROOM gets a reference to the given string and assigns it to the ROOM field. +func (o *CivicAddress) SetROOM(v string) { + o.ROOM = &v +} + +// GetPLC returns the PLC field value if set, zero value otherwise. +func (o *CivicAddress) GetPLC() string { + if o == nil || IsNil(o.PLC) { + var ret string + return ret + } + return *o.PLC +} + +// GetPLCOk returns a tuple with the PLC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPLCOk() (*string, bool) { + if o == nil || IsNil(o.PLC) { + return nil, false + } + return o.PLC, true +} + +// HasPLC returns a boolean if a field has been set. +func (o *CivicAddress) HasPLC() bool { + if o != nil && !IsNil(o.PLC) { + return true + } + + return false +} + +// SetPLC gets a reference to the given string and assigns it to the PLC field. +func (o *CivicAddress) SetPLC(v string) { + o.PLC = &v +} + +// GetPCN returns the PCN field value if set, zero value otherwise. +func (o *CivicAddress) GetPCN() string { + if o == nil || IsNil(o.PCN) { + var ret string + return ret + } + return *o.PCN +} + +// GetPCNOk returns a tuple with the PCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPCNOk() (*string, bool) { + if o == nil || IsNil(o.PCN) { + return nil, false + } + return o.PCN, true +} + +// HasPCN returns a boolean if a field has been set. +func (o *CivicAddress) HasPCN() bool { + if o != nil && !IsNil(o.PCN) { + return true + } + + return false +} + +// SetPCN gets a reference to the given string and assigns it to the PCN field. +func (o *CivicAddress) SetPCN(v string) { + o.PCN = &v +} + +// GetPOBOX returns the POBOX field value if set, zero value otherwise. +func (o *CivicAddress) GetPOBOX() string { + if o == nil || IsNil(o.POBOX) { + var ret string + return ret + } + return *o.POBOX +} + +// GetPOBOXOk returns a tuple with the POBOX field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPOBOXOk() (*string, bool) { + if o == nil || IsNil(o.POBOX) { + return nil, false + } + return o.POBOX, true +} + +// HasPOBOX returns a boolean if a field has been set. +func (o *CivicAddress) HasPOBOX() bool { + if o != nil && !IsNil(o.POBOX) { + return true + } + + return false +} + +// SetPOBOX gets a reference to the given string and assigns it to the POBOX field. +func (o *CivicAddress) SetPOBOX(v string) { + o.POBOX = &v +} + +// GetADDCODE returns the ADDCODE field value if set, zero value otherwise. +func (o *CivicAddress) GetADDCODE() string { + if o == nil || IsNil(o.ADDCODE) { + var ret string + return ret + } + return *o.ADDCODE +} + +// GetADDCODEOk returns a tuple with the ADDCODE field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetADDCODEOk() (*string, bool) { + if o == nil || IsNil(o.ADDCODE) { + return nil, false + } + return o.ADDCODE, true +} + +// HasADDCODE returns a boolean if a field has been set. +func (o *CivicAddress) HasADDCODE() bool { + if o != nil && !IsNil(o.ADDCODE) { + return true + } + + return false +} + +// SetADDCODE gets a reference to the given string and assigns it to the ADDCODE field. +func (o *CivicAddress) SetADDCODE(v string) { + o.ADDCODE = &v +} + +// GetSEAT returns the SEAT field value if set, zero value otherwise. +func (o *CivicAddress) GetSEAT() string { + if o == nil || IsNil(o.SEAT) { + var ret string + return ret + } + return *o.SEAT +} + +// GetSEATOk returns a tuple with the SEAT field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetSEATOk() (*string, bool) { + if o == nil || IsNil(o.SEAT) { + return nil, false + } + return o.SEAT, true +} + +// HasSEAT returns a boolean if a field has been set. +func (o *CivicAddress) HasSEAT() bool { + if o != nil && !IsNil(o.SEAT) { + return true + } + + return false +} + +// SetSEAT gets a reference to the given string and assigns it to the SEAT field. +func (o *CivicAddress) SetSEAT(v string) { + o.SEAT = &v +} + +// GetRD returns the RD field value if set, zero value otherwise. +func (o *CivicAddress) GetRD() string { + if o == nil || IsNil(o.RD) { + var ret string + return ret + } + return *o.RD +} + +// GetRDOk returns a tuple with the RD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDOk() (*string, bool) { + if o == nil || IsNil(o.RD) { + return nil, false + } + return o.RD, true +} + +// HasRD returns a boolean if a field has been set. +func (o *CivicAddress) HasRD() bool { + if o != nil && !IsNil(o.RD) { + return true + } + + return false +} + +// SetRD gets a reference to the given string and assigns it to the RD field. +func (o *CivicAddress) SetRD(v string) { + o.RD = &v +} + +// GetRDSEC returns the RDSEC field value if set, zero value otherwise. +func (o *CivicAddress) GetRDSEC() string { + if o == nil || IsNil(o.RDSEC) { + var ret string + return ret + } + return *o.RDSEC +} + +// GetRDSECOk returns a tuple with the RDSEC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDSECOk() (*string, bool) { + if o == nil || IsNil(o.RDSEC) { + return nil, false + } + return o.RDSEC, true +} + +// HasRDSEC returns a boolean if a field has been set. +func (o *CivicAddress) HasRDSEC() bool { + if o != nil && !IsNil(o.RDSEC) { + return true + } + + return false +} + +// SetRDSEC gets a reference to the given string and assigns it to the RDSEC field. +func (o *CivicAddress) SetRDSEC(v string) { + o.RDSEC = &v +} + +// GetRDBR returns the RDBR field value if set, zero value otherwise. +func (o *CivicAddress) GetRDBR() string { + if o == nil || IsNil(o.RDBR) { + var ret string + return ret + } + return *o.RDBR +} + +// GetRDBROk returns a tuple with the RDBR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDBROk() (*string, bool) { + if o == nil || IsNil(o.RDBR) { + return nil, false + } + return o.RDBR, true +} + +// HasRDBR returns a boolean if a field has been set. +func (o *CivicAddress) HasRDBR() bool { + if o != nil && !IsNil(o.RDBR) { + return true + } + + return false +} + +// SetRDBR gets a reference to the given string and assigns it to the RDBR field. +func (o *CivicAddress) SetRDBR(v string) { + o.RDBR = &v +} + +// GetRDSUBBR returns the RDSUBBR field value if set, zero value otherwise. +func (o *CivicAddress) GetRDSUBBR() string { + if o == nil || IsNil(o.RDSUBBR) { + var ret string + return ret + } + return *o.RDSUBBR +} + +// GetRDSUBBROk returns a tuple with the RDSUBBR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDSUBBROk() (*string, bool) { + if o == nil || IsNil(o.RDSUBBR) { + return nil, false + } + return o.RDSUBBR, true +} + +// HasRDSUBBR returns a boolean if a field has been set. +func (o *CivicAddress) HasRDSUBBR() bool { + if o != nil && !IsNil(o.RDSUBBR) { + return true + } + + return false +} + +// SetRDSUBBR gets a reference to the given string and assigns it to the RDSUBBR field. +func (o *CivicAddress) SetRDSUBBR(v string) { + o.RDSUBBR = &v +} + +// GetPRM returns the PRM field value if set, zero value otherwise. +func (o *CivicAddress) GetPRM() string { + if o == nil || IsNil(o.PRM) { + var ret string + return ret + } + return *o.PRM +} + +// GetPRMOk returns a tuple with the PRM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPRMOk() (*string, bool) { + if o == nil || IsNil(o.PRM) { + return nil, false + } + return o.PRM, true +} + +// HasPRM returns a boolean if a field has been set. +func (o *CivicAddress) HasPRM() bool { + if o != nil && !IsNil(o.PRM) { + return true + } + + return false +} + +// SetPRM gets a reference to the given string and assigns it to the PRM field. +func (o *CivicAddress) SetPRM(v string) { + o.PRM = &v +} + +// GetPOM returns the POM field value if set, zero value otherwise. +func (o *CivicAddress) GetPOM() string { + if o == nil || IsNil(o.POM) { + var ret string + return ret + } + return *o.POM +} + +// GetPOMOk returns a tuple with the POM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPOMOk() (*string, bool) { + if o == nil || IsNil(o.POM) { + return nil, false + } + return o.POM, true +} + +// HasPOM returns a boolean if a field has been set. +func (o *CivicAddress) HasPOM() bool { + if o != nil && !IsNil(o.POM) { + return true + } + + return false +} + +// SetPOM gets a reference to the given string and assigns it to the POM field. +func (o *CivicAddress) SetPOM(v string) { + o.POM = &v +} + +// GetUsageRules returns the UsageRules field value if set, zero value otherwise. +func (o *CivicAddress) GetUsageRules() string { + if o == nil || IsNil(o.UsageRules) { + var ret string + return ret + } + return *o.UsageRules +} + +// GetUsageRulesOk returns a tuple with the UsageRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetUsageRulesOk() (*string, bool) { + if o == nil || IsNil(o.UsageRules) { + return nil, false + } + return o.UsageRules, true +} + +// HasUsageRules returns a boolean if a field has been set. +func (o *CivicAddress) HasUsageRules() bool { + if o != nil && !IsNil(o.UsageRules) { + return true + } + + return false +} + +// SetUsageRules gets a reference to the given string and assigns it to the UsageRules field. +func (o *CivicAddress) SetUsageRules(v string) { + o.UsageRules = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *CivicAddress) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *CivicAddress) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *CivicAddress) SetMethod(v string) { + o.Method = &v +} + +// GetProvidedBy returns the ProvidedBy field value if set, zero value otherwise. +func (o *CivicAddress) GetProvidedBy() string { + if o == nil || IsNil(o.ProvidedBy) { + var ret string + return ret + } + return *o.ProvidedBy +} + +// GetProvidedByOk returns a tuple with the ProvidedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetProvidedByOk() (*string, bool) { + if o == nil || IsNil(o.ProvidedBy) { + return nil, false + } + return o.ProvidedBy, true +} + +// HasProvidedBy returns a boolean if a field has been set. +func (o *CivicAddress) HasProvidedBy() bool { + if o != nil && !IsNil(o.ProvidedBy) { + return true + } + + return false +} + +// SetProvidedBy gets a reference to the given string and assigns it to the ProvidedBy field. +func (o *CivicAddress) SetProvidedBy(v string) { + o.ProvidedBy = &v +} + +func (o CivicAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CivicAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + if !IsNil(o.A1) { + toSerialize["A1"] = o.A1 + } + if !IsNil(o.A2) { + toSerialize["A2"] = o.A2 + } + if !IsNil(o.A3) { + toSerialize["A3"] = o.A3 + } + if !IsNil(o.A4) { + toSerialize["A4"] = o.A4 + } + if !IsNil(o.A5) { + toSerialize["A5"] = o.A5 + } + if !IsNil(o.A6) { + toSerialize["A6"] = o.A6 + } + if !IsNil(o.PRD) { + toSerialize["PRD"] = o.PRD + } + if !IsNil(o.POD) { + toSerialize["POD"] = o.POD + } + if !IsNil(o.STS) { + toSerialize["STS"] = o.STS + } + if !IsNil(o.HNO) { + toSerialize["HNO"] = o.HNO + } + if !IsNil(o.HNS) { + toSerialize["HNS"] = o.HNS + } + if !IsNil(o.LMK) { + toSerialize["LMK"] = o.LMK + } + if !IsNil(o.LOC) { + toSerialize["LOC"] = o.LOC + } + if !IsNil(o.NAM) { + toSerialize["NAM"] = o.NAM + } + if !IsNil(o.PC) { + toSerialize["PC"] = o.PC + } + if !IsNil(o.BLD) { + toSerialize["BLD"] = o.BLD + } + if !IsNil(o.UNIT) { + toSerialize["UNIT"] = o.UNIT + } + if !IsNil(o.FLR) { + toSerialize["FLR"] = o.FLR + } + if !IsNil(o.ROOM) { + toSerialize["ROOM"] = o.ROOM + } + if !IsNil(o.PLC) { + toSerialize["PLC"] = o.PLC + } + if !IsNil(o.PCN) { + toSerialize["PCN"] = o.PCN + } + if !IsNil(o.POBOX) { + toSerialize["POBOX"] = o.POBOX + } + if !IsNil(o.ADDCODE) { + toSerialize["ADDCODE"] = o.ADDCODE + } + if !IsNil(o.SEAT) { + toSerialize["SEAT"] = o.SEAT + } + if !IsNil(o.RD) { + toSerialize["RD"] = o.RD + } + if !IsNil(o.RDSEC) { + toSerialize["RDSEC"] = o.RDSEC + } + if !IsNil(o.RDBR) { + toSerialize["RDBR"] = o.RDBR + } + if !IsNil(o.RDSUBBR) { + toSerialize["RDSUBBR"] = o.RDSUBBR + } + if !IsNil(o.PRM) { + toSerialize["PRM"] = o.PRM + } + if !IsNil(o.POM) { + toSerialize["POM"] = o.POM + } + if !IsNil(o.UsageRules) { + toSerialize["usageRules"] = o.UsageRules + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + if !IsNil(o.ProvidedBy) { + toSerialize["providedBy"] = o.ProvidedBy + } + return toSerialize, nil +} + +type NullableCivicAddress struct { + value *CivicAddress + isSet bool +} + +func (v NullableCivicAddress) Get() *CivicAddress { + return v.value +} + +func (v *NullableCivicAddress) Set(val *CivicAddress) { + v.value = val + v.isSet = true +} + +func (v NullableCivicAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableCivicAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCivicAddress(val *CivicAddress) *NullableCivicAddress { + return &NullableCivicAddress{value: val, isSet: true} +} + +func (v NullableCivicAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCivicAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_communication_type.go b/internal/CapifApiInvokerManagement/model_communication_type.go new file mode 100644 index 0000000000000000000000000000000000000000..46ec9bcc3da2b30e7ba53377b5b6968e3e8b8fc3 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_communication_type.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// CommunicationType Possible values are: - REQUEST_RESPONSE: The communication is of the type request-response - SUBSCRIBE_NOTIFY: The communication is of the type subscribe-notify +type CommunicationType struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *CommunicationType) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(CommunicationType)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *CommunicationType) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableCommunicationType struct { + value *CommunicationType + isSet bool +} + +func (v NullableCommunicationType) Get() *CommunicationType { + return v.value +} + +func (v *NullableCommunicationType) Set(val *CommunicationType) { + v.value = val + v.isSet = true +} + +func (v NullableCommunicationType) IsSet() bool { + return v.isSet +} + +func (v *NullableCommunicationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommunicationType(val *CommunicationType) *NullableCommunicationType { + return &NullableCommunicationType{value: val, isSet: true} +} + +func (v NullableCommunicationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommunicationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_custom_operation.go b/internal/CapifApiInvokerManagement/model_custom_operation.go new file mode 100644 index 0000000000000000000000000000000000000000..08f9d0f0b040dee534a3e99da432ec142e036531 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_custom_operation.go @@ -0,0 +1,261 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the CustomOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomOperation{} + +// CustomOperation Represents the description of a custom operation. +type CustomOperation struct { + CommType CommunicationType `json:"commType"` + // it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. + CustOpName string `json:"custOpName"` + // Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + Operations []Operation `json:"operations,omitempty"` + // Text description of the custom operation + Description *string `json:"description,omitempty"` +} + +type _CustomOperation CustomOperation + +// NewCustomOperation instantiates a new CustomOperation 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 NewCustomOperation(commType CommunicationType, custOpName string) *CustomOperation { + this := CustomOperation{} + this.CommType = commType + this.CustOpName = custOpName + return &this +} + +// NewCustomOperationWithDefaults instantiates a new CustomOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomOperationWithDefaults() *CustomOperation { + this := CustomOperation{} + return &this +} + +// GetCommType returns the CommType field value +func (o *CustomOperation) GetCommType() CommunicationType { + if o == nil { + var ret CommunicationType + return ret + } + + return o.CommType +} + +// GetCommTypeOk returns a tuple with the CommType field value +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetCommTypeOk() (*CommunicationType, bool) { + if o == nil { + return nil, false + } + return &o.CommType, true +} + +// SetCommType sets field value +func (o *CustomOperation) SetCommType(v CommunicationType) { + o.CommType = v +} + +// GetCustOpName returns the CustOpName field value +func (o *CustomOperation) GetCustOpName() string { + if o == nil { + var ret string + return ret + } + + return o.CustOpName +} + +// GetCustOpNameOk returns a tuple with the CustOpName field value +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetCustOpNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustOpName, true +} + +// SetCustOpName sets field value +func (o *CustomOperation) SetCustOpName(v string) { + o.CustOpName = v +} + +// GetOperations returns the Operations field value if set, zero value otherwise. +func (o *CustomOperation) GetOperations() []Operation { + if o == nil || IsNil(o.Operations) { + var ret []Operation + return ret + } + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetOperationsOk() ([]Operation, bool) { + if o == nil || IsNil(o.Operations) { + return nil, false + } + return o.Operations, true +} + +// HasOperations returns a boolean if a field has been set. +func (o *CustomOperation) HasOperations() bool { + if o != nil && !IsNil(o.Operations) { + return true + } + + return false +} + +// SetOperations gets a reference to the given []Operation and assigns it to the Operations field. +func (o *CustomOperation) SetOperations(v []Operation) { + o.Operations = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CustomOperation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CustomOperation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CustomOperation) SetDescription(v string) { + o.Description = &v +} + +func (o CustomOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commType"] = o.CommType + toSerialize["custOpName"] = o.CustOpName + if !IsNil(o.Operations) { + toSerialize["operations"] = o.Operations + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +func (o *CustomOperation) UnmarshalJSON(data []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{ + "commType", + "custOpName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varCustomOperation := _CustomOperation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCustomOperation) + + if err != nil { + return err + } + + *o = CustomOperation(varCustomOperation) + + return err +} + +type NullableCustomOperation struct { + value *CustomOperation + isSet bool +} + +func (v NullableCustomOperation) Get() *CustomOperation { + return v.value +} + +func (v *NullableCustomOperation) Set(val *CustomOperation) { + v.value = val + v.isSet = true +} + +func (v NullableCustomOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomOperation(val *CustomOperation) *NullableCustomOperation { + return &NullableCustomOperation{value: val, isSet: true} +} + +func (v NullableCustomOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_data_format.go b/internal/CapifApiInvokerManagement/model_data_format.go new file mode 100644 index 0000000000000000000000000000000000000000..3451ea6f29596c1a7cbf0b85af12acad3230c02d --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_data_format.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// DataFormat Possible values are: - JSON: JavaScript Object Notation +type DataFormat struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *DataFormat) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(DataFormat)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *DataFormat) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableDataFormat struct { + value *DataFormat + isSet bool +} + +func (v NullableDataFormat) Get() *DataFormat { + return v.value +} + +func (v *NullableDataFormat) Set(val *DataFormat) { + v.value = val + v.isSet = true +} + +func (v NullableDataFormat) IsSet() bool { + return v.isSet +} + +func (v *NullableDataFormat) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataFormat(val *DataFormat) *NullableDataFormat { + return &NullableDataFormat{value: val, isSet: true} +} + +func (v NullableDataFormat) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataFormat) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_ellipsoid_arc.go b/internal/CapifApiInvokerManagement/model_ellipsoid_arc.go new file mode 100644 index 0000000000000000000000000000000000000000..42edda105ccad7ff8b5a7c510af5ac3b39cb8068 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_ellipsoid_arc.go @@ -0,0 +1,314 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the EllipsoidArc type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EllipsoidArc{} + +// EllipsoidArc Ellipsoid Arc. +type EllipsoidArc struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of the inner radius. + InnerRadius int32 `json:"innerRadius"` + // Indicates value of uncertainty. + UncertaintyRadius float32 `json:"uncertaintyRadius"` + // Indicates value of angle. + OffsetAngle int32 `json:"offsetAngle"` + // Indicates value of angle. + IncludedAngle int32 `json:"includedAngle"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _EllipsoidArc EllipsoidArc + +// NewEllipsoidArc instantiates a new EllipsoidArc 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 NewEllipsoidArc(point GeographicalCoordinates, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, confidence int32, shape SupportedGADShapes) *EllipsoidArc { + this := EllipsoidArc{} + this.Shape = shape + this.Point = point + this.InnerRadius = innerRadius + this.UncertaintyRadius = uncertaintyRadius + this.OffsetAngle = offsetAngle + this.IncludedAngle = includedAngle + this.Confidence = confidence + return &this +} + +// NewEllipsoidArcWithDefaults instantiates a new EllipsoidArc object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEllipsoidArcWithDefaults() *EllipsoidArc { + this := EllipsoidArc{} + return &this +} + +// GetPoint returns the Point field value +func (o *EllipsoidArc) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *EllipsoidArc) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetInnerRadius returns the InnerRadius field value +func (o *EllipsoidArc) GetInnerRadius() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InnerRadius +} + +// GetInnerRadiusOk returns a tuple with the InnerRadius field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetInnerRadiusOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InnerRadius, true +} + +// SetInnerRadius sets field value +func (o *EllipsoidArc) SetInnerRadius(v int32) { + o.InnerRadius = v +} + +// GetUncertaintyRadius returns the UncertaintyRadius field value +func (o *EllipsoidArc) GetUncertaintyRadius() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.UncertaintyRadius +} + +// GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetUncertaintyRadiusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyRadius, true +} + +// SetUncertaintyRadius sets field value +func (o *EllipsoidArc) SetUncertaintyRadius(v float32) { + o.UncertaintyRadius = v +} + +// GetOffsetAngle returns the OffsetAngle field value +func (o *EllipsoidArc) GetOffsetAngle() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OffsetAngle +} + +// GetOffsetAngleOk returns a tuple with the OffsetAngle field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetOffsetAngleOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OffsetAngle, true +} + +// SetOffsetAngle sets field value +func (o *EllipsoidArc) SetOffsetAngle(v int32) { + o.OffsetAngle = v +} + +// GetIncludedAngle returns the IncludedAngle field value +func (o *EllipsoidArc) GetIncludedAngle() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.IncludedAngle +} + +// GetIncludedAngleOk returns a tuple with the IncludedAngle field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetIncludedAngleOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.IncludedAngle, true +} + +// SetIncludedAngle sets field value +func (o *EllipsoidArc) SetIncludedAngle(v int32) { + o.IncludedAngle = v +} + +// GetConfidence returns the Confidence field value +func (o *EllipsoidArc) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *EllipsoidArc) SetConfidence(v int32) { + o.Confidence = v +} + +func (o EllipsoidArc) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EllipsoidArc) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["innerRadius"] = o.InnerRadius + toSerialize["uncertaintyRadius"] = o.UncertaintyRadius + toSerialize["offsetAngle"] = o.OffsetAngle + toSerialize["includedAngle"] = o.IncludedAngle + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *EllipsoidArc) UnmarshalJSON(data []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{ + "point", + "innerRadius", + "uncertaintyRadius", + "offsetAngle", + "includedAngle", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varEllipsoidArc := _EllipsoidArc{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEllipsoidArc) + + if err != nil { + return err + } + + *o = EllipsoidArc(varEllipsoidArc) + + return err +} + +type NullableEllipsoidArc struct { + value *EllipsoidArc + isSet bool +} + +func (v NullableEllipsoidArc) Get() *EllipsoidArc { + return v.value +} + +func (v *NullableEllipsoidArc) Set(val *EllipsoidArc) { + v.value = val + v.isSet = true +} + +func (v NullableEllipsoidArc) IsSet() bool { + return v.isSet +} + +func (v *NullableEllipsoidArc) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEllipsoidArc(val *EllipsoidArc) *NullableEllipsoidArc { + return &NullableEllipsoidArc{value: val, isSet: true} +} + +func (v NullableEllipsoidArc) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEllipsoidArc) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_gad_shape.go b/internal/CapifApiInvokerManagement/model_gad_shape.go new file mode 100644 index 0000000000000000000000000000000000000000..13977507a8ad878d3d32e36f233987dca8051945 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_gad_shape.go @@ -0,0 +1,158 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GADShape type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GADShape{} + +// GADShape Common base type for GAD shapes. +type GADShape struct { + Shape SupportedGADShapes `json:"shape"` +} + +type _GADShape GADShape + +// NewGADShape instantiates a new GADShape 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 NewGADShape(shape SupportedGADShapes) *GADShape { + this := GADShape{} + this.Shape = shape + return &this +} + +// NewGADShapeWithDefaults instantiates a new GADShape object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGADShapeWithDefaults() *GADShape { + this := GADShape{} + return &this +} + +// GetShape returns the Shape field value +func (o *GADShape) GetShape() SupportedGADShapes { + if o == nil { + var ret SupportedGADShapes + return ret + } + + return o.Shape +} + +// GetShapeOk returns a tuple with the Shape field value +// and a boolean to check if the value has been set. +func (o *GADShape) GetShapeOk() (*SupportedGADShapes, bool) { + if o == nil { + return nil, false + } + return &o.Shape, true +} + +// SetShape sets field value +func (o *GADShape) SetShape(v SupportedGADShapes) { + o.Shape = v +} + +func (o GADShape) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GADShape) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["shape"] = o.Shape + return toSerialize, nil +} + +func (o *GADShape) UnmarshalJSON(data []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{ + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varGADShape := _GADShape{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGADShape) + + if err != nil { + return err + } + + *o = GADShape(varGADShape) + + return err +} + +type NullableGADShape struct { + value *GADShape + isSet bool +} + +func (v NullableGADShape) Get() *GADShape { + return v.value +} + +func (v *NullableGADShape) Set(val *GADShape) { + v.value = val + v.isSet = true +} + +func (v NullableGADShape) IsSet() bool { + return v.isSet +} + +func (v *NullableGADShape) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGADShape(val *GADShape) *NullableGADShape { + return &NullableGADShape{value: val, isSet: true} +} + +func (v NullableGADShape) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGADShape) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_geographic_area.go b/internal/CapifApiInvokerManagement/model_geographic_area.go new file mode 100644 index 0000000000000000000000000000000000000000..00473d0da2e4d07faefb7e85b569fdde33fc4a47 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_geographic_area.go @@ -0,0 +1,461 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// GeographicArea Geographic area specified by different shape. +type GeographicArea struct { + EllipsoidArc *EllipsoidArc + Point *Point + PointAltitude *PointAltitude + PointAltitudeUncertainty *PointAltitudeUncertainty + PointUncertaintyCircle *PointUncertaintyCircle + PointUncertaintyEllipse *PointUncertaintyEllipse + Polygon *Polygon +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GeographicArea) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = json.Unmarshal(data, &jsonDict) + if err != nil { + return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup") + } + + // check if the discriminator value is 'ELLIPSOID_ARC' + if jsonDict["shape"] == "ELLIPSOID_ARC" { + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + } + + // IVAN EDIT - No Local2dPointUncertaintyEllipse nor Local3dPointUncertaintyEllipsoid field or method in GeographicArea struc + /* + // check if the discriminator value is 'LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE' + if jsonDict["shape"] == "LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE" { + // try to unmarshal JSON data into Local2dPointUncertaintyEllipse + err = json.Unmarshal(data, &dst.Local2dPointUncertaintyEllipse); + if err == nil { + jsonLocal2dPointUncertaintyEllipse, _ := json.Marshal(dst.Local2dPointUncertaintyEllipse) + if string(jsonLocal2dPointUncertaintyEllipse) == "{}" { // empty struct + dst.Local2dPointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.Local2dPointUncertaintyEllipse, return on the first match + } + } else { + dst.Local2dPointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID' + if jsonDict["shape"] == "LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID" { + // try to unmarshal JSON data into Local3dPointUncertaintyEllipsoid + err = json.Unmarshal(data, &dst.Local3dPointUncertaintyEllipsoid); + if err == nil { + jsonLocal3dPointUncertaintyEllipsoid, _ := json.Marshal(dst.Local3dPointUncertaintyEllipsoid) + if string(jsonLocal3dPointUncertaintyEllipsoid) == "{}" { // empty struct + dst.Local3dPointUncertaintyEllipsoid = nil + } else { + return nil // data stored in dst.Local3dPointUncertaintyEllipsoid, return on the first match + } + } else { + dst.Local3dPointUncertaintyEllipsoid = nil + } + } + */ + + // check if the discriminator value is 'POINT' + if jsonDict["shape"] == "POINT" { + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + } + + // check if the discriminator value is 'POINT_ALTITUDE' + if jsonDict["shape"] == "POINT_ALTITUDE" { + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + } + + // check if the discriminator value is 'POINT_ALTITUDE_UNCERTAINTY' + if jsonDict["shape"] == "POINT_ALTITUDE_UNCERTAINTY" { + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + } + + // check if the discriminator value is 'POINT_UNCERTAINTY_CIRCLE' + if jsonDict["shape"] == "POINT_UNCERTAINTY_CIRCLE" { + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + } + + // check if the discriminator value is 'POINT_UNCERTAINTY_ELLIPSE' + if jsonDict["shape"] == "POINT_UNCERTAINTY_ELLIPSE" { + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'POLYGON' + if jsonDict["shape"] == "POLYGON" { + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + } + + // check if the discriminator value is 'EllipsoidArc' + if jsonDict["shape"] == "EllipsoidArc" { + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + } + + // check if the discriminator value is 'Point' + if jsonDict["shape"] == "Point" { + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + } + + // check if the discriminator value is 'PointAltitude' + if jsonDict["shape"] == "PointAltitude" { + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + } + + // check if the discriminator value is 'PointAltitudeUncertainty' + if jsonDict["shape"] == "PointAltitudeUncertainty" { + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + } + + // check if the discriminator value is 'PointUncertaintyCircle' + if jsonDict["shape"] == "PointUncertaintyCircle" { + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + } + + // check if the discriminator value is 'PointUncertaintyEllipse' + if jsonDict["shape"] == "PointUncertaintyEllipse" { + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'Polygon' + if jsonDict["shape"] == "Polygon" { + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + } + + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GeographicArea)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *GeographicArea) MarshalJSON() ([]byte, error) { + if src.EllipsoidArc != nil { + return json.Marshal(&src.EllipsoidArc) + } + + if src.Point != nil { + return json.Marshal(&src.Point) + } + + if src.PointAltitude != nil { + return json.Marshal(&src.PointAltitude) + } + + if src.PointAltitudeUncertainty != nil { + return json.Marshal(&src.PointAltitudeUncertainty) + } + + if src.PointUncertaintyCircle != nil { + return json.Marshal(&src.PointUncertaintyCircle) + } + + if src.PointUncertaintyEllipse != nil { + return json.Marshal(&src.PointUncertaintyEllipse) + } + + if src.Polygon != nil { + return json.Marshal(&src.Polygon) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGeographicArea struct { + value *GeographicArea + isSet bool +} + +func (v NullableGeographicArea) Get() *GeographicArea { + return v.value +} + +func (v *NullableGeographicArea) Set(val *GeographicArea) { + v.value = val + v.isSet = true +} + +func (v NullableGeographicArea) IsSet() bool { + return v.isSet +} + +func (v *NullableGeographicArea) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGeographicArea(val *GeographicArea) *NullableGeographicArea { + return &NullableGeographicArea{value: val, isSet: true} +} + +func (v NullableGeographicArea) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGeographicArea) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_geographical_coordinates.go b/internal/CapifApiInvokerManagement/model_geographical_coordinates.go new file mode 100644 index 0000000000000000000000000000000000000000..4daf7e955e25e398c5ab775f491c3d9be776c254 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_geographical_coordinates.go @@ -0,0 +1,186 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GeographicalCoordinates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GeographicalCoordinates{} + +// GeographicalCoordinates Geographical coordinates. +type GeographicalCoordinates struct { + Lon float64 `json:"lon"` + Lat float64 `json:"lat"` +} + +type _GeographicalCoordinates GeographicalCoordinates + +// NewGeographicalCoordinates instantiates a new GeographicalCoordinates 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 NewGeographicalCoordinates(lon float64, lat float64) *GeographicalCoordinates { + this := GeographicalCoordinates{} + this.Lon = lon + this.Lat = lat + return &this +} + +// NewGeographicalCoordinatesWithDefaults instantiates a new GeographicalCoordinates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGeographicalCoordinatesWithDefaults() *GeographicalCoordinates { + this := GeographicalCoordinates{} + return &this +} + +// GetLon returns the Lon field value +func (o *GeographicalCoordinates) GetLon() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Lon +} + +// GetLonOk returns a tuple with the Lon field value +// and a boolean to check if the value has been set. +func (o *GeographicalCoordinates) GetLonOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Lon, true +} + +// SetLon sets field value +func (o *GeographicalCoordinates) SetLon(v float64) { + o.Lon = v +} + +// GetLat returns the Lat field value +func (o *GeographicalCoordinates) GetLat() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Lat +} + +// GetLatOk returns a tuple with the Lat field value +// and a boolean to check if the value has been set. +func (o *GeographicalCoordinates) GetLatOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Lat, true +} + +// SetLat sets field value +func (o *GeographicalCoordinates) SetLat(v float64) { + o.Lat = v +} + +func (o GeographicalCoordinates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GeographicalCoordinates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["lon"] = o.Lon + toSerialize["lat"] = o.Lat + return toSerialize, nil +} + +func (o *GeographicalCoordinates) UnmarshalJSON(data []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{ + "lon", + "lat", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varGeographicalCoordinates := _GeographicalCoordinates{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGeographicalCoordinates) + + if err != nil { + return err + } + + *o = GeographicalCoordinates(varGeographicalCoordinates) + + return err +} + +type NullableGeographicalCoordinates struct { + value *GeographicalCoordinates + isSet bool +} + +func (v NullableGeographicalCoordinates) Get() *GeographicalCoordinates { + return v.value +} + +func (v *NullableGeographicalCoordinates) Set(val *GeographicalCoordinates) { + v.value = val + v.isSet = true +} + +func (v NullableGeographicalCoordinates) IsSet() bool { + return v.isSet +} + +func (v *NullableGeographicalCoordinates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGeographicalCoordinates(val *GeographicalCoordinates) *NullableGeographicalCoordinates { + return &NullableGeographicalCoordinates{value: val, isSet: true} +} + +func (v NullableGeographicalCoordinates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGeographicalCoordinates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_interface_description.go b/internal/CapifApiInvokerManagement/model_interface_description.go new file mode 100644 index 0000000000000000000000000000000000000000..e1117de81c56407d51c5bd71fe283bfed010c557 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_interface_description.go @@ -0,0 +1,238 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the InterfaceDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceDescription{} + +// InterfaceDescription Represents the description of an API's interface. +type InterfaceDescription struct { + // string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. + Ipv4Addr *string `json:"ipv4Addr,omitempty"` + // string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. + Ipv6Addr *string `json:"ipv6Addr,omitempty"` + // Unsigned integer with valid values between 0 and 65535. + Port *int32 `json:"port,omitempty"` + // Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"` +} + +// NewInterfaceDescription instantiates a new InterfaceDescription 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 NewInterfaceDescription() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceDescriptionWithDefaults() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// GetIpv4Addr returns the Ipv4Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv4Addr() string { + if o == nil || IsNil(o.Ipv4Addr) { + var ret string + return ret + } + return *o.Ipv4Addr +} + +// GetIpv4AddrOk returns a tuple with the Ipv4Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv4Addr) { + return nil, false + } + return o.Ipv4Addr, true +} + +// HasIpv4Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv4Addr() bool { + if o != nil && !IsNil(o.Ipv4Addr) { + return true + } + + return false +} + +// SetIpv4Addr gets a reference to the given string and assigns it to the Ipv4Addr field. +func (o *InterfaceDescription) SetIpv4Addr(v string) { + o.Ipv4Addr = &v +} + +// GetIpv6Addr returns the Ipv6Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv6Addr() string { + if o == nil || IsNil(o.Ipv6Addr) { + var ret string + return ret + } + return *o.Ipv6Addr +} + +// GetIpv6AddrOk returns a tuple with the Ipv6Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv6Addr) { + return nil, false + } + return o.Ipv6Addr, true +} + +// HasIpv6Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv6Addr() bool { + if o != nil && !IsNil(o.Ipv6Addr) { + return true + } + + return false +} + +// SetIpv6Addr gets a reference to the given string and assigns it to the Ipv6Addr field. +func (o *InterfaceDescription) SetIpv6Addr(v string) { + o.Ipv6Addr = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *InterfaceDescription) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *InterfaceDescription) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *InterfaceDescription) SetPort(v int32) { + o.Port = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *InterfaceDescription) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +func (o InterfaceDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Ipv4Addr) { + toSerialize["ipv4Addr"] = o.Ipv4Addr + } + if !IsNil(o.Ipv6Addr) { + toSerialize["ipv6Addr"] = o.Ipv6Addr + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + return toSerialize, nil +} + +type NullableInterfaceDescription struct { + value *InterfaceDescription + isSet bool +} + +func (v NullableInterfaceDescription) Get() *InterfaceDescription { + return v.value +} + +func (v *NullableInterfaceDescription) Set(val *InterfaceDescription) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceDescription(val *InterfaceDescription) *NullableInterfaceDescription { + return &NullableInterfaceDescription{value: val, isSet: true} +} + +func (v NullableInterfaceDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_invalid_param.go b/internal/CapifApiInvokerManagement/model_invalid_param.go new file mode 100644 index 0000000000000000000000000000000000000000..3ff26f53c75db12b06802c9ba20e75723b8773fd --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_invalid_param.go @@ -0,0 +1,196 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InvalidParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvalidParam{} + +// InvalidParam Represents the description of invalid parameters, for a request rejected due to invalid parameters. +type InvalidParam struct { + // Attribute's name encoded as a JSON Pointer, or header's name. + Param string `json:"param"` + // A human-readable reason, e.g. \"must be a positive integer\". + Reason *string `json:"reason,omitempty"` +} + +type _InvalidParam InvalidParam + +// NewInvalidParam instantiates a new InvalidParam 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 NewInvalidParam(param string) *InvalidParam { + this := InvalidParam{} + this.Param = param + return &this +} + +// NewInvalidParamWithDefaults instantiates a new InvalidParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvalidParamWithDefaults() *InvalidParam { + this := InvalidParam{} + return &this +} + +// GetParam returns the Param field value +func (o *InvalidParam) GetParam() string { + if o == nil { + var ret string + return ret + } + + return o.Param +} + +// GetParamOk returns a tuple with the Param field value +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetParamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Param, true +} + +// SetParam sets field value +func (o *InvalidParam) SetParam(v string) { + o.Param = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InvalidParam) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InvalidParam) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InvalidParam) SetReason(v string) { + o.Reason = &v +} + +func (o InvalidParam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvalidParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["param"] = o.Param + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *InvalidParam) UnmarshalJSON(data []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{ + "param", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varInvalidParam := _InvalidParam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInvalidParam) + + if err != nil { + return err + } + + *o = InvalidParam(varInvalidParam) + + return err +} + +type NullableInvalidParam struct { + value *InvalidParam + isSet bool +} + +func (v NullableInvalidParam) Get() *InvalidParam { + return v.value +} + +func (v *NullableInvalidParam) Set(val *InvalidParam) { + v.value = val + v.isSet = true +} + +func (v NullableInvalidParam) IsSet() bool { + return v.isSet +} + +func (v *NullableInvalidParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvalidParam(val *InvalidParam) *NullableInvalidParam { + return &NullableInvalidParam{value: val, isSet: true} +} + +func (v NullableInvalidParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvalidParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_local2d_point_uncertainty_ellipse.go b/internal/CapifApiInvokerManagement/model_local2d_point_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..b50dc445d4a16e53ff2c9c71d47ff1bf486810ce --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_local2d_point_uncertainty_ellipse.go @@ -0,0 +1,254 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Local2dPointUncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Local2dPointUncertaintyEllipse{} + +// Local2dPointUncertaintyEllipse Local 2D point with uncertainty ellipse +type Local2dPointUncertaintyEllipse struct { + GADShape + LocalOrigin LocalOrigin `json:"localOrigin"` + Point RelativeCartesianLocation `json:"point"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _Local2dPointUncertaintyEllipse Local2dPointUncertaintyEllipse + +// NewLocal2dPointUncertaintyEllipse instantiates a new Local2dPointUncertaintyEllipse 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 NewLocal2dPointUncertaintyEllipse(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipse UncertaintyEllipse, confidence int32, shape SupportedGADShapes) *Local2dPointUncertaintyEllipse { + this := Local2dPointUncertaintyEllipse{} + this.Shape = shape + this.LocalOrigin = localOrigin + this.Point = point + this.UncertaintyEllipse = uncertaintyEllipse + this.Confidence = confidence + return &this +} + +// NewLocal2dPointUncertaintyEllipseWithDefaults instantiates a new Local2dPointUncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocal2dPointUncertaintyEllipseWithDefaults() *Local2dPointUncertaintyEllipse { + this := Local2dPointUncertaintyEllipse{} + return &this +} + +// GetLocalOrigin returns the LocalOrigin field value +func (o *Local2dPointUncertaintyEllipse) GetLocalOrigin() LocalOrigin { + if o == nil { + var ret LocalOrigin + return ret + } + + return o.LocalOrigin +} + +// GetLocalOriginOk returns a tuple with the LocalOrigin field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetLocalOriginOk() (*LocalOrigin, bool) { + if o == nil { + return nil, false + } + return &o.LocalOrigin, true +} + +// SetLocalOrigin sets field value +func (o *Local2dPointUncertaintyEllipse) SetLocalOrigin(v LocalOrigin) { + o.LocalOrigin = v +} + +// GetPoint returns the Point field value +func (o *Local2dPointUncertaintyEllipse) GetPoint() RelativeCartesianLocation { + if o == nil { + var ret RelativeCartesianLocation + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetPointOk() (*RelativeCartesianLocation, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Local2dPointUncertaintyEllipse) SetPoint(v RelativeCartesianLocation) { + o.Point = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *Local2dPointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetConfidence returns the Confidence field value +func (o *Local2dPointUncertaintyEllipse) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *Local2dPointUncertaintyEllipse) SetConfidence(v int32) { + o.Confidence = v +} + +func (o Local2dPointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Local2dPointUncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["localOrigin"] = o.LocalOrigin + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *Local2dPointUncertaintyEllipse) UnmarshalJSON(data []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{ + "localOrigin", + "point", + "uncertaintyEllipse", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varLocal2dPointUncertaintyEllipse := _Local2dPointUncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLocal2dPointUncertaintyEllipse) + + if err != nil { + return err + } + + *o = Local2dPointUncertaintyEllipse(varLocal2dPointUncertaintyEllipse) + + return err +} + +type NullableLocal2dPointUncertaintyEllipse struct { + value *Local2dPointUncertaintyEllipse + isSet bool +} + +func (v NullableLocal2dPointUncertaintyEllipse) Get() *Local2dPointUncertaintyEllipse { + return v.value +} + +func (v *NullableLocal2dPointUncertaintyEllipse) Set(val *Local2dPointUncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullableLocal2dPointUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullableLocal2dPointUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocal2dPointUncertaintyEllipse(val *Local2dPointUncertaintyEllipse) *NullableLocal2dPointUncertaintyEllipse { + return &NullableLocal2dPointUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullableLocal2dPointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocal2dPointUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_local3d_point_uncertainty_ellipsoid.go b/internal/CapifApiInvokerManagement/model_local3d_point_uncertainty_ellipsoid.go new file mode 100644 index 0000000000000000000000000000000000000000..3494a577c8106b5ee265ae7d93a790de976c11d8 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_local3d_point_uncertainty_ellipsoid.go @@ -0,0 +1,254 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Local3dPointUncertaintyEllipsoid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Local3dPointUncertaintyEllipsoid{} + +// Local3dPointUncertaintyEllipsoid Local 3D point with uncertainty ellipsoid +type Local3dPointUncertaintyEllipsoid struct { + GADShape + LocalOrigin LocalOrigin `json:"localOrigin"` + Point RelativeCartesianLocation `json:"point"` + UncertaintyEllipsoid UncertaintyEllipsoid `json:"uncertaintyEllipsoid"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _Local3dPointUncertaintyEllipsoid Local3dPointUncertaintyEllipsoid + +// NewLocal3dPointUncertaintyEllipsoid instantiates a new Local3dPointUncertaintyEllipsoid 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 NewLocal3dPointUncertaintyEllipsoid(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipsoid UncertaintyEllipsoid, confidence int32, shape SupportedGADShapes) *Local3dPointUncertaintyEllipsoid { + this := Local3dPointUncertaintyEllipsoid{} + this.Shape = shape + this.LocalOrigin = localOrigin + this.Point = point + this.UncertaintyEllipsoid = uncertaintyEllipsoid + this.Confidence = confidence + return &this +} + +// NewLocal3dPointUncertaintyEllipsoidWithDefaults instantiates a new Local3dPointUncertaintyEllipsoid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocal3dPointUncertaintyEllipsoidWithDefaults() *Local3dPointUncertaintyEllipsoid { + this := Local3dPointUncertaintyEllipsoid{} + return &this +} + +// GetLocalOrigin returns the LocalOrigin field value +func (o *Local3dPointUncertaintyEllipsoid) GetLocalOrigin() LocalOrigin { + if o == nil { + var ret LocalOrigin + return ret + } + + return o.LocalOrigin +} + +// GetLocalOriginOk returns a tuple with the LocalOrigin field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetLocalOriginOk() (*LocalOrigin, bool) { + if o == nil { + return nil, false + } + return &o.LocalOrigin, true +} + +// SetLocalOrigin sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetLocalOrigin(v LocalOrigin) { + o.LocalOrigin = v +} + +// GetPoint returns the Point field value +func (o *Local3dPointUncertaintyEllipsoid) GetPoint() RelativeCartesianLocation { + if o == nil { + var ret RelativeCartesianLocation + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetPointOk() (*RelativeCartesianLocation, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetPoint(v RelativeCartesianLocation) { + o.Point = v +} + +// GetUncertaintyEllipsoid returns the UncertaintyEllipsoid field value +func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoid() UncertaintyEllipsoid { + if o == nil { + var ret UncertaintyEllipsoid + return ret + } + + return o.UncertaintyEllipsoid +} + +// GetUncertaintyEllipsoidOk returns a tuple with the UncertaintyEllipsoid field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoidOk() (*UncertaintyEllipsoid, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipsoid, true +} + +// SetUncertaintyEllipsoid sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetUncertaintyEllipsoid(v UncertaintyEllipsoid) { + o.UncertaintyEllipsoid = v +} + +// GetConfidence returns the Confidence field value +func (o *Local3dPointUncertaintyEllipsoid) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetConfidence(v int32) { + o.Confidence = v +} + +func (o Local3dPointUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Local3dPointUncertaintyEllipsoid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["localOrigin"] = o.LocalOrigin + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipsoid"] = o.UncertaintyEllipsoid + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *Local3dPointUncertaintyEllipsoid) UnmarshalJSON(data []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{ + "localOrigin", + "point", + "uncertaintyEllipsoid", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varLocal3dPointUncertaintyEllipsoid := _Local3dPointUncertaintyEllipsoid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLocal3dPointUncertaintyEllipsoid) + + if err != nil { + return err + } + + *o = Local3dPointUncertaintyEllipsoid(varLocal3dPointUncertaintyEllipsoid) + + return err +} + +type NullableLocal3dPointUncertaintyEllipsoid struct { + value *Local3dPointUncertaintyEllipsoid + isSet bool +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) Get() *Local3dPointUncertaintyEllipsoid { + return v.value +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) Set(val *Local3dPointUncertaintyEllipsoid) { + v.value = val + v.isSet = true +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) IsSet() bool { + return v.isSet +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocal3dPointUncertaintyEllipsoid(val *Local3dPointUncertaintyEllipsoid) *NullableLocal3dPointUncertaintyEllipsoid { + return &NullableLocal3dPointUncertaintyEllipsoid{value: val, isSet: true} +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_local_origin.go b/internal/CapifApiInvokerManagement/model_local_origin.go new file mode 100644 index 0000000000000000000000000000000000000000..2f88e2c1f5972e510d4203823a7cfdc73e2d657a --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_local_origin.go @@ -0,0 +1,162 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the LocalOrigin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocalOrigin{} + +// LocalOrigin Indicates a Local origin in a reference system +type LocalOrigin struct { + CoordinateId *string `json:"coordinateId,omitempty"` + Point *GeographicalCoordinates `json:"point,omitempty"` +} + +// NewLocalOrigin instantiates a new LocalOrigin 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 NewLocalOrigin() *LocalOrigin { + this := LocalOrigin{} + return &this +} + +// NewLocalOriginWithDefaults instantiates a new LocalOrigin object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocalOriginWithDefaults() *LocalOrigin { + this := LocalOrigin{} + return &this +} + +// GetCoordinateId returns the CoordinateId field value if set, zero value otherwise. +func (o *LocalOrigin) GetCoordinateId() string { + if o == nil || IsNil(o.CoordinateId) { + var ret string + return ret + } + return *o.CoordinateId +} + +// GetCoordinateIdOk returns a tuple with the CoordinateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalOrigin) GetCoordinateIdOk() (*string, bool) { + if o == nil || IsNil(o.CoordinateId) { + return nil, false + } + return o.CoordinateId, true +} + +// HasCoordinateId returns a boolean if a field has been set. +func (o *LocalOrigin) HasCoordinateId() bool { + if o != nil && !IsNil(o.CoordinateId) { + return true + } + + return false +} + +// SetCoordinateId gets a reference to the given string and assigns it to the CoordinateId field. +func (o *LocalOrigin) SetCoordinateId(v string) { + o.CoordinateId = &v +} + +// GetPoint returns the Point field value if set, zero value otherwise. +func (o *LocalOrigin) GetPoint() GeographicalCoordinates { + if o == nil || IsNil(o.Point) { + var ret GeographicalCoordinates + return ret + } + return *o.Point +} + +// GetPointOk returns a tuple with the Point field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalOrigin) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil || IsNil(o.Point) { + return nil, false + } + return o.Point, true +} + +// HasPoint returns a boolean if a field has been set. +func (o *LocalOrigin) HasPoint() bool { + if o != nil && !IsNil(o.Point) { + return true + } + + return false +} + +// SetPoint gets a reference to the given GeographicalCoordinates and assigns it to the Point field. +func (o *LocalOrigin) SetPoint(v GeographicalCoordinates) { + o.Point = &v +} + +func (o LocalOrigin) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LocalOrigin) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CoordinateId) { + toSerialize["coordinateId"] = o.CoordinateId + } + if !IsNil(o.Point) { + toSerialize["point"] = o.Point + } + return toSerialize, nil +} + +type NullableLocalOrigin struct { + value *LocalOrigin + isSet bool +} + +func (v NullableLocalOrigin) Get() *LocalOrigin { + return v.value +} + +func (v *NullableLocalOrigin) Set(val *LocalOrigin) { + v.value = val + v.isSet = true +} + +func (v NullableLocalOrigin) IsSet() bool { + return v.isSet +} + +func (v *NullableLocalOrigin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocalOrigin(val *LocalOrigin) *NullableLocalOrigin { + return &NullableLocalOrigin{value: val, isSet: true} +} + +func (v NullableLocalOrigin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocalOrigin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_onboarding_information.go b/internal/CapifApiInvokerManagement/model_onboarding_information.go new file mode 100644 index 0000000000000000000000000000000000000000..9236ad149c8ca1a74d6161377caee5ffa531eda0 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_onboarding_information.go @@ -0,0 +1,233 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OnboardingInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OnboardingInformation{} + +// OnboardingInformation Represents on-boarding information of the API invoker. +type OnboardingInformation struct { + // The API Invoker's public key + ApiInvokerPublicKey string `json:"apiInvokerPublicKey"` + // The API Invoker's generic client certificate, provided by the CAPIF core function. + ApiInvokerCertificate *string `json:"apiInvokerCertificate,omitempty"` + // The API Invoker's onboarding secret, provided by the CAPIF core function. + OnboardingSecret *string `json:"onboardingSecret,omitempty"` +} + +type _OnboardingInformation OnboardingInformation + +// NewOnboardingInformation instantiates a new OnboardingInformation 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 NewOnboardingInformation(apiInvokerPublicKey string) *OnboardingInformation { + this := OnboardingInformation{} + this.ApiInvokerPublicKey = apiInvokerPublicKey + return &this +} + +// NewOnboardingInformationWithDefaults instantiates a new OnboardingInformation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOnboardingInformationWithDefaults() *OnboardingInformation { + this := OnboardingInformation{} + return &this +} + +// GetApiInvokerPublicKey returns the ApiInvokerPublicKey field value +func (o *OnboardingInformation) GetApiInvokerPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiInvokerPublicKey +} + +// GetApiInvokerPublicKeyOk returns a tuple with the ApiInvokerPublicKey field value +// and a boolean to check if the value has been set. +func (o *OnboardingInformation) GetApiInvokerPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiInvokerPublicKey, true +} + +// SetApiInvokerPublicKey sets field value +func (o *OnboardingInformation) SetApiInvokerPublicKey(v string) { + o.ApiInvokerPublicKey = v +} + +// GetApiInvokerCertificate returns the ApiInvokerCertificate field value if set, zero value otherwise. +func (o *OnboardingInformation) GetApiInvokerCertificate() string { + if o == nil || IsNil(o.ApiInvokerCertificate) { + var ret string + return ret + } + return *o.ApiInvokerCertificate +} + +// GetApiInvokerCertificateOk returns a tuple with the ApiInvokerCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OnboardingInformation) GetApiInvokerCertificateOk() (*string, bool) { + if o == nil || IsNil(o.ApiInvokerCertificate) { + return nil, false + } + return o.ApiInvokerCertificate, true +} + +// HasApiInvokerCertificate returns a boolean if a field has been set. +func (o *OnboardingInformation) HasApiInvokerCertificate() bool { + if o != nil && !IsNil(o.ApiInvokerCertificate) { + return true + } + + return false +} + +// SetApiInvokerCertificate gets a reference to the given string and assigns it to the ApiInvokerCertificate field. +func (o *OnboardingInformation) SetApiInvokerCertificate(v string) { + o.ApiInvokerCertificate = &v +} + +// GetOnboardingSecret returns the OnboardingSecret field value if set, zero value otherwise. +func (o *OnboardingInformation) GetOnboardingSecret() string { + if o == nil || IsNil(o.OnboardingSecret) { + var ret string + return ret + } + return *o.OnboardingSecret +} + +// GetOnboardingSecretOk returns a tuple with the OnboardingSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OnboardingInformation) GetOnboardingSecretOk() (*string, bool) { + if o == nil || IsNil(o.OnboardingSecret) { + return nil, false + } + return o.OnboardingSecret, true +} + +// HasOnboardingSecret returns a boolean if a field has been set. +func (o *OnboardingInformation) HasOnboardingSecret() bool { + if o != nil && !IsNil(o.OnboardingSecret) { + return true + } + + return false +} + +// SetOnboardingSecret gets a reference to the given string and assigns it to the OnboardingSecret field. +func (o *OnboardingInformation) SetOnboardingSecret(v string) { + o.OnboardingSecret = &v +} + +func (o OnboardingInformation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OnboardingInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiInvokerPublicKey"] = o.ApiInvokerPublicKey + if !IsNil(o.ApiInvokerCertificate) { + toSerialize["apiInvokerCertificate"] = o.ApiInvokerCertificate + } + if !IsNil(o.OnboardingSecret) { + toSerialize["onboardingSecret"] = o.OnboardingSecret + } + return toSerialize, nil +} + +func (o *OnboardingInformation) UnmarshalJSON(data []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{ + "apiInvokerPublicKey", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varOnboardingInformation := _OnboardingInformation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOnboardingInformation) + + if err != nil { + return err + } + + *o = OnboardingInformation(varOnboardingInformation) + + return err +} + +type NullableOnboardingInformation struct { + value *OnboardingInformation + isSet bool +} + +func (v NullableOnboardingInformation) Get() *OnboardingInformation { + return v.value +} + +func (v *NullableOnboardingInformation) Set(val *OnboardingInformation) { + v.value = val + v.isSet = true +} + +func (v NullableOnboardingInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableOnboardingInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOnboardingInformation(val *OnboardingInformation) *NullableOnboardingInformation { + return &NullableOnboardingInformation{value: val, isSet: true} +} + +func (v NullableOnboardingInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOnboardingInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_onboarding_notification.go b/internal/CapifApiInvokerManagement/model_onboarding_notification.go new file mode 100644 index 0000000000000000000000000000000000000000..eeaed7320951bec9238a0ac65b2d4f7f5218d080 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_onboarding_notification.go @@ -0,0 +1,268 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OnboardingNotification type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OnboardingNotification{} + +// OnboardingNotification Represents a notification of on-boarding or update result. +type OnboardingNotification struct { + // Set to \"true\" indicate successful on-boarding. Otherwise set to \"false\" + Result bool `json:"result"` + // string providing an URI formatted according to IETF RFC 3986. + ResourceLocation *string `json:"resourceLocation,omitempty"` + ApiInvokerEnrolmentDetails *APIInvokerEnrolmentDetails `json:"apiInvokerEnrolmentDetails,omitempty"` + ApiList *APIList `json:"apiList,omitempty"` +} + +type _OnboardingNotification OnboardingNotification + +// NewOnboardingNotification instantiates a new OnboardingNotification 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 NewOnboardingNotification(result bool) *OnboardingNotification { + this := OnboardingNotification{} + this.Result = result + return &this +} + +// NewOnboardingNotificationWithDefaults instantiates a new OnboardingNotification object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOnboardingNotificationWithDefaults() *OnboardingNotification { + this := OnboardingNotification{} + return &this +} + +// GetResult returns the Result field value +func (o *OnboardingNotification) GetResult() bool { + if o == nil { + var ret bool + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *OnboardingNotification) GetResultOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *OnboardingNotification) SetResult(v bool) { + o.Result = v +} + +// GetResourceLocation returns the ResourceLocation field value if set, zero value otherwise. +func (o *OnboardingNotification) GetResourceLocation() string { + if o == nil || IsNil(o.ResourceLocation) { + var ret string + return ret + } + return *o.ResourceLocation +} + +// GetResourceLocationOk returns a tuple with the ResourceLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OnboardingNotification) GetResourceLocationOk() (*string, bool) { + if o == nil || IsNil(o.ResourceLocation) { + return nil, false + } + return o.ResourceLocation, true +} + +// HasResourceLocation returns a boolean if a field has been set. +func (o *OnboardingNotification) HasResourceLocation() bool { + if o != nil && !IsNil(o.ResourceLocation) { + return true + } + + return false +} + +// SetResourceLocation gets a reference to the given string and assigns it to the ResourceLocation field. +func (o *OnboardingNotification) SetResourceLocation(v string) { + o.ResourceLocation = &v +} + +// GetApiInvokerEnrolmentDetails returns the ApiInvokerEnrolmentDetails field value if set, zero value otherwise. +func (o *OnboardingNotification) GetApiInvokerEnrolmentDetails() APIInvokerEnrolmentDetails { + if o == nil || IsNil(o.ApiInvokerEnrolmentDetails) { + var ret APIInvokerEnrolmentDetails + return ret + } + return *o.ApiInvokerEnrolmentDetails +} + +// GetApiInvokerEnrolmentDetailsOk returns a tuple with the ApiInvokerEnrolmentDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OnboardingNotification) GetApiInvokerEnrolmentDetailsOk() (*APIInvokerEnrolmentDetails, bool) { + if o == nil || IsNil(o.ApiInvokerEnrolmentDetails) { + return nil, false + } + return o.ApiInvokerEnrolmentDetails, true +} + +// HasApiInvokerEnrolmentDetails returns a boolean if a field has been set. +func (o *OnboardingNotification) HasApiInvokerEnrolmentDetails() bool { + if o != nil && !IsNil(o.ApiInvokerEnrolmentDetails) { + return true + } + + return false +} + +// SetApiInvokerEnrolmentDetails gets a reference to the given APIInvokerEnrolmentDetails and assigns it to the ApiInvokerEnrolmentDetails field. +func (o *OnboardingNotification) SetApiInvokerEnrolmentDetails(v APIInvokerEnrolmentDetails) { + o.ApiInvokerEnrolmentDetails = &v +} + +// GetApiList returns the ApiList field value if set, zero value otherwise. +func (o *OnboardingNotification) GetApiList() APIList { + if o == nil || IsNil(o.ApiList) { + var ret APIList + return ret + } + return *o.ApiList +} + +// GetApiListOk returns a tuple with the ApiList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OnboardingNotification) GetApiListOk() (*APIList, bool) { + if o == nil || IsNil(o.ApiList) { + return nil, false + } + return o.ApiList, true +} + +// HasApiList returns a boolean if a field has been set. +func (o *OnboardingNotification) HasApiList() bool { + if o != nil && !IsNil(o.ApiList) { + return true + } + + return false +} + +// SetApiList gets a reference to the given APIList and assigns it to the ApiList field. +func (o *OnboardingNotification) SetApiList(v APIList) { + o.ApiList = &v +} + +func (o OnboardingNotification) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OnboardingNotification) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["result"] = o.Result + if !IsNil(o.ResourceLocation) { + toSerialize["resourceLocation"] = o.ResourceLocation + } + if !IsNil(o.ApiInvokerEnrolmentDetails) { + toSerialize["apiInvokerEnrolmentDetails"] = o.ApiInvokerEnrolmentDetails + } + if !IsNil(o.ApiList) { + toSerialize["apiList"] = o.ApiList + } + return toSerialize, nil +} + +func (o *OnboardingNotification) UnmarshalJSON(data []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{ + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varOnboardingNotification := _OnboardingNotification{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOnboardingNotification) + + if err != nil { + return err + } + + *o = OnboardingNotification(varOnboardingNotification) + + return err +} + +type NullableOnboardingNotification struct { + value *OnboardingNotification + isSet bool +} + +func (v NullableOnboardingNotification) Get() *OnboardingNotification { + return v.value +} + +func (v *NullableOnboardingNotification) Set(val *OnboardingNotification) { + v.value = val + v.isSet = true +} + +func (v NullableOnboardingNotification) IsSet() bool { + return v.isSet +} + +func (v *NullableOnboardingNotification) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOnboardingNotification(val *OnboardingNotification) *NullableOnboardingNotification { + return &NullableOnboardingNotification{value: val, isSet: true} +} + +func (v NullableOnboardingNotification) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOnboardingNotification) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_operation.go b/internal/CapifApiInvokerManagement/model_operation.go new file mode 100644 index 0000000000000000000000000000000000000000..0602e81b036f0cd7e1d0eb9b2838432c052ac3f5 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_operation.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// Operation Possible values are: - GET: HTTP GET method - POST: HTTP POST method - PUT: HTTP PUT method - PATCH: HTTP PATCH method - DELETE: HTTP DELETE method +type Operation struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Operation) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Operation)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Operation) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableOperation struct { + value *Operation + isSet bool +} + +func (v NullableOperation) Get() *Operation { + return v.value +} + +func (v *NullableOperation) Set(val *Operation) { + v.value = val + v.isSet = true +} + +func (v NullableOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOperation(val *Operation) *NullableOperation { + return &NullableOperation{value: val, isSet: true} +} + +func (v NullableOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_point.go b/internal/CapifApiInvokerManagement/model_point.go new file mode 100644 index 0000000000000000000000000000000000000000..ae4820e2725e684a3fda366ab04d03ac06714373 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_point.go @@ -0,0 +1,169 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Point type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Point{} + +// Point Ellipsoid Point. +type Point struct { + GADShape + Point GeographicalCoordinates `json:"point"` +} + +type _Point Point + +// NewPoint instantiates a new Point 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 NewPoint(point GeographicalCoordinates, shape SupportedGADShapes) *Point { + this := Point{} + this.Shape = shape + this.Point = point + return &this +} + +// NewPointWithDefaults instantiates a new Point object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointWithDefaults() *Point { + this := Point{} + return &this +} + +// GetPoint returns the Point field value +func (o *Point) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Point) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Point) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +func (o Point) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Point) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + return toSerialize, nil +} + +func (o *Point) UnmarshalJSON(data []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{ + "point", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPoint := _Point{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPoint) + + if err != nil { + return err + } + + *o = Point(varPoint) + + return err +} + +type NullablePoint struct { + value *Point + isSet bool +} + +func (v NullablePoint) Get() *Point { + return v.value +} + +func (v *NullablePoint) Set(val *Point) { + v.value = val + v.isSet = true +} + +func (v NullablePoint) IsSet() bool { + return v.isSet +} + +func (v *NullablePoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePoint(val *Point) *NullablePoint { + return &NullablePoint{value: val, isSet: true} +} + +func (v NullablePoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_point_altitude.go b/internal/CapifApiInvokerManagement/model_point_altitude.go new file mode 100644 index 0000000000000000000000000000000000000000..f49725351ad1b9925e17eaec23e586e9f596a947 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_point_altitude.go @@ -0,0 +1,198 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointAltitude type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointAltitude{} + +// PointAltitude Ellipsoid point with altitude. +type PointAltitude struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of altitude. + Altitude float64 `json:"altitude"` +} + +type _PointAltitude PointAltitude + +// NewPointAltitude instantiates a new PointAltitude 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 NewPointAltitude(point GeographicalCoordinates, altitude float64, shape SupportedGADShapes) *PointAltitude { + this := PointAltitude{} + this.Shape = shape + this.Point = point + this.Altitude = altitude + return &this +} + +// NewPointAltitudeWithDefaults instantiates a new PointAltitude object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointAltitudeWithDefaults() *PointAltitude { + this := PointAltitude{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointAltitude) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointAltitude) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointAltitude) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetAltitude returns the Altitude field value +func (o *PointAltitude) GetAltitude() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Altitude +} + +// GetAltitudeOk returns a tuple with the Altitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitude) GetAltitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Altitude, true +} + +// SetAltitude sets field value +func (o *PointAltitude) SetAltitude(v float64) { + o.Altitude = v +} + +func (o PointAltitude) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointAltitude) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["altitude"] = o.Altitude + return toSerialize, nil +} + +func (o *PointAltitude) UnmarshalJSON(data []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{ + "point", + "altitude", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointAltitude := _PointAltitude{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointAltitude) + + if err != nil { + return err + } + + *o = PointAltitude(varPointAltitude) + + return err +} + +type NullablePointAltitude struct { + value *PointAltitude + isSet bool +} + +func (v NullablePointAltitude) Get() *PointAltitude { + return v.value +} + +func (v *NullablePointAltitude) Set(val *PointAltitude) { + v.value = val + v.isSet = true +} + +func (v NullablePointAltitude) IsSet() bool { + return v.isSet +} + +func (v *NullablePointAltitude) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointAltitude(val *PointAltitude) *NullablePointAltitude { + return &NullablePointAltitude{value: val, isSet: true} +} + +func (v NullablePointAltitude) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointAltitude) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_point_altitude_uncertainty.go b/internal/CapifApiInvokerManagement/model_point_altitude_uncertainty.go new file mode 100644 index 0000000000000000000000000000000000000000..c292f5b17ec9a1738669f7567411c5793dda56a7 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_point_altitude_uncertainty.go @@ -0,0 +1,321 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointAltitudeUncertainty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointAltitudeUncertainty{} + +// PointAltitudeUncertainty Ellipsoid point with altitude and uncertainty ellipsoid. +type PointAltitudeUncertainty struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of altitude. + Altitude float64 `json:"altitude"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of uncertainty. + UncertaintyAltitude float32 `json:"uncertaintyAltitude"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` + // Indicates value of confidence. + VConfidence *int32 `json:"vConfidence,omitempty"` +} + +type _PointAltitudeUncertainty PointAltitudeUncertainty + +// NewPointAltitudeUncertainty instantiates a new PointAltitudeUncertainty 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 NewPointAltitudeUncertainty(point GeographicalCoordinates, altitude float64, uncertaintyEllipse UncertaintyEllipse, uncertaintyAltitude float32, confidence int32, shape SupportedGADShapes) *PointAltitudeUncertainty { + this := PointAltitudeUncertainty{} + this.Shape = shape + this.Point = point + this.Altitude = altitude + this.UncertaintyEllipse = uncertaintyEllipse + this.UncertaintyAltitude = uncertaintyAltitude + this.Confidence = confidence + return &this +} + +// NewPointAltitudeUncertaintyWithDefaults instantiates a new PointAltitudeUncertainty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointAltitudeUncertaintyWithDefaults() *PointAltitudeUncertainty { + this := PointAltitudeUncertainty{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointAltitudeUncertainty) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointAltitudeUncertainty) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetAltitude returns the Altitude field value +func (o *PointAltitudeUncertainty) GetAltitude() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Altitude +} + +// GetAltitudeOk returns a tuple with the Altitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetAltitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Altitude, true +} + +// SetAltitude sets field value +func (o *PointAltitudeUncertainty) SetAltitude(v float64) { + o.Altitude = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *PointAltitudeUncertainty) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *PointAltitudeUncertainty) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetUncertaintyAltitude returns the UncertaintyAltitude field value +func (o *PointAltitudeUncertainty) GetUncertaintyAltitude() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.UncertaintyAltitude +} + +// GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetUncertaintyAltitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyAltitude, true +} + +// SetUncertaintyAltitude sets field value +func (o *PointAltitudeUncertainty) SetUncertaintyAltitude(v float32) { + o.UncertaintyAltitude = v +} + +// GetConfidence returns the Confidence field value +func (o *PointAltitudeUncertainty) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *PointAltitudeUncertainty) SetConfidence(v int32) { + o.Confidence = v +} + +// GetVConfidence returns the VConfidence field value if set, zero value otherwise. +func (o *PointAltitudeUncertainty) GetVConfidence() int32 { + if o == nil || IsNil(o.VConfidence) { + var ret int32 + return ret + } + return *o.VConfidence +} + +// GetVConfidenceOk returns a tuple with the VConfidence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetVConfidenceOk() (*int32, bool) { + if o == nil || IsNil(o.VConfidence) { + return nil, false + } + return o.VConfidence, true +} + +// HasVConfidence returns a boolean if a field has been set. +func (o *PointAltitudeUncertainty) HasVConfidence() bool { + if o != nil && !IsNil(o.VConfidence) { + return true + } + + return false +} + +// SetVConfidence gets a reference to the given int32 and assigns it to the VConfidence field. +func (o *PointAltitudeUncertainty) SetVConfidence(v int32) { + o.VConfidence = &v +} + +func (o PointAltitudeUncertainty) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointAltitudeUncertainty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["altitude"] = o.Altitude + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["uncertaintyAltitude"] = o.UncertaintyAltitude + toSerialize["confidence"] = o.Confidence + if !IsNil(o.VConfidence) { + toSerialize["vConfidence"] = o.VConfidence + } + return toSerialize, nil +} + +func (o *PointAltitudeUncertainty) UnmarshalJSON(data []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{ + "point", + "altitude", + "uncertaintyEllipse", + "uncertaintyAltitude", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointAltitudeUncertainty := _PointAltitudeUncertainty{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointAltitudeUncertainty) + + if err != nil { + return err + } + + *o = PointAltitudeUncertainty(varPointAltitudeUncertainty) + + return err +} + +type NullablePointAltitudeUncertainty struct { + value *PointAltitudeUncertainty + isSet bool +} + +func (v NullablePointAltitudeUncertainty) Get() *PointAltitudeUncertainty { + return v.value +} + +func (v *NullablePointAltitudeUncertainty) Set(val *PointAltitudeUncertainty) { + v.value = val + v.isSet = true +} + +func (v NullablePointAltitudeUncertainty) IsSet() bool { + return v.isSet +} + +func (v *NullablePointAltitudeUncertainty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointAltitudeUncertainty(val *PointAltitudeUncertainty) *NullablePointAltitudeUncertainty { + return &NullablePointAltitudeUncertainty{value: val, isSet: true} +} + +func (v NullablePointAltitudeUncertainty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointAltitudeUncertainty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_point_uncertainty_circle.go b/internal/CapifApiInvokerManagement/model_point_uncertainty_circle.go new file mode 100644 index 0000000000000000000000000000000000000000..7fb730e60737ac26d20e7fef90b9d6f1beaab113 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_point_uncertainty_circle.go @@ -0,0 +1,198 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointUncertaintyCircle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointUncertaintyCircle{} + +// PointUncertaintyCircle Ellipsoid point with uncertainty circle. +type PointUncertaintyCircle struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of uncertainty. + Uncertainty float32 `json:"uncertainty"` +} + +type _PointUncertaintyCircle PointUncertaintyCircle + +// NewPointUncertaintyCircle instantiates a new PointUncertaintyCircle 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 NewPointUncertaintyCircle(point GeographicalCoordinates, uncertainty float32, shape SupportedGADShapes) *PointUncertaintyCircle { + this := PointUncertaintyCircle{} + this.Shape = shape + this.Point = point + this.Uncertainty = uncertainty + return &this +} + +// NewPointUncertaintyCircleWithDefaults instantiates a new PointUncertaintyCircle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointUncertaintyCircleWithDefaults() *PointUncertaintyCircle { + this := PointUncertaintyCircle{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointUncertaintyCircle) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyCircle) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointUncertaintyCircle) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetUncertainty returns the Uncertainty field value +func (o *PointUncertaintyCircle) GetUncertainty() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Uncertainty +} + +// GetUncertaintyOk returns a tuple with the Uncertainty field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyCircle) GetUncertaintyOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Uncertainty, true +} + +// SetUncertainty sets field value +func (o *PointUncertaintyCircle) SetUncertainty(v float32) { + o.Uncertainty = v +} + +func (o PointUncertaintyCircle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointUncertaintyCircle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["uncertainty"] = o.Uncertainty + return toSerialize, nil +} + +func (o *PointUncertaintyCircle) UnmarshalJSON(data []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{ + "point", + "uncertainty", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointUncertaintyCircle := _PointUncertaintyCircle{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointUncertaintyCircle) + + if err != nil { + return err + } + + *o = PointUncertaintyCircle(varPointUncertaintyCircle) + + return err +} + +type NullablePointUncertaintyCircle struct { + value *PointUncertaintyCircle + isSet bool +} + +func (v NullablePointUncertaintyCircle) Get() *PointUncertaintyCircle { + return v.value +} + +func (v *NullablePointUncertaintyCircle) Set(val *PointUncertaintyCircle) { + v.value = val + v.isSet = true +} + +func (v NullablePointUncertaintyCircle) IsSet() bool { + return v.isSet +} + +func (v *NullablePointUncertaintyCircle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointUncertaintyCircle(val *PointUncertaintyCircle) *NullablePointUncertaintyCircle { + return &NullablePointUncertaintyCircle{value: val, isSet: true} +} + +func (v NullablePointUncertaintyCircle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointUncertaintyCircle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_point_uncertainty_ellipse.go b/internal/CapifApiInvokerManagement/model_point_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..f7c226fd7286cb98cf3b8adeac5585c69178c32e --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_point_uncertainty_ellipse.go @@ -0,0 +1,226 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointUncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointUncertaintyEllipse{} + +// PointUncertaintyEllipse Ellipsoid point with uncertainty ellipse. +type PointUncertaintyEllipse struct { + GADShape + Point GeographicalCoordinates `json:"point"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _PointUncertaintyEllipse PointUncertaintyEllipse + +// NewPointUncertaintyEllipse instantiates a new PointUncertaintyEllipse 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 NewPointUncertaintyEllipse(point GeographicalCoordinates, uncertaintyEllipse UncertaintyEllipse, confidence int32, shape SupportedGADShapes) *PointUncertaintyEllipse { + this := PointUncertaintyEllipse{} + this.Shape = shape + this.Point = point + this.UncertaintyEllipse = uncertaintyEllipse + this.Confidence = confidence + return &this +} + +// NewPointUncertaintyEllipseWithDefaults instantiates a new PointUncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointUncertaintyEllipseWithDefaults() *PointUncertaintyEllipse { + this := PointUncertaintyEllipse{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointUncertaintyEllipse) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointUncertaintyEllipse) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *PointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *PointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetConfidence returns the Confidence field value +func (o *PointUncertaintyEllipse) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *PointUncertaintyEllipse) SetConfidence(v int32) { + o.Confidence = v +} + +func (o PointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointUncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *PointUncertaintyEllipse) UnmarshalJSON(data []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{ + "point", + "uncertaintyEllipse", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointUncertaintyEllipse := _PointUncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointUncertaintyEllipse) + + if err != nil { + return err + } + + *o = PointUncertaintyEllipse(varPointUncertaintyEllipse) + + return err +} + +type NullablePointUncertaintyEllipse struct { + value *PointUncertaintyEllipse + isSet bool +} + +func (v NullablePointUncertaintyEllipse) Get() *PointUncertaintyEllipse { + return v.value +} + +func (v *NullablePointUncertaintyEllipse) Set(val *PointUncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullablePointUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullablePointUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointUncertaintyEllipse(val *PointUncertaintyEllipse) *NullablePointUncertaintyEllipse { + return &NullablePointUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullablePointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_polygon.go b/internal/CapifApiInvokerManagement/model_polygon.go new file mode 100644 index 0000000000000000000000000000000000000000..87e2267c49241e01b1542409e52982f4714528a1 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_polygon.go @@ -0,0 +1,170 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Polygon type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Polygon{} + +// Polygon Polygon. +type Polygon struct { + GADShape + // List of points. + PointList []GeographicalCoordinates `json:"pointList"` +} + +type _Polygon Polygon + +// NewPolygon instantiates a new Polygon 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 NewPolygon(pointList []GeographicalCoordinates, shape SupportedGADShapes) *Polygon { + this := Polygon{} + this.Shape = shape + this.PointList = pointList + return &this +} + +// NewPolygonWithDefaults instantiates a new Polygon object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolygonWithDefaults() *Polygon { + this := Polygon{} + return &this +} + +// GetPointList returns the PointList field value +func (o *Polygon) GetPointList() []GeographicalCoordinates { + if o == nil { + var ret []GeographicalCoordinates + return ret + } + + return o.PointList +} + +// GetPointListOk returns a tuple with the PointList field value +// and a boolean to check if the value has been set. +func (o *Polygon) GetPointListOk() ([]GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return o.PointList, true +} + +// SetPointList sets field value +func (o *Polygon) SetPointList(v []GeographicalCoordinates) { + o.PointList = v +} + +func (o Polygon) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Polygon) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["pointList"] = o.PointList + return toSerialize, nil +} + +func (o *Polygon) UnmarshalJSON(data []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{ + "pointList", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPolygon := _Polygon{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPolygon) + + if err != nil { + return err + } + + *o = Polygon(varPolygon) + + return err +} + +type NullablePolygon struct { + value *Polygon + isSet bool +} + +func (v NullablePolygon) Get() *Polygon { + return v.value +} + +func (v *NullablePolygon) Set(val *Polygon) { + v.value = val + v.isSet = true +} + +func (v NullablePolygon) IsSet() bool { + return v.isSet +} + +func (v *NullablePolygon) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolygon(val *Polygon) *NullablePolygon { + return &NullablePolygon{value: val, isSet: true} +} + +func (v NullablePolygon) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolygon) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_problem_details.go b/internal/CapifApiInvokerManagement/model_problem_details.go new file mode 100644 index 0000000000000000000000000000000000000000..e2c489878dc1dbf3dea95ad1fff74c8b8a3eff43 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_problem_details.go @@ -0,0 +1,386 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the ProblemDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProblemDetails{} + +// ProblemDetails Represents additional information and details on an error response. +type ProblemDetails struct { + // string providing an URI formatted according to IETF RFC 3986. + Type *string `json:"type,omitempty"` + // A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. + Title *string `json:"title,omitempty"` + // The HTTP status code for this occurrence of the problem. + Status *int32 `json:"status,omitempty"` + // A human-readable explanation specific to this occurrence of the problem. + Detail *string `json:"detail,omitempty"` + // string providing an URI formatted according to IETF RFC 3986. + Instance *string `json:"instance,omitempty"` + // A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + Cause *string `json:"cause,omitempty"` + // Description of invalid parameters, for a request rejected due to invalid parameters. + InvalidParams []InvalidParam `json:"invalidParams,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` +} + +// NewProblemDetails instantiates a new ProblemDetails 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 NewProblemDetails() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProblemDetailsWithDefaults() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProblemDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProblemDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProblemDetails) SetType(v string) { + o.Type = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ProblemDetails) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ProblemDetails) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ProblemDetails) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ProblemDetails) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ProblemDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ProblemDetails) SetStatus(v int32) { + o.Status = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ProblemDetails) GetDetail() string { + if o == nil || IsNil(o.Detail) { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetDetailOk() (*string, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ProblemDetails) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ProblemDetails) SetDetail(v string) { + o.Detail = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ProblemDetails) GetInstance() string { + if o == nil || IsNil(o.Instance) { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInstanceOk() (*string, bool) { + if o == nil || IsNil(o.Instance) { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ProblemDetails) HasInstance() bool { + if o != nil && !IsNil(o.Instance) { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ProblemDetails) SetInstance(v string) { + o.Instance = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ProblemDetails) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ProblemDetails) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ProblemDetails) SetCause(v string) { + o.Cause = &v +} + +// GetInvalidParams returns the InvalidParams field value if set, zero value otherwise. +func (o *ProblemDetails) GetInvalidParams() []InvalidParam { + if o == nil || IsNil(o.InvalidParams) { + var ret []InvalidParam + return ret + } + return o.InvalidParams +} + +// GetInvalidParamsOk returns a tuple with the InvalidParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInvalidParamsOk() ([]InvalidParam, bool) { + if o == nil || IsNil(o.InvalidParams) { + return nil, false + } + return o.InvalidParams, true +} + +// HasInvalidParams returns a boolean if a field has been set. +func (o *ProblemDetails) HasInvalidParams() bool { + if o != nil && !IsNil(o.InvalidParams) { + return true + } + + return false +} + +// SetInvalidParams gets a reference to the given []InvalidParam and assigns it to the InvalidParams field. +func (o *ProblemDetails) SetInvalidParams(v []InvalidParam) { + o.InvalidParams = v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ProblemDetails) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ProblemDetails) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ProblemDetails) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o ProblemDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProblemDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + if !IsNil(o.Instance) { + toSerialize["instance"] = o.Instance + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.InvalidParams) { + toSerialize["invalidParams"] = o.InvalidParams + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +type NullableProblemDetails struct { + value *ProblemDetails + isSet bool +} + +func (v NullableProblemDetails) Get() *ProblemDetails { + return v.value +} + +func (v *NullableProblemDetails) Set(val *ProblemDetails) { + v.value = val + v.isSet = true +} + +func (v NullableProblemDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableProblemDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProblemDetails(val *ProblemDetails) *NullableProblemDetails { + return &NullableProblemDetails{value: val, isSet: true} +} + +func (v NullableProblemDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProblemDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_protocol.go b/internal/CapifApiInvokerManagement/model_protocol.go new file mode 100644 index 0000000000000000000000000000000000000000..ccfce789733cd6d741c40c1200cc2d5d22340405 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_protocol.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// Protocol Possible values are: - HTTP_1_1: HTTP version 1.1 - HTTP_2: HTTP version 2 +type Protocol struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Protocol) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Protocol)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Protocol) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableProtocol struct { + value *Protocol + isSet bool +} + +func (v NullableProtocol) Get() *Protocol { + return v.value +} + +func (v *NullableProtocol) Set(val *Protocol) { + v.value = val + v.isSet = true +} + +func (v NullableProtocol) IsSet() bool { + return v.isSet +} + +func (v *NullableProtocol) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtocol(val *Protocol) *NullableProtocol { + return &NullableProtocol{value: val, isSet: true} +} + +func (v NullableProtocol) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtocol) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_published_api_path.go b/internal/CapifApiInvokerManagement/model_published_api_path.go new file mode 100644 index 0000000000000000000000000000000000000000..bbe8dda0d09f16cdf72fce93b486c01cb8ad95c0 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_published_api_path.go @@ -0,0 +1,127 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the PublishedApiPath type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublishedApiPath{} + +// PublishedApiPath Represents the published API path within the same CAPIF provider domain. +type PublishedApiPath struct { + // A list of CCF identifiers where the service API is already published. + CcfIds []string `json:"ccfIds,omitempty"` +} + +// NewPublishedApiPath instantiates a new PublishedApiPath 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 NewPublishedApiPath() *PublishedApiPath { + this := PublishedApiPath{} + return &this +} + +// NewPublishedApiPathWithDefaults instantiates a new PublishedApiPath object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublishedApiPathWithDefaults() *PublishedApiPath { + this := PublishedApiPath{} + return &this +} + +// GetCcfIds returns the CcfIds field value if set, zero value otherwise. +func (o *PublishedApiPath) GetCcfIds() []string { + if o == nil || IsNil(o.CcfIds) { + var ret []string + return ret + } + return o.CcfIds +} + +// GetCcfIdsOk returns a tuple with the CcfIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedApiPath) GetCcfIdsOk() ([]string, bool) { + if o == nil || IsNil(o.CcfIds) { + return nil, false + } + return o.CcfIds, true +} + +// HasCcfIds returns a boolean if a field has been set. +func (o *PublishedApiPath) HasCcfIds() bool { + if o != nil && !IsNil(o.CcfIds) { + return true + } + + return false +} + +// SetCcfIds gets a reference to the given []string and assigns it to the CcfIds field. +func (o *PublishedApiPath) SetCcfIds(v []string) { + o.CcfIds = v +} + +func (o PublishedApiPath) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublishedApiPath) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CcfIds) { + toSerialize["ccfIds"] = o.CcfIds + } + return toSerialize, nil +} + +type NullablePublishedApiPath struct { + value *PublishedApiPath + isSet bool +} + +func (v NullablePublishedApiPath) Get() *PublishedApiPath { + return v.value +} + +func (v *NullablePublishedApiPath) Set(val *PublishedApiPath) { + v.value = val + v.isSet = true +} + +func (v NullablePublishedApiPath) IsSet() bool { + return v.isSet +} + +func (v *NullablePublishedApiPath) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublishedApiPath(val *PublishedApiPath) *NullablePublishedApiPath { + return &NullablePublishedApiPath{value: val, isSet: true} +} + +func (v NullablePublishedApiPath) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublishedApiPath) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_relative_cartesian_location.go b/internal/CapifApiInvokerManagement/model_relative_cartesian_location.go new file mode 100644 index 0000000000000000000000000000000000000000..f697f80e64cfcf7dc920a64ff35bd4c561b8d3e1 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_relative_cartesian_location.go @@ -0,0 +1,225 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RelativeCartesianLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RelativeCartesianLocation{} + +// RelativeCartesianLocation Relative Cartesian Location +type RelativeCartesianLocation struct { + // string with format 'float' as defined in OpenAPI. + X float32 `json:"x"` + // string with format 'float' as defined in OpenAPI. + Y float32 `json:"y"` + // string with format 'float' as defined in OpenAPI. + Z *float32 `json:"z,omitempty"` +} + +type _RelativeCartesianLocation RelativeCartesianLocation + +// NewRelativeCartesianLocation instantiates a new RelativeCartesianLocation 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 NewRelativeCartesianLocation(x float32, y float32) *RelativeCartesianLocation { + this := RelativeCartesianLocation{} + this.X = x + this.Y = y + return &this +} + +// NewRelativeCartesianLocationWithDefaults instantiates a new RelativeCartesianLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRelativeCartesianLocationWithDefaults() *RelativeCartesianLocation { + this := RelativeCartesianLocation{} + return &this +} + +// GetX returns the X field value +func (o *RelativeCartesianLocation) GetX() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.X +} + +// GetXOk returns a tuple with the X field value +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetXOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.X, true +} + +// SetX sets field value +func (o *RelativeCartesianLocation) SetX(v float32) { + o.X = v +} + +// GetY returns the Y field value +func (o *RelativeCartesianLocation) GetY() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Y +} + +// GetYOk returns a tuple with the Y field value +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetYOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Y, true +} + +// SetY sets field value +func (o *RelativeCartesianLocation) SetY(v float32) { + o.Y = v +} + +// GetZ returns the Z field value if set, zero value otherwise. +func (o *RelativeCartesianLocation) GetZ() float32 { + if o == nil || IsNil(o.Z) { + var ret float32 + return ret + } + return *o.Z +} + +// GetZOk returns a tuple with the Z field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetZOk() (*float32, bool) { + if o == nil || IsNil(o.Z) { + return nil, false + } + return o.Z, true +} + +// HasZ returns a boolean if a field has been set. +func (o *RelativeCartesianLocation) HasZ() bool { + if o != nil && !IsNil(o.Z) { + return true + } + + return false +} + +// SetZ gets a reference to the given float32 and assigns it to the Z field. +func (o *RelativeCartesianLocation) SetZ(v float32) { + o.Z = &v +} + +func (o RelativeCartesianLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RelativeCartesianLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["x"] = o.X + toSerialize["y"] = o.Y + if !IsNil(o.Z) { + toSerialize["z"] = o.Z + } + return toSerialize, nil +} + +func (o *RelativeCartesianLocation) UnmarshalJSON(data []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{ + "x", + "y", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varRelativeCartesianLocation := _RelativeCartesianLocation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRelativeCartesianLocation) + + if err != nil { + return err + } + + *o = RelativeCartesianLocation(varRelativeCartesianLocation) + + return err +} + +type NullableRelativeCartesianLocation struct { + value *RelativeCartesianLocation + isSet bool +} + +func (v NullableRelativeCartesianLocation) Get() *RelativeCartesianLocation { + return v.value +} + +func (v *NullableRelativeCartesianLocation) Set(val *RelativeCartesianLocation) { + v.value = val + v.isSet = true +} + +func (v NullableRelativeCartesianLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableRelativeCartesianLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelativeCartesianLocation(val *RelativeCartesianLocation) *NullableRelativeCartesianLocation { + return &NullableRelativeCartesianLocation{value: val, isSet: true} +} + +func (v NullableRelativeCartesianLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelativeCartesianLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_resource.go b/internal/CapifApiInvokerManagement/model_resource.go new file mode 100644 index 0000000000000000000000000000000000000000..3f83a50121a0b1b6621abb9923bf669caa162928 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_resource.go @@ -0,0 +1,327 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Resource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Resource{} + +// Resource Represents the API resource data. +type Resource struct { + // Resource name + ResourceName string `json:"resourceName"` + CommType CommunicationType `json:"commType"` + // Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + Uri string `json:"uri"` + // it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. + CustOpName *string `json:"custOpName,omitempty"` + // Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + Operations []Operation `json:"operations,omitempty"` + // Text description of the API resource + Description *string `json:"description,omitempty"` +} + +type _Resource Resource + +// NewResource instantiates a new Resource 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 NewResource(resourceName string, commType CommunicationType, uri string) *Resource { + this := Resource{} + this.ResourceName = resourceName + this.CommType = commType + this.Uri = uri + return &this +} + +// NewResourceWithDefaults instantiates a new Resource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceWithDefaults() *Resource { + this := Resource{} + return &this +} + +// GetResourceName returns the ResourceName field value +func (o *Resource) GetResourceName() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value +// and a boolean to check if the value has been set. +func (o *Resource) GetResourceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceName, true +} + +// SetResourceName sets field value +func (o *Resource) SetResourceName(v string) { + o.ResourceName = v +} + +// GetCommType returns the CommType field value +func (o *Resource) GetCommType() CommunicationType { + if o == nil { + var ret CommunicationType + return ret + } + + return o.CommType +} + +// GetCommTypeOk returns a tuple with the CommType field value +// and a boolean to check if the value has been set. +func (o *Resource) GetCommTypeOk() (*CommunicationType, bool) { + if o == nil { + return nil, false + } + return &o.CommType, true +} + +// SetCommType sets field value +func (o *Resource) SetCommType(v CommunicationType) { + o.CommType = v +} + +// GetUri returns the Uri field value +func (o *Resource) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *Resource) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *Resource) SetUri(v string) { + o.Uri = v +} + +// GetCustOpName returns the CustOpName field value if set, zero value otherwise. +func (o *Resource) GetCustOpName() string { + if o == nil || IsNil(o.CustOpName) { + var ret string + return ret + } + return *o.CustOpName +} + +// GetCustOpNameOk returns a tuple with the CustOpName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetCustOpNameOk() (*string, bool) { + if o == nil || IsNil(o.CustOpName) { + return nil, false + } + return o.CustOpName, true +} + +// HasCustOpName returns a boolean if a field has been set. +func (o *Resource) HasCustOpName() bool { + if o != nil && !IsNil(o.CustOpName) { + return true + } + + return false +} + +// SetCustOpName gets a reference to the given string and assigns it to the CustOpName field. +func (o *Resource) SetCustOpName(v string) { + o.CustOpName = &v +} + +// GetOperations returns the Operations field value if set, zero value otherwise. +func (o *Resource) GetOperations() []Operation { + if o == nil || IsNil(o.Operations) { + var ret []Operation + return ret + } + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetOperationsOk() ([]Operation, bool) { + if o == nil || IsNil(o.Operations) { + return nil, false + } + return o.Operations, true +} + +// HasOperations returns a boolean if a field has been set. +func (o *Resource) HasOperations() bool { + if o != nil && !IsNil(o.Operations) { + return true + } + + return false +} + +// SetOperations gets a reference to the given []Operation and assigns it to the Operations field. +func (o *Resource) SetOperations(v []Operation) { + o.Operations = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Resource) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Resource) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Resource) SetDescription(v string) { + o.Description = &v +} + +func (o Resource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Resource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resourceName"] = o.ResourceName + toSerialize["commType"] = o.CommType + toSerialize["uri"] = o.Uri + if !IsNil(o.CustOpName) { + toSerialize["custOpName"] = o.CustOpName + } + if !IsNil(o.Operations) { + toSerialize["operations"] = o.Operations + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +func (o *Resource) UnmarshalJSON(data []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{ + "resourceName", + "commType", + "uri", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varResource := _Resource{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResource) + + if err != nil { + return err + } + + *o = Resource(varResource) + + return err +} + +type NullableResource struct { + value *Resource + isSet bool +} + +func (v NullableResource) Get() *Resource { + return v.value +} + +func (v *NullableResource) Set(val *Resource) { + v.value = val + v.isSet = true +} + +func (v NullableResource) IsSet() bool { + return v.isSet +} + +func (v *NullableResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResource(val *Resource) *NullableResource { + return &NullableResource{value: val, isSet: true} +} + +func (v NullableResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_security_method.go b/internal/CapifApiInvokerManagement/model_security_method.go new file mode 100644 index 0000000000000000000000000000000000000000..40060591ccb77c73dfa545bba54066d598746e32 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_security_method.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// SecurityMethod Possible values are: - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 +type SecurityMethod struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SecurityMethod) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SecurityMethod)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SecurityMethod) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSecurityMethod struct { + value *SecurityMethod + isSet bool +} + +func (v NullableSecurityMethod) Get() *SecurityMethod { + return v.value +} + +func (v *NullableSecurityMethod) Set(val *SecurityMethod) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityMethod(val *SecurityMethod) *NullableSecurityMethod { + return &NullableSecurityMethod{value: val, isSet: true} +} + +func (v NullableSecurityMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_service_api_description.go b/internal/CapifApiInvokerManagement/model_service_api_description.go new file mode 100644 index 0000000000000000000000000000000000000000..5be05d7c0882192c86310e0de583047d94395ece --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_service_api_description.go @@ -0,0 +1,489 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ServiceAPIDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceAPIDescription{} + +// ServiceAPIDescription Represents the description of a service API as published by the APF. +type ServiceAPIDescription struct { + // API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + ApiName string `json:"apiName"` + // API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). + ApiId *string `json:"apiId,omitempty"` + // AEF profile information, which includes the exposed API details (e.g. protocol). + AefProfiles []AefProfile `json:"aefProfiles,omitempty"` + // Text description of the API + Description *string `json:"description,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` + ShareableInfo *ShareableInformation `json:"shareableInfo,omitempty"` + ServiceAPICategory *string `json:"serviceAPICategory,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + ApiSuppFeats *string `json:"apiSuppFeats,omitempty"` + PubApiPath *PublishedApiPath `json:"pubApiPath,omitempty"` + // CAPIF core function identifier. + CcfId *string `json:"ccfId,omitempty"` +} + +type _ServiceAPIDescription ServiceAPIDescription + +// NewServiceAPIDescription instantiates a new ServiceAPIDescription 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 NewServiceAPIDescription(apiName string) *ServiceAPIDescription { + this := ServiceAPIDescription{} + this.ApiName = apiName + return &this +} + +// NewServiceAPIDescriptionWithDefaults instantiates a new ServiceAPIDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAPIDescriptionWithDefaults() *ServiceAPIDescription { + this := ServiceAPIDescription{} + return &this +} + +// GetApiName returns the ApiName field value +func (o *ServiceAPIDescription) GetApiName() string { + if o == nil { + var ret string + return ret + } + + return o.ApiName +} + +// GetApiNameOk returns a tuple with the ApiName field value +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiName, true +} + +// SetApiName sets field value +func (o *ServiceAPIDescription) SetApiName(v string) { + o.ApiName = v +} + +// GetApiId returns the ApiId field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetApiId() string { + if o == nil || IsNil(o.ApiId) { + var ret string + return ret + } + return *o.ApiId +} + +// GetApiIdOk returns a tuple with the ApiId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiId) { + return nil, false + } + return o.ApiId, true +} + +// HasApiId returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasApiId() bool { + if o != nil && !IsNil(o.ApiId) { + return true + } + + return false +} + +// SetApiId gets a reference to the given string and assigns it to the ApiId field. +func (o *ServiceAPIDescription) SetApiId(v string) { + o.ApiId = &v +} + +// GetAefProfiles returns the AefProfiles field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetAefProfiles() []AefProfile { + if o == nil || IsNil(o.AefProfiles) { + var ret []AefProfile + return ret + } + return o.AefProfiles +} + +// GetAefProfilesOk returns a tuple with the AefProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetAefProfilesOk() ([]AefProfile, bool) { + if o == nil || IsNil(o.AefProfiles) { + return nil, false + } + return o.AefProfiles, true +} + +// HasAefProfiles returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasAefProfiles() bool { + if o != nil && !IsNil(o.AefProfiles) { + return true + } + + return false +} + +// SetAefProfiles gets a reference to the given []AefProfile and assigns it to the AefProfiles field. +func (o *ServiceAPIDescription) SetAefProfiles(v []AefProfile) { + o.AefProfiles = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAPIDescription) SetDescription(v string) { + o.Description = &v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ServiceAPIDescription) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +// GetShareableInfo returns the ShareableInfo field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetShareableInfo() ShareableInformation { + if o == nil || IsNil(o.ShareableInfo) { + var ret ShareableInformation + return ret + } + return *o.ShareableInfo +} + +// GetShareableInfoOk returns a tuple with the ShareableInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetShareableInfoOk() (*ShareableInformation, bool) { + if o == nil || IsNil(o.ShareableInfo) { + return nil, false + } + return o.ShareableInfo, true +} + +// HasShareableInfo returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasShareableInfo() bool { + if o != nil && !IsNil(o.ShareableInfo) { + return true + } + + return false +} + +// SetShareableInfo gets a reference to the given ShareableInformation and assigns it to the ShareableInfo field. +func (o *ServiceAPIDescription) SetShareableInfo(v ShareableInformation) { + o.ShareableInfo = &v +} + +// GetServiceAPICategory returns the ServiceAPICategory field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetServiceAPICategory() string { + if o == nil || IsNil(o.ServiceAPICategory) { + var ret string + return ret + } + return *o.ServiceAPICategory +} + +// GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetServiceAPICategoryOk() (*string, bool) { + if o == nil || IsNil(o.ServiceAPICategory) { + return nil, false + } + return o.ServiceAPICategory, true +} + +// HasServiceAPICategory returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasServiceAPICategory() bool { + if o != nil && !IsNil(o.ServiceAPICategory) { + return true + } + + return false +} + +// SetServiceAPICategory gets a reference to the given string and assigns it to the ServiceAPICategory field. +func (o *ServiceAPIDescription) SetServiceAPICategory(v string) { + o.ServiceAPICategory = &v +} + +// GetApiSuppFeats returns the ApiSuppFeats field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetApiSuppFeats() string { + if o == nil || IsNil(o.ApiSuppFeats) { + var ret string + return ret + } + return *o.ApiSuppFeats +} + +// GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiSuppFeatsOk() (*string, bool) { + if o == nil || IsNil(o.ApiSuppFeats) { + return nil, false + } + return o.ApiSuppFeats, true +} + +// HasApiSuppFeats returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasApiSuppFeats() bool { + if o != nil && !IsNil(o.ApiSuppFeats) { + return true + } + + return false +} + +// SetApiSuppFeats gets a reference to the given string and assigns it to the ApiSuppFeats field. +func (o *ServiceAPIDescription) SetApiSuppFeats(v string) { + o.ApiSuppFeats = &v +} + +// GetPubApiPath returns the PubApiPath field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetPubApiPath() PublishedApiPath { + if o == nil || IsNil(o.PubApiPath) { + var ret PublishedApiPath + return ret + } + return *o.PubApiPath +} + +// GetPubApiPathOk returns a tuple with the PubApiPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetPubApiPathOk() (*PublishedApiPath, bool) { + if o == nil || IsNil(o.PubApiPath) { + return nil, false + } + return o.PubApiPath, true +} + +// HasPubApiPath returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasPubApiPath() bool { + if o != nil && !IsNil(o.PubApiPath) { + return true + } + + return false +} + +// SetPubApiPath gets a reference to the given PublishedApiPath and assigns it to the PubApiPath field. +func (o *ServiceAPIDescription) SetPubApiPath(v PublishedApiPath) { + o.PubApiPath = &v +} + +// GetCcfId returns the CcfId field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetCcfId() string { + if o == nil || IsNil(o.CcfId) { + var ret string + return ret + } + return *o.CcfId +} + +// GetCcfIdOk returns a tuple with the CcfId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetCcfIdOk() (*string, bool) { + if o == nil || IsNil(o.CcfId) { + return nil, false + } + return o.CcfId, true +} + +// HasCcfId returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasCcfId() bool { + if o != nil && !IsNil(o.CcfId) { + return true + } + + return false +} + +// SetCcfId gets a reference to the given string and assigns it to the CcfId field. +func (o *ServiceAPIDescription) SetCcfId(v string) { + o.CcfId = &v +} + +func (o ServiceAPIDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceAPIDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiName"] = o.ApiName + if !IsNil(o.ApiId) { + toSerialize["apiId"] = o.ApiId + } + if !IsNil(o.AefProfiles) { + toSerialize["aefProfiles"] = o.AefProfiles + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + if !IsNil(o.ShareableInfo) { + toSerialize["shareableInfo"] = o.ShareableInfo + } + if !IsNil(o.ServiceAPICategory) { + toSerialize["serviceAPICategory"] = o.ServiceAPICategory + } + if !IsNil(o.ApiSuppFeats) { + toSerialize["apiSuppFeats"] = o.ApiSuppFeats + } + if !IsNil(o.PubApiPath) { + toSerialize["pubApiPath"] = o.PubApiPath + } + if !IsNil(o.CcfId) { + toSerialize["ccfId"] = o.CcfId + } + return toSerialize, nil +} + +func (o *ServiceAPIDescription) UnmarshalJSON(data []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{ + "apiName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varServiceAPIDescription := _ServiceAPIDescription{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceAPIDescription) + + if err != nil { + return err + } + + *o = ServiceAPIDescription(varServiceAPIDescription) + + return err +} + +type NullableServiceAPIDescription struct { + value *ServiceAPIDescription + isSet bool +} + +func (v NullableServiceAPIDescription) Get() *ServiceAPIDescription { + return v.value +} + +func (v *NullableServiceAPIDescription) Set(val *ServiceAPIDescription) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAPIDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAPIDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAPIDescription(val *ServiceAPIDescription) *NullableServiceAPIDescription { + return &NullableServiceAPIDescription{value: val, isSet: true} +} + +func (v NullableServiceAPIDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAPIDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_shareable_information.go b/internal/CapifApiInvokerManagement/model_shareable_information.go new file mode 100644 index 0000000000000000000000000000000000000000..48e4cc59b680be49fa725cfd72a53b6446b8d11b --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_shareable_information.go @@ -0,0 +1,196 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ShareableInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShareableInformation{} + +// ShareableInformation Indicates whether the service API and/or the service API category can be shared to the list of CAPIF provider domains. +type ShareableInformation struct { + // Set to \"true\" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to \"false\". + IsShareable bool `json:"isShareable"` + // List of CAPIF provider domains to which the service API information to be shared. + CapifProvDoms []string `json:"capifProvDoms,omitempty"` +} + +type _ShareableInformation ShareableInformation + +// NewShareableInformation instantiates a new ShareableInformation 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 NewShareableInformation(isShareable bool) *ShareableInformation { + this := ShareableInformation{} + this.IsShareable = isShareable + return &this +} + +// NewShareableInformationWithDefaults instantiates a new ShareableInformation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShareableInformationWithDefaults() *ShareableInformation { + this := ShareableInformation{} + return &this +} + +// GetIsShareable returns the IsShareable field value +func (o *ShareableInformation) GetIsShareable() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsShareable +} + +// GetIsShareableOk returns a tuple with the IsShareable field value +// and a boolean to check if the value has been set. +func (o *ShareableInformation) GetIsShareableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsShareable, true +} + +// SetIsShareable sets field value +func (o *ShareableInformation) SetIsShareable(v bool) { + o.IsShareable = v +} + +// GetCapifProvDoms returns the CapifProvDoms field value if set, zero value otherwise. +func (o *ShareableInformation) GetCapifProvDoms() []string { + if o == nil || IsNil(o.CapifProvDoms) { + var ret []string + return ret + } + return o.CapifProvDoms +} + +// GetCapifProvDomsOk returns a tuple with the CapifProvDoms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShareableInformation) GetCapifProvDomsOk() ([]string, bool) { + if o == nil || IsNil(o.CapifProvDoms) { + return nil, false + } + return o.CapifProvDoms, true +} + +// HasCapifProvDoms returns a boolean if a field has been set. +func (o *ShareableInformation) HasCapifProvDoms() bool { + if o != nil && !IsNil(o.CapifProvDoms) { + return true + } + + return false +} + +// SetCapifProvDoms gets a reference to the given []string and assigns it to the CapifProvDoms field. +func (o *ShareableInformation) SetCapifProvDoms(v []string) { + o.CapifProvDoms = v +} + +func (o ShareableInformation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShareableInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["isShareable"] = o.IsShareable + if !IsNil(o.CapifProvDoms) { + toSerialize["capifProvDoms"] = o.CapifProvDoms + } + return toSerialize, nil +} + +func (o *ShareableInformation) UnmarshalJSON(data []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{ + "isShareable", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varShareableInformation := _ShareableInformation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varShareableInformation) + + if err != nil { + return err + } + + *o = ShareableInformation(varShareableInformation) + + return err +} + +type NullableShareableInformation struct { + value *ShareableInformation + isSet bool +} + +func (v NullableShareableInformation) Get() *ShareableInformation { + return v.value +} + +func (v *NullableShareableInformation) Set(val *ShareableInformation) { + v.value = val + v.isSet = true +} + +func (v NullableShareableInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableShareableInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShareableInformation(val *ShareableInformation) *NullableShareableInformation { + return &NullableShareableInformation{value: val, isSet: true} +} + +func (v NullableShareableInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShareableInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_supported_gad_shapes.go b/internal/CapifApiInvokerManagement/model_supported_gad_shapes.go new file mode 100644 index 0000000000000000000000000000000000000000..14dd561e5f52e70e7c3aaf5194cf1661609d1d63 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_supported_gad_shapes.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "fmt" +) + +// SupportedGADShapes Indicates supported GAD shapes. +type SupportedGADShapes struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SupportedGADShapes) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SupportedGADShapes)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SupportedGADShapes) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSupportedGADShapes struct { + value *SupportedGADShapes + isSet bool +} + +func (v NullableSupportedGADShapes) Get() *SupportedGADShapes { + return v.value +} + +func (v *NullableSupportedGADShapes) Set(val *SupportedGADShapes) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedGADShapes) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedGADShapes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedGADShapes(val *SupportedGADShapes) *NullableSupportedGADShapes { + return &NullableSupportedGADShapes{value: val, isSet: true} +} + +func (v NullableSupportedGADShapes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedGADShapes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_uncertainty_ellipse.go b/internal/CapifApiInvokerManagement/model_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..8f538683b4ea4a44509ca21aef51ee97af5d87ee --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_uncertainty_ellipse.go @@ -0,0 +1,217 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UncertaintyEllipse{} + +// UncertaintyEllipse Ellipse with uncertainty. +type UncertaintyEllipse struct { + // Indicates value of uncertainty. + SemiMajor float32 `json:"semiMajor"` + // Indicates value of uncertainty. + SemiMinor float32 `json:"semiMinor"` + // Indicates value of orientation angle. + OrientationMajor int32 `json:"orientationMajor"` +} + +type _UncertaintyEllipse UncertaintyEllipse + +// NewUncertaintyEllipse instantiates a new UncertaintyEllipse 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 NewUncertaintyEllipse(semiMajor float32, semiMinor float32, orientationMajor int32) *UncertaintyEllipse { + this := UncertaintyEllipse{} + this.SemiMajor = semiMajor + this.SemiMinor = semiMinor + this.OrientationMajor = orientationMajor + return &this +} + +// NewUncertaintyEllipseWithDefaults instantiates a new UncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUncertaintyEllipseWithDefaults() *UncertaintyEllipse { + this := UncertaintyEllipse{} + return &this +} + +// GetSemiMajor returns the SemiMajor field value +func (o *UncertaintyEllipse) GetSemiMajor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMajor +} + +// GetSemiMajorOk returns a tuple with the SemiMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetSemiMajorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMajor, true +} + +// SetSemiMajor sets field value +func (o *UncertaintyEllipse) SetSemiMajor(v float32) { + o.SemiMajor = v +} + +// GetSemiMinor returns the SemiMinor field value +func (o *UncertaintyEllipse) GetSemiMinor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMinor +} + +// GetSemiMinorOk returns a tuple with the SemiMinor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetSemiMinorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMinor, true +} + +// SetSemiMinor sets field value +func (o *UncertaintyEllipse) SetSemiMinor(v float32) { + o.SemiMinor = v +} + +// GetOrientationMajor returns the OrientationMajor field value +func (o *UncertaintyEllipse) GetOrientationMajor() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OrientationMajor +} + +// GetOrientationMajorOk returns a tuple with the OrientationMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetOrientationMajorOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OrientationMajor, true +} + +// SetOrientationMajor sets field value +func (o *UncertaintyEllipse) SetOrientationMajor(v int32) { + o.OrientationMajor = v +} + +func (o UncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["semiMajor"] = o.SemiMajor + toSerialize["semiMinor"] = o.SemiMinor + toSerialize["orientationMajor"] = o.OrientationMajor + return toSerialize, nil +} + +func (o *UncertaintyEllipse) UnmarshalJSON(data []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{ + "semiMajor", + "semiMinor", + "orientationMajor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varUncertaintyEllipse := _UncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUncertaintyEllipse) + + if err != nil { + return err + } + + *o = UncertaintyEllipse(varUncertaintyEllipse) + + return err +} + +type NullableUncertaintyEllipse struct { + value *UncertaintyEllipse + isSet bool +} + +func (v NullableUncertaintyEllipse) Get() *UncertaintyEllipse { + return v.value +} + +func (v *NullableUncertaintyEllipse) Set(val *UncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullableUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullableUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUncertaintyEllipse(val *UncertaintyEllipse) *NullableUncertaintyEllipse { + return &NullableUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullableUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_uncertainty_ellipsoid.go b/internal/CapifApiInvokerManagement/model_uncertainty_ellipsoid.go new file mode 100644 index 0000000000000000000000000000000000000000..6ee8ec85372cad040f14d30aa7960db9dd63fffd --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_uncertainty_ellipsoid.go @@ -0,0 +1,246 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UncertaintyEllipsoid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UncertaintyEllipsoid{} + +// UncertaintyEllipsoid Ellipsoid with uncertainty +type UncertaintyEllipsoid struct { + // Indicates value of uncertainty. + SemiMajor float32 `json:"semiMajor"` + // Indicates value of uncertainty. + SemiMinor float32 `json:"semiMinor"` + // Indicates value of uncertainty. + Vertical float32 `json:"vertical"` + // Indicates value of orientation angle. + OrientationMajor int32 `json:"orientationMajor"` +} + +type _UncertaintyEllipsoid UncertaintyEllipsoid + +// NewUncertaintyEllipsoid instantiates a new UncertaintyEllipsoid 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 NewUncertaintyEllipsoid(semiMajor float32, semiMinor float32, vertical float32, orientationMajor int32) *UncertaintyEllipsoid { + this := UncertaintyEllipsoid{} + this.SemiMajor = semiMajor + this.SemiMinor = semiMinor + this.Vertical = vertical + this.OrientationMajor = orientationMajor + return &this +} + +// NewUncertaintyEllipsoidWithDefaults instantiates a new UncertaintyEllipsoid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUncertaintyEllipsoidWithDefaults() *UncertaintyEllipsoid { + this := UncertaintyEllipsoid{} + return &this +} + +// GetSemiMajor returns the SemiMajor field value +func (o *UncertaintyEllipsoid) GetSemiMajor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMajor +} + +// GetSemiMajorOk returns a tuple with the SemiMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetSemiMajorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMajor, true +} + +// SetSemiMajor sets field value +func (o *UncertaintyEllipsoid) SetSemiMajor(v float32) { + o.SemiMajor = v +} + +// GetSemiMinor returns the SemiMinor field value +func (o *UncertaintyEllipsoid) GetSemiMinor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMinor +} + +// GetSemiMinorOk returns a tuple with the SemiMinor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetSemiMinorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMinor, true +} + +// SetSemiMinor sets field value +func (o *UncertaintyEllipsoid) SetSemiMinor(v float32) { + o.SemiMinor = v +} + +// GetVertical returns the Vertical field value +func (o *UncertaintyEllipsoid) GetVertical() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Vertical +} + +// GetVerticalOk returns a tuple with the Vertical field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetVerticalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Vertical, true +} + +// SetVertical sets field value +func (o *UncertaintyEllipsoid) SetVertical(v float32) { + o.Vertical = v +} + +// GetOrientationMajor returns the OrientationMajor field value +func (o *UncertaintyEllipsoid) GetOrientationMajor() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OrientationMajor +} + +// GetOrientationMajorOk returns a tuple with the OrientationMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetOrientationMajorOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OrientationMajor, true +} + +// SetOrientationMajor sets field value +func (o *UncertaintyEllipsoid) SetOrientationMajor(v int32) { + o.OrientationMajor = v +} + +func (o UncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UncertaintyEllipsoid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["semiMajor"] = o.SemiMajor + toSerialize["semiMinor"] = o.SemiMinor + toSerialize["vertical"] = o.Vertical + toSerialize["orientationMajor"] = o.OrientationMajor + return toSerialize, nil +} + +func (o *UncertaintyEllipsoid) UnmarshalJSON(data []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{ + "semiMajor", + "semiMinor", + "vertical", + "orientationMajor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varUncertaintyEllipsoid := _UncertaintyEllipsoid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUncertaintyEllipsoid) + + if err != nil { + return err + } + + *o = UncertaintyEllipsoid(varUncertaintyEllipsoid) + + return err +} + +type NullableUncertaintyEllipsoid struct { + value *UncertaintyEllipsoid + isSet bool +} + +func (v NullableUncertaintyEllipsoid) Get() *UncertaintyEllipsoid { + return v.value +} + +func (v *NullableUncertaintyEllipsoid) Set(val *UncertaintyEllipsoid) { + v.value = val + v.isSet = true +} + +func (v NullableUncertaintyEllipsoid) IsSet() bool { + return v.isSet +} + +func (v *NullableUncertaintyEllipsoid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUncertaintyEllipsoid(val *UncertaintyEllipsoid) *NullableUncertaintyEllipsoid { + return &NullableUncertaintyEllipsoid{value: val, isSet: true} +} + +func (v NullableUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUncertaintyEllipsoid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_version.go b/internal/CapifApiInvokerManagement/model_version.go new file mode 100644 index 0000000000000000000000000000000000000000..18ea17554ef1e53392bac6e82005ed8890b60817 --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_version.go @@ -0,0 +1,271 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the Version type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Version{} + +// Version Represents the API version information. +type Version struct { + // API major version in URI (e.g. v1) + ApiVersion string `json:"apiVersion"` + // string with format \"date-time\" as defined in OpenAPI. + Expiry *time.Time `json:"expiry,omitempty"` + // Resources supported by the API. + Resources []Resource `json:"resources,omitempty"` + // Custom operations without resource association. + CustOperations []CustomOperation `json:"custOperations,omitempty"` +} + +type _Version Version + +// NewVersion instantiates a new Version 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 NewVersion(apiVersion string) *Version { + this := Version{} + this.ApiVersion = apiVersion + return &this +} + +// NewVersionWithDefaults instantiates a new Version object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionWithDefaults() *Version { + this := Version{} + return &this +} + +// GetApiVersion returns the ApiVersion field value +func (o *Version) GetApiVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value +// and a boolean to check if the value has been set. +func (o *Version) GetApiVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiVersion, true +} + +// SetApiVersion sets field value +func (o *Version) SetApiVersion(v string) { + o.ApiVersion = v +} + +// GetExpiry returns the Expiry field value if set, zero value otherwise. +func (o *Version) GetExpiry() time.Time { + if o == nil || IsNil(o.Expiry) { + var ret time.Time + return ret + } + return *o.Expiry +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetExpiryOk() (*time.Time, bool) { + if o == nil || IsNil(o.Expiry) { + return nil, false + } + return o.Expiry, true +} + +// HasExpiry returns a boolean if a field has been set. +func (o *Version) HasExpiry() bool { + if o != nil && !IsNil(o.Expiry) { + return true + } + + return false +} + +// SetExpiry gets a reference to the given time.Time and assigns it to the Expiry field. +func (o *Version) SetExpiry(v time.Time) { + o.Expiry = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *Version) GetResources() []Resource { + if o == nil || IsNil(o.Resources) { + var ret []Resource + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetResourcesOk() ([]Resource, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *Version) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Resource and assigns it to the Resources field. +func (o *Version) SetResources(v []Resource) { + o.Resources = v +} + +// GetCustOperations returns the CustOperations field value if set, zero value otherwise. +func (o *Version) GetCustOperations() []CustomOperation { + if o == nil || IsNil(o.CustOperations) { + var ret []CustomOperation + return ret + } + return o.CustOperations +} + +// GetCustOperationsOk returns a tuple with the CustOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetCustOperationsOk() ([]CustomOperation, bool) { + if o == nil || IsNil(o.CustOperations) { + return nil, false + } + return o.CustOperations, true +} + +// HasCustOperations returns a boolean if a field has been set. +func (o *Version) HasCustOperations() bool { + if o != nil && !IsNil(o.CustOperations) { + return true + } + + return false +} + +// SetCustOperations gets a reference to the given []CustomOperation and assigns it to the CustOperations field. +func (o *Version) SetCustOperations(v []CustomOperation) { + o.CustOperations = v +} + +func (o Version) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Version) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiVersion"] = o.ApiVersion + if !IsNil(o.Expiry) { + toSerialize["expiry"] = o.Expiry + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.CustOperations) { + toSerialize["custOperations"] = o.CustOperations + } + return toSerialize, nil +} + +func (o *Version) UnmarshalJSON(data []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{ + "apiVersion", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varVersion := _Version{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varVersion) + + if err != nil { + return err + } + + *o = Version(varVersion) + + return err +} + +type NullableVersion struct { + value *Version + isSet bool +} + +func (v NullableVersion) Get() *Version { + return v.value +} + +func (v *NullableVersion) Set(val *Version) { + v.value = val + v.isSet = true +} + +func (v NullableVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersion(val *Version) *NullableVersion { + return &NullableVersion{value: val, isSet: true} +} + +func (v NullableVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/model_websock_notif_config.go b/internal/CapifApiInvokerManagement/model_websock_notif_config.go new file mode 100644 index 0000000000000000000000000000000000000000..66fbbd97eb6498596d41fa27d76259513ca7d22d --- /dev/null +++ b/internal/CapifApiInvokerManagement/model_websock_notif_config.go @@ -0,0 +1,164 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" +) + +// checks if the WebsockNotifConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebsockNotifConfig{} + +// WebsockNotifConfig Represents the configuration information for the delivery of notifications over Websockets. +type WebsockNotifConfig struct { + // string formatted according to IETF RFC 3986 identifying a referenced resource. + WebsocketUri *string `json:"websocketUri,omitempty"` + // Set by the SCS/AS to indicate that the Websocket delivery is requested. + RequestWebsocketUri *bool `json:"requestWebsocketUri,omitempty"` +} + +// NewWebsockNotifConfig instantiates a new WebsockNotifConfig 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 NewWebsockNotifConfig() *WebsockNotifConfig { + this := WebsockNotifConfig{} + return &this +} + +// NewWebsockNotifConfigWithDefaults instantiates a new WebsockNotifConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWebsockNotifConfigWithDefaults() *WebsockNotifConfig { + this := WebsockNotifConfig{} + return &this +} + +// GetWebsocketUri returns the WebsocketUri field value if set, zero value otherwise. +func (o *WebsockNotifConfig) GetWebsocketUri() string { + if o == nil || IsNil(o.WebsocketUri) { + var ret string + return ret + } + return *o.WebsocketUri +} + +// GetWebsocketUriOk returns a tuple with the WebsocketUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebsockNotifConfig) GetWebsocketUriOk() (*string, bool) { + if o == nil || IsNil(o.WebsocketUri) { + return nil, false + } + return o.WebsocketUri, true +} + +// HasWebsocketUri returns a boolean if a field has been set. +func (o *WebsockNotifConfig) HasWebsocketUri() bool { + if o != nil && !IsNil(o.WebsocketUri) { + return true + } + + return false +} + +// SetWebsocketUri gets a reference to the given string and assigns it to the WebsocketUri field. +func (o *WebsockNotifConfig) SetWebsocketUri(v string) { + o.WebsocketUri = &v +} + +// GetRequestWebsocketUri returns the RequestWebsocketUri field value if set, zero value otherwise. +func (o *WebsockNotifConfig) GetRequestWebsocketUri() bool { + if o == nil || IsNil(o.RequestWebsocketUri) { + var ret bool + return ret + } + return *o.RequestWebsocketUri +} + +// GetRequestWebsocketUriOk returns a tuple with the RequestWebsocketUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebsockNotifConfig) GetRequestWebsocketUriOk() (*bool, bool) { + if o == nil || IsNil(o.RequestWebsocketUri) { + return nil, false + } + return o.RequestWebsocketUri, true +} + +// HasRequestWebsocketUri returns a boolean if a field has been set. +func (o *WebsockNotifConfig) HasRequestWebsocketUri() bool { + if o != nil && !IsNil(o.RequestWebsocketUri) { + return true + } + + return false +} + +// SetRequestWebsocketUri gets a reference to the given bool and assigns it to the RequestWebsocketUri field. +func (o *WebsockNotifConfig) SetRequestWebsocketUri(v bool) { + o.RequestWebsocketUri = &v +} + +func (o WebsockNotifConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebsockNotifConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.WebsocketUri) { + toSerialize["websocketUri"] = o.WebsocketUri + } + if !IsNil(o.RequestWebsocketUri) { + toSerialize["requestWebsocketUri"] = o.RequestWebsocketUri + } + return toSerialize, nil +} + +type NullableWebsockNotifConfig struct { + value *WebsockNotifConfig + isSet bool +} + +func (v NullableWebsockNotifConfig) Get() *WebsockNotifConfig { + return v.value +} + +func (v *NullableWebsockNotifConfig) Set(val *WebsockNotifConfig) { + v.value = val + v.isSet = true +} + +func (v NullableWebsockNotifConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableWebsockNotifConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebsockNotifConfig(val *WebsockNotifConfig) *NullableWebsockNotifConfig { + return &NullableWebsockNotifConfig{value: val, isSet: true} +} + +func (v NullableWebsockNotifConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebsockNotifConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiInvokerManagement/response.go b/internal/CapifApiInvokerManagement/response.go new file mode 100644 index 0000000000000000000000000000000000000000..141fcc752402c48839b7c9cd31356c538d2da79c --- /dev/null +++ b/internal/CapifApiInvokerManagement/response.go @@ -0,0 +1,47 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/internal/CapifApiInvokerManagement/utils.go b/internal/CapifApiInvokerManagement/utils.go new file mode 100644 index 0000000000000000000000000000000000000000..cea5e2b06b62d4f94d56d59c6c1ceb272df1210f --- /dev/null +++ b/internal/CapifApiInvokerManagement/utils.go @@ -0,0 +1,347 @@ +/* +CAPIF_API_Invoker_Management_API + +API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiInvokerManagement + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/internal/CapifApiProviderManagement/.gitignore b/internal/CapifApiProviderManagement/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..daf913b1b347aae6de6f48d599bc89ef8c8693d6 --- /dev/null +++ b/internal/CapifApiProviderManagement/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/internal/CapifApiProviderManagement/.openapi-generator-ignore b/internal/CapifApiProviderManagement/.openapi-generator-ignore new file mode 100644 index 0000000000000000000000000000000000000000..7484ee590a3894506cf063799b885428f95a71be --- /dev/null +++ b/internal/CapifApiProviderManagement/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/internal/CapifApiProviderManagement/.openapi-generator/FILES b/internal/CapifApiProviderManagement/.openapi-generator/FILES new file mode 100644 index 0000000000000000000000000000000000000000..4fab7c85f33cdecd0be59e50b651e77d14012a91 --- /dev/null +++ b/internal/CapifApiProviderManagement/.openapi-generator/FILES @@ -0,0 +1,32 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +api_individual_api_provider_enrolment_details.go +client.go +configuration.go +docs/APIProviderEnrolmentDetails.md +docs/APIProviderEnrolmentDetailsPatch.md +docs/APIProviderFunctionDetails.md +docs/ApiProviderFuncRole.md +docs/DefaultAPI.md +docs/IndividualAPIProviderEnrolmentDetailsAPI.md +docs/InvalidParam.md +docs/ProblemDetails.md +docs/RegistrationInformation.md +git_push.sh +go.mod +go.sum +model_api_provider_enrolment_details.go +model_api_provider_enrolment_details_patch.go +model_api_provider_func_role.go +model_api_provider_function_details.go +model_invalid_param.go +model_problem_details.go +model_registration_information.go +response.go +test/api_default_test.go +test/api_individual_api_provider_enrolment_details_test.go +utils.go diff --git a/internal/CapifApiProviderManagement/.openapi-generator/VERSION b/internal/CapifApiProviderManagement/.openapi-generator/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..18bb4182dd01428f1d4c3c2145501ee5d40455a3 --- /dev/null +++ b/internal/CapifApiProviderManagement/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.5.0 diff --git a/internal/CapifApiProviderManagement/.travis.yml b/internal/CapifApiProviderManagement/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..f5cb2ce9a5aad73c57eed886e845d2e79c2899d1 --- /dev/null +++ b/internal/CapifApiProviderManagement/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/internal/CapifApiProviderManagement/README.md b/internal/CapifApiProviderManagement/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1143427220353cd821e022617462e9d381c6c116 --- /dev/null +++ b/internal/CapifApiProviderManagement/README.md @@ -0,0 +1,125 @@ +# Go API client for CapifApiProviderManagement + +API for API provider domain functions management. +© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). +All rights reserved. + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.1.0 +- Package version: 0.0.1 +- Generator version: 7.5.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import CapifApiProviderManagement "github.com/GIT_USER_ID/GIT_REPO_ID" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `CapifApiProviderManagement.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), CapifApiProviderManagement.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `CapifApiProviderManagement.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), CapifApiProviderManagement.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +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 `CapifApiProviderManagement.ContextOperationServerIndices` and `CapifApiProviderManagement.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), CapifApiProviderManagement.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), CapifApiProviderManagement.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://example.com/api-provider-management/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultAPI* | [**RegistrationsPost**](docs/DefaultAPI.md#registrationspost) | **Post** /registrations | +*DefaultAPI* | [**RegistrationsRegistrationIdDelete**](docs/DefaultAPI.md#registrationsregistrationiddelete) | **Delete** /registrations/{registrationId} | +*DefaultAPI* | [**RegistrationsRegistrationIdPut**](docs/DefaultAPI.md#registrationsregistrationidput) | **Put** /registrations/{registrationId} | +*IndividualAPIProviderEnrolmentDetailsAPI* | [**ModifyIndApiProviderEnrolment**](docs/IndividualAPIProviderEnrolmentDetailsAPI.md#modifyindapiproviderenrolment) | **Patch** /registrations/{registrationId} | + + +## Documentation For Models + + - [APIProviderEnrolmentDetails](docs/APIProviderEnrolmentDetails.md) + - [APIProviderEnrolmentDetailsPatch](docs/APIProviderEnrolmentDetailsPatch.md) + - [APIProviderFunctionDetails](docs/APIProviderFunctionDetails.md) + - [ApiProviderFuncRole](docs/ApiProviderFuncRole.md) + - [InvalidParam](docs/InvalidParam.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [RegistrationInformation](docs/RegistrationInformation.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/internal/CapifApiProviderManagement/api/openapi.yaml b/internal/CapifApiProviderManagement/api/openapi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..42bcb76842a1b82c46e8f2861c41cd79db190db1 --- /dev/null +++ b/internal/CapifApiProviderManagement/api/openapi.yaml @@ -0,0 +1,664 @@ +openapi: 3.0.0 +info: + description: "API for API provider domain functions management. \n© 2022, 3GPP\ + \ Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). \nAll rights\ + \ reserved.\n" + title: CAPIF_API_Provider_Management_API + version: 1.1.0 +externalDocs: + description: 3GPP TS 29.222 V17.5.0 Common API Framework for 3GPP Northbound APIs + url: https://www.3gpp.org/ftp/Specs/archive/29_series/29.222/ +servers: +- url: "{apiRoot}/api-provider-management/v1" + variables: + apiRoot: + default: https://example.com + description: apiRoot as defined in clause 7.5 of 3GPP TS 29.222 +paths: + /registrations: + post: + description: Registers a new API Provider domain with API provider domain functions + profiles. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/APIProviderEnrolmentDetails' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/APIProviderEnrolmentDetails' + description: API provider domain registered successfully + headers: + Location: + description: | + Contains the URI of the newly created resource, according to the structure {apiRoot}/api-provider-management/v1/registrations/{registrationId} + explode: false + required: true + schema: + type: string + style: simple + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + /registrations/{registrationId}: + delete: + description: Deregisters API provider domain by deleting API provider domain + and functions. + parameters: + - description: String identifying an registered API provider domain resource. + explode: false + in: path + name: registrationId + required: true + schema: + type: string + style: simple + responses: + "204": + description: The API provider domain matching registrationId is deleted. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + patch: + description: Modify an individual API provider details. + operationId: ModifyIndApiProviderEnrolment + parameters: + - explode: false + in: path + name: registrationId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/APIProviderEnrolmentDetailsPatch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/APIProviderEnrolmentDetails' + description: | + The definition of the service API is modified successfully and a representation of the updated service API is returned in the request body. + "204": + description: No Content. The definition of the service API is modified successfully. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + tags: + - Individual API Provider enrolment details + put: + description: Updates an API provider domain's registration details. + parameters: + - description: String identifying an registered API provider domain resource. + explode: false + in: path + name: registrationId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/APIProviderEnrolmentDetails' + description: | + Representation of the API provider domain registration details to be updated in CAPIF core function. + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/APIProviderEnrolmentDetails' + description: API provider domain registration details updated successfully. + "204": + description: No Content + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error +components: + responses: + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + schemas: + APIProviderEnrolmentDetails: + description: Represents an API provider domain's enrolment details. + example: + regSec: regSec + apiProvFuncs: + - apiProvFuncId: apiProvFuncId + apiProvFuncInfo: apiProvFuncInfo + regInfo: + apiProvCert: apiProvCert + apiProvPubKey: apiProvPubKey + apiProvFuncRole: AEF + - apiProvFuncId: apiProvFuncId + apiProvFuncInfo: apiProvFuncInfo + regInfo: + apiProvCert: apiProvCert + apiProvPubKey: apiProvPubKey + apiProvFuncRole: AEF + failReason: failReason + apiProvDomId: apiProvDomId + apiProvDomInfo: apiProvDomInfo + suppFeat: suppFeat + properties: + apiProvDomId: + description: | + API provider domain ID assigned by the CAPIF core function to the API management function while registering the API provider domain. Shall not be present in the HTTP POST request from the API Management function to the CAPIF core function, to on-board itself. Shall be present in all other HTTP requests and responses. + readOnly: true + type: string + regSec: + description: | + Security information necessary for the CAPIF core function to validate the registration of the API provider domain. Shall be present in HTTP POST request from API management function to CAPIF core function for API provider domain registration. + type: string + apiProvFuncs: + description: | + A list of individual API provider domain functions details. When included by the API management function in the HTTP request message, it lists the API provider domain functions that the API management function intends to register/update in registration or update registration procedure. When included by the CAPIF core function in the HTTP response message, it lists the API domain functions details that are registered or updated successfully. + items: + $ref: '#/components/schemas/APIProviderFunctionDetails' + minItems: 1 + type: array + apiProvDomInfo: + description: | + Generic information related to the API provider domain such as details of the API provider applications. + type: string + suppFeat: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + failReason: + description: | + Registration or update specific failure information of failed API provider domain function registrations.Shall be present in the HTTP response body if atleast one of the API provider domain function registration or update registration fails. + type: string + required: + - regSec + type: object + APIProviderFunctionDetails: + description: Represents API provider domain function's details. + example: + apiProvFuncId: apiProvFuncId + apiProvFuncInfo: apiProvFuncInfo + regInfo: + apiProvCert: apiProvCert + apiProvPubKey: apiProvPubKey + apiProvFuncRole: AEF + properties: + apiProvFuncId: + description: | + API provider domain functionID assigned by the CAPIF core function to the API provider domain function while registering/updating the API provider domain. Shall not be present in the HTTP POST request from the API management function to the CAPIF core function, to register itself. Shall be present in all other HTTP requests and responses. + type: string + regInfo: + $ref: '#/components/schemas/RegistrationInformation' + apiProvFuncRole: + $ref: '#/components/schemas/ApiProviderFuncRole' + apiProvFuncInfo: + description: | + Generic information related to the API provider domain function such as details of the API provider applications. + type: string + required: + - apiProvFuncRole + - regInfo + type: object + RegistrationInformation: + description: | + Represents registration information of an individual API provider domain function. + example: + apiProvCert: apiProvCert + apiProvPubKey: apiProvPubKey + properties: + apiProvPubKey: + description: Public Key of API Provider domain function. + type: string + apiProvCert: + description: API provider domain function's client certificate + type: string + required: + - apiProvPubKey + type: object + ApiProviderFuncRole: + anyOf: + - enum: + - AEF + - APF + - AMF + type: string + - description: | + This string provides forward-compatiblity with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - AEF: API provider function is API Exposing Function. + - APF: API provider function is API Publishing Function. + - AMF: API Provider function is API Management Function. + APIProviderEnrolmentDetailsPatch: + description: Represents an API provider domain's enrolment details. + properties: + apiProvFuncs: + description: "A list of individual API provider domain functions details.\ + \ When included by the API management function in the HTTP request message,\ + \ it lists the API provider domain functions that the API management function\ + \ intends to register/update in registration or update registration procedure.\ + \ \n" + items: + $ref: '#/components/schemas/APIProviderFunctionDetails' + minItems: 1 + type: array + apiProvDomInfo: + description: | + Generic information related to the API provider domain such as details of the API provider applications. + type: string + type: object + ProblemDetails: + description: Represents additional information and details on an error response. + properties: + type: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + title: + description: "A short, human-readable summary of the problem type. It should\ + \ not change from occurrence to occurrence of the problem." + type: string + status: + description: The HTTP status code for this occurrence of the problem. + type: integer + detail: + description: A human-readable explanation specific to this occurrence of + the problem. + type: string + instance: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + cause: + description: "A machine-readable application error cause specific to this\ + \ occurrence of the problem. This IE should be present and provide application-related\ + \ error information, if available." + type: string + invalidParams: + description: "Description of invalid parameters, for a request rejected\ + \ due to invalid parameters." + items: + $ref: '#/components/schemas/InvalidParam' + minItems: 1 + type: array + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + type: object + Uri: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + InvalidParam: + description: "Represents the description of invalid parameters, for a request\ + \ rejected due to invalid parameters." + properties: + param: + description: "Attribute's name encoded as a JSON Pointer, or header's name." + type: string + reason: + description: "A human-readable reason, e.g. \"must be a positive integer\"\ + ." + type: string + required: + - param + type: object + SupportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string diff --git a/internal/CapifApiProviderManagement/api_default.go b/internal/CapifApiProviderManagement/api_default.go new file mode 100644 index 0000000000000000000000000000000000000000..a4919098831ceae878e2044f19f5275b8b276f20 --- /dev/null +++ b/internal/CapifApiProviderManagement/api_default.go @@ -0,0 +1,642 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiRegistrationsPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + aPIProviderEnrolmentDetails *APIProviderEnrolmentDetails +} + +func (r ApiRegistrationsPostRequest) APIProviderEnrolmentDetails(aPIProviderEnrolmentDetails APIProviderEnrolmentDetails) ApiRegistrationsPostRequest { + r.aPIProviderEnrolmentDetails = &aPIProviderEnrolmentDetails + return r +} + +func (r ApiRegistrationsPostRequest) Execute() (*APIProviderEnrolmentDetails, *http.Response, error) { + return r.ApiService.RegistrationsPostExecute(r) +} + +/* +RegistrationsPost Method for RegistrationsPost + +Registers a new API Provider domain with API provider domain functions profiles. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRegistrationsPostRequest +*/ +func (a *DefaultAPIService) RegistrationsPost(ctx context.Context) ApiRegistrationsPostRequest { + return ApiRegistrationsPostRequest{ + ApiService: a, + ctx: ctx, + aPIProviderEnrolmentDetails: NewAPIProviderEnrolmentDetailsWithDefaults(), //Added by Ivan + } +} + +// Execute executes the request +// @return APIProviderEnrolmentDetails +func (a *DefaultAPIService) RegistrationsPostExecute(r ApiRegistrationsPostRequest) (*APIProviderEnrolmentDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIProviderEnrolmentDetails + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RegistrationsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/registrations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aPIProviderEnrolmentDetails == nil { + return localVarReturnValue, nil, reportError("aPIProviderEnrolmentDetails is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + + //Addition for needed Authorization header + localVarHeaderParams["Authorization"] = "Bearer " + r.aPIProviderEnrolmentDetails.RegSec + + // body params + localVarPostBody = r.aPIProviderEnrolmentDetails + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRegistrationsRegistrationIdDeleteRequest struct { + ctx context.Context + ApiService *DefaultAPIService + registrationId string +} + +func (r ApiRegistrationsRegistrationIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.RegistrationsRegistrationIdDeleteExecute(r) +} + +/* +RegistrationsRegistrationIdDelete Method for RegistrationsRegistrationIdDelete + +Deregisters API provider domain by deleting API provider domain and functions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param registrationId String identifying an registered API provider domain resource. + @return ApiRegistrationsRegistrationIdDeleteRequest +*/ +func (a *DefaultAPIService) RegistrationsRegistrationIdDelete(ctx context.Context, registrationId string) ApiRegistrationsRegistrationIdDeleteRequest { + return ApiRegistrationsRegistrationIdDeleteRequest{ + ApiService: a, + ctx: ctx, + registrationId: registrationId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) RegistrationsRegistrationIdDeleteExecute(r ApiRegistrationsRegistrationIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RegistrationsRegistrationIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/registrations/{registrationId}" + localVarPath = strings.Replace(localVarPath, "{"+"registrationId"+"}", url.PathEscape(parameterValueToString(r.registrationId, "registrationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRegistrationsRegistrationIdPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + registrationId string + aPIProviderEnrolmentDetails *APIProviderEnrolmentDetails +} + +// Representation of the API provider domain registration details to be updated in CAPIF core function. +func (r ApiRegistrationsRegistrationIdPutRequest) APIProviderEnrolmentDetails(aPIProviderEnrolmentDetails APIProviderEnrolmentDetails) ApiRegistrationsRegistrationIdPutRequest { + r.aPIProviderEnrolmentDetails = &aPIProviderEnrolmentDetails + return r +} + +func (r ApiRegistrationsRegistrationIdPutRequest) Execute() (*APIProviderEnrolmentDetails, *http.Response, error) { + return r.ApiService.RegistrationsRegistrationIdPutExecute(r) +} + +/* +RegistrationsRegistrationIdPut Method for RegistrationsRegistrationIdPut + +Updates an API provider domain's registration details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param registrationId String identifying an registered API provider domain resource. + @return ApiRegistrationsRegistrationIdPutRequest +*/ +func (a *DefaultAPIService) RegistrationsRegistrationIdPut(ctx context.Context, registrationId string) ApiRegistrationsRegistrationIdPutRequest { + return ApiRegistrationsRegistrationIdPutRequest{ + ApiService: a, + ctx: ctx, + registrationId: registrationId, + } +} + +// Execute executes the request +// @return APIProviderEnrolmentDetails +func (a *DefaultAPIService) RegistrationsRegistrationIdPutExecute(r ApiRegistrationsRegistrationIdPutRequest) (*APIProviderEnrolmentDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIProviderEnrolmentDetails + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RegistrationsRegistrationIdPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/registrations/{registrationId}" + localVarPath = strings.Replace(localVarPath, "{"+"registrationId"+"}", url.PathEscape(parameterValueToString(r.registrationId, "registrationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aPIProviderEnrolmentDetails == nil { + return localVarReturnValue, nil, reportError("aPIProviderEnrolmentDetails is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aPIProviderEnrolmentDetails + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifApiProviderManagement/api_individual_api_provider_enrolment_details.go b/internal/CapifApiProviderManagement/api_individual_api_provider_enrolment_details.go new file mode 100644 index 0000000000000000000000000000000000000000..d4c06673558aa89f1317273c92ed3827ad08fc1c --- /dev/null +++ b/internal/CapifApiProviderManagement/api_individual_api_provider_enrolment_details.go @@ -0,0 +1,248 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// IndividualAPIProviderEnrolmentDetailsAPIService IndividualAPIProviderEnrolmentDetailsAPI service +type IndividualAPIProviderEnrolmentDetailsAPIService service + +type ApiModifyIndApiProviderEnrolmentRequest struct { + ctx context.Context + ApiService *IndividualAPIProviderEnrolmentDetailsAPIService + registrationId string + aPIProviderEnrolmentDetailsPatch *APIProviderEnrolmentDetailsPatch +} + +func (r ApiModifyIndApiProviderEnrolmentRequest) APIProviderEnrolmentDetailsPatch(aPIProviderEnrolmentDetailsPatch APIProviderEnrolmentDetailsPatch) ApiModifyIndApiProviderEnrolmentRequest { + r.aPIProviderEnrolmentDetailsPatch = &aPIProviderEnrolmentDetailsPatch + return r +} + +func (r ApiModifyIndApiProviderEnrolmentRequest) Execute() (*APIProviderEnrolmentDetails, *http.Response, error) { + return r.ApiService.ModifyIndApiProviderEnrolmentExecute(r) +} + +/* +ModifyIndApiProviderEnrolment Method for ModifyIndApiProviderEnrolment + +Modify an individual API provider details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param registrationId + @return ApiModifyIndApiProviderEnrolmentRequest +*/ +func (a *IndividualAPIProviderEnrolmentDetailsAPIService) ModifyIndApiProviderEnrolment(ctx context.Context, registrationId string) ApiModifyIndApiProviderEnrolmentRequest { + return ApiModifyIndApiProviderEnrolmentRequest{ + ApiService: a, + ctx: ctx, + registrationId: registrationId, + } +} + +// Execute executes the request +// @return APIProviderEnrolmentDetails +func (a *IndividualAPIProviderEnrolmentDetailsAPIService) ModifyIndApiProviderEnrolmentExecute(r ApiModifyIndApiProviderEnrolmentRequest) (*APIProviderEnrolmentDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIProviderEnrolmentDetails + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IndividualAPIProviderEnrolmentDetailsAPIService.ModifyIndApiProviderEnrolment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/registrations/{registrationId}" + localVarPath = strings.Replace(localVarPath, "{"+"registrationId"+"}", url.PathEscape(parameterValueToString(r.registrationId, "registrationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aPIProviderEnrolmentDetailsPatch == nil { + return localVarReturnValue, nil, reportError("aPIProviderEnrolmentDetailsPatch is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aPIProviderEnrolmentDetailsPatch + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifApiProviderManagement/client.go b/internal/CapifApiProviderManagement/client.go new file mode 100644 index 0000000000000000000000000000000000000000..ecf34c9e6945f8dee5e3eb7d54be9abde15f013f --- /dev/null +++ b/internal/CapifApiProviderManagement/client.go @@ -0,0 +1,663 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the CAPIF_API_Provider_Management_API API v1.1.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI *DefaultAPIService + + IndividualAPIProviderEnrolmentDetailsAPI *IndividualAPIProviderEnrolmentDetailsAPIService +} + +type service struct { + client *APIClient +} + +// 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 *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.IndividualAPIProviderEnrolmentDetailsAPI = (*IndividualAPIProviderEnrolmentDetailsAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/internal/CapifApiProviderManagement/configuration.go b/internal/CapifApiProviderManagement/configuration.go new file mode 100644 index 0000000000000000000000000000000000000000..60f984334c0b8ef349246fdc58fc1e1d4764b45f --- /dev/null +++ b/internal/CapifApiProviderManagement/configuration.go @@ -0,0 +1,221 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/0.0.1/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "{apiRoot}/api-provider-management/v1", + Description: "No description provided", + Variables: map[string]ServerVariable{ + "apiRoot": ServerVariable{ + Description: "apiRoot as defined in clause 7.5 of 3GPP TS 29.222", + DefaultValue: "https://example.com", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/internal/CapifApiProviderManagement/docs/APIProviderEnrolmentDetails.md b/internal/CapifApiProviderManagement/docs/APIProviderEnrolmentDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..ca14a50cefb2755db226372935303a9d8e521000 --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/APIProviderEnrolmentDetails.md @@ -0,0 +1,181 @@ +# APIProviderEnrolmentDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiProvDomId** | Pointer to **string** | API provider domain ID assigned by the CAPIF core function to the API management function while registering the API provider domain. Shall not be present in the HTTP POST request from the API Management function to the CAPIF core function, to on-board itself. Shall be present in all other HTTP requests and responses. | [optional] [readonly] +**RegSec** | **string** | Security information necessary for the CAPIF core function to validate the registration of the API provider domain. Shall be present in HTTP POST request from API management function to CAPIF core function for API provider domain registration. | +**ApiProvFuncs** | Pointer to [**[]APIProviderFunctionDetails**](APIProviderFunctionDetails.md) | A list of individual API provider domain functions details. When included by the API management function in the HTTP request message, it lists the API provider domain functions that the API management function intends to register/update in registration or update registration procedure. When included by the CAPIF core function in the HTTP response message, it lists the API domain functions details that are registered or updated successfully. | [optional] +**ApiProvDomInfo** | Pointer to **string** | Generic information related to the API provider domain such as details of the API provider applications. | [optional] +**SuppFeat** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**FailReason** | Pointer to **string** | Registration or update specific failure information of failed API provider domain function registrations.Shall be present in the HTTP response body if atleast one of the API provider domain function registration or update registration fails. | [optional] + +## Methods + +### NewAPIProviderEnrolmentDetails + +`func NewAPIProviderEnrolmentDetails(regSec string, ) *APIProviderEnrolmentDetails` + +NewAPIProviderEnrolmentDetails instantiates a new APIProviderEnrolmentDetails 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 + +### NewAPIProviderEnrolmentDetailsWithDefaults + +`func NewAPIProviderEnrolmentDetailsWithDefaults() *APIProviderEnrolmentDetails` + +NewAPIProviderEnrolmentDetailsWithDefaults instantiates a new APIProviderEnrolmentDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiProvDomId + +`func (o *APIProviderEnrolmentDetails) GetApiProvDomId() string` + +GetApiProvDomId returns the ApiProvDomId field if non-nil, zero value otherwise. + +### GetApiProvDomIdOk + +`func (o *APIProviderEnrolmentDetails) GetApiProvDomIdOk() (*string, bool)` + +GetApiProvDomIdOk returns a tuple with the ApiProvDomId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvDomId + +`func (o *APIProviderEnrolmentDetails) SetApiProvDomId(v string)` + +SetApiProvDomId sets ApiProvDomId field to given value. + +### HasApiProvDomId + +`func (o *APIProviderEnrolmentDetails) HasApiProvDomId() bool` + +HasApiProvDomId returns a boolean if a field has been set. + +### GetRegSec + +`func (o *APIProviderEnrolmentDetails) GetRegSec() string` + +GetRegSec returns the RegSec field if non-nil, zero value otherwise. + +### GetRegSecOk + +`func (o *APIProviderEnrolmentDetails) GetRegSecOk() (*string, bool)` + +GetRegSecOk returns a tuple with the RegSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegSec + +`func (o *APIProviderEnrolmentDetails) SetRegSec(v string)` + +SetRegSec sets RegSec field to given value. + + +### GetApiProvFuncs + +`func (o *APIProviderEnrolmentDetails) GetApiProvFuncs() []APIProviderFunctionDetails` + +GetApiProvFuncs returns the ApiProvFuncs field if non-nil, zero value otherwise. + +### GetApiProvFuncsOk + +`func (o *APIProviderEnrolmentDetails) GetApiProvFuncsOk() (*[]APIProviderFunctionDetails, bool)` + +GetApiProvFuncsOk returns a tuple with the ApiProvFuncs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvFuncs + +`func (o *APIProviderEnrolmentDetails) SetApiProvFuncs(v []APIProviderFunctionDetails)` + +SetApiProvFuncs sets ApiProvFuncs field to given value. + +### HasApiProvFuncs + +`func (o *APIProviderEnrolmentDetails) HasApiProvFuncs() bool` + +HasApiProvFuncs returns a boolean if a field has been set. + +### GetApiProvDomInfo + +`func (o *APIProviderEnrolmentDetails) GetApiProvDomInfo() string` + +GetApiProvDomInfo returns the ApiProvDomInfo field if non-nil, zero value otherwise. + +### GetApiProvDomInfoOk + +`func (o *APIProviderEnrolmentDetails) GetApiProvDomInfoOk() (*string, bool)` + +GetApiProvDomInfoOk returns a tuple with the ApiProvDomInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvDomInfo + +`func (o *APIProviderEnrolmentDetails) SetApiProvDomInfo(v string)` + +SetApiProvDomInfo sets ApiProvDomInfo field to given value. + +### HasApiProvDomInfo + +`func (o *APIProviderEnrolmentDetails) HasApiProvDomInfo() bool` + +HasApiProvDomInfo returns a boolean if a field has been set. + +### GetSuppFeat + +`func (o *APIProviderEnrolmentDetails) GetSuppFeat() string` + +GetSuppFeat returns the SuppFeat field if non-nil, zero value otherwise. + +### GetSuppFeatOk + +`func (o *APIProviderEnrolmentDetails) GetSuppFeatOk() (*string, bool)` + +GetSuppFeatOk returns a tuple with the SuppFeat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuppFeat + +`func (o *APIProviderEnrolmentDetails) SetSuppFeat(v string)` + +SetSuppFeat sets SuppFeat field to given value. + +### HasSuppFeat + +`func (o *APIProviderEnrolmentDetails) HasSuppFeat() bool` + +HasSuppFeat returns a boolean if a field has been set. + +### GetFailReason + +`func (o *APIProviderEnrolmentDetails) GetFailReason() string` + +GetFailReason returns the FailReason field if non-nil, zero value otherwise. + +### GetFailReasonOk + +`func (o *APIProviderEnrolmentDetails) GetFailReasonOk() (*string, bool)` + +GetFailReasonOk returns a tuple with the FailReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailReason + +`func (o *APIProviderEnrolmentDetails) SetFailReason(v string)` + +SetFailReason sets FailReason field to given value. + +### HasFailReason + +`func (o *APIProviderEnrolmentDetails) HasFailReason() bool` + +HasFailReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/docs/APIProviderEnrolmentDetailsPatch.md b/internal/CapifApiProviderManagement/docs/APIProviderEnrolmentDetailsPatch.md new file mode 100644 index 0000000000000000000000000000000000000000..ce07afa24ed0fef6cea498fcc2479e28c983686e --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/APIProviderEnrolmentDetailsPatch.md @@ -0,0 +1,82 @@ +# APIProviderEnrolmentDetailsPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiProvFuncs** | Pointer to [**[]APIProviderFunctionDetails**](APIProviderFunctionDetails.md) | A list of individual API provider domain functions details. When included by the API management function in the HTTP request message, it lists the API provider domain functions that the API management function intends to register/update in registration or update registration procedure. | [optional] +**ApiProvDomInfo** | Pointer to **string** | Generic information related to the API provider domain such as details of the API provider applications. | [optional] + +## Methods + +### NewAPIProviderEnrolmentDetailsPatch + +`func NewAPIProviderEnrolmentDetailsPatch() *APIProviderEnrolmentDetailsPatch` + +NewAPIProviderEnrolmentDetailsPatch instantiates a new APIProviderEnrolmentDetailsPatch 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 + +### NewAPIProviderEnrolmentDetailsPatchWithDefaults + +`func NewAPIProviderEnrolmentDetailsPatchWithDefaults() *APIProviderEnrolmentDetailsPatch` + +NewAPIProviderEnrolmentDetailsPatchWithDefaults instantiates a new APIProviderEnrolmentDetailsPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiProvFuncs + +`func (o *APIProviderEnrolmentDetailsPatch) GetApiProvFuncs() []APIProviderFunctionDetails` + +GetApiProvFuncs returns the ApiProvFuncs field if non-nil, zero value otherwise. + +### GetApiProvFuncsOk + +`func (o *APIProviderEnrolmentDetailsPatch) GetApiProvFuncsOk() (*[]APIProviderFunctionDetails, bool)` + +GetApiProvFuncsOk returns a tuple with the ApiProvFuncs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvFuncs + +`func (o *APIProviderEnrolmentDetailsPatch) SetApiProvFuncs(v []APIProviderFunctionDetails)` + +SetApiProvFuncs sets ApiProvFuncs field to given value. + +### HasApiProvFuncs + +`func (o *APIProviderEnrolmentDetailsPatch) HasApiProvFuncs() bool` + +HasApiProvFuncs returns a boolean if a field has been set. + +### GetApiProvDomInfo + +`func (o *APIProviderEnrolmentDetailsPatch) GetApiProvDomInfo() string` + +GetApiProvDomInfo returns the ApiProvDomInfo field if non-nil, zero value otherwise. + +### GetApiProvDomInfoOk + +`func (o *APIProviderEnrolmentDetailsPatch) GetApiProvDomInfoOk() (*string, bool)` + +GetApiProvDomInfoOk returns a tuple with the ApiProvDomInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvDomInfo + +`func (o *APIProviderEnrolmentDetailsPatch) SetApiProvDomInfo(v string)` + +SetApiProvDomInfo sets ApiProvDomInfo field to given value. + +### HasApiProvDomInfo + +`func (o *APIProviderEnrolmentDetailsPatch) HasApiProvDomInfo() bool` + +HasApiProvDomInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/docs/APIProviderFunctionDetails.md b/internal/CapifApiProviderManagement/docs/APIProviderFunctionDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..0468794a7836e627abb46d04861aaa1951e5cf18 --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/APIProviderFunctionDetails.md @@ -0,0 +1,124 @@ +# APIProviderFunctionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiProvFuncId** | Pointer to **string** | API provider domain functionID assigned by the CAPIF core function to the API provider domain function while registering/updating the API provider domain. Shall not be present in the HTTP POST request from the API management function to the CAPIF core function, to register itself. Shall be present in all other HTTP requests and responses. | [optional] +**RegInfo** | [**RegistrationInformation**](RegistrationInformation.md) | | +**ApiProvFuncRole** | [**ApiProviderFuncRole**](ApiProviderFuncRole.md) | | +**ApiProvFuncInfo** | Pointer to **string** | Generic information related to the API provider domain function such as details of the API provider applications. | [optional] + +## Methods + +### NewAPIProviderFunctionDetails + +`func NewAPIProviderFunctionDetails(regInfo RegistrationInformation, apiProvFuncRole ApiProviderFuncRole, ) *APIProviderFunctionDetails` + +NewAPIProviderFunctionDetails instantiates a new APIProviderFunctionDetails 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 + +### NewAPIProviderFunctionDetailsWithDefaults + +`func NewAPIProviderFunctionDetailsWithDefaults() *APIProviderFunctionDetails` + +NewAPIProviderFunctionDetailsWithDefaults instantiates a new APIProviderFunctionDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiProvFuncId + +`func (o *APIProviderFunctionDetails) GetApiProvFuncId() string` + +GetApiProvFuncId returns the ApiProvFuncId field if non-nil, zero value otherwise. + +### GetApiProvFuncIdOk + +`func (o *APIProviderFunctionDetails) GetApiProvFuncIdOk() (*string, bool)` + +GetApiProvFuncIdOk returns a tuple with the ApiProvFuncId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvFuncId + +`func (o *APIProviderFunctionDetails) SetApiProvFuncId(v string)` + +SetApiProvFuncId sets ApiProvFuncId field to given value. + +### HasApiProvFuncId + +`func (o *APIProviderFunctionDetails) HasApiProvFuncId() bool` + +HasApiProvFuncId returns a boolean if a field has been set. + +### GetRegInfo + +`func (o *APIProviderFunctionDetails) GetRegInfo() RegistrationInformation` + +GetRegInfo returns the RegInfo field if non-nil, zero value otherwise. + +### GetRegInfoOk + +`func (o *APIProviderFunctionDetails) GetRegInfoOk() (*RegistrationInformation, bool)` + +GetRegInfoOk returns a tuple with the RegInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegInfo + +`func (o *APIProviderFunctionDetails) SetRegInfo(v RegistrationInformation)` + +SetRegInfo sets RegInfo field to given value. + + +### GetApiProvFuncRole + +`func (o *APIProviderFunctionDetails) GetApiProvFuncRole() ApiProviderFuncRole` + +GetApiProvFuncRole returns the ApiProvFuncRole field if non-nil, zero value otherwise. + +### GetApiProvFuncRoleOk + +`func (o *APIProviderFunctionDetails) GetApiProvFuncRoleOk() (*ApiProviderFuncRole, bool)` + +GetApiProvFuncRoleOk returns a tuple with the ApiProvFuncRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvFuncRole + +`func (o *APIProviderFunctionDetails) SetApiProvFuncRole(v ApiProviderFuncRole)` + +SetApiProvFuncRole sets ApiProvFuncRole field to given value. + + +### GetApiProvFuncInfo + +`func (o *APIProviderFunctionDetails) GetApiProvFuncInfo() string` + +GetApiProvFuncInfo returns the ApiProvFuncInfo field if non-nil, zero value otherwise. + +### GetApiProvFuncInfoOk + +`func (o *APIProviderFunctionDetails) GetApiProvFuncInfoOk() (*string, bool)` + +GetApiProvFuncInfoOk returns a tuple with the ApiProvFuncInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvFuncInfo + +`func (o *APIProviderFunctionDetails) SetApiProvFuncInfo(v string)` + +SetApiProvFuncInfo sets ApiProvFuncInfo field to given value. + +### HasApiProvFuncInfo + +`func (o *APIProviderFunctionDetails) HasApiProvFuncInfo() bool` + +HasApiProvFuncInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/docs/ApiProviderFuncRole.md b/internal/CapifApiProviderManagement/docs/ApiProviderFuncRole.md new file mode 100644 index 0000000000000000000000000000000000000000..c5a40990fabfaf7b6cb97272f4b2fe167182ab1c --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/ApiProviderFuncRole.md @@ -0,0 +1,30 @@ +# ApiProviderFuncRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewApiProviderFuncRole + +`func NewApiProviderFuncRole() *ApiProviderFuncRole` + +NewApiProviderFuncRole instantiates a new ApiProviderFuncRole 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 + +### NewApiProviderFuncRoleWithDefaults + +`func NewApiProviderFuncRoleWithDefaults() *ApiProviderFuncRole` + +NewApiProviderFuncRoleWithDefaults instantiates a new ApiProviderFuncRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/docs/DefaultAPI.md b/internal/CapifApiProviderManagement/docs/DefaultAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..5ac6fdfda138933ac8bd7f144d28462425d39e15 --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/DefaultAPI.md @@ -0,0 +1,217 @@ +# \DefaultAPI + +All URIs are relative to *https://example.com/api-provider-management/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**RegistrationsPost**](DefaultAPI.md#RegistrationsPost) | **Post** /registrations | +[**RegistrationsRegistrationIdDelete**](DefaultAPI.md#RegistrationsRegistrationIdDelete) | **Delete** /registrations/{registrationId} | +[**RegistrationsRegistrationIdPut**](DefaultAPI.md#RegistrationsRegistrationIdPut) | **Put** /registrations/{registrationId} | + + + +## RegistrationsPost + +> APIProviderEnrolmentDetails RegistrationsPost(ctx).APIProviderEnrolmentDetails(aPIProviderEnrolmentDetails).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + aPIProviderEnrolmentDetails := *openapiclient.NewAPIProviderEnrolmentDetails("RegSec_example") // APIProviderEnrolmentDetails | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.RegistrationsPost(context.Background()).APIProviderEnrolmentDetails(aPIProviderEnrolmentDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RegistrationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RegistrationsPost`: APIProviderEnrolmentDetails + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RegistrationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRegistrationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aPIProviderEnrolmentDetails** | [**APIProviderEnrolmentDetails**](APIProviderEnrolmentDetails.md) | | + +### Return type + +[**APIProviderEnrolmentDetails**](APIProviderEnrolmentDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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) + + +## RegistrationsRegistrationIdDelete + +> RegistrationsRegistrationIdDelete(ctx, registrationId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + registrationId := "registrationId_example" // string | String identifying an registered API provider domain resource. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.RegistrationsRegistrationIdDelete(context.Background(), registrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RegistrationsRegistrationIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**registrationId** | **string** | String identifying an registered API provider domain resource. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRegistrationsRegistrationIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/problem+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) + + +## RegistrationsRegistrationIdPut + +> APIProviderEnrolmentDetails RegistrationsRegistrationIdPut(ctx, registrationId).APIProviderEnrolmentDetails(aPIProviderEnrolmentDetails).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + registrationId := "registrationId_example" // string | String identifying an registered API provider domain resource. + aPIProviderEnrolmentDetails := *openapiclient.NewAPIProviderEnrolmentDetails("RegSec_example") // APIProviderEnrolmentDetails | Representation of the API provider domain registration details to be updated in CAPIF core function. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.RegistrationsRegistrationIdPut(context.Background(), registrationId).APIProviderEnrolmentDetails(aPIProviderEnrolmentDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RegistrationsRegistrationIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RegistrationsRegistrationIdPut`: APIProviderEnrolmentDetails + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RegistrationsRegistrationIdPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**registrationId** | **string** | String identifying an registered API provider domain resource. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRegistrationsRegistrationIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **aPIProviderEnrolmentDetails** | [**APIProviderEnrolmentDetails**](APIProviderEnrolmentDetails.md) | Representation of the API provider domain registration details to be updated in CAPIF core function. | + +### Return type + +[**APIProviderEnrolmentDetails**](APIProviderEnrolmentDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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/internal/CapifApiProviderManagement/docs/IndividualAPIProviderEnrolmentDetailsAPI.md b/internal/CapifApiProviderManagement/docs/IndividualAPIProviderEnrolmentDetailsAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..6b616fc24aba83ade06899d2d4e409be61147e67 --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/IndividualAPIProviderEnrolmentDetailsAPI.md @@ -0,0 +1,81 @@ +# \IndividualAPIProviderEnrolmentDetailsAPI + +All URIs are relative to *https://example.com/api-provider-management/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ModifyIndApiProviderEnrolment**](IndividualAPIProviderEnrolmentDetailsAPI.md#ModifyIndApiProviderEnrolment) | **Patch** /registrations/{registrationId} | + + + +## ModifyIndApiProviderEnrolment + +> APIProviderEnrolmentDetails ModifyIndApiProviderEnrolment(ctx, registrationId).APIProviderEnrolmentDetailsPatch(aPIProviderEnrolmentDetailsPatch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + registrationId := "registrationId_example" // string | + aPIProviderEnrolmentDetailsPatch := *openapiclient.NewAPIProviderEnrolmentDetailsPatch() // APIProviderEnrolmentDetailsPatch | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IndividualAPIProviderEnrolmentDetailsAPI.ModifyIndApiProviderEnrolment(context.Background(), registrationId).APIProviderEnrolmentDetailsPatch(aPIProviderEnrolmentDetailsPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IndividualAPIProviderEnrolmentDetailsAPI.ModifyIndApiProviderEnrolment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ModifyIndApiProviderEnrolment`: APIProviderEnrolmentDetails + fmt.Fprintf(os.Stdout, "Response from `IndividualAPIProviderEnrolmentDetailsAPI.ModifyIndApiProviderEnrolment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**registrationId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiModifyIndApiProviderEnrolmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **aPIProviderEnrolmentDetailsPatch** | [**APIProviderEnrolmentDetailsPatch**](APIProviderEnrolmentDetailsPatch.md) | | + +### Return type + +[**APIProviderEnrolmentDetails**](APIProviderEnrolmentDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/merge-patch+json +- **Accept**: application/json, application/problem+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/internal/CapifApiProviderManagement/docs/InvalidParam.md b/internal/CapifApiProviderManagement/docs/InvalidParam.md new file mode 100644 index 0000000000000000000000000000000000000000..f809021f398e0f4e40114ee3686d7c45edd829fe --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/InvalidParam.md @@ -0,0 +1,77 @@ +# InvalidParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Param** | **string** | Attribute's name encoded as a JSON Pointer, or header's name. | +**Reason** | Pointer to **string** | A human-readable reason, e.g. \"must be a positive integer\". | [optional] + +## Methods + +### NewInvalidParam + +`func NewInvalidParam(param string, ) *InvalidParam` + +NewInvalidParam instantiates a new InvalidParam 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 + +### NewInvalidParamWithDefaults + +`func NewInvalidParamWithDefaults() *InvalidParam` + +NewInvalidParamWithDefaults instantiates a new InvalidParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParam + +`func (o *InvalidParam) GetParam() string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *InvalidParam) GetParamOk() (*string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *InvalidParam) SetParam(v string)` + +SetParam sets Param field to given value. + + +### GetReason + +`func (o *InvalidParam) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InvalidParam) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InvalidParam) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InvalidParam) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/docs/ProblemDetails.md b/internal/CapifApiProviderManagement/docs/ProblemDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..0f3b997d8cd366e0219cbf8828307d3241a1cdaf --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/ProblemDetails.md @@ -0,0 +1,238 @@ +# ProblemDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Title** | Pointer to **string** | A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. | [optional] +**Status** | Pointer to **int32** | The HTTP status code for this occurrence of the problem. | [optional] +**Detail** | Pointer to **string** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**Instance** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Cause** | Pointer to **string** | A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. | [optional] +**InvalidParams** | Pointer to [**[]InvalidParam**](InvalidParam.md) | Description of invalid parameters, for a request rejected due to invalid parameters. | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewProblemDetails + +`func NewProblemDetails() *ProblemDetails` + +NewProblemDetails instantiates a new ProblemDetails 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 + +### NewProblemDetailsWithDefaults + +`func NewProblemDetailsWithDefaults() *ProblemDetails` + +NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ProblemDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProblemDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProblemDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProblemDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTitle + +`func (o *ProblemDetails) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ProblemDetails) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ProblemDetails) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ProblemDetails) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProblemDetails) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProblemDetails) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProblemDetails) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ProblemDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDetail + +`func (o *ProblemDetails) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ProblemDetails) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ProblemDetails) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ProblemDetails) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetInstance + +`func (o *ProblemDetails) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ProblemDetails) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ProblemDetails) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ProblemDetails) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetCause + +`func (o *ProblemDetails) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ProblemDetails) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ProblemDetails) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ProblemDetails) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInvalidParams + +`func (o *ProblemDetails) GetInvalidParams() []InvalidParam` + +GetInvalidParams returns the InvalidParams field if non-nil, zero value otherwise. + +### GetInvalidParamsOk + +`func (o *ProblemDetails) GetInvalidParamsOk() (*[]InvalidParam, bool)` + +GetInvalidParamsOk returns a tuple with the InvalidParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidParams + +`func (o *ProblemDetails) SetInvalidParams(v []InvalidParam)` + +SetInvalidParams sets InvalidParams field to given value. + +### HasInvalidParams + +`func (o *ProblemDetails) HasInvalidParams() bool` + +HasInvalidParams returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ProblemDetails) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ProblemDetails) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ProblemDetails) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/docs/RegistrationInformation.md b/internal/CapifApiProviderManagement/docs/RegistrationInformation.md new file mode 100644 index 0000000000000000000000000000000000000000..4c326889977568aef0a3444ff835c46b8a1cc968 --- /dev/null +++ b/internal/CapifApiProviderManagement/docs/RegistrationInformation.md @@ -0,0 +1,77 @@ +# RegistrationInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiProvPubKey** | **string** | Public Key of API Provider domain function. | +**ApiProvCert** | Pointer to **string** | API provider domain function's client certificate | [optional] + +## Methods + +### NewRegistrationInformation + +`func NewRegistrationInformation(apiProvPubKey string, ) *RegistrationInformation` + +NewRegistrationInformation instantiates a new RegistrationInformation 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 + +### NewRegistrationInformationWithDefaults + +`func NewRegistrationInformationWithDefaults() *RegistrationInformation` + +NewRegistrationInformationWithDefaults instantiates a new RegistrationInformation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiProvPubKey + +`func (o *RegistrationInformation) GetApiProvPubKey() string` + +GetApiProvPubKey returns the ApiProvPubKey field if non-nil, zero value otherwise. + +### GetApiProvPubKeyOk + +`func (o *RegistrationInformation) GetApiProvPubKeyOk() (*string, bool)` + +GetApiProvPubKeyOk returns a tuple with the ApiProvPubKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvPubKey + +`func (o *RegistrationInformation) SetApiProvPubKey(v string)` + +SetApiProvPubKey sets ApiProvPubKey field to given value. + + +### GetApiProvCert + +`func (o *RegistrationInformation) GetApiProvCert() string` + +GetApiProvCert returns the ApiProvCert field if non-nil, zero value otherwise. + +### GetApiProvCertOk + +`func (o *RegistrationInformation) GetApiProvCertOk() (*string, bool)` + +GetApiProvCertOk returns a tuple with the ApiProvCert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiProvCert + +`func (o *RegistrationInformation) SetApiProvCert(v string)` + +SetApiProvCert sets ApiProvCert field to given value. + +### HasApiProvCert + +`func (o *RegistrationInformation) HasApiProvCert() bool` + +HasApiProvCert returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifApiProviderManagement/go.sum b/internal/CapifApiProviderManagement/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..c966c8ddfd0dc3dad992126bb0eb50503ecce01a --- /dev/null +++ b/internal/CapifApiProviderManagement/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/internal/CapifApiProviderManagement/model_api_provider_enrolment_details.go b/internal/CapifApiProviderManagement/model_api_provider_enrolment_details.go new file mode 100644 index 0000000000000000000000000000000000000000..f677026a0ce736b55518e6b6c5ded95f638a725f --- /dev/null +++ b/internal/CapifApiProviderManagement/model_api_provider_enrolment_details.go @@ -0,0 +1,344 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the APIProviderEnrolmentDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIProviderEnrolmentDetails{} + +// APIProviderEnrolmentDetails Represents an API provider domain's enrolment details. +type APIProviderEnrolmentDetails struct { + // API provider domain ID assigned by the CAPIF core function to the API management function while registering the API provider domain. Shall not be present in the HTTP POST request from the API Management function to the CAPIF core function, to on-board itself. Shall be present in all other HTTP requests and responses. + ApiProvDomId *string `json:"apiProvDomId,omitempty"` + // Security information necessary for the CAPIF core function to validate the registration of the API provider domain. Shall be present in HTTP POST request from API management function to CAPIF core function for API provider domain registration. + RegSec string `json:"regSec"` + // A list of individual API provider domain functions details. When included by the API management function in the HTTP request message, it lists the API provider domain functions that the API management function intends to register/update in registration or update registration procedure. When included by the CAPIF core function in the HTTP response message, it lists the API domain functions details that are registered or updated successfully. + ApiProvFuncs []APIProviderFunctionDetails `json:"apiProvFuncs,omitempty"` + // Generic information related to the API provider domain such as details of the API provider applications. + ApiProvDomInfo *string `json:"apiProvDomInfo,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SuppFeat *string `json:"suppFeat,omitempty"` + // Registration or update specific failure information of failed API provider domain function registrations.Shall be present in the HTTP response body if atleast one of the API provider domain function registration or update registration fails. + FailReason *string `json:"failReason,omitempty"` +} + +type _APIProviderEnrolmentDetails APIProviderEnrolmentDetails + +// NewAPIProviderEnrolmentDetails instantiates a new APIProviderEnrolmentDetails 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 NewAPIProviderEnrolmentDetails(regSec string) *APIProviderEnrolmentDetails { + this := APIProviderEnrolmentDetails{} + this.RegSec = regSec + return &this +} + +// NewAPIProviderEnrolmentDetailsWithDefaults instantiates a new APIProviderEnrolmentDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIProviderEnrolmentDetailsWithDefaults() *APIProviderEnrolmentDetails { + this := APIProviderEnrolmentDetails{} + return &this +} + +// GetApiProvDomId returns the ApiProvDomId field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetails) GetApiProvDomId() string { + if o == nil || IsNil(o.ApiProvDomId) { + var ret string + return ret + } + return *o.ApiProvDomId +} + +// GetApiProvDomIdOk returns a tuple with the ApiProvDomId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetails) GetApiProvDomIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiProvDomId) { + return nil, false + } + return o.ApiProvDomId, true +} + +// HasApiProvDomId returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetails) HasApiProvDomId() bool { + if o != nil && !IsNil(o.ApiProvDomId) { + return true + } + + return false +} + +// SetApiProvDomId gets a reference to the given string and assigns it to the ApiProvDomId field. +func (o *APIProviderEnrolmentDetails) SetApiProvDomId(v string) { + o.ApiProvDomId = &v +} + +// GetRegSec returns the RegSec field value +func (o *APIProviderEnrolmentDetails) GetRegSec() string { + if o == nil { + var ret string + return ret + } + + return o.RegSec +} + +// GetRegSecOk returns a tuple with the RegSec field value +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetails) GetRegSecOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RegSec, true +} + +// SetRegSec sets field value +func (o *APIProviderEnrolmentDetails) SetRegSec(v string) { + o.RegSec = v +} + +// GetApiProvFuncs returns the ApiProvFuncs field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetails) GetApiProvFuncs() []APIProviderFunctionDetails { + if o == nil || IsNil(o.ApiProvFuncs) { + var ret []APIProviderFunctionDetails + return ret + } + return o.ApiProvFuncs +} + +// GetApiProvFuncsOk returns a tuple with the ApiProvFuncs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetails) GetApiProvFuncsOk() ([]APIProviderFunctionDetails, bool) { + if o == nil || IsNil(o.ApiProvFuncs) { + return nil, false + } + return o.ApiProvFuncs, true +} + +// HasApiProvFuncs returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetails) HasApiProvFuncs() bool { + if o != nil && !IsNil(o.ApiProvFuncs) { + return true + } + + return false +} + +// SetApiProvFuncs gets a reference to the given []APIProviderFunctionDetails and assigns it to the ApiProvFuncs field. +func (o *APIProviderEnrolmentDetails) SetApiProvFuncs(v []APIProviderFunctionDetails) { + o.ApiProvFuncs = v +} + +// GetApiProvDomInfo returns the ApiProvDomInfo field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetails) GetApiProvDomInfo() string { + if o == nil || IsNil(o.ApiProvDomInfo) { + var ret string + return ret + } + return *o.ApiProvDomInfo +} + +// GetApiProvDomInfoOk returns a tuple with the ApiProvDomInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetails) GetApiProvDomInfoOk() (*string, bool) { + if o == nil || IsNil(o.ApiProvDomInfo) { + return nil, false + } + return o.ApiProvDomInfo, true +} + +// HasApiProvDomInfo returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetails) HasApiProvDomInfo() bool { + if o != nil && !IsNil(o.ApiProvDomInfo) { + return true + } + + return false +} + +// SetApiProvDomInfo gets a reference to the given string and assigns it to the ApiProvDomInfo field. +func (o *APIProviderEnrolmentDetails) SetApiProvDomInfo(v string) { + o.ApiProvDomInfo = &v +} + +// GetSuppFeat returns the SuppFeat field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetails) GetSuppFeat() string { + if o == nil || IsNil(o.SuppFeat) { + var ret string + return ret + } + return *o.SuppFeat +} + +// GetSuppFeatOk returns a tuple with the SuppFeat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetails) GetSuppFeatOk() (*string, bool) { + if o == nil || IsNil(o.SuppFeat) { + return nil, false + } + return o.SuppFeat, true +} + +// HasSuppFeat returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetails) HasSuppFeat() bool { + if o != nil && !IsNil(o.SuppFeat) { + return true + } + + return false +} + +// SetSuppFeat gets a reference to the given string and assigns it to the SuppFeat field. +func (o *APIProviderEnrolmentDetails) SetSuppFeat(v string) { + o.SuppFeat = &v +} + +// GetFailReason returns the FailReason field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetails) GetFailReason() string { + if o == nil || IsNil(o.FailReason) { + var ret string + return ret + } + return *o.FailReason +} + +// GetFailReasonOk returns a tuple with the FailReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetails) GetFailReasonOk() (*string, bool) { + if o == nil || IsNil(o.FailReason) { + return nil, false + } + return o.FailReason, true +} + +// HasFailReason returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetails) HasFailReason() bool { + if o != nil && !IsNil(o.FailReason) { + return true + } + + return false +} + +// SetFailReason gets a reference to the given string and assigns it to the FailReason field. +func (o *APIProviderEnrolmentDetails) SetFailReason(v string) { + o.FailReason = &v +} + +func (o APIProviderEnrolmentDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIProviderEnrolmentDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiProvDomId) { + toSerialize["apiProvDomId"] = o.ApiProvDomId + } + toSerialize["regSec"] = o.RegSec + if !IsNil(o.ApiProvFuncs) { + toSerialize["apiProvFuncs"] = o.ApiProvFuncs + } + if !IsNil(o.ApiProvDomInfo) { + toSerialize["apiProvDomInfo"] = o.ApiProvDomInfo + } + if !IsNil(o.SuppFeat) { + toSerialize["suppFeat"] = o.SuppFeat + } + if !IsNil(o.FailReason) { + toSerialize["failReason"] = o.FailReason + } + return toSerialize, nil +} + +func (o *APIProviderEnrolmentDetails) UnmarshalJSON(data []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{ + "regSec", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAPIProviderEnrolmentDetails := _APIProviderEnrolmentDetails{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIProviderEnrolmentDetails) + + if err != nil { + return err + } + + *o = APIProviderEnrolmentDetails(varAPIProviderEnrolmentDetails) + + return err +} + +type NullableAPIProviderEnrolmentDetails struct { + value *APIProviderEnrolmentDetails + isSet bool +} + +func (v NullableAPIProviderEnrolmentDetails) Get() *APIProviderEnrolmentDetails { + return v.value +} + +func (v *NullableAPIProviderEnrolmentDetails) Set(val *APIProviderEnrolmentDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAPIProviderEnrolmentDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIProviderEnrolmentDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIProviderEnrolmentDetails(val *APIProviderEnrolmentDetails) *NullableAPIProviderEnrolmentDetails { + return &NullableAPIProviderEnrolmentDetails{value: val, isSet: true} +} + +func (v NullableAPIProviderEnrolmentDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIProviderEnrolmentDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/model_api_provider_enrolment_details_patch.go b/internal/CapifApiProviderManagement/model_api_provider_enrolment_details_patch.go new file mode 100644 index 0000000000000000000000000000000000000000..3332473aa19e477930331af7a983624af8dae935 --- /dev/null +++ b/internal/CapifApiProviderManagement/model_api_provider_enrolment_details_patch.go @@ -0,0 +1,164 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" +) + +// checks if the APIProviderEnrolmentDetailsPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIProviderEnrolmentDetailsPatch{} + +// APIProviderEnrolmentDetailsPatch Represents an API provider domain's enrolment details. +type APIProviderEnrolmentDetailsPatch struct { + // A list of individual API provider domain functions details. When included by the API management function in the HTTP request message, it lists the API provider domain functions that the API management function intends to register/update in registration or update registration procedure. + ApiProvFuncs []APIProviderFunctionDetails `json:"apiProvFuncs,omitempty"` + // Generic information related to the API provider domain such as details of the API provider applications. + ApiProvDomInfo *string `json:"apiProvDomInfo,omitempty"` +} + +// NewAPIProviderEnrolmentDetailsPatch instantiates a new APIProviderEnrolmentDetailsPatch 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 NewAPIProviderEnrolmentDetailsPatch() *APIProviderEnrolmentDetailsPatch { + this := APIProviderEnrolmentDetailsPatch{} + return &this +} + +// NewAPIProviderEnrolmentDetailsPatchWithDefaults instantiates a new APIProviderEnrolmentDetailsPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIProviderEnrolmentDetailsPatchWithDefaults() *APIProviderEnrolmentDetailsPatch { + this := APIProviderEnrolmentDetailsPatch{} + return &this +} + +// GetApiProvFuncs returns the ApiProvFuncs field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetailsPatch) GetApiProvFuncs() []APIProviderFunctionDetails { + if o == nil || IsNil(o.ApiProvFuncs) { + var ret []APIProviderFunctionDetails + return ret + } + return o.ApiProvFuncs +} + +// GetApiProvFuncsOk returns a tuple with the ApiProvFuncs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetailsPatch) GetApiProvFuncsOk() ([]APIProviderFunctionDetails, bool) { + if o == nil || IsNil(o.ApiProvFuncs) { + return nil, false + } + return o.ApiProvFuncs, true +} + +// HasApiProvFuncs returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetailsPatch) HasApiProvFuncs() bool { + if o != nil && !IsNil(o.ApiProvFuncs) { + return true + } + + return false +} + +// SetApiProvFuncs gets a reference to the given []APIProviderFunctionDetails and assigns it to the ApiProvFuncs field. +func (o *APIProviderEnrolmentDetailsPatch) SetApiProvFuncs(v []APIProviderFunctionDetails) { + o.ApiProvFuncs = v +} + +// GetApiProvDomInfo returns the ApiProvDomInfo field value if set, zero value otherwise. +func (o *APIProviderEnrolmentDetailsPatch) GetApiProvDomInfo() string { + if o == nil || IsNil(o.ApiProvDomInfo) { + var ret string + return ret + } + return *o.ApiProvDomInfo +} + +// GetApiProvDomInfoOk returns a tuple with the ApiProvDomInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderEnrolmentDetailsPatch) GetApiProvDomInfoOk() (*string, bool) { + if o == nil || IsNil(o.ApiProvDomInfo) { + return nil, false + } + return o.ApiProvDomInfo, true +} + +// HasApiProvDomInfo returns a boolean if a field has been set. +func (o *APIProviderEnrolmentDetailsPatch) HasApiProvDomInfo() bool { + if o != nil && !IsNil(o.ApiProvDomInfo) { + return true + } + + return false +} + +// SetApiProvDomInfo gets a reference to the given string and assigns it to the ApiProvDomInfo field. +func (o *APIProviderEnrolmentDetailsPatch) SetApiProvDomInfo(v string) { + o.ApiProvDomInfo = &v +} + +func (o APIProviderEnrolmentDetailsPatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIProviderEnrolmentDetailsPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiProvFuncs) { + toSerialize["apiProvFuncs"] = o.ApiProvFuncs + } + if !IsNil(o.ApiProvDomInfo) { + toSerialize["apiProvDomInfo"] = o.ApiProvDomInfo + } + return toSerialize, nil +} + +type NullableAPIProviderEnrolmentDetailsPatch struct { + value *APIProviderEnrolmentDetailsPatch + isSet bool +} + +func (v NullableAPIProviderEnrolmentDetailsPatch) Get() *APIProviderEnrolmentDetailsPatch { + return v.value +} + +func (v *NullableAPIProviderEnrolmentDetailsPatch) Set(val *APIProviderEnrolmentDetailsPatch) { + v.value = val + v.isSet = true +} + +func (v NullableAPIProviderEnrolmentDetailsPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIProviderEnrolmentDetailsPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIProviderEnrolmentDetailsPatch(val *APIProviderEnrolmentDetailsPatch) *NullableAPIProviderEnrolmentDetailsPatch { + return &NullableAPIProviderEnrolmentDetailsPatch{value: val, isSet: true} +} + +func (v NullableAPIProviderEnrolmentDetailsPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIProviderEnrolmentDetailsPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/model_api_provider_func_role.go b/internal/CapifApiProviderManagement/model_api_provider_func_role.go new file mode 100644 index 0000000000000000000000000000000000000000..1e5818e046c94b3bea88ae85a3d9498c5f992f91 --- /dev/null +++ b/internal/CapifApiProviderManagement/model_api_provider_func_role.go @@ -0,0 +1,87 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" + "fmt" +) + +// ApiProviderFuncRole Possible values are: - AEF: API provider function is API Exposing Function. - APF: API provider function is API Publishing Function. - AMF: API Provider function is API Management Function. +type ApiProviderFuncRole struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *ApiProviderFuncRole) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(ApiProviderFuncRole)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *ApiProviderFuncRole) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableApiProviderFuncRole struct { + value *ApiProviderFuncRole + isSet bool +} + +func (v NullableApiProviderFuncRole) Get() *ApiProviderFuncRole { + return v.value +} + +func (v *NullableApiProviderFuncRole) Set(val *ApiProviderFuncRole) { + v.value = val + v.isSet = true +} + +func (v NullableApiProviderFuncRole) IsSet() bool { + return v.isSet +} + +func (v *NullableApiProviderFuncRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApiProviderFuncRole(val *ApiProviderFuncRole) *NullableApiProviderFuncRole { + return &NullableApiProviderFuncRole{value: val, isSet: true} +} + +func (v NullableApiProviderFuncRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApiProviderFuncRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/model_api_provider_function_details.go b/internal/CapifApiProviderManagement/model_api_provider_function_details.go new file mode 100644 index 0000000000000000000000000000000000000000..17156558dc9e8065dece03094401de138ec64b3d --- /dev/null +++ b/internal/CapifApiProviderManagement/model_api_provider_function_details.go @@ -0,0 +1,266 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the APIProviderFunctionDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIProviderFunctionDetails{} + +// APIProviderFunctionDetails Represents API provider domain function's details. +type APIProviderFunctionDetails struct { + // API provider domain functionID assigned by the CAPIF core function to the API provider domain function while registering/updating the API provider domain. Shall not be present in the HTTP POST request from the API management function to the CAPIF core function, to register itself. Shall be present in all other HTTP requests and responses. + ApiProvFuncId *string `json:"apiProvFuncId,omitempty"` + RegInfo RegistrationInformation `json:"regInfo"` + //ApiProvFuncRole ApiProviderFuncRole `json:"apiProvFuncRole"` + ApiProvFuncRole *string `json:"apiProvFuncRole"` + // Generic information related to the API provider domain function such as details of the API provider applications. + ApiProvFuncInfo *string `json:"apiProvFuncInfo,omitempty"` +} + +type _APIProviderFunctionDetails APIProviderFunctionDetails + +// NewAPIProviderFunctionDetails instantiates a new APIProviderFunctionDetails 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 NewAPIProviderFunctionDetails(regInfo RegistrationInformation, apiProvFuncRole ApiProviderFuncRole) *APIProviderFunctionDetails { +func NewAPIProviderFunctionDetails(regInfo RegistrationInformation, apiProvFuncRole *string) *APIProviderFunctionDetails { + this := APIProviderFunctionDetails{} + this.RegInfo = regInfo + this.ApiProvFuncRole = apiProvFuncRole + return &this +} + +// NewAPIProviderFunctionDetailsWithDefaults instantiates a new APIProviderFunctionDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIProviderFunctionDetailsWithDefaults() *APIProviderFunctionDetails { + this := APIProviderFunctionDetails{} + return &this +} + +// GetApiProvFuncId returns the ApiProvFuncId field value if set, zero value otherwise. +func (o *APIProviderFunctionDetails) GetApiProvFuncId() string { + if o == nil || IsNil(o.ApiProvFuncId) { + var ret string + return ret + } + return *o.ApiProvFuncId +} + +// GetApiProvFuncIdOk returns a tuple with the ApiProvFuncId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderFunctionDetails) GetApiProvFuncIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiProvFuncId) { + return nil, false + } + return o.ApiProvFuncId, true +} + +// HasApiProvFuncId returns a boolean if a field has been set. +func (o *APIProviderFunctionDetails) HasApiProvFuncId() bool { + if o != nil && !IsNil(o.ApiProvFuncId) { + return true + } + + return false +} + +// SetApiProvFuncId gets a reference to the given string and assigns it to the ApiProvFuncId field. +func (o *APIProviderFunctionDetails) SetApiProvFuncId(v string) { + o.ApiProvFuncId = &v +} + +// GetRegInfo returns the RegInfo field value +func (o *APIProviderFunctionDetails) GetRegInfo() RegistrationInformation { + if o == nil { + var ret RegistrationInformation + return ret + } + + return o.RegInfo +} + +// GetRegInfoOk returns a tuple with the RegInfo field value +// and a boolean to check if the value has been set. +func (o *APIProviderFunctionDetails) GetRegInfoOk() (*RegistrationInformation, bool) { + if o == nil { + return nil, false + } + return &o.RegInfo, true +} + +// SetRegInfo sets field value +func (o *APIProviderFunctionDetails) SetRegInfo(v RegistrationInformation) { + o.RegInfo = v +} + +// GetApiProvFuncRole returns the ApiProvFuncRole field value +//func (o *APIProviderFunctionDetails) GetApiProvFuncRole() ApiProviderFuncRole { +func (o *APIProviderFunctionDetails) GetApiProvFuncRole() *string { + if o == nil { + //var ret ApiProviderFuncRole + var ret *string + return ret + } + + return o.ApiProvFuncRole +} + +// GetApiProvFuncRoleOk returns a tuple with the ApiProvFuncRole field value +// and a boolean to check if the value has been set. +//func (o *APIProviderFunctionDetails) GetApiProvFuncRoleOk() (*ApiProviderFuncRole, bool) { +func (o *APIProviderFunctionDetails) GetApiProvFuncRoleOk() (**string, bool) { + if o == nil { + return nil, false + } + return &o.ApiProvFuncRole, true +} + +// SetApiProvFuncRole sets field value +//func (o *APIProviderFunctionDetails) SetApiProvFuncRole(v ApiProviderFuncRole) { +func (o *APIProviderFunctionDetails) SetApiProvFuncRole(v *string) { + o.ApiProvFuncRole = v +} + +// GetApiProvFuncInfo returns the ApiProvFuncInfo field value if set, zero value otherwise. +func (o *APIProviderFunctionDetails) GetApiProvFuncInfo() string { + if o == nil || IsNil(o.ApiProvFuncInfo) { + var ret string + return ret + } + return *o.ApiProvFuncInfo +} + +// GetApiProvFuncInfoOk returns a tuple with the ApiProvFuncInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIProviderFunctionDetails) GetApiProvFuncInfoOk() (*string, bool) { + if o == nil || IsNil(o.ApiProvFuncInfo) { + return nil, false + } + return o.ApiProvFuncInfo, true +} + +// HasApiProvFuncInfo returns a boolean if a field has been set. +func (o *APIProviderFunctionDetails) HasApiProvFuncInfo() bool { + if o != nil && !IsNil(o.ApiProvFuncInfo) { + return true + } + + return false +} + +// SetApiProvFuncInfo gets a reference to the given string and assigns it to the ApiProvFuncInfo field. +func (o *APIProviderFunctionDetails) SetApiProvFuncInfo(v string) { + o.ApiProvFuncInfo = &v +} + +func (o APIProviderFunctionDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIProviderFunctionDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiProvFuncId) { + toSerialize["apiProvFuncId"] = o.ApiProvFuncId + } + toSerialize["regInfo"] = o.RegInfo + toSerialize["apiProvFuncRole"] = o.ApiProvFuncRole + if !IsNil(o.ApiProvFuncInfo) { + toSerialize["apiProvFuncInfo"] = o.ApiProvFuncInfo + } + return toSerialize, nil +} + +func (o *APIProviderFunctionDetails) UnmarshalJSON(data []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{ + "regInfo", + "apiProvFuncRole", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAPIProviderFunctionDetails := _APIProviderFunctionDetails{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIProviderFunctionDetails) + + if err != nil { + return err + } + + *o = APIProviderFunctionDetails(varAPIProviderFunctionDetails) + + return err +} + +type NullableAPIProviderFunctionDetails struct { + value *APIProviderFunctionDetails + isSet bool +} + +func (v NullableAPIProviderFunctionDetails) Get() *APIProviderFunctionDetails { + return v.value +} + +func (v *NullableAPIProviderFunctionDetails) Set(val *APIProviderFunctionDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAPIProviderFunctionDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIProviderFunctionDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIProviderFunctionDetails(val *APIProviderFunctionDetails) *NullableAPIProviderFunctionDetails { + return &NullableAPIProviderFunctionDetails{value: val, isSet: true} +} + +func (v NullableAPIProviderFunctionDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIProviderFunctionDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/model_invalid_param.go b/internal/CapifApiProviderManagement/model_invalid_param.go new file mode 100644 index 0000000000000000000000000000000000000000..b202aa2fc26474cbbe2296e6810bd0a433ce44c4 --- /dev/null +++ b/internal/CapifApiProviderManagement/model_invalid_param.go @@ -0,0 +1,196 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InvalidParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvalidParam{} + +// InvalidParam Represents the description of invalid parameters, for a request rejected due to invalid parameters. +type InvalidParam struct { + // Attribute's name encoded as a JSON Pointer, or header's name. + Param string `json:"param"` + // A human-readable reason, e.g. \"must be a positive integer\". + Reason *string `json:"reason,omitempty"` +} + +type _InvalidParam InvalidParam + +// NewInvalidParam instantiates a new InvalidParam 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 NewInvalidParam(param string) *InvalidParam { + this := InvalidParam{} + this.Param = param + return &this +} + +// NewInvalidParamWithDefaults instantiates a new InvalidParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvalidParamWithDefaults() *InvalidParam { + this := InvalidParam{} + return &this +} + +// GetParam returns the Param field value +func (o *InvalidParam) GetParam() string { + if o == nil { + var ret string + return ret + } + + return o.Param +} + +// GetParamOk returns a tuple with the Param field value +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetParamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Param, true +} + +// SetParam sets field value +func (o *InvalidParam) SetParam(v string) { + o.Param = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InvalidParam) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InvalidParam) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InvalidParam) SetReason(v string) { + o.Reason = &v +} + +func (o InvalidParam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvalidParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["param"] = o.Param + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *InvalidParam) UnmarshalJSON(data []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{ + "param", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varInvalidParam := _InvalidParam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInvalidParam) + + if err != nil { + return err + } + + *o = InvalidParam(varInvalidParam) + + return err +} + +type NullableInvalidParam struct { + value *InvalidParam + isSet bool +} + +func (v NullableInvalidParam) Get() *InvalidParam { + return v.value +} + +func (v *NullableInvalidParam) Set(val *InvalidParam) { + v.value = val + v.isSet = true +} + +func (v NullableInvalidParam) IsSet() bool { + return v.isSet +} + +func (v *NullableInvalidParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvalidParam(val *InvalidParam) *NullableInvalidParam { + return &NullableInvalidParam{value: val, isSet: true} +} + +func (v NullableInvalidParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvalidParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/model_problem_details.go b/internal/CapifApiProviderManagement/model_problem_details.go new file mode 100644 index 0000000000000000000000000000000000000000..665bb8bbfe3d8b628562cef1f0bf1ead96031e04 --- /dev/null +++ b/internal/CapifApiProviderManagement/model_problem_details.go @@ -0,0 +1,386 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" +) + +// checks if the ProblemDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProblemDetails{} + +// ProblemDetails Represents additional information and details on an error response. +type ProblemDetails struct { + // string providing an URI formatted according to IETF RFC 3986. + Type *string `json:"type,omitempty"` + // A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. + Title *string `json:"title,omitempty"` + // The HTTP status code for this occurrence of the problem. + Status *int32 `json:"status,omitempty"` + // A human-readable explanation specific to this occurrence of the problem. + Detail *string `json:"detail,omitempty"` + // string providing an URI formatted according to IETF RFC 3986. + Instance *string `json:"instance,omitempty"` + // A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + Cause *string `json:"cause,omitempty"` + // Description of invalid parameters, for a request rejected due to invalid parameters. + InvalidParams []InvalidParam `json:"invalidParams,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` +} + +// NewProblemDetails instantiates a new ProblemDetails 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 NewProblemDetails() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProblemDetailsWithDefaults() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProblemDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProblemDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProblemDetails) SetType(v string) { + o.Type = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ProblemDetails) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ProblemDetails) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ProblemDetails) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ProblemDetails) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ProblemDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ProblemDetails) SetStatus(v int32) { + o.Status = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ProblemDetails) GetDetail() string { + if o == nil || IsNil(o.Detail) { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetDetailOk() (*string, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ProblemDetails) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ProblemDetails) SetDetail(v string) { + o.Detail = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ProblemDetails) GetInstance() string { + if o == nil || IsNil(o.Instance) { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInstanceOk() (*string, bool) { + if o == nil || IsNil(o.Instance) { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ProblemDetails) HasInstance() bool { + if o != nil && !IsNil(o.Instance) { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ProblemDetails) SetInstance(v string) { + o.Instance = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ProblemDetails) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ProblemDetails) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ProblemDetails) SetCause(v string) { + o.Cause = &v +} + +// GetInvalidParams returns the InvalidParams field value if set, zero value otherwise. +func (o *ProblemDetails) GetInvalidParams() []InvalidParam { + if o == nil || IsNil(o.InvalidParams) { + var ret []InvalidParam + return ret + } + return o.InvalidParams +} + +// GetInvalidParamsOk returns a tuple with the InvalidParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInvalidParamsOk() ([]InvalidParam, bool) { + if o == nil || IsNil(o.InvalidParams) { + return nil, false + } + return o.InvalidParams, true +} + +// HasInvalidParams returns a boolean if a field has been set. +func (o *ProblemDetails) HasInvalidParams() bool { + if o != nil && !IsNil(o.InvalidParams) { + return true + } + + return false +} + +// SetInvalidParams gets a reference to the given []InvalidParam and assigns it to the InvalidParams field. +func (o *ProblemDetails) SetInvalidParams(v []InvalidParam) { + o.InvalidParams = v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ProblemDetails) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ProblemDetails) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ProblemDetails) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o ProblemDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProblemDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + if !IsNil(o.Instance) { + toSerialize["instance"] = o.Instance + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.InvalidParams) { + toSerialize["invalidParams"] = o.InvalidParams + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +type NullableProblemDetails struct { + value *ProblemDetails + isSet bool +} + +func (v NullableProblemDetails) Get() *ProblemDetails { + return v.value +} + +func (v *NullableProblemDetails) Set(val *ProblemDetails) { + v.value = val + v.isSet = true +} + +func (v NullableProblemDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableProblemDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProblemDetails(val *ProblemDetails) *NullableProblemDetails { + return &NullableProblemDetails{value: val, isSet: true} +} + +func (v NullableProblemDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProblemDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/model_registration_information.go b/internal/CapifApiProviderManagement/model_registration_information.go new file mode 100644 index 0000000000000000000000000000000000000000..72016b4aa9f9fd9755315a1d5132e60ec8a54436 --- /dev/null +++ b/internal/CapifApiProviderManagement/model_registration_information.go @@ -0,0 +1,196 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RegistrationInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RegistrationInformation{} + +// RegistrationInformation Represents registration information of an individual API provider domain function. +type RegistrationInformation struct { + // Public Key of API Provider domain function. + ApiProvPubKey string `json:"apiProvPubKey"` + // API provider domain function's client certificate + ApiProvCert *string `json:"apiProvCert,omitempty"` +} + +type _RegistrationInformation RegistrationInformation + +// NewRegistrationInformation instantiates a new RegistrationInformation 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 NewRegistrationInformation(apiProvPubKey string) *RegistrationInformation { + this := RegistrationInformation{} + this.ApiProvPubKey = apiProvPubKey + return &this +} + +// NewRegistrationInformationWithDefaults instantiates a new RegistrationInformation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRegistrationInformationWithDefaults() *RegistrationInformation { + this := RegistrationInformation{} + return &this +} + +// GetApiProvPubKey returns the ApiProvPubKey field value +func (o *RegistrationInformation) GetApiProvPubKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiProvPubKey +} + +// GetApiProvPubKeyOk returns a tuple with the ApiProvPubKey field value +// and a boolean to check if the value has been set. +func (o *RegistrationInformation) GetApiProvPubKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiProvPubKey, true +} + +// SetApiProvPubKey sets field value +func (o *RegistrationInformation) SetApiProvPubKey(v string) { + o.ApiProvPubKey = v +} + +// GetApiProvCert returns the ApiProvCert field value if set, zero value otherwise. +func (o *RegistrationInformation) GetApiProvCert() string { + if o == nil || IsNil(o.ApiProvCert) { + var ret string + return ret + } + return *o.ApiProvCert +} + +// GetApiProvCertOk returns a tuple with the ApiProvCert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistrationInformation) GetApiProvCertOk() (*string, bool) { + if o == nil || IsNil(o.ApiProvCert) { + return nil, false + } + return o.ApiProvCert, true +} + +// HasApiProvCert returns a boolean if a field has been set. +func (o *RegistrationInformation) HasApiProvCert() bool { + if o != nil && !IsNil(o.ApiProvCert) { + return true + } + + return false +} + +// SetApiProvCert gets a reference to the given string and assigns it to the ApiProvCert field. +func (o *RegistrationInformation) SetApiProvCert(v string) { + o.ApiProvCert = &v +} + +func (o RegistrationInformation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RegistrationInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiProvPubKey"] = o.ApiProvPubKey + if !IsNil(o.ApiProvCert) { + toSerialize["apiProvCert"] = o.ApiProvCert + } + return toSerialize, nil +} + +func (o *RegistrationInformation) UnmarshalJSON(data []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{ + "apiProvPubKey", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varRegistrationInformation := _RegistrationInformation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRegistrationInformation) + + if err != nil { + return err + } + + *o = RegistrationInformation(varRegistrationInformation) + + return err +} + +type NullableRegistrationInformation struct { + value *RegistrationInformation + isSet bool +} + +func (v NullableRegistrationInformation) Get() *RegistrationInformation { + return v.value +} + +func (v *NullableRegistrationInformation) Set(val *RegistrationInformation) { + v.value = val + v.isSet = true +} + +func (v NullableRegistrationInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistrationInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistrationInformation(val *RegistrationInformation) *NullableRegistrationInformation { + return &NullableRegistrationInformation{value: val, isSet: true} +} + +func (v NullableRegistrationInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistrationInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifApiProviderManagement/response.go b/internal/CapifApiProviderManagement/response.go new file mode 100644 index 0000000000000000000000000000000000000000..b02c5a648cb32cba9135b7a0e2f7fbac94d1b9bc --- /dev/null +++ b/internal/CapifApiProviderManagement/response.go @@ -0,0 +1,47 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/internal/CapifApiProviderManagement/utils.go b/internal/CapifApiProviderManagement/utils.go new file mode 100644 index 0000000000000000000000000000000000000000..15490ee1e061b0cb8ef093deba95c9875343dabe --- /dev/null +++ b/internal/CapifApiProviderManagement/utils.go @@ -0,0 +1,347 @@ +/* +CAPIF_API_Provider_Management_API + +API for API provider domain functions management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifApiProviderManagement + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/internal/CapifDiscoverService/.gitignore b/internal/CapifDiscoverService/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..daf913b1b347aae6de6f48d599bc89ef8c8693d6 --- /dev/null +++ b/internal/CapifDiscoverService/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/internal/CapifDiscoverService/.openapi-generator-ignore b/internal/CapifDiscoverService/.openapi-generator-ignore new file mode 100644 index 0000000000000000000000000000000000000000..7484ee590a3894506cf063799b885428f95a71be --- /dev/null +++ b/internal/CapifDiscoverService/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/internal/CapifDiscoverService/.openapi-generator/FILES b/internal/CapifDiscoverService/.openapi-generator/FILES new file mode 100644 index 0000000000000000000000000000000000000000..198195cad6ffa88261c64e724aff92372631ebfd --- /dev/null +++ b/internal/CapifDiscoverService/.openapi-generator/FILES @@ -0,0 +1,85 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/AefLocation.md +docs/AefProfile.md +docs/CivicAddress.md +docs/CommunicationType.md +docs/CustomOperation.md +docs/DataFormat.md +docs/DefaultAPI.md +docs/DiscoveredAPIs.md +docs/EllipsoidArc.md +docs/GADShape.md +docs/GeographicArea.md +docs/GeographicalCoordinates.md +docs/InterfaceDescription.md +docs/InvalidParam.md +docs/Local2dPointUncertaintyEllipse.md +docs/Local3dPointUncertaintyEllipsoid.md +docs/LocalOrigin.md +docs/Operation.md +docs/Point.md +docs/PointAltitude.md +docs/PointAltitudeUncertainty.md +docs/PointUncertaintyCircle.md +docs/PointUncertaintyEllipse.md +docs/Polygon.md +docs/ProblemDetails.md +docs/Protocol.md +docs/PublishedApiPath.md +docs/RelativeCartesianLocation.md +docs/Resource.md +docs/SecurityMethod.md +docs/ServiceAPIDescription.md +docs/ShareableInformation.md +docs/SupportedGADShapes.md +docs/UncertaintyEllipse.md +docs/UncertaintyEllipsoid.md +docs/Version.md +git_push.sh +go.mod +go.sum +model_aef_location.go +model_aef_profile.go +model_civic_address.go +model_communication_type.go +model_custom_operation.go +model_data_format.go +model_discovered_apis.go +model_ellipsoid_arc.go +model_gad_shape.go +model_geographic_area.go +model_geographical_coordinates.go +model_interface_description.go +model_invalid_param.go +model_local2d_point_uncertainty_ellipse.go +model_local3d_point_uncertainty_ellipsoid.go +model_local_origin.go +model_operation.go +model_point.go +model_point_altitude.go +model_point_altitude_uncertainty.go +model_point_uncertainty_circle.go +model_point_uncertainty_ellipse.go +model_polygon.go +model_problem_details.go +model_protocol.go +model_published_api_path.go +model_relative_cartesian_location.go +model_resource.go +model_security_method.go +model_service_api_description.go +model_shareable_information.go +model_supported_gad_shapes.go +model_uncertainty_ellipse.go +model_uncertainty_ellipsoid.go +model_version.go +response.go +test/api_default_test.go +utils.go diff --git a/internal/CapifDiscoverService/.openapi-generator/VERSION b/internal/CapifDiscoverService/.openapi-generator/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..93c8ddab9fef3d606dcbc0d562545592cdc40dce --- /dev/null +++ b/internal/CapifDiscoverService/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.6.0 diff --git a/internal/CapifDiscoverService/.travis.yml b/internal/CapifDiscoverService/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..f5cb2ce9a5aad73c57eed886e845d2e79c2899d1 --- /dev/null +++ b/internal/CapifDiscoverService/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/internal/CapifDiscoverService/README.md b/internal/CapifDiscoverService/README.md new file mode 100644 index 0000000000000000000000000000000000000000..914b3dc373f7ffdb6596483504b9858f38069bbb --- /dev/null +++ b/internal/CapifDiscoverService/README.md @@ -0,0 +1,150 @@ +# Go API client for CapifDiscoverService + +API for discovering service APIs. +© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). +All rights reserved. + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.2.1 +- Package version: 1.0.0 +- Generator version: 7.6.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import CapifDiscoverService "github.com/GIT_USER_ID/GIT_REPO_ID" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `CapifDiscoverService.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), CapifDiscoverService.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `CapifDiscoverService.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), CapifDiscoverService.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +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 `CapifDiscoverService.ContextOperationServerIndices` and `CapifDiscoverService.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), CapifDiscoverService.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), CapifDiscoverService.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://example.com/service-apis/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultAPI* | [**AllServiceAPIsGet**](docs/DefaultAPI.md#allserviceapisget) | **Get** /allServiceAPIs | + + +## Documentation For Models + + - [AefLocation](docs/AefLocation.md) + - [AefProfile](docs/AefProfile.md) + - [CivicAddress](docs/CivicAddress.md) + - [CommunicationType](docs/CommunicationType.md) + - [CustomOperation](docs/CustomOperation.md) + - [DataFormat](docs/DataFormat.md) + - [DiscoveredAPIs](docs/DiscoveredAPIs.md) + - [EllipsoidArc](docs/EllipsoidArc.md) + - [GADShape](docs/GADShape.md) + - [GeographicArea](docs/GeographicArea.md) + - [GeographicalCoordinates](docs/GeographicalCoordinates.md) + - [InterfaceDescription](docs/InterfaceDescription.md) + - [InvalidParam](docs/InvalidParam.md) + - [Local2dPointUncertaintyEllipse](docs/Local2dPointUncertaintyEllipse.md) + - [Local3dPointUncertaintyEllipsoid](docs/Local3dPointUncertaintyEllipsoid.md) + - [LocalOrigin](docs/LocalOrigin.md) + - [Operation](docs/Operation.md) + - [Point](docs/Point.md) + - [PointAltitude](docs/PointAltitude.md) + - [PointAltitudeUncertainty](docs/PointAltitudeUncertainty.md) + - [PointUncertaintyCircle](docs/PointUncertaintyCircle.md) + - [PointUncertaintyEllipse](docs/PointUncertaintyEllipse.md) + - [Polygon](docs/Polygon.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [Protocol](docs/Protocol.md) + - [PublishedApiPath](docs/PublishedApiPath.md) + - [RelativeCartesianLocation](docs/RelativeCartesianLocation.md) + - [Resource](docs/Resource.md) + - [SecurityMethod](docs/SecurityMethod.md) + - [ServiceAPIDescription](docs/ServiceAPIDescription.md) + - [ShareableInformation](docs/ShareableInformation.md) + - [SupportedGADShapes](docs/SupportedGADShapes.md) + - [UncertaintyEllipse](docs/UncertaintyEllipse.md) + - [UncertaintyEllipsoid](docs/UncertaintyEllipsoid.md) + - [Version](docs/Version.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/internal/CapifDiscoverService/api/openapi.yaml b/internal/CapifDiscoverService/api/openapi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..da4a9c9efb0180087eda7ed4189b7c6a51fc73f6 --- /dev/null +++ b/internal/CapifDiscoverService/api/openapi.yaml @@ -0,0 +1,2161 @@ +openapi: 3.0.0 +info: + description: "API for discovering service APIs. \n© 2022, 3GPP Organizational Partners\ + \ (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). \nAll rights reserved.\n" + title: CAPIF_Discover_Service_API + version: 1.2.1 +externalDocs: + description: 3GPP TS 29.222 V17.6.0 Common API Framework for 3GPP Northbound APIs + url: https://www.3gpp.org/ftp/Specs/archive/29_series/29.222/ +servers: +- url: "{apiRoot}/service-apis/v1" + variables: + apiRoot: + default: https://example.com + description: apiRoot as defined in clause 7.5 of 3GPP TS 29.222. +paths: + /allServiceAPIs: + get: + description: | + Discover published service APIs and retrieve a collection of APIs according to certain filter criteria. + parameters: + - description: | + String identifying the API invoker assigned by the CAPIF core function. It also represents the CCF identifier in the CAPIF-6/6e interface. + explode: true + in: query + name: api-invoker-id + required: true + schema: + type: string + style: form + - description: | + API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + explode: true + in: query + name: api-name + required: false + schema: + type: string + style: form + - description: API major version the URI (e.g. v1). + explode: true + in: query + name: api-version + required: false + schema: + type: string + style: form + - description: Communication type used by the API (e.g. REQUEST_RESPONSE). + explode: true + in: query + name: comm-type + required: false + schema: + $ref: '#/components/schemas/CommunicationType' + style: form + - description: Protocol used by the API. + explode: true + in: query + name: protocol + required: false + schema: + $ref: '#/components/schemas/Protocol' + style: form + - description: AEF identifer. + explode: true + in: query + name: aef-id + required: false + schema: + type: string + style: form + - description: Data formats used by the API (e.g. serialization protocol JSON + used). + explode: true + in: query + name: data-format + required: false + schema: + $ref: '#/components/schemas/DataFormat' + style: form + - description: The service API category to which the service API belongs to. + explode: true + in: query + name: api-cat + required: false + schema: + type: string + style: form + - content: + application/json: + schema: + $ref: '#/components/schemas/AefLocation' + description: The preferred AEF location. + in: query + name: preferred-aef-loc + required: false + - description: Features supported by the NF consumer for the CAPIF Discover + Service API. + explode: true + in: query + name: supported-features + required: false + schema: + $ref: '#/components/schemas/SupportedFeatures' + style: form + - description: | + Features supported by the discovered service API indicated by api-name parameter. This may only be present if api-name query parameter is present. + explode: true + in: query + name: api-supported-features + required: false + schema: + $ref: '#/components/schemas/SupportedFeatures' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DiscoveredAPIs' + description: | + The response body contains the result of the search over the list of registered APIs. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "414": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: URI Too Long + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error +components: + responses: + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "414": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: URI Too Long + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + schemas: + DiscoveredAPIs: + description: | + Represents a list of APIs currently registered in the CAPIF core function and satisfying a number of filter criteria provided by the API consumer. + example: + serviceAPIDescriptions: + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + - serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + serviceAPIDescriptions: + description: | + Description of the service API as published by the service. Each service API description shall include AEF profiles matching the filter criteria. + items: + $ref: '#/components/schemas/ServiceAPIDescription' + minItems: 1 + type: array + type: object + CommunicationType: + anyOf: + - enum: + - REQUEST_RESPONSE + - SUBSCRIBE_NOTIFY + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - REQUEST_RESPONSE: The communication is of the type request-response + - SUBSCRIBE_NOTIFY: The communication is of the type subscribe-notify + Protocol: + anyOf: + - enum: + - HTTP_1_1 + - HTTP_2 + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - HTTP_1_1: HTTP version 1.1 + - HTTP_2: HTTP version 2 + DataFormat: + anyOf: + - enum: + - JSON + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - JSON: JavaScript Object Notation + AefLocation: + description: | + The location information (e.g. civic address, GPS coordinates, data center ID) where the AEF providing the service API is located. + example: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + properties: + civicAddr: + $ref: '#/components/schemas/CivicAddress' + geoArea: + $ref: '#/components/schemas/GeographicArea' + dcId: + description: | + Identifies the data center where the AEF providing the service API is located. + type: string + type: object + SupportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + ProblemDetails: + description: Represents additional information and details on an error response. + properties: + type: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + title: + description: "A short, human-readable summary of the problem type. It should\ + \ not change from occurrence to occurrence of the problem." + type: string + status: + description: The HTTP status code for this occurrence of the problem. + type: integer + detail: + description: A human-readable explanation specific to this occurrence of + the problem. + type: string + instance: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + cause: + description: "A machine-readable application error cause specific to this\ + \ occurrence of the problem. This IE should be present and provide application-related\ + \ error information, if available." + type: string + invalidParams: + description: "Description of invalid parameters, for a request rejected\ + \ due to invalid parameters." + items: + $ref: '#/components/schemas/InvalidParam' + minItems: 1 + type: array + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + type: object + Uri: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + InvalidParam: + description: "Represents the description of invalid parameters, for a request\ + \ rejected due to invalid parameters." + properties: + param: + description: "Attribute's name encoded as a JSON Pointer, or header's name." + type: string + reason: + description: "A human-readable reason, e.g. \"must be a positive integer\"\ + ." + type: string + required: + - param + type: object + ServiceAPIDescription: + description: Represents the description of a service API as published by the + APF. + example: + serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + apiName: + description: "API name, it is set as {apiName} part of the URI structure\ + \ as defined in clause 5.2.4 of 3GPP TS 29.122." + type: string + apiId: + description: | + API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). + type: string + aefProfiles: + description: | + AEF profile information, which includes the exposed API details (e.g. protocol). + items: + $ref: '#/components/schemas/AefProfile' + minItems: 1 + type: array + description: + description: Text description of the API + type: string + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + shareableInfo: + $ref: '#/components/schemas/ShareableInformation' + serviceAPICategory: + type: string + apiSuppFeats: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + pubApiPath: + $ref: '#/components/schemas/PublishedApiPath' + ccfId: + description: CAPIF core function identifier. + type: string + required: + - apiName + type: object + AefProfile: + description: Represents the AEF profile data. + example: + protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + aefId: + description: Identifier of the API exposing function + type: string + versions: + description: API version + items: + $ref: '#/components/schemas/Version' + minItems: 1 + type: array + protocol: + $ref: '#/components/schemas/Protocol' + dataFormat: + $ref: '#/components/schemas/DataFormat' + securityMethods: + description: Security methods supported by the AEF + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + domainName: + description: Domain to which API belongs to + type: string + interfaceDescriptions: + description: Interface details + items: + $ref: '#/components/schemas/InterfaceDescription' + minItems: 1 + type: array + aefLocation: + $ref: '#/components/schemas/AefLocation' + required: + - aefId + - versions + type: object + Version: + description: Represents the API version information. + example: + apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + properties: + apiVersion: + description: API major version in URI (e.g. v1) + type: string + expiry: + description: string with format "date-time" as defined in OpenAPI. + format: date-time + type: string + resources: + description: Resources supported by the API. + items: + $ref: '#/components/schemas/Resource' + minItems: 1 + type: array + custOperations: + description: Custom operations without resource association. + items: + $ref: '#/components/schemas/CustomOperation' + minItems: 1 + type: array + required: + - apiVersion + type: object + Resource: + description: Represents the API resource data. + example: + operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + properties: + resourceName: + description: Resource name + type: string + commType: + $ref: '#/components/schemas/CommunicationType' + uri: + description: | + Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + custOpName: + description: | + it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + operations: + description: | + Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + items: + $ref: '#/components/schemas/Operation' + minItems: 1 + type: array + description: + description: Text description of the API resource + type: string + required: + - commType + - resourceName + - uri + type: object + Operation: + anyOf: + - enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - GET: HTTP GET method + - POST: HTTP POST method + - PUT: HTTP PUT method + - PATCH: HTTP PATCH method + - DELETE: HTTP DELETE method + CustomOperation: + description: Represents the description of a custom operation. + example: + operations: + - null + - null + commType: null + description: description + custOpName: custOpName + properties: + commType: + $ref: '#/components/schemas/CommunicationType' + custOpName: + description: | + it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + operations: + description: | + Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + items: + $ref: '#/components/schemas/Operation' + minItems: 1 + type: array + description: + description: Text description of the custom operation + type: string + required: + - commType + - custOpName + type: object + SecurityMethod: + anyOf: + - enum: + - PSK + - PKI + - OAUTH + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 + - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 + - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 + InterfaceDescription: + description: Represents the description of an API's interface. + example: + ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted + decimal" notation as defined in IETF RFC 1166. + type: string + ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 + of IETF RFC 5952 shall not be used. + type: string + port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + securityMethods: + description: | + Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + type: object + ShareableInformation: + description: | + Indicates whether the service API and/or the service API category can be shared to the list of CAPIF provider domains. + example: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + properties: + isShareable: + description: | + Set to "true" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to "false". + type: boolean + capifProvDoms: + description: | + List of CAPIF provider domains to which the service API information to be shared. + items: + type: string + minItems: 1 + type: array + required: + - isShareable + type: object + PublishedApiPath: + description: Represents the published API path within the same CAPIF provider + domain. + example: + ccfIds: + - ccfIds + - ccfIds + properties: + ccfIds: + description: A list of CCF identifiers where the service API is already + published. + items: + type: string + minItems: 1 + type: array + type: object + CivicAddress: + description: Indicates a Civic address. + example: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + properties: + country: + type: string + A1: + type: string + A2: + type: string + A3: + type: string + A4: + type: string + A5: + type: string + A6: + type: string + PRD: + type: string + POD: + type: string + STS: + type: string + HNO: + type: string + HNS: + type: string + LMK: + type: string + LOC: + type: string + NAM: + type: string + PC: + type: string + BLD: + type: string + UNIT: + type: string + FLR: + type: string + ROOM: + type: string + PLC: + type: string + PCN: + type: string + POBOX: + type: string + ADDCODE: + type: string + SEAT: + type: string + RD: + type: string + RDSEC: + type: string + RDBR: + type: string + RDSUBBR: + type: string + PRM: + type: string + POM: + type: string + usageRules: + type: string + method: + type: string + providedBy: + type: string + type: object + GeographicArea: + anyOf: + - $ref: '#/components/schemas/Point' + - $ref: '#/components/schemas/PointUncertaintyCircle' + - $ref: '#/components/schemas/PointUncertaintyEllipse' + - $ref: '#/components/schemas/Polygon' + - $ref: '#/components/schemas/PointAltitude' + - $ref: '#/components/schemas/PointAltitudeUncertainty' + - $ref: '#/components/schemas/EllipsoidArc' + description: Geographic area specified by different shape. + Point: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + required: + - point + type: object + description: Ellipsoid Point. + example: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + GADShape: + description: Common base type for GAD shapes. + discriminator: + mapping: + POINT: '#/components/schemas/Point' + POINT_UNCERTAINTY_CIRCLE: '#/components/schemas/PointUncertaintyCircle' + POINT_UNCERTAINTY_ELLIPSE: '#/components/schemas/PointUncertaintyEllipse' + POLYGON: '#/components/schemas/Polygon' + POINT_ALTITUDE: '#/components/schemas/PointAltitude' + POINT_ALTITUDE_UNCERTAINTY: '#/components/schemas/PointAltitudeUncertainty' + ELLIPSOID_ARC: '#/components/schemas/EllipsoidArc' + LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE: '#/components/schemas/Local2dPointUncertaintyEllipse' + LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID: '#/components/schemas/Local3dPointUncertaintyEllipsoid' + propertyName: shape + properties: + shape: + $ref: '#/components/schemas/SupportedGADShapes' + required: + - shape + type: object + SupportedGADShapes: + anyOf: + - enum: + - POINT + - POINT_UNCERTAINTY_CIRCLE + - POINT_UNCERTAINTY_ELLIPSE + - POLYGON + - POINT_ALTITUDE + - POINT_ALTITUDE_UNCERTAINTY + - ELLIPSOID_ARC + - LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE + - LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID + type: string + - type: string + description: Indicates supported GAD shapes. + PointUncertaintyCircle: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + uncertainty: + $ref: '#/components/schemas/Uncertainty' + required: + - point + - uncertainty + type: object + description: Ellipsoid point with uncertainty circle. + GeographicalCoordinates: + description: Geographical coordinates. + example: + lon: 36.988422590534526 + lat: -63.615366350946985 + properties: + lon: + format: double + maximum: 180 + minimum: -180 + type: number + lat: + format: double + maximum: 90 + minimum: -90 + type: number + required: + - lat + - lon + type: object + Uncertainty: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + PointUncertaintyEllipse: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - point + - uncertaintyEllipse + type: object + description: Ellipsoid point with uncertainty ellipse. + UncertaintyEllipse: + description: Ellipse with uncertainty. + properties: + semiMajor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + semiMinor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + orientationMajor: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + required: + - orientationMajor + - semiMajor + - semiMinor + type: object + Orientation: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + Confidence: + description: Indicates value of confidence. + maximum: 100 + minimum: 0 + type: integer + Polygon: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + pointList: + $ref: '#/components/schemas/PointList' + required: + - pointList + type: object + description: Polygon. + PointList: + description: List of points. + items: + $ref: '#/components/schemas/GeographicalCoordinates' + maxItems: 15 + minItems: 3 + type: array + PointAltitude: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + altitude: + $ref: '#/components/schemas/Altitude' + required: + - altitude + - point + type: object + description: Ellipsoid point with altitude. + Altitude: + description: Indicates value of altitude. + format: double + maximum: 32767 + minimum: -32767 + type: number + PointAltitudeUncertainty: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + altitude: + $ref: '#/components/schemas/Altitude' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + uncertaintyAltitude: + $ref: '#/components/schemas/Uncertainty' + confidence: + $ref: '#/components/schemas/Confidence' + vConfidence: + $ref: '#/components/schemas/Confidence' + required: + - altitude + - confidence + - point + - uncertaintyAltitude + - uncertaintyEllipse + type: object + description: Ellipsoid point with altitude and uncertainty ellipsoid. + EllipsoidArc: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + innerRadius: + $ref: '#/components/schemas/InnerRadius' + uncertaintyRadius: + $ref: '#/components/schemas/Uncertainty' + offsetAngle: + $ref: '#/components/schemas/Angle' + includedAngle: + $ref: '#/components/schemas/Angle' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - includedAngle + - innerRadius + - offsetAngle + - point + - uncertaintyRadius + type: object + description: Ellipsoid Arc. + InnerRadius: + description: Indicates value of the inner radius. + format: int32 + maximum: 327675 + minimum: 0 + type: integer + Angle: + description: Indicates value of angle. + maximum: 360 + minimum: 0 + type: integer + Local2dPointUncertaintyEllipse: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + localOrigin: + $ref: '#/components/schemas/LocalOrigin' + point: + $ref: '#/components/schemas/RelativeCartesianLocation' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - localOrigin + - point + - uncertaintyEllipse + type: object + description: Local 2D point with uncertainty ellipse + LocalOrigin: + description: Indicates a Local origin in a reference system + properties: + coordinateId: + type: string + point: + $ref: '#/components/schemas/GeographicalCoordinates' + type: object + RelativeCartesianLocation: + description: Relative Cartesian Location + properties: + x: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + "y": + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + z: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + required: + - x + - "y" + type: object + Local3dPointUncertaintyEllipsoid: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + localOrigin: + $ref: '#/components/schemas/LocalOrigin' + point: + $ref: '#/components/schemas/RelativeCartesianLocation' + uncertaintyEllipsoid: + $ref: '#/components/schemas/UncertaintyEllipsoid' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - localOrigin + - point + - uncertaintyEllipsoid + type: object + description: Local 3D point with uncertainty ellipsoid + UncertaintyEllipsoid: + description: Ellipsoid with uncertainty + properties: + semiMajor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + semiMinor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + vertical: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + orientationMajor: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + required: + - orientationMajor + - semiMajor + - semiMinor + - vertical + type: object + DateTime: + description: string with format "date-time" as defined in OpenAPI. + format: date-time + type: string + Ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted decimal" + notation as defined in IETF RFC 1166. + type: string + Ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of + IETF RFC 5952 shall not be used. + type: string + Port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + Float: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number diff --git a/internal/CapifDiscoverService/api_default.go b/internal/CapifDiscoverService/api_default.go new file mode 100644 index 0000000000000000000000000000000000000000..e382409125b281039e1c65d1698b582384a5ba3a --- /dev/null +++ b/internal/CapifDiscoverService/api_default.go @@ -0,0 +1,333 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiAllServiceAPIsGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apiInvokerId *string + apiName *string + apiVersion *string + commType *CommunicationType + protocol *Protocol + aefId *string + dataFormat *DataFormat + apiCat *string + preferredAefLoc *AefLocation + supportedFeatures *string + apiSupportedFeatures *string +} + +// String identifying the API invoker assigned by the CAPIF core function. It also represents the CCF identifier in the CAPIF-6/6e interface. +func (r ApiAllServiceAPIsGetRequest) ApiInvokerId(apiInvokerId string) ApiAllServiceAPIsGetRequest { + r.apiInvokerId = &apiInvokerId + return r +} + +// API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. +func (r ApiAllServiceAPIsGetRequest) ApiName(apiName string) ApiAllServiceAPIsGetRequest { + r.apiName = &apiName + return r +} + +// API major version the URI (e.g. v1). +func (r ApiAllServiceAPIsGetRequest) ApiVersion(apiVersion string) ApiAllServiceAPIsGetRequest { + r.apiVersion = &apiVersion + return r +} + +// Communication type used by the API (e.g. REQUEST_RESPONSE). +func (r ApiAllServiceAPIsGetRequest) CommType(commType CommunicationType) ApiAllServiceAPIsGetRequest { + r.commType = &commType + return r +} + +// Protocol used by the API. +func (r ApiAllServiceAPIsGetRequest) Protocol(protocol Protocol) ApiAllServiceAPIsGetRequest { + r.protocol = &protocol + return r +} + +// AEF identifer. +func (r ApiAllServiceAPIsGetRequest) AefId(aefId string) ApiAllServiceAPIsGetRequest { + r.aefId = &aefId + return r +} + +// Data formats used by the API (e.g. serialization protocol JSON used). +func (r ApiAllServiceAPIsGetRequest) DataFormat(dataFormat DataFormat) ApiAllServiceAPIsGetRequest { + r.dataFormat = &dataFormat + return r +} + +// The service API category to which the service API belongs to. +func (r ApiAllServiceAPIsGetRequest) ApiCat(apiCat string) ApiAllServiceAPIsGetRequest { + r.apiCat = &apiCat + return r +} + +// The preferred AEF location. +func (r ApiAllServiceAPIsGetRequest) PreferredAefLoc(preferredAefLoc AefLocation) ApiAllServiceAPIsGetRequest { + r.preferredAefLoc = &preferredAefLoc + return r +} + +// Features supported by the NF consumer for the CAPIF Discover Service API. +func (r ApiAllServiceAPIsGetRequest) SupportedFeatures(supportedFeatures string) ApiAllServiceAPIsGetRequest { + r.supportedFeatures = &supportedFeatures + return r +} + +// Features supported by the discovered service API indicated by api-name parameter. This may only be present if api-name query parameter is present. +func (r ApiAllServiceAPIsGetRequest) ApiSupportedFeatures(apiSupportedFeatures string) ApiAllServiceAPIsGetRequest { + r.apiSupportedFeatures = &apiSupportedFeatures + return r +} + +func (r ApiAllServiceAPIsGetRequest) Execute() (*DiscoveredAPIs, *http.Response, error) { + return r.ApiService.AllServiceAPIsGetExecute(r) +} + +/* +AllServiceAPIsGet Method for AllServiceAPIsGet + +Discover published service APIs and retrieve a collection of APIs according to certain filter criteria. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAllServiceAPIsGetRequest +*/ +func (a *DefaultAPIService) AllServiceAPIsGet(ctx context.Context) ApiAllServiceAPIsGetRequest { + return ApiAllServiceAPIsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DiscoveredAPIs +func (a *DefaultAPIService) AllServiceAPIsGetExecute(r ApiAllServiceAPIsGetRequest) (*DiscoveredAPIs, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DiscoveredAPIs + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AllServiceAPIsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/allServiceAPIs" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.apiInvokerId == nil { + return localVarReturnValue, nil, reportError("apiInvokerId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "api-invoker-id", r.apiInvokerId, "") + if r.apiName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "api-name", r.apiName, "") + } + if r.apiVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "api-version", r.apiVersion, "") + } + if r.commType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "comm-type", r.commType, "") + } + if r.protocol != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "") + } + if r.aefId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "aef-id", r.aefId, "") + } + if r.dataFormat != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data-format", r.dataFormat, "") + } + if r.apiCat != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "api-cat", r.apiCat, "") + } + if r.preferredAefLoc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "preferred-aef-loc", r.preferredAefLoc, "") + } + if r.supportedFeatures != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "supported-features", r.supportedFeatures, "") + } + if r.apiSupportedFeatures != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "api-supported-features", r.apiSupportedFeatures, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 414 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifDiscoverService/client.go b/internal/CapifDiscoverService/client.go new file mode 100644 index 0000000000000000000000000000000000000000..e1521006ccaeb2f36e690f89ef66cd75aa7e331a --- /dev/null +++ b/internal/CapifDiscoverService/client.go @@ -0,0 +1,660 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the CAPIF_Discover_Service_API API v1.2.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI *DefaultAPIService +} + +type service struct { + client *APIClient +} + +// 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 *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/internal/CapifDiscoverService/configuration.go b/internal/CapifDiscoverService/configuration.go new file mode 100644 index 0000000000000000000000000000000000000000..599500ebff01603771201e3e4fcd58de8c83d3a5 --- /dev/null +++ b/internal/CapifDiscoverService/configuration.go @@ -0,0 +1,221 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "{apiRoot}/service-apis/v1", + Description: "No description provided", + Variables: map[string]ServerVariable{ + "apiRoot": ServerVariable{ + Description: "apiRoot as defined in clause 7.5 of 3GPP TS 29.222.", + DefaultValue: "https://example.com", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/internal/CapifDiscoverService/docs/AefLocation.md b/internal/CapifDiscoverService/docs/AefLocation.md new file mode 100644 index 0000000000000000000000000000000000000000..c2a4a09046a05483ec75ce407bb7e502b14235d9 --- /dev/null +++ b/internal/CapifDiscoverService/docs/AefLocation.md @@ -0,0 +1,108 @@ +# AefLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CivicAddr** | Pointer to [**CivicAddress**](CivicAddress.md) | | [optional] +**GeoArea** | Pointer to [**GeographicArea**](GeographicArea.md) | | [optional] +**DcId** | Pointer to **string** | Identifies the data center where the AEF providing the service API is located. | [optional] + +## Methods + +### NewAefLocation + +`func NewAefLocation() *AefLocation` + +NewAefLocation instantiates a new AefLocation 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 + +### NewAefLocationWithDefaults + +`func NewAefLocationWithDefaults() *AefLocation` + +NewAefLocationWithDefaults instantiates a new AefLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCivicAddr + +`func (o *AefLocation) GetCivicAddr() CivicAddress` + +GetCivicAddr returns the CivicAddr field if non-nil, zero value otherwise. + +### GetCivicAddrOk + +`func (o *AefLocation) GetCivicAddrOk() (*CivicAddress, bool)` + +GetCivicAddrOk returns a tuple with the CivicAddr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCivicAddr + +`func (o *AefLocation) SetCivicAddr(v CivicAddress)` + +SetCivicAddr sets CivicAddr field to given value. + +### HasCivicAddr + +`func (o *AefLocation) HasCivicAddr() bool` + +HasCivicAddr returns a boolean if a field has been set. + +### GetGeoArea + +`func (o *AefLocation) GetGeoArea() GeographicArea` + +GetGeoArea returns the GeoArea field if non-nil, zero value otherwise. + +### GetGeoAreaOk + +`func (o *AefLocation) GetGeoAreaOk() (*GeographicArea, bool)` + +GetGeoAreaOk returns a tuple with the GeoArea field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeoArea + +`func (o *AefLocation) SetGeoArea(v GeographicArea)` + +SetGeoArea sets GeoArea field to given value. + +### HasGeoArea + +`func (o *AefLocation) HasGeoArea() bool` + +HasGeoArea returns a boolean if a field has been set. + +### GetDcId + +`func (o *AefLocation) GetDcId() string` + +GetDcId returns the DcId field if non-nil, zero value otherwise. + +### GetDcIdOk + +`func (o *AefLocation) GetDcIdOk() (*string, bool)` + +GetDcIdOk returns a tuple with the DcId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDcId + +`func (o *AefLocation) SetDcId(v string)` + +SetDcId sets DcId field to given value. + +### HasDcId + +`func (o *AefLocation) HasDcId() bool` + +HasDcId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/AefProfile.md b/internal/CapifDiscoverService/docs/AefProfile.md new file mode 100644 index 0000000000000000000000000000000000000000..8da52da6ea5609a2f7df5628bdc44e92e5f32236 --- /dev/null +++ b/internal/CapifDiscoverService/docs/AefProfile.md @@ -0,0 +1,228 @@ +# AefProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AefId** | **string** | Identifier of the API exposing function | +**Versions** | [**[]Version**](Version.md) | API version | +**Protocol** | Pointer to [**Protocol**](Protocol.md) | | [optional] +**DataFormat** | Pointer to [**DataFormat**](DataFormat.md) | | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the AEF | [optional] +**DomainName** | Pointer to **string** | Domain to which API belongs to | [optional] +**InterfaceDescriptions** | Pointer to [**[]InterfaceDescription**](InterfaceDescription.md) | Interface details | [optional] +**AefLocation** | Pointer to [**AefLocation**](AefLocation.md) | | [optional] + +## Methods + +### NewAefProfile + +`func NewAefProfile(aefId string, versions []Version, ) *AefProfile` + +NewAefProfile instantiates a new AefProfile 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 + +### NewAefProfileWithDefaults + +`func NewAefProfileWithDefaults() *AefProfile` + +NewAefProfileWithDefaults instantiates a new AefProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAefId + +`func (o *AefProfile) GetAefId() string` + +GetAefId returns the AefId field if non-nil, zero value otherwise. + +### GetAefIdOk + +`func (o *AefProfile) GetAefIdOk() (*string, bool)` + +GetAefIdOk returns a tuple with the AefId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefId + +`func (o *AefProfile) SetAefId(v string)` + +SetAefId sets AefId field to given value. + + +### GetVersions + +`func (o *AefProfile) GetVersions() []Version` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AefProfile) GetVersionsOk() (*[]Version, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AefProfile) SetVersions(v []Version)` + +SetVersions sets Versions field to given value. + + +### GetProtocol + +`func (o *AefProfile) GetProtocol() Protocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *AefProfile) GetProtocolOk() (*Protocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *AefProfile) SetProtocol(v Protocol)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *AefProfile) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetDataFormat + +`func (o *AefProfile) GetDataFormat() DataFormat` + +GetDataFormat returns the DataFormat field if non-nil, zero value otherwise. + +### GetDataFormatOk + +`func (o *AefProfile) GetDataFormatOk() (*DataFormat, bool)` + +GetDataFormatOk returns a tuple with the DataFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFormat + +`func (o *AefProfile) SetDataFormat(v DataFormat)` + +SetDataFormat sets DataFormat field to given value. + +### HasDataFormat + +`func (o *AefProfile) HasDataFormat() bool` + +HasDataFormat returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *AefProfile) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *AefProfile) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *AefProfile) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *AefProfile) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + +### GetDomainName + +`func (o *AefProfile) GetDomainName() string` + +GetDomainName returns the DomainName field if non-nil, zero value otherwise. + +### GetDomainNameOk + +`func (o *AefProfile) GetDomainNameOk() (*string, bool)` + +GetDomainNameOk returns a tuple with the DomainName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainName + +`func (o *AefProfile) SetDomainName(v string)` + +SetDomainName sets DomainName field to given value. + +### HasDomainName + +`func (o *AefProfile) HasDomainName() bool` + +HasDomainName returns a boolean if a field has been set. + +### GetInterfaceDescriptions + +`func (o *AefProfile) GetInterfaceDescriptions() []InterfaceDescription` + +GetInterfaceDescriptions returns the InterfaceDescriptions field if non-nil, zero value otherwise. + +### GetInterfaceDescriptionsOk + +`func (o *AefProfile) GetInterfaceDescriptionsOk() (*[]InterfaceDescription, bool)` + +GetInterfaceDescriptionsOk returns a tuple with the InterfaceDescriptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceDescriptions + +`func (o *AefProfile) SetInterfaceDescriptions(v []InterfaceDescription)` + +SetInterfaceDescriptions sets InterfaceDescriptions field to given value. + +### HasInterfaceDescriptions + +`func (o *AefProfile) HasInterfaceDescriptions() bool` + +HasInterfaceDescriptions returns a boolean if a field has been set. + +### GetAefLocation + +`func (o *AefProfile) GetAefLocation() AefLocation` + +GetAefLocation returns the AefLocation field if non-nil, zero value otherwise. + +### GetAefLocationOk + +`func (o *AefProfile) GetAefLocationOk() (*AefLocation, bool)` + +GetAefLocationOk returns a tuple with the AefLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefLocation + +`func (o *AefProfile) SetAefLocation(v AefLocation)` + +SetAefLocation sets AefLocation field to given value. + +### HasAefLocation + +`func (o *AefProfile) HasAefLocation() bool` + +HasAefLocation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/CivicAddress.md b/internal/CapifDiscoverService/docs/CivicAddress.md new file mode 100644 index 0000000000000000000000000000000000000000..42a88edddf4709626a8c5653d9ccf25c58ac0fc0 --- /dev/null +++ b/internal/CapifDiscoverService/docs/CivicAddress.md @@ -0,0 +1,914 @@ +# CivicAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | Pointer to **string** | | [optional] +**A1** | Pointer to **string** | | [optional] +**A2** | Pointer to **string** | | [optional] +**A3** | Pointer to **string** | | [optional] +**A4** | Pointer to **string** | | [optional] +**A5** | Pointer to **string** | | [optional] +**A6** | Pointer to **string** | | [optional] +**PRD** | Pointer to **string** | | [optional] +**POD** | Pointer to **string** | | [optional] +**STS** | Pointer to **string** | | [optional] +**HNO** | Pointer to **string** | | [optional] +**HNS** | Pointer to **string** | | [optional] +**LMK** | Pointer to **string** | | [optional] +**LOC** | Pointer to **string** | | [optional] +**NAM** | Pointer to **string** | | [optional] +**PC** | Pointer to **string** | | [optional] +**BLD** | Pointer to **string** | | [optional] +**UNIT** | Pointer to **string** | | [optional] +**FLR** | Pointer to **string** | | [optional] +**ROOM** | Pointer to **string** | | [optional] +**PLC** | Pointer to **string** | | [optional] +**PCN** | Pointer to **string** | | [optional] +**POBOX** | Pointer to **string** | | [optional] +**ADDCODE** | Pointer to **string** | | [optional] +**SEAT** | Pointer to **string** | | [optional] +**RD** | Pointer to **string** | | [optional] +**RDSEC** | Pointer to **string** | | [optional] +**RDBR** | Pointer to **string** | | [optional] +**RDSUBBR** | Pointer to **string** | | [optional] +**PRM** | Pointer to **string** | | [optional] +**POM** | Pointer to **string** | | [optional] +**UsageRules** | Pointer to **string** | | [optional] +**Method** | Pointer to **string** | | [optional] +**ProvidedBy** | Pointer to **string** | | [optional] + +## Methods + +### NewCivicAddress + +`func NewCivicAddress() *CivicAddress` + +NewCivicAddress instantiates a new CivicAddress 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 + +### NewCivicAddressWithDefaults + +`func NewCivicAddressWithDefaults() *CivicAddress` + +NewCivicAddressWithDefaults instantiates a new CivicAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCountry + +`func (o *CivicAddress) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *CivicAddress) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *CivicAddress) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *CivicAddress) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + +### GetA1 + +`func (o *CivicAddress) GetA1() string` + +GetA1 returns the A1 field if non-nil, zero value otherwise. + +### GetA1Ok + +`func (o *CivicAddress) GetA1Ok() (*string, bool)` + +GetA1Ok returns a tuple with the A1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA1 + +`func (o *CivicAddress) SetA1(v string)` + +SetA1 sets A1 field to given value. + +### HasA1 + +`func (o *CivicAddress) HasA1() bool` + +HasA1 returns a boolean if a field has been set. + +### GetA2 + +`func (o *CivicAddress) GetA2() string` + +GetA2 returns the A2 field if non-nil, zero value otherwise. + +### GetA2Ok + +`func (o *CivicAddress) GetA2Ok() (*string, bool)` + +GetA2Ok returns a tuple with the A2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA2 + +`func (o *CivicAddress) SetA2(v string)` + +SetA2 sets A2 field to given value. + +### HasA2 + +`func (o *CivicAddress) HasA2() bool` + +HasA2 returns a boolean if a field has been set. + +### GetA3 + +`func (o *CivicAddress) GetA3() string` + +GetA3 returns the A3 field if non-nil, zero value otherwise. + +### GetA3Ok + +`func (o *CivicAddress) GetA3Ok() (*string, bool)` + +GetA3Ok returns a tuple with the A3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA3 + +`func (o *CivicAddress) SetA3(v string)` + +SetA3 sets A3 field to given value. + +### HasA3 + +`func (o *CivicAddress) HasA3() bool` + +HasA3 returns a boolean if a field has been set. + +### GetA4 + +`func (o *CivicAddress) GetA4() string` + +GetA4 returns the A4 field if non-nil, zero value otherwise. + +### GetA4Ok + +`func (o *CivicAddress) GetA4Ok() (*string, bool)` + +GetA4Ok returns a tuple with the A4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA4 + +`func (o *CivicAddress) SetA4(v string)` + +SetA4 sets A4 field to given value. + +### HasA4 + +`func (o *CivicAddress) HasA4() bool` + +HasA4 returns a boolean if a field has been set. + +### GetA5 + +`func (o *CivicAddress) GetA5() string` + +GetA5 returns the A5 field if non-nil, zero value otherwise. + +### GetA5Ok + +`func (o *CivicAddress) GetA5Ok() (*string, bool)` + +GetA5Ok returns a tuple with the A5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA5 + +`func (o *CivicAddress) SetA5(v string)` + +SetA5 sets A5 field to given value. + +### HasA5 + +`func (o *CivicAddress) HasA5() bool` + +HasA5 returns a boolean if a field has been set. + +### GetA6 + +`func (o *CivicAddress) GetA6() string` + +GetA6 returns the A6 field if non-nil, zero value otherwise. + +### GetA6Ok + +`func (o *CivicAddress) GetA6Ok() (*string, bool)` + +GetA6Ok returns a tuple with the A6 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA6 + +`func (o *CivicAddress) SetA6(v string)` + +SetA6 sets A6 field to given value. + +### HasA6 + +`func (o *CivicAddress) HasA6() bool` + +HasA6 returns a boolean if a field has been set. + +### GetPRD + +`func (o *CivicAddress) GetPRD() string` + +GetPRD returns the PRD field if non-nil, zero value otherwise. + +### GetPRDOk + +`func (o *CivicAddress) GetPRDOk() (*string, bool)` + +GetPRDOk returns a tuple with the PRD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPRD + +`func (o *CivicAddress) SetPRD(v string)` + +SetPRD sets PRD field to given value. + +### HasPRD + +`func (o *CivicAddress) HasPRD() bool` + +HasPRD returns a boolean if a field has been set. + +### GetPOD + +`func (o *CivicAddress) GetPOD() string` + +GetPOD returns the POD field if non-nil, zero value otherwise. + +### GetPODOk + +`func (o *CivicAddress) GetPODOk() (*string, bool)` + +GetPODOk returns a tuple with the POD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOD + +`func (o *CivicAddress) SetPOD(v string)` + +SetPOD sets POD field to given value. + +### HasPOD + +`func (o *CivicAddress) HasPOD() bool` + +HasPOD returns a boolean if a field has been set. + +### GetSTS + +`func (o *CivicAddress) GetSTS() string` + +GetSTS returns the STS field if non-nil, zero value otherwise. + +### GetSTSOk + +`func (o *CivicAddress) GetSTSOk() (*string, bool)` + +GetSTSOk returns a tuple with the STS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSTS + +`func (o *CivicAddress) SetSTS(v string)` + +SetSTS sets STS field to given value. + +### HasSTS + +`func (o *CivicAddress) HasSTS() bool` + +HasSTS returns a boolean if a field has been set. + +### GetHNO + +`func (o *CivicAddress) GetHNO() string` + +GetHNO returns the HNO field if non-nil, zero value otherwise. + +### GetHNOOk + +`func (o *CivicAddress) GetHNOOk() (*string, bool)` + +GetHNOOk returns a tuple with the HNO field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHNO + +`func (o *CivicAddress) SetHNO(v string)` + +SetHNO sets HNO field to given value. + +### HasHNO + +`func (o *CivicAddress) HasHNO() bool` + +HasHNO returns a boolean if a field has been set. + +### GetHNS + +`func (o *CivicAddress) GetHNS() string` + +GetHNS returns the HNS field if non-nil, zero value otherwise. + +### GetHNSOk + +`func (o *CivicAddress) GetHNSOk() (*string, bool)` + +GetHNSOk returns a tuple with the HNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHNS + +`func (o *CivicAddress) SetHNS(v string)` + +SetHNS sets HNS field to given value. + +### HasHNS + +`func (o *CivicAddress) HasHNS() bool` + +HasHNS returns a boolean if a field has been set. + +### GetLMK + +`func (o *CivicAddress) GetLMK() string` + +GetLMK returns the LMK field if non-nil, zero value otherwise. + +### GetLMKOk + +`func (o *CivicAddress) GetLMKOk() (*string, bool)` + +GetLMKOk returns a tuple with the LMK field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLMK + +`func (o *CivicAddress) SetLMK(v string)` + +SetLMK sets LMK field to given value. + +### HasLMK + +`func (o *CivicAddress) HasLMK() bool` + +HasLMK returns a boolean if a field has been set. + +### GetLOC + +`func (o *CivicAddress) GetLOC() string` + +GetLOC returns the LOC field if non-nil, zero value otherwise. + +### GetLOCOk + +`func (o *CivicAddress) GetLOCOk() (*string, bool)` + +GetLOCOk returns a tuple with the LOC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLOC + +`func (o *CivicAddress) SetLOC(v string)` + +SetLOC sets LOC field to given value. + +### HasLOC + +`func (o *CivicAddress) HasLOC() bool` + +HasLOC returns a boolean if a field has been set. + +### GetNAM + +`func (o *CivicAddress) GetNAM() string` + +GetNAM returns the NAM field if non-nil, zero value otherwise. + +### GetNAMOk + +`func (o *CivicAddress) GetNAMOk() (*string, bool)` + +GetNAMOk returns a tuple with the NAM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNAM + +`func (o *CivicAddress) SetNAM(v string)` + +SetNAM sets NAM field to given value. + +### HasNAM + +`func (o *CivicAddress) HasNAM() bool` + +HasNAM returns a boolean if a field has been set. + +### GetPC + +`func (o *CivicAddress) GetPC() string` + +GetPC returns the PC field if non-nil, zero value otherwise. + +### GetPCOk + +`func (o *CivicAddress) GetPCOk() (*string, bool)` + +GetPCOk returns a tuple with the PC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPC + +`func (o *CivicAddress) SetPC(v string)` + +SetPC sets PC field to given value. + +### HasPC + +`func (o *CivicAddress) HasPC() bool` + +HasPC returns a boolean if a field has been set. + +### GetBLD + +`func (o *CivicAddress) GetBLD() string` + +GetBLD returns the BLD field if non-nil, zero value otherwise. + +### GetBLDOk + +`func (o *CivicAddress) GetBLDOk() (*string, bool)` + +GetBLDOk returns a tuple with the BLD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBLD + +`func (o *CivicAddress) SetBLD(v string)` + +SetBLD sets BLD field to given value. + +### HasBLD + +`func (o *CivicAddress) HasBLD() bool` + +HasBLD returns a boolean if a field has been set. + +### GetUNIT + +`func (o *CivicAddress) GetUNIT() string` + +GetUNIT returns the UNIT field if non-nil, zero value otherwise. + +### GetUNITOk + +`func (o *CivicAddress) GetUNITOk() (*string, bool)` + +GetUNITOk returns a tuple with the UNIT field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUNIT + +`func (o *CivicAddress) SetUNIT(v string)` + +SetUNIT sets UNIT field to given value. + +### HasUNIT + +`func (o *CivicAddress) HasUNIT() bool` + +HasUNIT returns a boolean if a field has been set. + +### GetFLR + +`func (o *CivicAddress) GetFLR() string` + +GetFLR returns the FLR field if non-nil, zero value otherwise. + +### GetFLROk + +`func (o *CivicAddress) GetFLROk() (*string, bool)` + +GetFLROk returns a tuple with the FLR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFLR + +`func (o *CivicAddress) SetFLR(v string)` + +SetFLR sets FLR field to given value. + +### HasFLR + +`func (o *CivicAddress) HasFLR() bool` + +HasFLR returns a boolean if a field has been set. + +### GetROOM + +`func (o *CivicAddress) GetROOM() string` + +GetROOM returns the ROOM field if non-nil, zero value otherwise. + +### GetROOMOk + +`func (o *CivicAddress) GetROOMOk() (*string, bool)` + +GetROOMOk returns a tuple with the ROOM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetROOM + +`func (o *CivicAddress) SetROOM(v string)` + +SetROOM sets ROOM field to given value. + +### HasROOM + +`func (o *CivicAddress) HasROOM() bool` + +HasROOM returns a boolean if a field has been set. + +### GetPLC + +`func (o *CivicAddress) GetPLC() string` + +GetPLC returns the PLC field if non-nil, zero value otherwise. + +### GetPLCOk + +`func (o *CivicAddress) GetPLCOk() (*string, bool)` + +GetPLCOk returns a tuple with the PLC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPLC + +`func (o *CivicAddress) SetPLC(v string)` + +SetPLC sets PLC field to given value. + +### HasPLC + +`func (o *CivicAddress) HasPLC() bool` + +HasPLC returns a boolean if a field has been set. + +### GetPCN + +`func (o *CivicAddress) GetPCN() string` + +GetPCN returns the PCN field if non-nil, zero value otherwise. + +### GetPCNOk + +`func (o *CivicAddress) GetPCNOk() (*string, bool)` + +GetPCNOk returns a tuple with the PCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPCN + +`func (o *CivicAddress) SetPCN(v string)` + +SetPCN sets PCN field to given value. + +### HasPCN + +`func (o *CivicAddress) HasPCN() bool` + +HasPCN returns a boolean if a field has been set. + +### GetPOBOX + +`func (o *CivicAddress) GetPOBOX() string` + +GetPOBOX returns the POBOX field if non-nil, zero value otherwise. + +### GetPOBOXOk + +`func (o *CivicAddress) GetPOBOXOk() (*string, bool)` + +GetPOBOXOk returns a tuple with the POBOX field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOBOX + +`func (o *CivicAddress) SetPOBOX(v string)` + +SetPOBOX sets POBOX field to given value. + +### HasPOBOX + +`func (o *CivicAddress) HasPOBOX() bool` + +HasPOBOX returns a boolean if a field has been set. + +### GetADDCODE + +`func (o *CivicAddress) GetADDCODE() string` + +GetADDCODE returns the ADDCODE field if non-nil, zero value otherwise. + +### GetADDCODEOk + +`func (o *CivicAddress) GetADDCODEOk() (*string, bool)` + +GetADDCODEOk returns a tuple with the ADDCODE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetADDCODE + +`func (o *CivicAddress) SetADDCODE(v string)` + +SetADDCODE sets ADDCODE field to given value. + +### HasADDCODE + +`func (o *CivicAddress) HasADDCODE() bool` + +HasADDCODE returns a boolean if a field has been set. + +### GetSEAT + +`func (o *CivicAddress) GetSEAT() string` + +GetSEAT returns the SEAT field if non-nil, zero value otherwise. + +### GetSEATOk + +`func (o *CivicAddress) GetSEATOk() (*string, bool)` + +GetSEATOk returns a tuple with the SEAT field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSEAT + +`func (o *CivicAddress) SetSEAT(v string)` + +SetSEAT sets SEAT field to given value. + +### HasSEAT + +`func (o *CivicAddress) HasSEAT() bool` + +HasSEAT returns a boolean if a field has been set. + +### GetRD + +`func (o *CivicAddress) GetRD() string` + +GetRD returns the RD field if non-nil, zero value otherwise. + +### GetRDOk + +`func (o *CivicAddress) GetRDOk() (*string, bool)` + +GetRDOk returns a tuple with the RD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRD + +`func (o *CivicAddress) SetRD(v string)` + +SetRD sets RD field to given value. + +### HasRD + +`func (o *CivicAddress) HasRD() bool` + +HasRD returns a boolean if a field has been set. + +### GetRDSEC + +`func (o *CivicAddress) GetRDSEC() string` + +GetRDSEC returns the RDSEC field if non-nil, zero value otherwise. + +### GetRDSECOk + +`func (o *CivicAddress) GetRDSECOk() (*string, bool)` + +GetRDSECOk returns a tuple with the RDSEC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDSEC + +`func (o *CivicAddress) SetRDSEC(v string)` + +SetRDSEC sets RDSEC field to given value. + +### HasRDSEC + +`func (o *CivicAddress) HasRDSEC() bool` + +HasRDSEC returns a boolean if a field has been set. + +### GetRDBR + +`func (o *CivicAddress) GetRDBR() string` + +GetRDBR returns the RDBR field if non-nil, zero value otherwise. + +### GetRDBROk + +`func (o *CivicAddress) GetRDBROk() (*string, bool)` + +GetRDBROk returns a tuple with the RDBR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDBR + +`func (o *CivicAddress) SetRDBR(v string)` + +SetRDBR sets RDBR field to given value. + +### HasRDBR + +`func (o *CivicAddress) HasRDBR() bool` + +HasRDBR returns a boolean if a field has been set. + +### GetRDSUBBR + +`func (o *CivicAddress) GetRDSUBBR() string` + +GetRDSUBBR returns the RDSUBBR field if non-nil, zero value otherwise. + +### GetRDSUBBROk + +`func (o *CivicAddress) GetRDSUBBROk() (*string, bool)` + +GetRDSUBBROk returns a tuple with the RDSUBBR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDSUBBR + +`func (o *CivicAddress) SetRDSUBBR(v string)` + +SetRDSUBBR sets RDSUBBR field to given value. + +### HasRDSUBBR + +`func (o *CivicAddress) HasRDSUBBR() bool` + +HasRDSUBBR returns a boolean if a field has been set. + +### GetPRM + +`func (o *CivicAddress) GetPRM() string` + +GetPRM returns the PRM field if non-nil, zero value otherwise. + +### GetPRMOk + +`func (o *CivicAddress) GetPRMOk() (*string, bool)` + +GetPRMOk returns a tuple with the PRM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPRM + +`func (o *CivicAddress) SetPRM(v string)` + +SetPRM sets PRM field to given value. + +### HasPRM + +`func (o *CivicAddress) HasPRM() bool` + +HasPRM returns a boolean if a field has been set. + +### GetPOM + +`func (o *CivicAddress) GetPOM() string` + +GetPOM returns the POM field if non-nil, zero value otherwise. + +### GetPOMOk + +`func (o *CivicAddress) GetPOMOk() (*string, bool)` + +GetPOMOk returns a tuple with the POM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOM + +`func (o *CivicAddress) SetPOM(v string)` + +SetPOM sets POM field to given value. + +### HasPOM + +`func (o *CivicAddress) HasPOM() bool` + +HasPOM returns a boolean if a field has been set. + +### GetUsageRules + +`func (o *CivicAddress) GetUsageRules() string` + +GetUsageRules returns the UsageRules field if non-nil, zero value otherwise. + +### GetUsageRulesOk + +`func (o *CivicAddress) GetUsageRulesOk() (*string, bool)` + +GetUsageRulesOk returns a tuple with the UsageRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageRules + +`func (o *CivicAddress) SetUsageRules(v string)` + +SetUsageRules sets UsageRules field to given value. + +### HasUsageRules + +`func (o *CivicAddress) HasUsageRules() bool` + +HasUsageRules returns a boolean if a field has been set. + +### GetMethod + +`func (o *CivicAddress) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *CivicAddress) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *CivicAddress) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *CivicAddress) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### GetProvidedBy + +`func (o *CivicAddress) GetProvidedBy() string` + +GetProvidedBy returns the ProvidedBy field if non-nil, zero value otherwise. + +### GetProvidedByOk + +`func (o *CivicAddress) GetProvidedByOk() (*string, bool)` + +GetProvidedByOk returns a tuple with the ProvidedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvidedBy + +`func (o *CivicAddress) SetProvidedBy(v string)` + +SetProvidedBy sets ProvidedBy field to given value. + +### HasProvidedBy + +`func (o *CivicAddress) HasProvidedBy() bool` + +HasProvidedBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/CommunicationType.md b/internal/CapifDiscoverService/docs/CommunicationType.md new file mode 100644 index 0000000000000000000000000000000000000000..50d76aa21e1651495e464996cbec140260e39ac6 --- /dev/null +++ b/internal/CapifDiscoverService/docs/CommunicationType.md @@ -0,0 +1,30 @@ +# CommunicationType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewCommunicationType + +`func NewCommunicationType() *CommunicationType` + +NewCommunicationType instantiates a new CommunicationType 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 + +### NewCommunicationTypeWithDefaults + +`func NewCommunicationTypeWithDefaults() *CommunicationType` + +NewCommunicationTypeWithDefaults instantiates a new CommunicationType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/CustomOperation.md b/internal/CapifDiscoverService/docs/CustomOperation.md new file mode 100644 index 0000000000000000000000000000000000000000..3f34fd8ea700a560f7d528685bc18248150cda63 --- /dev/null +++ b/internal/CapifDiscoverService/docs/CustomOperation.md @@ -0,0 +1,124 @@ +# CustomOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommType** | [**CommunicationType**](CommunicationType.md) | | +**CustOpName** | **string** | it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. | +**Operations** | Pointer to [**[]Operation**](Operation.md) | Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. | [optional] +**Description** | Pointer to **string** | Text description of the custom operation | [optional] + +## Methods + +### NewCustomOperation + +`func NewCustomOperation(commType CommunicationType, custOpName string, ) *CustomOperation` + +NewCustomOperation instantiates a new CustomOperation 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 + +### NewCustomOperationWithDefaults + +`func NewCustomOperationWithDefaults() *CustomOperation` + +NewCustomOperationWithDefaults instantiates a new CustomOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommType + +`func (o *CustomOperation) GetCommType() CommunicationType` + +GetCommType returns the CommType field if non-nil, zero value otherwise. + +### GetCommTypeOk + +`func (o *CustomOperation) GetCommTypeOk() (*CommunicationType, bool)` + +GetCommTypeOk returns a tuple with the CommType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommType + +`func (o *CustomOperation) SetCommType(v CommunicationType)` + +SetCommType sets CommType field to given value. + + +### GetCustOpName + +`func (o *CustomOperation) GetCustOpName() string` + +GetCustOpName returns the CustOpName field if non-nil, zero value otherwise. + +### GetCustOpNameOk + +`func (o *CustomOperation) GetCustOpNameOk() (*string, bool)` + +GetCustOpNameOk returns a tuple with the CustOpName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOpName + +`func (o *CustomOperation) SetCustOpName(v string)` + +SetCustOpName sets CustOpName field to given value. + + +### GetOperations + +`func (o *CustomOperation) GetOperations() []Operation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *CustomOperation) GetOperationsOk() (*[]Operation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *CustomOperation) SetOperations(v []Operation)` + +SetOperations sets Operations field to given value. + +### HasOperations + +`func (o *CustomOperation) HasOperations() bool` + +HasOperations returns a boolean if a field has been set. + +### GetDescription + +`func (o *CustomOperation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CustomOperation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CustomOperation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CustomOperation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/DataFormat.md b/internal/CapifDiscoverService/docs/DataFormat.md new file mode 100644 index 0000000000000000000000000000000000000000..5bc351926828a2a9f33f03050d85d230cbb7ea5a --- /dev/null +++ b/internal/CapifDiscoverService/docs/DataFormat.md @@ -0,0 +1,30 @@ +# DataFormat + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewDataFormat + +`func NewDataFormat() *DataFormat` + +NewDataFormat instantiates a new DataFormat 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 + +### NewDataFormatWithDefaults + +`func NewDataFormatWithDefaults() *DataFormat` + +NewDataFormatWithDefaults instantiates a new DataFormat object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/DefaultAPI.md b/internal/CapifDiscoverService/docs/DefaultAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..e2a58e6f5fd40536f1f59e7c9f4689bd0349e022 --- /dev/null +++ b/internal/CapifDiscoverService/docs/DefaultAPI.md @@ -0,0 +1,95 @@ +# \DefaultAPI + +All URIs are relative to *https://example.com/service-apis/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AllServiceAPIsGet**](DefaultAPI.md#AllServiceAPIsGet) | **Get** /allServiceAPIs | + + + +## AllServiceAPIsGet + +> DiscoveredAPIs AllServiceAPIsGet(ctx).ApiInvokerId(apiInvokerId).ApiName(apiName).ApiVersion(apiVersion).CommType(commType).Protocol(protocol).AefId(aefId).DataFormat(dataFormat).ApiCat(apiCat).PreferredAefLoc(preferredAefLoc).SupportedFeatures(supportedFeatures).ApiSupportedFeatures(apiSupportedFeatures).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apiInvokerId := "apiInvokerId_example" // string | String identifying the API invoker assigned by the CAPIF core function. It also represents the CCF identifier in the CAPIF-6/6e interface. + apiName := "apiName_example" // string | API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. (optional) + apiVersion := "apiVersion_example" // string | API major version the URI (e.g. v1). (optional) + commType := *openapiclient.NewCommunicationType() // CommunicationType | Communication type used by the API (e.g. REQUEST_RESPONSE). (optional) + protocol := *openapiclient.NewProtocol() // Protocol | Protocol used by the API. (optional) + aefId := "aefId_example" // string | AEF identifer. (optional) + dataFormat := *openapiclient.NewDataFormat() // DataFormat | Data formats used by the API (e.g. serialization protocol JSON used). (optional) + apiCat := "apiCat_example" // string | The service API category to which the service API belongs to. (optional) + preferredAefLoc := *openapiclient.NewAefLocation() // AefLocation | The preferred AEF location. (optional) + supportedFeatures := "supportedFeatures_example" // string | Features supported by the NF consumer for the CAPIF Discover Service API. (optional) + apiSupportedFeatures := "apiSupportedFeatures_example" // string | Features supported by the discovered service API indicated by api-name parameter. This may only be present if api-name query parameter is present. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AllServiceAPIsGet(context.Background()).ApiInvokerId(apiInvokerId).ApiName(apiName).ApiVersion(apiVersion).CommType(commType).Protocol(protocol).AefId(aefId).DataFormat(dataFormat).ApiCat(apiCat).PreferredAefLoc(preferredAefLoc).SupportedFeatures(supportedFeatures).ApiSupportedFeatures(apiSupportedFeatures).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AllServiceAPIsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AllServiceAPIsGet`: DiscoveredAPIs + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AllServiceAPIsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAllServiceAPIsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiInvokerId** | **string** | String identifying the API invoker assigned by the CAPIF core function. It also represents the CCF identifier in the CAPIF-6/6e interface. | + **apiName** | **string** | API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | + **apiVersion** | **string** | API major version the URI (e.g. v1). | + **commType** | [**CommunicationType**](CommunicationType.md) | Communication type used by the API (e.g. REQUEST_RESPONSE). | + **protocol** | [**Protocol**](Protocol.md) | Protocol used by the API. | + **aefId** | **string** | AEF identifer. | + **dataFormat** | [**DataFormat**](DataFormat.md) | Data formats used by the API (e.g. serialization protocol JSON used). | + **apiCat** | **string** | The service API category to which the service API belongs to. | + **preferredAefLoc** | [**AefLocation**](AefLocation.md) | The preferred AEF location. | + **supportedFeatures** | **string** | Features supported by the NF consumer for the CAPIF Discover Service API. | + **apiSupportedFeatures** | **string** | Features supported by the discovered service API indicated by api-name parameter. This may only be present if api-name query parameter is present. | + +### Return type + +[**DiscoveredAPIs**](DiscoveredAPIs.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/problem+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/internal/CapifDiscoverService/docs/DiscoveredAPIs.md b/internal/CapifDiscoverService/docs/DiscoveredAPIs.md new file mode 100644 index 0000000000000000000000000000000000000000..c6c22152fcef0828122588f1c41b9f78213dcfba --- /dev/null +++ b/internal/CapifDiscoverService/docs/DiscoveredAPIs.md @@ -0,0 +1,56 @@ +# DiscoveredAPIs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceAPIDescriptions** | Pointer to [**[]ServiceAPIDescription**](ServiceAPIDescription.md) | Description of the service API as published by the service. Each service API description shall include AEF profiles matching the filter criteria. | [optional] + +## Methods + +### NewDiscoveredAPIs + +`func NewDiscoveredAPIs() *DiscoveredAPIs` + +NewDiscoveredAPIs instantiates a new DiscoveredAPIs 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 + +### NewDiscoveredAPIsWithDefaults + +`func NewDiscoveredAPIsWithDefaults() *DiscoveredAPIs` + +NewDiscoveredAPIsWithDefaults instantiates a new DiscoveredAPIs object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceAPIDescriptions + +`func (o *DiscoveredAPIs) GetServiceAPIDescriptions() []ServiceAPIDescription` + +GetServiceAPIDescriptions returns the ServiceAPIDescriptions field if non-nil, zero value otherwise. + +### GetServiceAPIDescriptionsOk + +`func (o *DiscoveredAPIs) GetServiceAPIDescriptionsOk() (*[]ServiceAPIDescription, bool)` + +GetServiceAPIDescriptionsOk returns a tuple with the ServiceAPIDescriptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAPIDescriptions + +`func (o *DiscoveredAPIs) SetServiceAPIDescriptions(v []ServiceAPIDescription)` + +SetServiceAPIDescriptions sets ServiceAPIDescriptions field to given value. + +### HasServiceAPIDescriptions + +`func (o *DiscoveredAPIs) HasServiceAPIDescriptions() bool` + +HasServiceAPIDescriptions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/EllipsoidArc.md b/internal/CapifDiscoverService/docs/EllipsoidArc.md new file mode 100644 index 0000000000000000000000000000000000000000..eb8e00ee36031436acded8a294b36b1938456ad2 --- /dev/null +++ b/internal/CapifDiscoverService/docs/EllipsoidArc.md @@ -0,0 +1,156 @@ +# EllipsoidArc + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**InnerRadius** | **int32** | Indicates value of the inner radius. | +**UncertaintyRadius** | **float32** | Indicates value of uncertainty. | +**OffsetAngle** | **int32** | Indicates value of angle. | +**IncludedAngle** | **int32** | Indicates value of angle. | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewEllipsoidArc + +`func NewEllipsoidArc(point GeographicalCoordinates, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, confidence int32, ) *EllipsoidArc` + +NewEllipsoidArc instantiates a new EllipsoidArc 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 + +### NewEllipsoidArcWithDefaults + +`func NewEllipsoidArcWithDefaults() *EllipsoidArc` + +NewEllipsoidArcWithDefaults instantiates a new EllipsoidArc object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *EllipsoidArc) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *EllipsoidArc) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *EllipsoidArc) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetInnerRadius + +`func (o *EllipsoidArc) GetInnerRadius() int32` + +GetInnerRadius returns the InnerRadius field if non-nil, zero value otherwise. + +### GetInnerRadiusOk + +`func (o *EllipsoidArc) GetInnerRadiusOk() (*int32, bool)` + +GetInnerRadiusOk returns a tuple with the InnerRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInnerRadius + +`func (o *EllipsoidArc) SetInnerRadius(v int32)` + +SetInnerRadius sets InnerRadius field to given value. + + +### GetUncertaintyRadius + +`func (o *EllipsoidArc) GetUncertaintyRadius() float32` + +GetUncertaintyRadius returns the UncertaintyRadius field if non-nil, zero value otherwise. + +### GetUncertaintyRadiusOk + +`func (o *EllipsoidArc) GetUncertaintyRadiusOk() (*float32, bool)` + +GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyRadius + +`func (o *EllipsoidArc) SetUncertaintyRadius(v float32)` + +SetUncertaintyRadius sets UncertaintyRadius field to given value. + + +### GetOffsetAngle + +`func (o *EllipsoidArc) GetOffsetAngle() int32` + +GetOffsetAngle returns the OffsetAngle field if non-nil, zero value otherwise. + +### GetOffsetAngleOk + +`func (o *EllipsoidArc) GetOffsetAngleOk() (*int32, bool)` + +GetOffsetAngleOk returns a tuple with the OffsetAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffsetAngle + +`func (o *EllipsoidArc) SetOffsetAngle(v int32)` + +SetOffsetAngle sets OffsetAngle field to given value. + + +### GetIncludedAngle + +`func (o *EllipsoidArc) GetIncludedAngle() int32` + +GetIncludedAngle returns the IncludedAngle field if non-nil, zero value otherwise. + +### GetIncludedAngleOk + +`func (o *EllipsoidArc) GetIncludedAngleOk() (*int32, bool)` + +GetIncludedAngleOk returns a tuple with the IncludedAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludedAngle + +`func (o *EllipsoidArc) SetIncludedAngle(v int32)` + +SetIncludedAngle sets IncludedAngle field to given value. + + +### GetConfidence + +`func (o *EllipsoidArc) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *EllipsoidArc) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *EllipsoidArc) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/GADShape.md b/internal/CapifDiscoverService/docs/GADShape.md new file mode 100644 index 0000000000000000000000000000000000000000..45ec8f3625d43b289474c686df3806f4204ea399 --- /dev/null +++ b/internal/CapifDiscoverService/docs/GADShape.md @@ -0,0 +1,51 @@ +# GADShape + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | [**SupportedGADShapes**](SupportedGADShapes.md) | | + +## Methods + +### NewGADShape + +`func NewGADShape(shape SupportedGADShapes, ) *GADShape` + +NewGADShape instantiates a new GADShape 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 + +### NewGADShapeWithDefaults + +`func NewGADShapeWithDefaults() *GADShape` + +NewGADShapeWithDefaults instantiates a new GADShape object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShape + +`func (o *GADShape) GetShape() SupportedGADShapes` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *GADShape) GetShapeOk() (*SupportedGADShapes, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *GADShape) SetShape(v SupportedGADShapes)` + +SetShape sets Shape field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/GeographicArea.md b/internal/CapifDiscoverService/docs/GeographicArea.md new file mode 100644 index 0000000000000000000000000000000000000000..ccde5ace62bfeb6321e0dea8ab3c9739e0198820 --- /dev/null +++ b/internal/CapifDiscoverService/docs/GeographicArea.md @@ -0,0 +1,308 @@ +# GeographicArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | [**SupportedGADShapes**](SupportedGADShapes.md) | | +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Uncertainty** | **float32** | Indicates value of uncertainty. | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | +**PointList** | [**[]GeographicalCoordinates**](GeographicalCoordinates.md) | List of points. | +**Altitude** | **float64** | Indicates value of altitude. | +**UncertaintyAltitude** | **float32** | Indicates value of uncertainty. | +**VConfidence** | Pointer to **int32** | Indicates value of confidence. | [optional] +**InnerRadius** | **int32** | Indicates value of the inner radius. | +**UncertaintyRadius** | **float32** | Indicates value of uncertainty. | +**OffsetAngle** | **int32** | Indicates value of angle. | +**IncludedAngle** | **int32** | Indicates value of angle. | + +## Methods + +### NewGeographicArea + +`func NewGeographicArea(shape SupportedGADShapes, point GeographicalCoordinates, uncertainty float32, uncertaintyEllipse UncertaintyEllipse, confidence int32, pointList []GeographicalCoordinates, altitude float64, uncertaintyAltitude float32, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, ) *GeographicArea` + +NewGeographicArea instantiates a new GeographicArea 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 + +### NewGeographicAreaWithDefaults + +`func NewGeographicAreaWithDefaults() *GeographicArea` + +NewGeographicAreaWithDefaults instantiates a new GeographicArea object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShape + +`func (o *GeographicArea) GetShape() SupportedGADShapes` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *GeographicArea) GetShapeOk() (*SupportedGADShapes, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *GeographicArea) SetShape(v SupportedGADShapes)` + +SetShape sets Shape field to given value. + + +### GetPoint + +`func (o *GeographicArea) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *GeographicArea) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *GeographicArea) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertainty + +`func (o *GeographicArea) GetUncertainty() float32` + +GetUncertainty returns the Uncertainty field if non-nil, zero value otherwise. + +### GetUncertaintyOk + +`func (o *GeographicArea) GetUncertaintyOk() (*float32, bool)` + +GetUncertaintyOk returns a tuple with the Uncertainty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertainty + +`func (o *GeographicArea) SetUncertainty(v float32)` + +SetUncertainty sets Uncertainty field to given value. + + +### GetUncertaintyEllipse + +`func (o *GeographicArea) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *GeographicArea) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *GeographicArea) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *GeographicArea) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *GeographicArea) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *GeographicArea) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + +### GetPointList + +`func (o *GeographicArea) GetPointList() []GeographicalCoordinates` + +GetPointList returns the PointList field if non-nil, zero value otherwise. + +### GetPointListOk + +`func (o *GeographicArea) GetPointListOk() (*[]GeographicalCoordinates, bool)` + +GetPointListOk returns a tuple with the PointList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointList + +`func (o *GeographicArea) SetPointList(v []GeographicalCoordinates)` + +SetPointList sets PointList field to given value. + + +### GetAltitude + +`func (o *GeographicArea) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *GeographicArea) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *GeographicArea) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + +### GetUncertaintyAltitude + +`func (o *GeographicArea) GetUncertaintyAltitude() float32` + +GetUncertaintyAltitude returns the UncertaintyAltitude field if non-nil, zero value otherwise. + +### GetUncertaintyAltitudeOk + +`func (o *GeographicArea) GetUncertaintyAltitudeOk() (*float32, bool)` + +GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyAltitude + +`func (o *GeographicArea) SetUncertaintyAltitude(v float32)` + +SetUncertaintyAltitude sets UncertaintyAltitude field to given value. + + +### GetVConfidence + +`func (o *GeographicArea) GetVConfidence() int32` + +GetVConfidence returns the VConfidence field if non-nil, zero value otherwise. + +### GetVConfidenceOk + +`func (o *GeographicArea) GetVConfidenceOk() (*int32, bool)` + +GetVConfidenceOk returns a tuple with the VConfidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVConfidence + +`func (o *GeographicArea) SetVConfidence(v int32)` + +SetVConfidence sets VConfidence field to given value. + +### HasVConfidence + +`func (o *GeographicArea) HasVConfidence() bool` + +HasVConfidence returns a boolean if a field has been set. + +### GetInnerRadius + +`func (o *GeographicArea) GetInnerRadius() int32` + +GetInnerRadius returns the InnerRadius field if non-nil, zero value otherwise. + +### GetInnerRadiusOk + +`func (o *GeographicArea) GetInnerRadiusOk() (*int32, bool)` + +GetInnerRadiusOk returns a tuple with the InnerRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInnerRadius + +`func (o *GeographicArea) SetInnerRadius(v int32)` + +SetInnerRadius sets InnerRadius field to given value. + + +### GetUncertaintyRadius + +`func (o *GeographicArea) GetUncertaintyRadius() float32` + +GetUncertaintyRadius returns the UncertaintyRadius field if non-nil, zero value otherwise. + +### GetUncertaintyRadiusOk + +`func (o *GeographicArea) GetUncertaintyRadiusOk() (*float32, bool)` + +GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyRadius + +`func (o *GeographicArea) SetUncertaintyRadius(v float32)` + +SetUncertaintyRadius sets UncertaintyRadius field to given value. + + +### GetOffsetAngle + +`func (o *GeographicArea) GetOffsetAngle() int32` + +GetOffsetAngle returns the OffsetAngle field if non-nil, zero value otherwise. + +### GetOffsetAngleOk + +`func (o *GeographicArea) GetOffsetAngleOk() (*int32, bool)` + +GetOffsetAngleOk returns a tuple with the OffsetAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffsetAngle + +`func (o *GeographicArea) SetOffsetAngle(v int32)` + +SetOffsetAngle sets OffsetAngle field to given value. + + +### GetIncludedAngle + +`func (o *GeographicArea) GetIncludedAngle() int32` + +GetIncludedAngle returns the IncludedAngle field if non-nil, zero value otherwise. + +### GetIncludedAngleOk + +`func (o *GeographicArea) GetIncludedAngleOk() (*int32, bool)` + +GetIncludedAngleOk returns a tuple with the IncludedAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludedAngle + +`func (o *GeographicArea) SetIncludedAngle(v int32)` + +SetIncludedAngle sets IncludedAngle field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/GeographicalCoordinates.md b/internal/CapifDiscoverService/docs/GeographicalCoordinates.md new file mode 100644 index 0000000000000000000000000000000000000000..1bcb866ca23d2369ced3e7e1ce370bd230e17130 --- /dev/null +++ b/internal/CapifDiscoverService/docs/GeographicalCoordinates.md @@ -0,0 +1,72 @@ +# GeographicalCoordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lon** | **float64** | | +**Lat** | **float64** | | + +## Methods + +### NewGeographicalCoordinates + +`func NewGeographicalCoordinates(lon float64, lat float64, ) *GeographicalCoordinates` + +NewGeographicalCoordinates instantiates a new GeographicalCoordinates 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 + +### NewGeographicalCoordinatesWithDefaults + +`func NewGeographicalCoordinatesWithDefaults() *GeographicalCoordinates` + +NewGeographicalCoordinatesWithDefaults instantiates a new GeographicalCoordinates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLon + +`func (o *GeographicalCoordinates) GetLon() float64` + +GetLon returns the Lon field if non-nil, zero value otherwise. + +### GetLonOk + +`func (o *GeographicalCoordinates) GetLonOk() (*float64, bool)` + +GetLonOk returns a tuple with the Lon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLon + +`func (o *GeographicalCoordinates) SetLon(v float64)` + +SetLon sets Lon field to given value. + + +### GetLat + +`func (o *GeographicalCoordinates) GetLat() float64` + +GetLat returns the Lat field if non-nil, zero value otherwise. + +### GetLatOk + +`func (o *GeographicalCoordinates) GetLatOk() (*float64, bool)` + +GetLatOk returns a tuple with the Lat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLat + +`func (o *GeographicalCoordinates) SetLat(v float64)` + +SetLat sets Lat field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/InterfaceDescription.md b/internal/CapifDiscoverService/docs/InterfaceDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..d8028b51f483c1c26475863a957495fda5cf11d5 --- /dev/null +++ b/internal/CapifDiscoverService/docs/InterfaceDescription.md @@ -0,0 +1,134 @@ +# InterfaceDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ipv4Addr** | Pointer to **string** | string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. | [optional] +**Ipv6Addr** | Pointer to **string** | string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. | [optional] +**Port** | Pointer to **int32** | Unsigned integer with valid values between 0 and 65535. | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. | [optional] + +## Methods + +### NewInterfaceDescription + +`func NewInterfaceDescription() *InterfaceDescription` + +NewInterfaceDescription instantiates a new InterfaceDescription 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 + +### NewInterfaceDescriptionWithDefaults + +`func NewInterfaceDescriptionWithDefaults() *InterfaceDescription` + +NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIpv4Addr + +`func (o *InterfaceDescription) GetIpv4Addr() string` + +GetIpv4Addr returns the Ipv4Addr field if non-nil, zero value otherwise. + +### GetIpv4AddrOk + +`func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool)` + +GetIpv4AddrOk returns a tuple with the Ipv4Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv4Addr + +`func (o *InterfaceDescription) SetIpv4Addr(v string)` + +SetIpv4Addr sets Ipv4Addr field to given value. + +### HasIpv4Addr + +`func (o *InterfaceDescription) HasIpv4Addr() bool` + +HasIpv4Addr returns a boolean if a field has been set. + +### GetIpv6Addr + +`func (o *InterfaceDescription) GetIpv6Addr() string` + +GetIpv6Addr returns the Ipv6Addr field if non-nil, zero value otherwise. + +### GetIpv6AddrOk + +`func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool)` + +GetIpv6AddrOk returns a tuple with the Ipv6Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv6Addr + +`func (o *InterfaceDescription) SetIpv6Addr(v string)` + +SetIpv6Addr sets Ipv6Addr field to given value. + +### HasIpv6Addr + +`func (o *InterfaceDescription) HasIpv6Addr() bool` + +HasIpv6Addr returns a boolean if a field has been set. + +### GetPort + +`func (o *InterfaceDescription) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *InterfaceDescription) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *InterfaceDescription) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *InterfaceDescription) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *InterfaceDescription) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *InterfaceDescription) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/InvalidParam.md b/internal/CapifDiscoverService/docs/InvalidParam.md new file mode 100644 index 0000000000000000000000000000000000000000..f809021f398e0f4e40114ee3686d7c45edd829fe --- /dev/null +++ b/internal/CapifDiscoverService/docs/InvalidParam.md @@ -0,0 +1,77 @@ +# InvalidParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Param** | **string** | Attribute's name encoded as a JSON Pointer, or header's name. | +**Reason** | Pointer to **string** | A human-readable reason, e.g. \"must be a positive integer\". | [optional] + +## Methods + +### NewInvalidParam + +`func NewInvalidParam(param string, ) *InvalidParam` + +NewInvalidParam instantiates a new InvalidParam 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 + +### NewInvalidParamWithDefaults + +`func NewInvalidParamWithDefaults() *InvalidParam` + +NewInvalidParamWithDefaults instantiates a new InvalidParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParam + +`func (o *InvalidParam) GetParam() string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *InvalidParam) GetParamOk() (*string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *InvalidParam) SetParam(v string)` + +SetParam sets Param field to given value. + + +### GetReason + +`func (o *InvalidParam) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InvalidParam) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InvalidParam) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InvalidParam) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Local2dPointUncertaintyEllipse.md b/internal/CapifDiscoverService/docs/Local2dPointUncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..10e11811b30a294808b21f2c8a1d8b708e82f371 --- /dev/null +++ b/internal/CapifDiscoverService/docs/Local2dPointUncertaintyEllipse.md @@ -0,0 +1,114 @@ +# Local2dPointUncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalOrigin** | [**LocalOrigin**](LocalOrigin.md) | | +**Point** | [**RelativeCartesianLocation**](RelativeCartesianLocation.md) | | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewLocal2dPointUncertaintyEllipse + +`func NewLocal2dPointUncertaintyEllipse(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipse UncertaintyEllipse, confidence int32, ) *Local2dPointUncertaintyEllipse` + +NewLocal2dPointUncertaintyEllipse instantiates a new Local2dPointUncertaintyEllipse 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 + +### NewLocal2dPointUncertaintyEllipseWithDefaults + +`func NewLocal2dPointUncertaintyEllipseWithDefaults() *Local2dPointUncertaintyEllipse` + +NewLocal2dPointUncertaintyEllipseWithDefaults instantiates a new Local2dPointUncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocalOrigin + +`func (o *Local2dPointUncertaintyEllipse) GetLocalOrigin() LocalOrigin` + +GetLocalOrigin returns the LocalOrigin field if non-nil, zero value otherwise. + +### GetLocalOriginOk + +`func (o *Local2dPointUncertaintyEllipse) GetLocalOriginOk() (*LocalOrigin, bool)` + +GetLocalOriginOk returns a tuple with the LocalOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalOrigin + +`func (o *Local2dPointUncertaintyEllipse) SetLocalOrigin(v LocalOrigin)` + +SetLocalOrigin sets LocalOrigin field to given value. + + +### GetPoint + +`func (o *Local2dPointUncertaintyEllipse) GetPoint() RelativeCartesianLocation` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Local2dPointUncertaintyEllipse) GetPointOk() (*RelativeCartesianLocation, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Local2dPointUncertaintyEllipse) SetPoint(v RelativeCartesianLocation)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipse + +`func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *Local2dPointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *Local2dPointUncertaintyEllipse) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *Local2dPointUncertaintyEllipse) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *Local2dPointUncertaintyEllipse) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Local3dPointUncertaintyEllipsoid.md b/internal/CapifDiscoverService/docs/Local3dPointUncertaintyEllipsoid.md new file mode 100644 index 0000000000000000000000000000000000000000..a0bd82efc0353e52d221339b2e22e5d5139bd7ff --- /dev/null +++ b/internal/CapifDiscoverService/docs/Local3dPointUncertaintyEllipsoid.md @@ -0,0 +1,114 @@ +# Local3dPointUncertaintyEllipsoid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalOrigin** | [**LocalOrigin**](LocalOrigin.md) | | +**Point** | [**RelativeCartesianLocation**](RelativeCartesianLocation.md) | | +**UncertaintyEllipsoid** | [**UncertaintyEllipsoid**](UncertaintyEllipsoid.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewLocal3dPointUncertaintyEllipsoid + +`func NewLocal3dPointUncertaintyEllipsoid(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipsoid UncertaintyEllipsoid, confidence int32, ) *Local3dPointUncertaintyEllipsoid` + +NewLocal3dPointUncertaintyEllipsoid instantiates a new Local3dPointUncertaintyEllipsoid 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 + +### NewLocal3dPointUncertaintyEllipsoidWithDefaults + +`func NewLocal3dPointUncertaintyEllipsoidWithDefaults() *Local3dPointUncertaintyEllipsoid` + +NewLocal3dPointUncertaintyEllipsoidWithDefaults instantiates a new Local3dPointUncertaintyEllipsoid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocalOrigin + +`func (o *Local3dPointUncertaintyEllipsoid) GetLocalOrigin() LocalOrigin` + +GetLocalOrigin returns the LocalOrigin field if non-nil, zero value otherwise. + +### GetLocalOriginOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetLocalOriginOk() (*LocalOrigin, bool)` + +GetLocalOriginOk returns a tuple with the LocalOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalOrigin + +`func (o *Local3dPointUncertaintyEllipsoid) SetLocalOrigin(v LocalOrigin)` + +SetLocalOrigin sets LocalOrigin field to given value. + + +### GetPoint + +`func (o *Local3dPointUncertaintyEllipsoid) GetPoint() RelativeCartesianLocation` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetPointOk() (*RelativeCartesianLocation, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Local3dPointUncertaintyEllipsoid) SetPoint(v RelativeCartesianLocation)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipsoid + +`func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoid() UncertaintyEllipsoid` + +GetUncertaintyEllipsoid returns the UncertaintyEllipsoid field if non-nil, zero value otherwise. + +### GetUncertaintyEllipsoidOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoidOk() (*UncertaintyEllipsoid, bool)` + +GetUncertaintyEllipsoidOk returns a tuple with the UncertaintyEllipsoid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipsoid + +`func (o *Local3dPointUncertaintyEllipsoid) SetUncertaintyEllipsoid(v UncertaintyEllipsoid)` + +SetUncertaintyEllipsoid sets UncertaintyEllipsoid field to given value. + + +### GetConfidence + +`func (o *Local3dPointUncertaintyEllipsoid) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *Local3dPointUncertaintyEllipsoid) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/LocalOrigin.md b/internal/CapifDiscoverService/docs/LocalOrigin.md new file mode 100644 index 0000000000000000000000000000000000000000..8a5de33d298adf4cbecd699033d699319db73b68 --- /dev/null +++ b/internal/CapifDiscoverService/docs/LocalOrigin.md @@ -0,0 +1,82 @@ +# LocalOrigin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CoordinateId** | Pointer to **string** | | [optional] +**Point** | Pointer to [**GeographicalCoordinates**](GeographicalCoordinates.md) | | [optional] + +## Methods + +### NewLocalOrigin + +`func NewLocalOrigin() *LocalOrigin` + +NewLocalOrigin instantiates a new LocalOrigin 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 + +### NewLocalOriginWithDefaults + +`func NewLocalOriginWithDefaults() *LocalOrigin` + +NewLocalOriginWithDefaults instantiates a new LocalOrigin object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCoordinateId + +`func (o *LocalOrigin) GetCoordinateId() string` + +GetCoordinateId returns the CoordinateId field if non-nil, zero value otherwise. + +### GetCoordinateIdOk + +`func (o *LocalOrigin) GetCoordinateIdOk() (*string, bool)` + +GetCoordinateIdOk returns a tuple with the CoordinateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoordinateId + +`func (o *LocalOrigin) SetCoordinateId(v string)` + +SetCoordinateId sets CoordinateId field to given value. + +### HasCoordinateId + +`func (o *LocalOrigin) HasCoordinateId() bool` + +HasCoordinateId returns a boolean if a field has been set. + +### GetPoint + +`func (o *LocalOrigin) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *LocalOrigin) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *LocalOrigin) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + +### HasPoint + +`func (o *LocalOrigin) HasPoint() bool` + +HasPoint returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Operation.md b/internal/CapifDiscoverService/docs/Operation.md new file mode 100644 index 0000000000000000000000000000000000000000..2940414796e3dd8521e2d483ba10b32da911c20d --- /dev/null +++ b/internal/CapifDiscoverService/docs/Operation.md @@ -0,0 +1,30 @@ +# Operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewOperation + +`func NewOperation() *Operation` + +NewOperation instantiates a new Operation 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 + +### NewOperationWithDefaults + +`func NewOperationWithDefaults() *Operation` + +NewOperationWithDefaults instantiates a new Operation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Point.md b/internal/CapifDiscoverService/docs/Point.md new file mode 100644 index 0000000000000000000000000000000000000000..68b2d10ad0b5a1c898bb7acebf057b198f87d38f --- /dev/null +++ b/internal/CapifDiscoverService/docs/Point.md @@ -0,0 +1,51 @@ +# Point + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | + +## Methods + +### NewPoint + +`func NewPoint(point GeographicalCoordinates, ) *Point` + +NewPoint instantiates a new Point 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 + +### NewPointWithDefaults + +`func NewPointWithDefaults() *Point` + +NewPointWithDefaults instantiates a new Point object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *Point) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Point) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Point) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/PointAltitude.md b/internal/CapifDiscoverService/docs/PointAltitude.md new file mode 100644 index 0000000000000000000000000000000000000000..e2219e8b3577588553438dde423e73039e8e9893 --- /dev/null +++ b/internal/CapifDiscoverService/docs/PointAltitude.md @@ -0,0 +1,72 @@ +# PointAltitude + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Altitude** | **float64** | Indicates value of altitude. | + +## Methods + +### NewPointAltitude + +`func NewPointAltitude(point GeographicalCoordinates, altitude float64, ) *PointAltitude` + +NewPointAltitude instantiates a new PointAltitude 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 + +### NewPointAltitudeWithDefaults + +`func NewPointAltitudeWithDefaults() *PointAltitude` + +NewPointAltitudeWithDefaults instantiates a new PointAltitude object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointAltitude) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointAltitude) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointAltitude) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetAltitude + +`func (o *PointAltitude) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *PointAltitude) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *PointAltitude) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/PointAltitudeUncertainty.md b/internal/CapifDiscoverService/docs/PointAltitudeUncertainty.md new file mode 100644 index 0000000000000000000000000000000000000000..c79c4cf57a9b856abb33d5fa81da2603396985df --- /dev/null +++ b/internal/CapifDiscoverService/docs/PointAltitudeUncertainty.md @@ -0,0 +1,161 @@ +# PointAltitudeUncertainty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Altitude** | **float64** | Indicates value of altitude. | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**UncertaintyAltitude** | **float32** | Indicates value of uncertainty. | +**Confidence** | **int32** | Indicates value of confidence. | +**VConfidence** | Pointer to **int32** | Indicates value of confidence. | [optional] + +## Methods + +### NewPointAltitudeUncertainty + +`func NewPointAltitudeUncertainty(point GeographicalCoordinates, altitude float64, uncertaintyEllipse UncertaintyEllipse, uncertaintyAltitude float32, confidence int32, ) *PointAltitudeUncertainty` + +NewPointAltitudeUncertainty instantiates a new PointAltitudeUncertainty 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 + +### NewPointAltitudeUncertaintyWithDefaults + +`func NewPointAltitudeUncertaintyWithDefaults() *PointAltitudeUncertainty` + +NewPointAltitudeUncertaintyWithDefaults instantiates a new PointAltitudeUncertainty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointAltitudeUncertainty) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointAltitudeUncertainty) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointAltitudeUncertainty) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetAltitude + +`func (o *PointAltitudeUncertainty) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *PointAltitudeUncertainty) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *PointAltitudeUncertainty) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + +### GetUncertaintyEllipse + +`func (o *PointAltitudeUncertainty) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *PointAltitudeUncertainty) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *PointAltitudeUncertainty) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetUncertaintyAltitude + +`func (o *PointAltitudeUncertainty) GetUncertaintyAltitude() float32` + +GetUncertaintyAltitude returns the UncertaintyAltitude field if non-nil, zero value otherwise. + +### GetUncertaintyAltitudeOk + +`func (o *PointAltitudeUncertainty) GetUncertaintyAltitudeOk() (*float32, bool)` + +GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyAltitude + +`func (o *PointAltitudeUncertainty) SetUncertaintyAltitude(v float32)` + +SetUncertaintyAltitude sets UncertaintyAltitude field to given value. + + +### GetConfidence + +`func (o *PointAltitudeUncertainty) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *PointAltitudeUncertainty) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *PointAltitudeUncertainty) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + +### GetVConfidence + +`func (o *PointAltitudeUncertainty) GetVConfidence() int32` + +GetVConfidence returns the VConfidence field if non-nil, zero value otherwise. + +### GetVConfidenceOk + +`func (o *PointAltitudeUncertainty) GetVConfidenceOk() (*int32, bool)` + +GetVConfidenceOk returns a tuple with the VConfidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVConfidence + +`func (o *PointAltitudeUncertainty) SetVConfidence(v int32)` + +SetVConfidence sets VConfidence field to given value. + +### HasVConfidence + +`func (o *PointAltitudeUncertainty) HasVConfidence() bool` + +HasVConfidence returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/PointUncertaintyCircle.md b/internal/CapifDiscoverService/docs/PointUncertaintyCircle.md new file mode 100644 index 0000000000000000000000000000000000000000..1499a24f3c25d954717cb2c858d940300ecbf586 --- /dev/null +++ b/internal/CapifDiscoverService/docs/PointUncertaintyCircle.md @@ -0,0 +1,72 @@ +# PointUncertaintyCircle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Uncertainty** | **float32** | Indicates value of uncertainty. | + +## Methods + +### NewPointUncertaintyCircle + +`func NewPointUncertaintyCircle(point GeographicalCoordinates, uncertainty float32, ) *PointUncertaintyCircle` + +NewPointUncertaintyCircle instantiates a new PointUncertaintyCircle 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 + +### NewPointUncertaintyCircleWithDefaults + +`func NewPointUncertaintyCircleWithDefaults() *PointUncertaintyCircle` + +NewPointUncertaintyCircleWithDefaults instantiates a new PointUncertaintyCircle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointUncertaintyCircle) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointUncertaintyCircle) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointUncertaintyCircle) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertainty + +`func (o *PointUncertaintyCircle) GetUncertainty() float32` + +GetUncertainty returns the Uncertainty field if non-nil, zero value otherwise. + +### GetUncertaintyOk + +`func (o *PointUncertaintyCircle) GetUncertaintyOk() (*float32, bool)` + +GetUncertaintyOk returns a tuple with the Uncertainty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertainty + +`func (o *PointUncertaintyCircle) SetUncertainty(v float32)` + +SetUncertainty sets Uncertainty field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/PointUncertaintyEllipse.md b/internal/CapifDiscoverService/docs/PointUncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..786c3074e38de51d3071ea13f8cd6f0cd44ad766 --- /dev/null +++ b/internal/CapifDiscoverService/docs/PointUncertaintyEllipse.md @@ -0,0 +1,93 @@ +# PointUncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewPointUncertaintyEllipse + +`func NewPointUncertaintyEllipse(point GeographicalCoordinates, uncertaintyEllipse UncertaintyEllipse, confidence int32, ) *PointUncertaintyEllipse` + +NewPointUncertaintyEllipse instantiates a new PointUncertaintyEllipse 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 + +### NewPointUncertaintyEllipseWithDefaults + +`func NewPointUncertaintyEllipseWithDefaults() *PointUncertaintyEllipse` + +NewPointUncertaintyEllipseWithDefaults instantiates a new PointUncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointUncertaintyEllipse) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointUncertaintyEllipse) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointUncertaintyEllipse) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipse + +`func (o *PointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *PointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *PointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *PointUncertaintyEllipse) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *PointUncertaintyEllipse) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *PointUncertaintyEllipse) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Polygon.md b/internal/CapifDiscoverService/docs/Polygon.md new file mode 100644 index 0000000000000000000000000000000000000000..ddee5f0fa288b28cc417b9e75cab33bb2bea662b --- /dev/null +++ b/internal/CapifDiscoverService/docs/Polygon.md @@ -0,0 +1,51 @@ +# Polygon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PointList** | [**[]GeographicalCoordinates**](GeographicalCoordinates.md) | List of points. | + +## Methods + +### NewPolygon + +`func NewPolygon(pointList []GeographicalCoordinates, ) *Polygon` + +NewPolygon instantiates a new Polygon 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 + +### NewPolygonWithDefaults + +`func NewPolygonWithDefaults() *Polygon` + +NewPolygonWithDefaults instantiates a new Polygon object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPointList + +`func (o *Polygon) GetPointList() []GeographicalCoordinates` + +GetPointList returns the PointList field if non-nil, zero value otherwise. + +### GetPointListOk + +`func (o *Polygon) GetPointListOk() (*[]GeographicalCoordinates, bool)` + +GetPointListOk returns a tuple with the PointList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointList + +`func (o *Polygon) SetPointList(v []GeographicalCoordinates)` + +SetPointList sets PointList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/ProblemDetails.md b/internal/CapifDiscoverService/docs/ProblemDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..0f3b997d8cd366e0219cbf8828307d3241a1cdaf --- /dev/null +++ b/internal/CapifDiscoverService/docs/ProblemDetails.md @@ -0,0 +1,238 @@ +# ProblemDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Title** | Pointer to **string** | A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. | [optional] +**Status** | Pointer to **int32** | The HTTP status code for this occurrence of the problem. | [optional] +**Detail** | Pointer to **string** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**Instance** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Cause** | Pointer to **string** | A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. | [optional] +**InvalidParams** | Pointer to [**[]InvalidParam**](InvalidParam.md) | Description of invalid parameters, for a request rejected due to invalid parameters. | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewProblemDetails + +`func NewProblemDetails() *ProblemDetails` + +NewProblemDetails instantiates a new ProblemDetails 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 + +### NewProblemDetailsWithDefaults + +`func NewProblemDetailsWithDefaults() *ProblemDetails` + +NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ProblemDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProblemDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProblemDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProblemDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTitle + +`func (o *ProblemDetails) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ProblemDetails) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ProblemDetails) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ProblemDetails) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProblemDetails) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProblemDetails) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProblemDetails) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ProblemDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDetail + +`func (o *ProblemDetails) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ProblemDetails) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ProblemDetails) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ProblemDetails) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetInstance + +`func (o *ProblemDetails) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ProblemDetails) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ProblemDetails) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ProblemDetails) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetCause + +`func (o *ProblemDetails) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ProblemDetails) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ProblemDetails) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ProblemDetails) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInvalidParams + +`func (o *ProblemDetails) GetInvalidParams() []InvalidParam` + +GetInvalidParams returns the InvalidParams field if non-nil, zero value otherwise. + +### GetInvalidParamsOk + +`func (o *ProblemDetails) GetInvalidParamsOk() (*[]InvalidParam, bool)` + +GetInvalidParamsOk returns a tuple with the InvalidParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidParams + +`func (o *ProblemDetails) SetInvalidParams(v []InvalidParam)` + +SetInvalidParams sets InvalidParams field to given value. + +### HasInvalidParams + +`func (o *ProblemDetails) HasInvalidParams() bool` + +HasInvalidParams returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ProblemDetails) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ProblemDetails) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ProblemDetails) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Protocol.md b/internal/CapifDiscoverService/docs/Protocol.md new file mode 100644 index 0000000000000000000000000000000000000000..be484b8f7278d3ab560eb6f6808f6c0b4688d081 --- /dev/null +++ b/internal/CapifDiscoverService/docs/Protocol.md @@ -0,0 +1,30 @@ +# Protocol + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewProtocol + +`func NewProtocol() *Protocol` + +NewProtocol instantiates a new Protocol 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 + +### NewProtocolWithDefaults + +`func NewProtocolWithDefaults() *Protocol` + +NewProtocolWithDefaults instantiates a new Protocol object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/PublishedApiPath.md b/internal/CapifDiscoverService/docs/PublishedApiPath.md new file mode 100644 index 0000000000000000000000000000000000000000..57cfe6c9650882b25fb02ec80a63ef7f0ee0ee41 --- /dev/null +++ b/internal/CapifDiscoverService/docs/PublishedApiPath.md @@ -0,0 +1,56 @@ +# PublishedApiPath + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CcfIds** | Pointer to **[]string** | A list of CCF identifiers where the service API is already published. | [optional] + +## Methods + +### NewPublishedApiPath + +`func NewPublishedApiPath() *PublishedApiPath` + +NewPublishedApiPath instantiates a new PublishedApiPath 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 + +### NewPublishedApiPathWithDefaults + +`func NewPublishedApiPathWithDefaults() *PublishedApiPath` + +NewPublishedApiPathWithDefaults instantiates a new PublishedApiPath object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCcfIds + +`func (o *PublishedApiPath) GetCcfIds() []string` + +GetCcfIds returns the CcfIds field if non-nil, zero value otherwise. + +### GetCcfIdsOk + +`func (o *PublishedApiPath) GetCcfIdsOk() (*[]string, bool)` + +GetCcfIdsOk returns a tuple with the CcfIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfIds + +`func (o *PublishedApiPath) SetCcfIds(v []string)` + +SetCcfIds sets CcfIds field to given value. + +### HasCcfIds + +`func (o *PublishedApiPath) HasCcfIds() bool` + +HasCcfIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/RelativeCartesianLocation.md b/internal/CapifDiscoverService/docs/RelativeCartesianLocation.md new file mode 100644 index 0000000000000000000000000000000000000000..e43596ff74165438f506bc441546699928e107d3 --- /dev/null +++ b/internal/CapifDiscoverService/docs/RelativeCartesianLocation.md @@ -0,0 +1,98 @@ +# RelativeCartesianLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**X** | **float32** | string with format 'float' as defined in OpenAPI. | +**Y** | **float32** | string with format 'float' as defined in OpenAPI. | +**Z** | Pointer to **float32** | string with format 'float' as defined in OpenAPI. | [optional] + +## Methods + +### NewRelativeCartesianLocation + +`func NewRelativeCartesianLocation(x float32, y float32, ) *RelativeCartesianLocation` + +NewRelativeCartesianLocation instantiates a new RelativeCartesianLocation 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 + +### NewRelativeCartesianLocationWithDefaults + +`func NewRelativeCartesianLocationWithDefaults() *RelativeCartesianLocation` + +NewRelativeCartesianLocationWithDefaults instantiates a new RelativeCartesianLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetX + +`func (o *RelativeCartesianLocation) GetX() float32` + +GetX returns the X field if non-nil, zero value otherwise. + +### GetXOk + +`func (o *RelativeCartesianLocation) GetXOk() (*float32, bool)` + +GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX + +`func (o *RelativeCartesianLocation) SetX(v float32)` + +SetX sets X field to given value. + + +### GetY + +`func (o *RelativeCartesianLocation) GetY() float32` + +GetY returns the Y field if non-nil, zero value otherwise. + +### GetYOk + +`func (o *RelativeCartesianLocation) GetYOk() (*float32, bool)` + +GetYOk returns a tuple with the Y field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetY + +`func (o *RelativeCartesianLocation) SetY(v float32)` + +SetY sets Y field to given value. + + +### GetZ + +`func (o *RelativeCartesianLocation) GetZ() float32` + +GetZ returns the Z field if non-nil, zero value otherwise. + +### GetZOk + +`func (o *RelativeCartesianLocation) GetZOk() (*float32, bool)` + +GetZOk returns a tuple with the Z field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZ + +`func (o *RelativeCartesianLocation) SetZ(v float32)` + +SetZ sets Z field to given value. + +### HasZ + +`func (o *RelativeCartesianLocation) HasZ() bool` + +HasZ returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Resource.md b/internal/CapifDiscoverService/docs/Resource.md new file mode 100644 index 0000000000000000000000000000000000000000..a21f56e669c62e935e6fcd02a881166d4e7f953e --- /dev/null +++ b/internal/CapifDiscoverService/docs/Resource.md @@ -0,0 +1,171 @@ +# Resource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceName** | **string** | Resource name | +**CommType** | [**CommunicationType**](CommunicationType.md) | | +**Uri** | **string** | Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | +**CustOpName** | Pointer to **string** | it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. | [optional] +**Operations** | Pointer to [**[]Operation**](Operation.md) | Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. | [optional] +**Description** | Pointer to **string** | Text description of the API resource | [optional] + +## Methods + +### NewResource + +`func NewResource(resourceName string, commType CommunicationType, uri string, ) *Resource` + +NewResource instantiates a new Resource 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 + +### NewResourceWithDefaults + +`func NewResourceWithDefaults() *Resource` + +NewResourceWithDefaults instantiates a new Resource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResourceName + +`func (o *Resource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *Resource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *Resource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + + +### GetCommType + +`func (o *Resource) GetCommType() CommunicationType` + +GetCommType returns the CommType field if non-nil, zero value otherwise. + +### GetCommTypeOk + +`func (o *Resource) GetCommTypeOk() (*CommunicationType, bool)` + +GetCommTypeOk returns a tuple with the CommType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommType + +`func (o *Resource) SetCommType(v CommunicationType)` + +SetCommType sets CommType field to given value. + + +### GetUri + +`func (o *Resource) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *Resource) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *Resource) SetUri(v string)` + +SetUri sets Uri field to given value. + + +### GetCustOpName + +`func (o *Resource) GetCustOpName() string` + +GetCustOpName returns the CustOpName field if non-nil, zero value otherwise. + +### GetCustOpNameOk + +`func (o *Resource) GetCustOpNameOk() (*string, bool)` + +GetCustOpNameOk returns a tuple with the CustOpName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOpName + +`func (o *Resource) SetCustOpName(v string)` + +SetCustOpName sets CustOpName field to given value. + +### HasCustOpName + +`func (o *Resource) HasCustOpName() bool` + +HasCustOpName returns a boolean if a field has been set. + +### GetOperations + +`func (o *Resource) GetOperations() []Operation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *Resource) GetOperationsOk() (*[]Operation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *Resource) SetOperations(v []Operation)` + +SetOperations sets Operations field to given value. + +### HasOperations + +`func (o *Resource) HasOperations() bool` + +HasOperations returns a boolean if a field has been set. + +### GetDescription + +`func (o *Resource) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Resource) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Resource) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Resource) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/SecurityMethod.md b/internal/CapifDiscoverService/docs/SecurityMethod.md new file mode 100644 index 0000000000000000000000000000000000000000..c2bc7c0499975a1153aa5a5c0ab0343ea2c218c8 --- /dev/null +++ b/internal/CapifDiscoverService/docs/SecurityMethod.md @@ -0,0 +1,30 @@ +# SecurityMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSecurityMethod + +`func NewSecurityMethod() *SecurityMethod` + +NewSecurityMethod instantiates a new SecurityMethod 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 + +### NewSecurityMethodWithDefaults + +`func NewSecurityMethodWithDefaults() *SecurityMethod` + +NewSecurityMethodWithDefaults instantiates a new SecurityMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/ServiceAPIDescription.md b/internal/CapifDiscoverService/docs/ServiceAPIDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..50fce14878b96816e5ae5f42c65ddf6ec886447c --- /dev/null +++ b/internal/CapifDiscoverService/docs/ServiceAPIDescription.md @@ -0,0 +1,285 @@ +# ServiceAPIDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiName** | **string** | API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | +**ApiId** | Pointer to **string** | API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). | [optional] +**AefProfiles** | Pointer to [**[]AefProfile**](AefProfile.md) | AEF profile information, which includes the exposed API details (e.g. protocol). | [optional] +**Description** | Pointer to **string** | Text description of the API | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**ShareableInfo** | Pointer to [**ShareableInformation**](ShareableInformation.md) | | [optional] +**ServiceAPICategory** | Pointer to **string** | | [optional] +**ApiSuppFeats** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**PubApiPath** | Pointer to [**PublishedApiPath**](PublishedApiPath.md) | | [optional] +**CcfId** | Pointer to **string** | CAPIF core function identifier. | [optional] + +## Methods + +### NewServiceAPIDescription + +`func NewServiceAPIDescription(apiName string, ) *ServiceAPIDescription` + +NewServiceAPIDescription instantiates a new ServiceAPIDescription 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 + +### NewServiceAPIDescriptionWithDefaults + +`func NewServiceAPIDescriptionWithDefaults() *ServiceAPIDescription` + +NewServiceAPIDescriptionWithDefaults instantiates a new ServiceAPIDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiName + +`func (o *ServiceAPIDescription) GetApiName() string` + +GetApiName returns the ApiName field if non-nil, zero value otherwise. + +### GetApiNameOk + +`func (o *ServiceAPIDescription) GetApiNameOk() (*string, bool)` + +GetApiNameOk returns a tuple with the ApiName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiName + +`func (o *ServiceAPIDescription) SetApiName(v string)` + +SetApiName sets ApiName field to given value. + + +### GetApiId + +`func (o *ServiceAPIDescription) GetApiId() string` + +GetApiId returns the ApiId field if non-nil, zero value otherwise. + +### GetApiIdOk + +`func (o *ServiceAPIDescription) GetApiIdOk() (*string, bool)` + +GetApiIdOk returns a tuple with the ApiId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiId + +`func (o *ServiceAPIDescription) SetApiId(v string)` + +SetApiId sets ApiId field to given value. + +### HasApiId + +`func (o *ServiceAPIDescription) HasApiId() bool` + +HasApiId returns a boolean if a field has been set. + +### GetAefProfiles + +`func (o *ServiceAPIDescription) GetAefProfiles() []AefProfile` + +GetAefProfiles returns the AefProfiles field if non-nil, zero value otherwise. + +### GetAefProfilesOk + +`func (o *ServiceAPIDescription) GetAefProfilesOk() (*[]AefProfile, bool)` + +GetAefProfilesOk returns a tuple with the AefProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefProfiles + +`func (o *ServiceAPIDescription) SetAefProfiles(v []AefProfile)` + +SetAefProfiles sets AefProfiles field to given value. + +### HasAefProfiles + +`func (o *ServiceAPIDescription) HasAefProfiles() bool` + +HasAefProfiles returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAPIDescription) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAPIDescription) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAPIDescription) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAPIDescription) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ServiceAPIDescription) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ServiceAPIDescription) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ServiceAPIDescription) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ServiceAPIDescription) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + +### GetShareableInfo + +`func (o *ServiceAPIDescription) GetShareableInfo() ShareableInformation` + +GetShareableInfo returns the ShareableInfo field if non-nil, zero value otherwise. + +### GetShareableInfoOk + +`func (o *ServiceAPIDescription) GetShareableInfoOk() (*ShareableInformation, bool)` + +GetShareableInfoOk returns a tuple with the ShareableInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareableInfo + +`func (o *ServiceAPIDescription) SetShareableInfo(v ShareableInformation)` + +SetShareableInfo sets ShareableInfo field to given value. + +### HasShareableInfo + +`func (o *ServiceAPIDescription) HasShareableInfo() bool` + +HasShareableInfo returns a boolean if a field has been set. + +### GetServiceAPICategory + +`func (o *ServiceAPIDescription) GetServiceAPICategory() string` + +GetServiceAPICategory returns the ServiceAPICategory field if non-nil, zero value otherwise. + +### GetServiceAPICategoryOk + +`func (o *ServiceAPIDescription) GetServiceAPICategoryOk() (*string, bool)` + +GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAPICategory + +`func (o *ServiceAPIDescription) SetServiceAPICategory(v string)` + +SetServiceAPICategory sets ServiceAPICategory field to given value. + +### HasServiceAPICategory + +`func (o *ServiceAPIDescription) HasServiceAPICategory() bool` + +HasServiceAPICategory returns a boolean if a field has been set. + +### GetApiSuppFeats + +`func (o *ServiceAPIDescription) GetApiSuppFeats() string` + +GetApiSuppFeats returns the ApiSuppFeats field if non-nil, zero value otherwise. + +### GetApiSuppFeatsOk + +`func (o *ServiceAPIDescription) GetApiSuppFeatsOk() (*string, bool)` + +GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiSuppFeats + +`func (o *ServiceAPIDescription) SetApiSuppFeats(v string)` + +SetApiSuppFeats sets ApiSuppFeats field to given value. + +### HasApiSuppFeats + +`func (o *ServiceAPIDescription) HasApiSuppFeats() bool` + +HasApiSuppFeats returns a boolean if a field has been set. + +### GetPubApiPath + +`func (o *ServiceAPIDescription) GetPubApiPath() PublishedApiPath` + +GetPubApiPath returns the PubApiPath field if non-nil, zero value otherwise. + +### GetPubApiPathOk + +`func (o *ServiceAPIDescription) GetPubApiPathOk() (*PublishedApiPath, bool)` + +GetPubApiPathOk returns a tuple with the PubApiPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPubApiPath + +`func (o *ServiceAPIDescription) SetPubApiPath(v PublishedApiPath)` + +SetPubApiPath sets PubApiPath field to given value. + +### HasPubApiPath + +`func (o *ServiceAPIDescription) HasPubApiPath() bool` + +HasPubApiPath returns a boolean if a field has been set. + +### GetCcfId + +`func (o *ServiceAPIDescription) GetCcfId() string` + +GetCcfId returns the CcfId field if non-nil, zero value otherwise. + +### GetCcfIdOk + +`func (o *ServiceAPIDescription) GetCcfIdOk() (*string, bool)` + +GetCcfIdOk returns a tuple with the CcfId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfId + +`func (o *ServiceAPIDescription) SetCcfId(v string)` + +SetCcfId sets CcfId field to given value. + +### HasCcfId + +`func (o *ServiceAPIDescription) HasCcfId() bool` + +HasCcfId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/ShareableInformation.md b/internal/CapifDiscoverService/docs/ShareableInformation.md new file mode 100644 index 0000000000000000000000000000000000000000..c96c533fd46eb16a6d5f89ed89135bfe28755d08 --- /dev/null +++ b/internal/CapifDiscoverService/docs/ShareableInformation.md @@ -0,0 +1,77 @@ +# ShareableInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsShareable** | **bool** | Set to \"true\" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to \"false\". | +**CapifProvDoms** | Pointer to **[]string** | List of CAPIF provider domains to which the service API information to be shared. | [optional] + +## Methods + +### NewShareableInformation + +`func NewShareableInformation(isShareable bool, ) *ShareableInformation` + +NewShareableInformation instantiates a new ShareableInformation 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 + +### NewShareableInformationWithDefaults + +`func NewShareableInformationWithDefaults() *ShareableInformation` + +NewShareableInformationWithDefaults instantiates a new ShareableInformation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsShareable + +`func (o *ShareableInformation) GetIsShareable() bool` + +GetIsShareable returns the IsShareable field if non-nil, zero value otherwise. + +### GetIsShareableOk + +`func (o *ShareableInformation) GetIsShareableOk() (*bool, bool)` + +GetIsShareableOk returns a tuple with the IsShareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsShareable + +`func (o *ShareableInformation) SetIsShareable(v bool)` + +SetIsShareable sets IsShareable field to given value. + + +### GetCapifProvDoms + +`func (o *ShareableInformation) GetCapifProvDoms() []string` + +GetCapifProvDoms returns the CapifProvDoms field if non-nil, zero value otherwise. + +### GetCapifProvDomsOk + +`func (o *ShareableInformation) GetCapifProvDomsOk() (*[]string, bool)` + +GetCapifProvDomsOk returns a tuple with the CapifProvDoms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapifProvDoms + +`func (o *ShareableInformation) SetCapifProvDoms(v []string)` + +SetCapifProvDoms sets CapifProvDoms field to given value. + +### HasCapifProvDoms + +`func (o *ShareableInformation) HasCapifProvDoms() bool` + +HasCapifProvDoms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/SupportedGADShapes.md b/internal/CapifDiscoverService/docs/SupportedGADShapes.md new file mode 100644 index 0000000000000000000000000000000000000000..f5d216ecf841b87ac5ee6c06892e087503c504e9 --- /dev/null +++ b/internal/CapifDiscoverService/docs/SupportedGADShapes.md @@ -0,0 +1,30 @@ +# SupportedGADShapes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSupportedGADShapes + +`func NewSupportedGADShapes() *SupportedGADShapes` + +NewSupportedGADShapes instantiates a new SupportedGADShapes 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 + +### NewSupportedGADShapesWithDefaults + +`func NewSupportedGADShapesWithDefaults() *SupportedGADShapes` + +NewSupportedGADShapesWithDefaults instantiates a new SupportedGADShapes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/UncertaintyEllipse.md b/internal/CapifDiscoverService/docs/UncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..c183d397df665dd9e97670f9de7f1318351d4f15 --- /dev/null +++ b/internal/CapifDiscoverService/docs/UncertaintyEllipse.md @@ -0,0 +1,93 @@ +# UncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SemiMajor** | **float32** | Indicates value of uncertainty. | +**SemiMinor** | **float32** | Indicates value of uncertainty. | +**OrientationMajor** | **int32** | Indicates value of orientation angle. | + +## Methods + +### NewUncertaintyEllipse + +`func NewUncertaintyEllipse(semiMajor float32, semiMinor float32, orientationMajor int32, ) *UncertaintyEllipse` + +NewUncertaintyEllipse instantiates a new UncertaintyEllipse 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 + +### NewUncertaintyEllipseWithDefaults + +`func NewUncertaintyEllipseWithDefaults() *UncertaintyEllipse` + +NewUncertaintyEllipseWithDefaults instantiates a new UncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSemiMajor + +`func (o *UncertaintyEllipse) GetSemiMajor() float32` + +GetSemiMajor returns the SemiMajor field if non-nil, zero value otherwise. + +### GetSemiMajorOk + +`func (o *UncertaintyEllipse) GetSemiMajorOk() (*float32, bool)` + +GetSemiMajorOk returns a tuple with the SemiMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMajor + +`func (o *UncertaintyEllipse) SetSemiMajor(v float32)` + +SetSemiMajor sets SemiMajor field to given value. + + +### GetSemiMinor + +`func (o *UncertaintyEllipse) GetSemiMinor() float32` + +GetSemiMinor returns the SemiMinor field if non-nil, zero value otherwise. + +### GetSemiMinorOk + +`func (o *UncertaintyEllipse) GetSemiMinorOk() (*float32, bool)` + +GetSemiMinorOk returns a tuple with the SemiMinor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMinor + +`func (o *UncertaintyEllipse) SetSemiMinor(v float32)` + +SetSemiMinor sets SemiMinor field to given value. + + +### GetOrientationMajor + +`func (o *UncertaintyEllipse) GetOrientationMajor() int32` + +GetOrientationMajor returns the OrientationMajor field if non-nil, zero value otherwise. + +### GetOrientationMajorOk + +`func (o *UncertaintyEllipse) GetOrientationMajorOk() (*int32, bool)` + +GetOrientationMajorOk returns a tuple with the OrientationMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrientationMajor + +`func (o *UncertaintyEllipse) SetOrientationMajor(v int32)` + +SetOrientationMajor sets OrientationMajor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/UncertaintyEllipsoid.md b/internal/CapifDiscoverService/docs/UncertaintyEllipsoid.md new file mode 100644 index 0000000000000000000000000000000000000000..8ef0a2cea838fad4083570661cd06099ac73d6db --- /dev/null +++ b/internal/CapifDiscoverService/docs/UncertaintyEllipsoid.md @@ -0,0 +1,114 @@ +# UncertaintyEllipsoid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SemiMajor** | **float32** | Indicates value of uncertainty. | +**SemiMinor** | **float32** | Indicates value of uncertainty. | +**Vertical** | **float32** | Indicates value of uncertainty. | +**OrientationMajor** | **int32** | Indicates value of orientation angle. | + +## Methods + +### NewUncertaintyEllipsoid + +`func NewUncertaintyEllipsoid(semiMajor float32, semiMinor float32, vertical float32, orientationMajor int32, ) *UncertaintyEllipsoid` + +NewUncertaintyEllipsoid instantiates a new UncertaintyEllipsoid 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 + +### NewUncertaintyEllipsoidWithDefaults + +`func NewUncertaintyEllipsoidWithDefaults() *UncertaintyEllipsoid` + +NewUncertaintyEllipsoidWithDefaults instantiates a new UncertaintyEllipsoid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSemiMajor + +`func (o *UncertaintyEllipsoid) GetSemiMajor() float32` + +GetSemiMajor returns the SemiMajor field if non-nil, zero value otherwise. + +### GetSemiMajorOk + +`func (o *UncertaintyEllipsoid) GetSemiMajorOk() (*float32, bool)` + +GetSemiMajorOk returns a tuple with the SemiMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMajor + +`func (o *UncertaintyEllipsoid) SetSemiMajor(v float32)` + +SetSemiMajor sets SemiMajor field to given value. + + +### GetSemiMinor + +`func (o *UncertaintyEllipsoid) GetSemiMinor() float32` + +GetSemiMinor returns the SemiMinor field if non-nil, zero value otherwise. + +### GetSemiMinorOk + +`func (o *UncertaintyEllipsoid) GetSemiMinorOk() (*float32, bool)` + +GetSemiMinorOk returns a tuple with the SemiMinor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMinor + +`func (o *UncertaintyEllipsoid) SetSemiMinor(v float32)` + +SetSemiMinor sets SemiMinor field to given value. + + +### GetVertical + +`func (o *UncertaintyEllipsoid) GetVertical() float32` + +GetVertical returns the Vertical field if non-nil, zero value otherwise. + +### GetVerticalOk + +`func (o *UncertaintyEllipsoid) GetVerticalOk() (*float32, bool)` + +GetVerticalOk returns a tuple with the Vertical field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVertical + +`func (o *UncertaintyEllipsoid) SetVertical(v float32)` + +SetVertical sets Vertical field to given value. + + +### GetOrientationMajor + +`func (o *UncertaintyEllipsoid) GetOrientationMajor() int32` + +GetOrientationMajor returns the OrientationMajor field if non-nil, zero value otherwise. + +### GetOrientationMajorOk + +`func (o *UncertaintyEllipsoid) GetOrientationMajorOk() (*int32, bool)` + +GetOrientationMajorOk returns a tuple with the OrientationMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrientationMajor + +`func (o *UncertaintyEllipsoid) SetOrientationMajor(v int32)` + +SetOrientationMajor sets OrientationMajor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/docs/Version.md b/internal/CapifDiscoverService/docs/Version.md new file mode 100644 index 0000000000000000000000000000000000000000..4c153842c87b93e6fbad2f651bc9952dda9c92bc --- /dev/null +++ b/internal/CapifDiscoverService/docs/Version.md @@ -0,0 +1,129 @@ +# Version + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **string** | API major version in URI (e.g. v1) | +**Expiry** | Pointer to **time.Time** | string with format \"date-time\" as defined in OpenAPI. | [optional] +**Resources** | Pointer to [**[]Resource**](Resource.md) | Resources supported by the API. | [optional] +**CustOperations** | Pointer to [**[]CustomOperation**](CustomOperation.md) | Custom operations without resource association. | [optional] + +## Methods + +### NewVersion + +`func NewVersion(apiVersion string, ) *Version` + +NewVersion instantiates a new Version 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 + +### NewVersionWithDefaults + +`func NewVersionWithDefaults() *Version` + +NewVersionWithDefaults instantiates a new Version object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *Version) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *Version) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *Version) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + + +### GetExpiry + +`func (o *Version) GetExpiry() time.Time` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *Version) GetExpiryOk() (*time.Time, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *Version) SetExpiry(v time.Time)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *Version) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + +### GetResources + +`func (o *Version) GetResources() []Resource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *Version) GetResourcesOk() (*[]Resource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *Version) SetResources(v []Resource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *Version) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetCustOperations + +`func (o *Version) GetCustOperations() []CustomOperation` + +GetCustOperations returns the CustOperations field if non-nil, zero value otherwise. + +### GetCustOperationsOk + +`func (o *Version) GetCustOperationsOk() (*[]CustomOperation, bool)` + +GetCustOperationsOk returns a tuple with the CustOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOperations + +`func (o *Version) SetCustOperations(v []CustomOperation)` + +SetCustOperations sets CustOperations field to given value. + +### HasCustOperations + +`func (o *Version) HasCustOperations() bool` + +HasCustOperations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifDiscoverService/go.sum b/internal/CapifDiscoverService/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..c966c8ddfd0dc3dad992126bb0eb50503ecce01a --- /dev/null +++ b/internal/CapifDiscoverService/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/internal/CapifDiscoverService/model_aef_location.go b/internal/CapifDiscoverService/model_aef_location.go new file mode 100644 index 0000000000000000000000000000000000000000..553f6a0b25bd007638ed1a1e9e873da77b72035c --- /dev/null +++ b/internal/CapifDiscoverService/model_aef_location.go @@ -0,0 +1,199 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the AefLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AefLocation{} + +// AefLocation The location information (e.g. civic address, GPS coordinates, data center ID) where the AEF providing the service API is located. +type AefLocation struct { + CivicAddr *CivicAddress `json:"civicAddr,omitempty"` + GeoArea *GeographicArea `json:"geoArea,omitempty"` + // Identifies the data center where the AEF providing the service API is located. + DcId *string `json:"dcId,omitempty"` +} + +// NewAefLocation instantiates a new AefLocation 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 NewAefLocation() *AefLocation { + this := AefLocation{} + return &this +} + +// NewAefLocationWithDefaults instantiates a new AefLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAefLocationWithDefaults() *AefLocation { + this := AefLocation{} + return &this +} + +// GetCivicAddr returns the CivicAddr field value if set, zero value otherwise. +func (o *AefLocation) GetCivicAddr() CivicAddress { + if o == nil || IsNil(o.CivicAddr) { + var ret CivicAddress + return ret + } + return *o.CivicAddr +} + +// GetCivicAddrOk returns a tuple with the CivicAddr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetCivicAddrOk() (*CivicAddress, bool) { + if o == nil || IsNil(o.CivicAddr) { + return nil, false + } + return o.CivicAddr, true +} + +// HasCivicAddr returns a boolean if a field has been set. +func (o *AefLocation) HasCivicAddr() bool { + if o != nil && !IsNil(o.CivicAddr) { + return true + } + + return false +} + +// SetCivicAddr gets a reference to the given CivicAddress and assigns it to the CivicAddr field. +func (o *AefLocation) SetCivicAddr(v CivicAddress) { + o.CivicAddr = &v +} + +// GetGeoArea returns the GeoArea field value if set, zero value otherwise. +func (o *AefLocation) GetGeoArea() GeographicArea { + if o == nil || IsNil(o.GeoArea) { + var ret GeographicArea + return ret + } + return *o.GeoArea +} + +// GetGeoAreaOk returns a tuple with the GeoArea field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetGeoAreaOk() (*GeographicArea, bool) { + if o == nil || IsNil(o.GeoArea) { + return nil, false + } + return o.GeoArea, true +} + +// HasGeoArea returns a boolean if a field has been set. +func (o *AefLocation) HasGeoArea() bool { + if o != nil && !IsNil(o.GeoArea) { + return true + } + + return false +} + +// SetGeoArea gets a reference to the given GeographicArea and assigns it to the GeoArea field. +func (o *AefLocation) SetGeoArea(v GeographicArea) { + o.GeoArea = &v +} + +// GetDcId returns the DcId field value if set, zero value otherwise. +func (o *AefLocation) GetDcId() string { + if o == nil || IsNil(o.DcId) { + var ret string + return ret + } + return *o.DcId +} + +// GetDcIdOk returns a tuple with the DcId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetDcIdOk() (*string, bool) { + if o == nil || IsNil(o.DcId) { + return nil, false + } + return o.DcId, true +} + +// HasDcId returns a boolean if a field has been set. +func (o *AefLocation) HasDcId() bool { + if o != nil && !IsNil(o.DcId) { + return true + } + + return false +} + +// SetDcId gets a reference to the given string and assigns it to the DcId field. +func (o *AefLocation) SetDcId(v string) { + o.DcId = &v +} + +func (o AefLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AefLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CivicAddr) { + toSerialize["civicAddr"] = o.CivicAddr + } + if !IsNil(o.GeoArea) { + toSerialize["geoArea"] = o.GeoArea + } + if !IsNil(o.DcId) { + toSerialize["dcId"] = o.DcId + } + return toSerialize, nil +} + +type NullableAefLocation struct { + value *AefLocation + isSet bool +} + +func (v NullableAefLocation) Get() *AefLocation { + return v.value +} + +func (v *NullableAefLocation) Set(val *AefLocation) { + v.value = val + v.isSet = true +} + +func (v NullableAefLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableAefLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAefLocation(val *AefLocation) *NullableAefLocation { + return &NullableAefLocation{value: val, isSet: true} +} + +func (v NullableAefLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAefLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_aef_profile.go b/internal/CapifDiscoverService/model_aef_profile.go new file mode 100644 index 0000000000000000000000000000000000000000..094abfb6edffc84df0865cc89d4e217ada05769d --- /dev/null +++ b/internal/CapifDiscoverService/model_aef_profile.go @@ -0,0 +1,405 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AefProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AefProfile{} + +// AefProfile Represents the AEF profile data. +type AefProfile struct { + // Identifier of the API exposing function + AefId string `json:"aefId"` + // API version + Versions []Version `json:"versions"` + Protocol *Protocol `json:"protocol,omitempty"` + DataFormat *DataFormat `json:"dataFormat,omitempty"` + // Security methods supported by the AEF + SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"` + // Domain to which API belongs to + DomainName *string `json:"domainName,omitempty"` + // Interface details + InterfaceDescriptions []InterfaceDescription `json:"interfaceDescriptions,omitempty"` + AefLocation *AefLocation `json:"aefLocation,omitempty"` +} + +type _AefProfile AefProfile + +// NewAefProfile instantiates a new AefProfile 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 NewAefProfile(aefId string, versions []Version) *AefProfile { + this := AefProfile{} + return &this +} + +// NewAefProfileWithDefaults instantiates a new AefProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAefProfileWithDefaults() *AefProfile { + this := AefProfile{} + return &this +} + +// GetAefId returns the AefId field value +func (o *AefProfile) GetAefId() string { + if o == nil { + var ret string + return ret + } + + return o.AefId +} + +// GetAefIdOk returns a tuple with the AefId field value +// and a boolean to check if the value has been set. +func (o *AefProfile) GetAefIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AefId, true +} + +// SetAefId sets field value +func (o *AefProfile) SetAefId(v string) { + o.AefId = v +} + +// GetVersions returns the Versions field value +func (o *AefProfile) GetVersions() []Version { + if o == nil { + var ret []Version + return ret + } + + return o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value +// and a boolean to check if the value has been set. +func (o *AefProfile) GetVersionsOk() ([]Version, bool) { + if o == nil { + return nil, false + } + return o.Versions, true +} + +// SetVersions sets field value +func (o *AefProfile) SetVersions(v []Version) { + o.Versions = v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *AefProfile) GetProtocol() Protocol { + if o == nil || IsNil(o.Protocol) { + var ret Protocol + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetProtocolOk() (*Protocol, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *AefProfile) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given Protocol and assigns it to the Protocol field. +func (o *AefProfile) SetProtocol(v Protocol) { + o.Protocol = &v +} + +// GetDataFormat returns the DataFormat field value if set, zero value otherwise. +func (o *AefProfile) GetDataFormat() DataFormat { + if o == nil || IsNil(o.DataFormat) { + var ret DataFormat + return ret + } + return *o.DataFormat +} + +// GetDataFormatOk returns a tuple with the DataFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetDataFormatOk() (*DataFormat, bool) { + if o == nil || IsNil(o.DataFormat) { + return nil, false + } + return o.DataFormat, true +} + +// HasDataFormat returns a boolean if a field has been set. +func (o *AefProfile) HasDataFormat() bool { + if o != nil && !IsNil(o.DataFormat) { + return true + } + + return false +} + +// SetDataFormat gets a reference to the given DataFormat and assigns it to the DataFormat field. +func (o *AefProfile) SetDataFormat(v DataFormat) { + o.DataFormat = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *AefProfile) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *AefProfile) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *AefProfile) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +// GetDomainName returns the DomainName field value if set, zero value otherwise. +func (o *AefProfile) GetDomainName() string { + if o == nil || IsNil(o.DomainName) { + var ret string + return ret + } + return *o.DomainName +} + +// GetDomainNameOk returns a tuple with the DomainName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetDomainNameOk() (*string, bool) { + if o == nil || IsNil(o.DomainName) { + return nil, false + } + return o.DomainName, true +} + +// HasDomainName returns a boolean if a field has been set. +func (o *AefProfile) HasDomainName() bool { + if o != nil && !IsNil(o.DomainName) { + return true + } + + return false +} + +// SetDomainName gets a reference to the given string and assigns it to the DomainName field. +func (o *AefProfile) SetDomainName(v string) { + o.DomainName = &v +} + +// GetInterfaceDescriptions returns the InterfaceDescriptions field value if set, zero value otherwise. +func (o *AefProfile) GetInterfaceDescriptions() []InterfaceDescription { + if o == nil || IsNil(o.InterfaceDescriptions) { + var ret []InterfaceDescription + return ret + } + return o.InterfaceDescriptions +} + +// GetInterfaceDescriptionsOk returns a tuple with the InterfaceDescriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetInterfaceDescriptionsOk() ([]InterfaceDescription, bool) { + if o == nil || IsNil(o.InterfaceDescriptions) { + return nil, false + } + return o.InterfaceDescriptions, true +} + +// HasInterfaceDescriptions returns a boolean if a field has been set. +func (o *AefProfile) HasInterfaceDescriptions() bool { + if o != nil && !IsNil(o.InterfaceDescriptions) { + return true + } + + return false +} + +// SetInterfaceDescriptions gets a reference to the given []InterfaceDescription and assigns it to the InterfaceDescriptions field. +func (o *AefProfile) SetInterfaceDescriptions(v []InterfaceDescription) { + o.InterfaceDescriptions = v +} + +// GetAefLocation returns the AefLocation field value if set, zero value otherwise. +func (o *AefProfile) GetAefLocation() AefLocation { + if o == nil || IsNil(o.AefLocation) { + var ret AefLocation + return ret + } + return *o.AefLocation +} + +// GetAefLocationOk returns a tuple with the AefLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetAefLocationOk() (*AefLocation, bool) { + if o == nil || IsNil(o.AefLocation) { + return nil, false + } + return o.AefLocation, true +} + +// HasAefLocation returns a boolean if a field has been set. +func (o *AefProfile) HasAefLocation() bool { + if o != nil && !IsNil(o.AefLocation) { + return true + } + + return false +} + +// SetAefLocation gets a reference to the given AefLocation and assigns it to the AefLocation field. +func (o *AefProfile) SetAefLocation(v AefLocation) { + o.AefLocation = &v +} + +func (o AefProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AefProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["aefId"] = o.AefId + toSerialize["versions"] = o.Versions + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.DataFormat) { + toSerialize["dataFormat"] = o.DataFormat + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + if !IsNil(o.DomainName) { + toSerialize["domainName"] = o.DomainName + } + if !IsNil(o.InterfaceDescriptions) { + toSerialize["interfaceDescriptions"] = o.InterfaceDescriptions + } + if !IsNil(o.AefLocation) { + toSerialize["aefLocation"] = o.AefLocation + } + return toSerialize, nil +} + +func (o *AefProfile) UnmarshalJSON(data []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{ + "aefId", + "versions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAefProfile := _AefProfile{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAefProfile) + + if err != nil { + return err + } + + *o = AefProfile(varAefProfile) + + return err +} + +type NullableAefProfile struct { + value *AefProfile + isSet bool +} + +func (v NullableAefProfile) Get() *AefProfile { + return v.value +} + +func (v *NullableAefProfile) Set(val *AefProfile) { + v.value = val + v.isSet = true +} + +func (v NullableAefProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableAefProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAefProfile(val *AefProfile) *NullableAefProfile { + return &NullableAefProfile{value: val, isSet: true} +} + +func (v NullableAefProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAefProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_civic_address.go b/internal/CapifDiscoverService/model_civic_address.go new file mode 100644 index 0000000000000000000000000000000000000000..605258e0a6d344b3c19a29fb0e1c988cdec0e097 --- /dev/null +++ b/internal/CapifDiscoverService/model_civic_address.go @@ -0,0 +1,1314 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the CivicAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CivicAddress{} + +// CivicAddress Indicates a Civic address. +type CivicAddress struct { + Country *string `json:"country,omitempty"` + A1 *string `json:"A1,omitempty"` + A2 *string `json:"A2,omitempty"` + A3 *string `json:"A3,omitempty"` + A4 *string `json:"A4,omitempty"` + A5 *string `json:"A5,omitempty"` + A6 *string `json:"A6,omitempty"` + PRD *string `json:"PRD,omitempty"` + POD *string `json:"POD,omitempty"` + STS *string `json:"STS,omitempty"` + HNO *string `json:"HNO,omitempty"` + HNS *string `json:"HNS,omitempty"` + LMK *string `json:"LMK,omitempty"` + LOC *string `json:"LOC,omitempty"` + NAM *string `json:"NAM,omitempty"` + PC *string `json:"PC,omitempty"` + BLD *string `json:"BLD,omitempty"` + UNIT *string `json:"UNIT,omitempty"` + FLR *string `json:"FLR,omitempty"` + ROOM *string `json:"ROOM,omitempty"` + PLC *string `json:"PLC,omitempty"` + PCN *string `json:"PCN,omitempty"` + POBOX *string `json:"POBOX,omitempty"` + ADDCODE *string `json:"ADDCODE,omitempty"` + SEAT *string `json:"SEAT,omitempty"` + RD *string `json:"RD,omitempty"` + RDSEC *string `json:"RDSEC,omitempty"` + RDBR *string `json:"RDBR,omitempty"` + RDSUBBR *string `json:"RDSUBBR,omitempty"` + PRM *string `json:"PRM,omitempty"` + POM *string `json:"POM,omitempty"` + UsageRules *string `json:"usageRules,omitempty"` + Method *string `json:"method,omitempty"` + ProvidedBy *string `json:"providedBy,omitempty"` +} + +// NewCivicAddress instantiates a new CivicAddress 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 NewCivicAddress() *CivicAddress { + this := CivicAddress{} + return &this +} + +// NewCivicAddressWithDefaults instantiates a new CivicAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCivicAddressWithDefaults() *CivicAddress { + this := CivicAddress{} + return &this +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *CivicAddress) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *CivicAddress) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *CivicAddress) SetCountry(v string) { + o.Country = &v +} + +// GetA1 returns the A1 field value if set, zero value otherwise. +func (o *CivicAddress) GetA1() string { + if o == nil || IsNil(o.A1) { + var ret string + return ret + } + return *o.A1 +} + +// GetA1Ok returns a tuple with the A1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA1Ok() (*string, bool) { + if o == nil || IsNil(o.A1) { + return nil, false + } + return o.A1, true +} + +// HasA1 returns a boolean if a field has been set. +func (o *CivicAddress) HasA1() bool { + if o != nil && !IsNil(o.A1) { + return true + } + + return false +} + +// SetA1 gets a reference to the given string and assigns it to the A1 field. +func (o *CivicAddress) SetA1(v string) { + o.A1 = &v +} + +// GetA2 returns the A2 field value if set, zero value otherwise. +func (o *CivicAddress) GetA2() string { + if o == nil || IsNil(o.A2) { + var ret string + return ret + } + return *o.A2 +} + +// GetA2Ok returns a tuple with the A2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA2Ok() (*string, bool) { + if o == nil || IsNil(o.A2) { + return nil, false + } + return o.A2, true +} + +// HasA2 returns a boolean if a field has been set. +func (o *CivicAddress) HasA2() bool { + if o != nil && !IsNil(o.A2) { + return true + } + + return false +} + +// SetA2 gets a reference to the given string and assigns it to the A2 field. +func (o *CivicAddress) SetA2(v string) { + o.A2 = &v +} + +// GetA3 returns the A3 field value if set, zero value otherwise. +func (o *CivicAddress) GetA3() string { + if o == nil || IsNil(o.A3) { + var ret string + return ret + } + return *o.A3 +} + +// GetA3Ok returns a tuple with the A3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA3Ok() (*string, bool) { + if o == nil || IsNil(o.A3) { + return nil, false + } + return o.A3, true +} + +// HasA3 returns a boolean if a field has been set. +func (o *CivicAddress) HasA3() bool { + if o != nil && !IsNil(o.A3) { + return true + } + + return false +} + +// SetA3 gets a reference to the given string and assigns it to the A3 field. +func (o *CivicAddress) SetA3(v string) { + o.A3 = &v +} + +// GetA4 returns the A4 field value if set, zero value otherwise. +func (o *CivicAddress) GetA4() string { + if o == nil || IsNil(o.A4) { + var ret string + return ret + } + return *o.A4 +} + +// GetA4Ok returns a tuple with the A4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA4Ok() (*string, bool) { + if o == nil || IsNil(o.A4) { + return nil, false + } + return o.A4, true +} + +// HasA4 returns a boolean if a field has been set. +func (o *CivicAddress) HasA4() bool { + if o != nil && !IsNil(o.A4) { + return true + } + + return false +} + +// SetA4 gets a reference to the given string and assigns it to the A4 field. +func (o *CivicAddress) SetA4(v string) { + o.A4 = &v +} + +// GetA5 returns the A5 field value if set, zero value otherwise. +func (o *CivicAddress) GetA5() string { + if o == nil || IsNil(o.A5) { + var ret string + return ret + } + return *o.A5 +} + +// GetA5Ok returns a tuple with the A5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA5Ok() (*string, bool) { + if o == nil || IsNil(o.A5) { + return nil, false + } + return o.A5, true +} + +// HasA5 returns a boolean if a field has been set. +func (o *CivicAddress) HasA5() bool { + if o != nil && !IsNil(o.A5) { + return true + } + + return false +} + +// SetA5 gets a reference to the given string and assigns it to the A5 field. +func (o *CivicAddress) SetA5(v string) { + o.A5 = &v +} + +// GetA6 returns the A6 field value if set, zero value otherwise. +func (o *CivicAddress) GetA6() string { + if o == nil || IsNil(o.A6) { + var ret string + return ret + } + return *o.A6 +} + +// GetA6Ok returns a tuple with the A6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA6Ok() (*string, bool) { + if o == nil || IsNil(o.A6) { + return nil, false + } + return o.A6, true +} + +// HasA6 returns a boolean if a field has been set. +func (o *CivicAddress) HasA6() bool { + if o != nil && !IsNil(o.A6) { + return true + } + + return false +} + +// SetA6 gets a reference to the given string and assigns it to the A6 field. +func (o *CivicAddress) SetA6(v string) { + o.A6 = &v +} + +// GetPRD returns the PRD field value if set, zero value otherwise. +func (o *CivicAddress) GetPRD() string { + if o == nil || IsNil(o.PRD) { + var ret string + return ret + } + return *o.PRD +} + +// GetPRDOk returns a tuple with the PRD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPRDOk() (*string, bool) { + if o == nil || IsNil(o.PRD) { + return nil, false + } + return o.PRD, true +} + +// HasPRD returns a boolean if a field has been set. +func (o *CivicAddress) HasPRD() bool { + if o != nil && !IsNil(o.PRD) { + return true + } + + return false +} + +// SetPRD gets a reference to the given string and assigns it to the PRD field. +func (o *CivicAddress) SetPRD(v string) { + o.PRD = &v +} + +// GetPOD returns the POD field value if set, zero value otherwise. +func (o *CivicAddress) GetPOD() string { + if o == nil || IsNil(o.POD) { + var ret string + return ret + } + return *o.POD +} + +// GetPODOk returns a tuple with the POD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPODOk() (*string, bool) { + if o == nil || IsNil(o.POD) { + return nil, false + } + return o.POD, true +} + +// HasPOD returns a boolean if a field has been set. +func (o *CivicAddress) HasPOD() bool { + if o != nil && !IsNil(o.POD) { + return true + } + + return false +} + +// SetPOD gets a reference to the given string and assigns it to the POD field. +func (o *CivicAddress) SetPOD(v string) { + o.POD = &v +} + +// GetSTS returns the STS field value if set, zero value otherwise. +func (o *CivicAddress) GetSTS() string { + if o == nil || IsNil(o.STS) { + var ret string + return ret + } + return *o.STS +} + +// GetSTSOk returns a tuple with the STS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetSTSOk() (*string, bool) { + if o == nil || IsNil(o.STS) { + return nil, false + } + return o.STS, true +} + +// HasSTS returns a boolean if a field has been set. +func (o *CivicAddress) HasSTS() bool { + if o != nil && !IsNil(o.STS) { + return true + } + + return false +} + +// SetSTS gets a reference to the given string and assigns it to the STS field. +func (o *CivicAddress) SetSTS(v string) { + o.STS = &v +} + +// GetHNO returns the HNO field value if set, zero value otherwise. +func (o *CivicAddress) GetHNO() string { + if o == nil || IsNil(o.HNO) { + var ret string + return ret + } + return *o.HNO +} + +// GetHNOOk returns a tuple with the HNO field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetHNOOk() (*string, bool) { + if o == nil || IsNil(o.HNO) { + return nil, false + } + return o.HNO, true +} + +// HasHNO returns a boolean if a field has been set. +func (o *CivicAddress) HasHNO() bool { + if o != nil && !IsNil(o.HNO) { + return true + } + + return false +} + +// SetHNO gets a reference to the given string and assigns it to the HNO field. +func (o *CivicAddress) SetHNO(v string) { + o.HNO = &v +} + +// GetHNS returns the HNS field value if set, zero value otherwise. +func (o *CivicAddress) GetHNS() string { + if o == nil || IsNil(o.HNS) { + var ret string + return ret + } + return *o.HNS +} + +// GetHNSOk returns a tuple with the HNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetHNSOk() (*string, bool) { + if o == nil || IsNil(o.HNS) { + return nil, false + } + return o.HNS, true +} + +// HasHNS returns a boolean if a field has been set. +func (o *CivicAddress) HasHNS() bool { + if o != nil && !IsNil(o.HNS) { + return true + } + + return false +} + +// SetHNS gets a reference to the given string and assigns it to the HNS field. +func (o *CivicAddress) SetHNS(v string) { + o.HNS = &v +} + +// GetLMK returns the LMK field value if set, zero value otherwise. +func (o *CivicAddress) GetLMK() string { + if o == nil || IsNil(o.LMK) { + var ret string + return ret + } + return *o.LMK +} + +// GetLMKOk returns a tuple with the LMK field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetLMKOk() (*string, bool) { + if o == nil || IsNil(o.LMK) { + return nil, false + } + return o.LMK, true +} + +// HasLMK returns a boolean if a field has been set. +func (o *CivicAddress) HasLMK() bool { + if o != nil && !IsNil(o.LMK) { + return true + } + + return false +} + +// SetLMK gets a reference to the given string and assigns it to the LMK field. +func (o *CivicAddress) SetLMK(v string) { + o.LMK = &v +} + +// GetLOC returns the LOC field value if set, zero value otherwise. +func (o *CivicAddress) GetLOC() string { + if o == nil || IsNil(o.LOC) { + var ret string + return ret + } + return *o.LOC +} + +// GetLOCOk returns a tuple with the LOC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetLOCOk() (*string, bool) { + if o == nil || IsNil(o.LOC) { + return nil, false + } + return o.LOC, true +} + +// HasLOC returns a boolean if a field has been set. +func (o *CivicAddress) HasLOC() bool { + if o != nil && !IsNil(o.LOC) { + return true + } + + return false +} + +// SetLOC gets a reference to the given string and assigns it to the LOC field. +func (o *CivicAddress) SetLOC(v string) { + o.LOC = &v +} + +// GetNAM returns the NAM field value if set, zero value otherwise. +func (o *CivicAddress) GetNAM() string { + if o == nil || IsNil(o.NAM) { + var ret string + return ret + } + return *o.NAM +} + +// GetNAMOk returns a tuple with the NAM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetNAMOk() (*string, bool) { + if o == nil || IsNil(o.NAM) { + return nil, false + } + return o.NAM, true +} + +// HasNAM returns a boolean if a field has been set. +func (o *CivicAddress) HasNAM() bool { + if o != nil && !IsNil(o.NAM) { + return true + } + + return false +} + +// SetNAM gets a reference to the given string and assigns it to the NAM field. +func (o *CivicAddress) SetNAM(v string) { + o.NAM = &v +} + +// GetPC returns the PC field value if set, zero value otherwise. +func (o *CivicAddress) GetPC() string { + if o == nil || IsNil(o.PC) { + var ret string + return ret + } + return *o.PC +} + +// GetPCOk returns a tuple with the PC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPCOk() (*string, bool) { + if o == nil || IsNil(o.PC) { + return nil, false + } + return o.PC, true +} + +// HasPC returns a boolean if a field has been set. +func (o *CivicAddress) HasPC() bool { + if o != nil && !IsNil(o.PC) { + return true + } + + return false +} + +// SetPC gets a reference to the given string and assigns it to the PC field. +func (o *CivicAddress) SetPC(v string) { + o.PC = &v +} + +// GetBLD returns the BLD field value if set, zero value otherwise. +func (o *CivicAddress) GetBLD() string { + if o == nil || IsNil(o.BLD) { + var ret string + return ret + } + return *o.BLD +} + +// GetBLDOk returns a tuple with the BLD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetBLDOk() (*string, bool) { + if o == nil || IsNil(o.BLD) { + return nil, false + } + return o.BLD, true +} + +// HasBLD returns a boolean if a field has been set. +func (o *CivicAddress) HasBLD() bool { + if o != nil && !IsNil(o.BLD) { + return true + } + + return false +} + +// SetBLD gets a reference to the given string and assigns it to the BLD field. +func (o *CivicAddress) SetBLD(v string) { + o.BLD = &v +} + +// GetUNIT returns the UNIT field value if set, zero value otherwise. +func (o *CivicAddress) GetUNIT() string { + if o == nil || IsNil(o.UNIT) { + var ret string + return ret + } + return *o.UNIT +} + +// GetUNITOk returns a tuple with the UNIT field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetUNITOk() (*string, bool) { + if o == nil || IsNil(o.UNIT) { + return nil, false + } + return o.UNIT, true +} + +// HasUNIT returns a boolean if a field has been set. +func (o *CivicAddress) HasUNIT() bool { + if o != nil && !IsNil(o.UNIT) { + return true + } + + return false +} + +// SetUNIT gets a reference to the given string and assigns it to the UNIT field. +func (o *CivicAddress) SetUNIT(v string) { + o.UNIT = &v +} + +// GetFLR returns the FLR field value if set, zero value otherwise. +func (o *CivicAddress) GetFLR() string { + if o == nil || IsNil(o.FLR) { + var ret string + return ret + } + return *o.FLR +} + +// GetFLROk returns a tuple with the FLR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetFLROk() (*string, bool) { + if o == nil || IsNil(o.FLR) { + return nil, false + } + return o.FLR, true +} + +// HasFLR returns a boolean if a field has been set. +func (o *CivicAddress) HasFLR() bool { + if o != nil && !IsNil(o.FLR) { + return true + } + + return false +} + +// SetFLR gets a reference to the given string and assigns it to the FLR field. +func (o *CivicAddress) SetFLR(v string) { + o.FLR = &v +} + +// GetROOM returns the ROOM field value if set, zero value otherwise. +func (o *CivicAddress) GetROOM() string { + if o == nil || IsNil(o.ROOM) { + var ret string + return ret + } + return *o.ROOM +} + +// GetROOMOk returns a tuple with the ROOM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetROOMOk() (*string, bool) { + if o == nil || IsNil(o.ROOM) { + return nil, false + } + return o.ROOM, true +} + +// HasROOM returns a boolean if a field has been set. +func (o *CivicAddress) HasROOM() bool { + if o != nil && !IsNil(o.ROOM) { + return true + } + + return false +} + +// SetROOM gets a reference to the given string and assigns it to the ROOM field. +func (o *CivicAddress) SetROOM(v string) { + o.ROOM = &v +} + +// GetPLC returns the PLC field value if set, zero value otherwise. +func (o *CivicAddress) GetPLC() string { + if o == nil || IsNil(o.PLC) { + var ret string + return ret + } + return *o.PLC +} + +// GetPLCOk returns a tuple with the PLC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPLCOk() (*string, bool) { + if o == nil || IsNil(o.PLC) { + return nil, false + } + return o.PLC, true +} + +// HasPLC returns a boolean if a field has been set. +func (o *CivicAddress) HasPLC() bool { + if o != nil && !IsNil(o.PLC) { + return true + } + + return false +} + +// SetPLC gets a reference to the given string and assigns it to the PLC field. +func (o *CivicAddress) SetPLC(v string) { + o.PLC = &v +} + +// GetPCN returns the PCN field value if set, zero value otherwise. +func (o *CivicAddress) GetPCN() string { + if o == nil || IsNil(o.PCN) { + var ret string + return ret + } + return *o.PCN +} + +// GetPCNOk returns a tuple with the PCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPCNOk() (*string, bool) { + if o == nil || IsNil(o.PCN) { + return nil, false + } + return o.PCN, true +} + +// HasPCN returns a boolean if a field has been set. +func (o *CivicAddress) HasPCN() bool { + if o != nil && !IsNil(o.PCN) { + return true + } + + return false +} + +// SetPCN gets a reference to the given string and assigns it to the PCN field. +func (o *CivicAddress) SetPCN(v string) { + o.PCN = &v +} + +// GetPOBOX returns the POBOX field value if set, zero value otherwise. +func (o *CivicAddress) GetPOBOX() string { + if o == nil || IsNil(o.POBOX) { + var ret string + return ret + } + return *o.POBOX +} + +// GetPOBOXOk returns a tuple with the POBOX field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPOBOXOk() (*string, bool) { + if o == nil || IsNil(o.POBOX) { + return nil, false + } + return o.POBOX, true +} + +// HasPOBOX returns a boolean if a field has been set. +func (o *CivicAddress) HasPOBOX() bool { + if o != nil && !IsNil(o.POBOX) { + return true + } + + return false +} + +// SetPOBOX gets a reference to the given string and assigns it to the POBOX field. +func (o *CivicAddress) SetPOBOX(v string) { + o.POBOX = &v +} + +// GetADDCODE returns the ADDCODE field value if set, zero value otherwise. +func (o *CivicAddress) GetADDCODE() string { + if o == nil || IsNil(o.ADDCODE) { + var ret string + return ret + } + return *o.ADDCODE +} + +// GetADDCODEOk returns a tuple with the ADDCODE field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetADDCODEOk() (*string, bool) { + if o == nil || IsNil(o.ADDCODE) { + return nil, false + } + return o.ADDCODE, true +} + +// HasADDCODE returns a boolean if a field has been set. +func (o *CivicAddress) HasADDCODE() bool { + if o != nil && !IsNil(o.ADDCODE) { + return true + } + + return false +} + +// SetADDCODE gets a reference to the given string and assigns it to the ADDCODE field. +func (o *CivicAddress) SetADDCODE(v string) { + o.ADDCODE = &v +} + +// GetSEAT returns the SEAT field value if set, zero value otherwise. +func (o *CivicAddress) GetSEAT() string { + if o == nil || IsNil(o.SEAT) { + var ret string + return ret + } + return *o.SEAT +} + +// GetSEATOk returns a tuple with the SEAT field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetSEATOk() (*string, bool) { + if o == nil || IsNil(o.SEAT) { + return nil, false + } + return o.SEAT, true +} + +// HasSEAT returns a boolean if a field has been set. +func (o *CivicAddress) HasSEAT() bool { + if o != nil && !IsNil(o.SEAT) { + return true + } + + return false +} + +// SetSEAT gets a reference to the given string and assigns it to the SEAT field. +func (o *CivicAddress) SetSEAT(v string) { + o.SEAT = &v +} + +// GetRD returns the RD field value if set, zero value otherwise. +func (o *CivicAddress) GetRD() string { + if o == nil || IsNil(o.RD) { + var ret string + return ret + } + return *o.RD +} + +// GetRDOk returns a tuple with the RD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDOk() (*string, bool) { + if o == nil || IsNil(o.RD) { + return nil, false + } + return o.RD, true +} + +// HasRD returns a boolean if a field has been set. +func (o *CivicAddress) HasRD() bool { + if o != nil && !IsNil(o.RD) { + return true + } + + return false +} + +// SetRD gets a reference to the given string and assigns it to the RD field. +func (o *CivicAddress) SetRD(v string) { + o.RD = &v +} + +// GetRDSEC returns the RDSEC field value if set, zero value otherwise. +func (o *CivicAddress) GetRDSEC() string { + if o == nil || IsNil(o.RDSEC) { + var ret string + return ret + } + return *o.RDSEC +} + +// GetRDSECOk returns a tuple with the RDSEC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDSECOk() (*string, bool) { + if o == nil || IsNil(o.RDSEC) { + return nil, false + } + return o.RDSEC, true +} + +// HasRDSEC returns a boolean if a field has been set. +func (o *CivicAddress) HasRDSEC() bool { + if o != nil && !IsNil(o.RDSEC) { + return true + } + + return false +} + +// SetRDSEC gets a reference to the given string and assigns it to the RDSEC field. +func (o *CivicAddress) SetRDSEC(v string) { + o.RDSEC = &v +} + +// GetRDBR returns the RDBR field value if set, zero value otherwise. +func (o *CivicAddress) GetRDBR() string { + if o == nil || IsNil(o.RDBR) { + var ret string + return ret + } + return *o.RDBR +} + +// GetRDBROk returns a tuple with the RDBR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDBROk() (*string, bool) { + if o == nil || IsNil(o.RDBR) { + return nil, false + } + return o.RDBR, true +} + +// HasRDBR returns a boolean if a field has been set. +func (o *CivicAddress) HasRDBR() bool { + if o != nil && !IsNil(o.RDBR) { + return true + } + + return false +} + +// SetRDBR gets a reference to the given string and assigns it to the RDBR field. +func (o *CivicAddress) SetRDBR(v string) { + o.RDBR = &v +} + +// GetRDSUBBR returns the RDSUBBR field value if set, zero value otherwise. +func (o *CivicAddress) GetRDSUBBR() string { + if o == nil || IsNil(o.RDSUBBR) { + var ret string + return ret + } + return *o.RDSUBBR +} + +// GetRDSUBBROk returns a tuple with the RDSUBBR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDSUBBROk() (*string, bool) { + if o == nil || IsNil(o.RDSUBBR) { + return nil, false + } + return o.RDSUBBR, true +} + +// HasRDSUBBR returns a boolean if a field has been set. +func (o *CivicAddress) HasRDSUBBR() bool { + if o != nil && !IsNil(o.RDSUBBR) { + return true + } + + return false +} + +// SetRDSUBBR gets a reference to the given string and assigns it to the RDSUBBR field. +func (o *CivicAddress) SetRDSUBBR(v string) { + o.RDSUBBR = &v +} + +// GetPRM returns the PRM field value if set, zero value otherwise. +func (o *CivicAddress) GetPRM() string { + if o == nil || IsNil(o.PRM) { + var ret string + return ret + } + return *o.PRM +} + +// GetPRMOk returns a tuple with the PRM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPRMOk() (*string, bool) { + if o == nil || IsNil(o.PRM) { + return nil, false + } + return o.PRM, true +} + +// HasPRM returns a boolean if a field has been set. +func (o *CivicAddress) HasPRM() bool { + if o != nil && !IsNil(o.PRM) { + return true + } + + return false +} + +// SetPRM gets a reference to the given string and assigns it to the PRM field. +func (o *CivicAddress) SetPRM(v string) { + o.PRM = &v +} + +// GetPOM returns the POM field value if set, zero value otherwise. +func (o *CivicAddress) GetPOM() string { + if o == nil || IsNil(o.POM) { + var ret string + return ret + } + return *o.POM +} + +// GetPOMOk returns a tuple with the POM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPOMOk() (*string, bool) { + if o == nil || IsNil(o.POM) { + return nil, false + } + return o.POM, true +} + +// HasPOM returns a boolean if a field has been set. +func (o *CivicAddress) HasPOM() bool { + if o != nil && !IsNil(o.POM) { + return true + } + + return false +} + +// SetPOM gets a reference to the given string and assigns it to the POM field. +func (o *CivicAddress) SetPOM(v string) { + o.POM = &v +} + +// GetUsageRules returns the UsageRules field value if set, zero value otherwise. +func (o *CivicAddress) GetUsageRules() string { + if o == nil || IsNil(o.UsageRules) { + var ret string + return ret + } + return *o.UsageRules +} + +// GetUsageRulesOk returns a tuple with the UsageRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetUsageRulesOk() (*string, bool) { + if o == nil || IsNil(o.UsageRules) { + return nil, false + } + return o.UsageRules, true +} + +// HasUsageRules returns a boolean if a field has been set. +func (o *CivicAddress) HasUsageRules() bool { + if o != nil && !IsNil(o.UsageRules) { + return true + } + + return false +} + +// SetUsageRules gets a reference to the given string and assigns it to the UsageRules field. +func (o *CivicAddress) SetUsageRules(v string) { + o.UsageRules = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *CivicAddress) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *CivicAddress) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *CivicAddress) SetMethod(v string) { + o.Method = &v +} + +// GetProvidedBy returns the ProvidedBy field value if set, zero value otherwise. +func (o *CivicAddress) GetProvidedBy() string { + if o == nil || IsNil(o.ProvidedBy) { + var ret string + return ret + } + return *o.ProvidedBy +} + +// GetProvidedByOk returns a tuple with the ProvidedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetProvidedByOk() (*string, bool) { + if o == nil || IsNil(o.ProvidedBy) { + return nil, false + } + return o.ProvidedBy, true +} + +// HasProvidedBy returns a boolean if a field has been set. +func (o *CivicAddress) HasProvidedBy() bool { + if o != nil && !IsNil(o.ProvidedBy) { + return true + } + + return false +} + +// SetProvidedBy gets a reference to the given string and assigns it to the ProvidedBy field. +func (o *CivicAddress) SetProvidedBy(v string) { + o.ProvidedBy = &v +} + +func (o CivicAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CivicAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + if !IsNil(o.A1) { + toSerialize["A1"] = o.A1 + } + if !IsNil(o.A2) { + toSerialize["A2"] = o.A2 + } + if !IsNil(o.A3) { + toSerialize["A3"] = o.A3 + } + if !IsNil(o.A4) { + toSerialize["A4"] = o.A4 + } + if !IsNil(o.A5) { + toSerialize["A5"] = o.A5 + } + if !IsNil(o.A6) { + toSerialize["A6"] = o.A6 + } + if !IsNil(o.PRD) { + toSerialize["PRD"] = o.PRD + } + if !IsNil(o.POD) { + toSerialize["POD"] = o.POD + } + if !IsNil(o.STS) { + toSerialize["STS"] = o.STS + } + if !IsNil(o.HNO) { + toSerialize["HNO"] = o.HNO + } + if !IsNil(o.HNS) { + toSerialize["HNS"] = o.HNS + } + if !IsNil(o.LMK) { + toSerialize["LMK"] = o.LMK + } + if !IsNil(o.LOC) { + toSerialize["LOC"] = o.LOC + } + if !IsNil(o.NAM) { + toSerialize["NAM"] = o.NAM + } + if !IsNil(o.PC) { + toSerialize["PC"] = o.PC + } + if !IsNil(o.BLD) { + toSerialize["BLD"] = o.BLD + } + if !IsNil(o.UNIT) { + toSerialize["UNIT"] = o.UNIT + } + if !IsNil(o.FLR) { + toSerialize["FLR"] = o.FLR + } + if !IsNil(o.ROOM) { + toSerialize["ROOM"] = o.ROOM + } + if !IsNil(o.PLC) { + toSerialize["PLC"] = o.PLC + } + if !IsNil(o.PCN) { + toSerialize["PCN"] = o.PCN + } + if !IsNil(o.POBOX) { + toSerialize["POBOX"] = o.POBOX + } + if !IsNil(o.ADDCODE) { + toSerialize["ADDCODE"] = o.ADDCODE + } + if !IsNil(o.SEAT) { + toSerialize["SEAT"] = o.SEAT + } + if !IsNil(o.RD) { + toSerialize["RD"] = o.RD + } + if !IsNil(o.RDSEC) { + toSerialize["RDSEC"] = o.RDSEC + } + if !IsNil(o.RDBR) { + toSerialize["RDBR"] = o.RDBR + } + if !IsNil(o.RDSUBBR) { + toSerialize["RDSUBBR"] = o.RDSUBBR + } + if !IsNil(o.PRM) { + toSerialize["PRM"] = o.PRM + } + if !IsNil(o.POM) { + toSerialize["POM"] = o.POM + } + if !IsNil(o.UsageRules) { + toSerialize["usageRules"] = o.UsageRules + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + if !IsNil(o.ProvidedBy) { + toSerialize["providedBy"] = o.ProvidedBy + } + return toSerialize, nil +} + +type NullableCivicAddress struct { + value *CivicAddress + isSet bool +} + +func (v NullableCivicAddress) Get() *CivicAddress { + return v.value +} + +func (v *NullableCivicAddress) Set(val *CivicAddress) { + v.value = val + v.isSet = true +} + +func (v NullableCivicAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableCivicAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCivicAddress(val *CivicAddress) *NullableCivicAddress { + return &NullableCivicAddress{value: val, isSet: true} +} + +func (v NullableCivicAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCivicAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_communication_type.go b/internal/CapifDiscoverService/model_communication_type.go new file mode 100644 index 0000000000000000000000000000000000000000..81d68e5338ad77e120840bdb44c4ce2cfaea6e5c --- /dev/null +++ b/internal/CapifDiscoverService/model_communication_type.go @@ -0,0 +1,87 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// CommunicationType Possible values are: - REQUEST_RESPONSE: The communication is of the type request-response - SUBSCRIBE_NOTIFY: The communication is of the type subscribe-notify +type CommunicationType struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *CommunicationType) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(CommunicationType)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *CommunicationType) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableCommunicationType struct { + value *CommunicationType + isSet bool +} + +func (v NullableCommunicationType) Get() *CommunicationType { + return v.value +} + +func (v *NullableCommunicationType) Set(val *CommunicationType) { + v.value = val + v.isSet = true +} + +func (v NullableCommunicationType) IsSet() bool { + return v.isSet +} + +func (v *NullableCommunicationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommunicationType(val *CommunicationType) *NullableCommunicationType { + return &NullableCommunicationType{value: val, isSet: true} +} + +func (v NullableCommunicationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommunicationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_custom_operation.go b/internal/CapifDiscoverService/model_custom_operation.go new file mode 100644 index 0000000000000000000000000000000000000000..df509f1f2615890662a2cdd27236ca4f9befa4c0 --- /dev/null +++ b/internal/CapifDiscoverService/model_custom_operation.go @@ -0,0 +1,261 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the CustomOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomOperation{} + +// CustomOperation Represents the description of a custom operation. +type CustomOperation struct { + CommType CommunicationType `json:"commType"` + // it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. + CustOpName string `json:"custOpName"` + // Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + Operations []Operation `json:"operations,omitempty"` + // Text description of the custom operation + Description *string `json:"description,omitempty"` +} + +type _CustomOperation CustomOperation + +// NewCustomOperation instantiates a new CustomOperation 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 NewCustomOperation(commType CommunicationType, custOpName string) *CustomOperation { + this := CustomOperation{} + this.CommType = commType + this.CustOpName = custOpName + return &this +} + +// NewCustomOperationWithDefaults instantiates a new CustomOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomOperationWithDefaults() *CustomOperation { + this := CustomOperation{} + return &this +} + +// GetCommType returns the CommType field value +func (o *CustomOperation) GetCommType() CommunicationType { + if o == nil { + var ret CommunicationType + return ret + } + + return o.CommType +} + +// GetCommTypeOk returns a tuple with the CommType field value +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetCommTypeOk() (*CommunicationType, bool) { + if o == nil { + return nil, false + } + return &o.CommType, true +} + +// SetCommType sets field value +func (o *CustomOperation) SetCommType(v CommunicationType) { + o.CommType = v +} + +// GetCustOpName returns the CustOpName field value +func (o *CustomOperation) GetCustOpName() string { + if o == nil { + var ret string + return ret + } + + return o.CustOpName +} + +// GetCustOpNameOk returns a tuple with the CustOpName field value +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetCustOpNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustOpName, true +} + +// SetCustOpName sets field value +func (o *CustomOperation) SetCustOpName(v string) { + o.CustOpName = v +} + +// GetOperations returns the Operations field value if set, zero value otherwise. +func (o *CustomOperation) GetOperations() []Operation { + if o == nil || IsNil(o.Operations) { + var ret []Operation + return ret + } + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetOperationsOk() ([]Operation, bool) { + if o == nil || IsNil(o.Operations) { + return nil, false + } + return o.Operations, true +} + +// HasOperations returns a boolean if a field has been set. +func (o *CustomOperation) HasOperations() bool { + if o != nil && !IsNil(o.Operations) { + return true + } + + return false +} + +// SetOperations gets a reference to the given []Operation and assigns it to the Operations field. +func (o *CustomOperation) SetOperations(v []Operation) { + o.Operations = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CustomOperation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CustomOperation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CustomOperation) SetDescription(v string) { + o.Description = &v +} + +func (o CustomOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commType"] = o.CommType + toSerialize["custOpName"] = o.CustOpName + if !IsNil(o.Operations) { + toSerialize["operations"] = o.Operations + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +func (o *CustomOperation) UnmarshalJSON(data []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{ + "commType", + "custOpName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varCustomOperation := _CustomOperation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCustomOperation) + + if err != nil { + return err + } + + *o = CustomOperation(varCustomOperation) + + return err +} + +type NullableCustomOperation struct { + value *CustomOperation + isSet bool +} + +func (v NullableCustomOperation) Get() *CustomOperation { + return v.value +} + +func (v *NullableCustomOperation) Set(val *CustomOperation) { + v.value = val + v.isSet = true +} + +func (v NullableCustomOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomOperation(val *CustomOperation) *NullableCustomOperation { + return &NullableCustomOperation{value: val, isSet: true} +} + +func (v NullableCustomOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_data_format.go b/internal/CapifDiscoverService/model_data_format.go new file mode 100644 index 0000000000000000000000000000000000000000..eb497c24019bdda1168c14f11e7e175c40330ef5 --- /dev/null +++ b/internal/CapifDiscoverService/model_data_format.go @@ -0,0 +1,87 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// DataFormat Possible values are: - JSON: JavaScript Object Notation +type DataFormat struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *DataFormat) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(DataFormat)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *DataFormat) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableDataFormat struct { + value *DataFormat + isSet bool +} + +func (v NullableDataFormat) Get() *DataFormat { + return v.value +} + +func (v *NullableDataFormat) Set(val *DataFormat) { + v.value = val + v.isSet = true +} + +func (v NullableDataFormat) IsSet() bool { + return v.isSet +} + +func (v *NullableDataFormat) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataFormat(val *DataFormat) *NullableDataFormat { + return &NullableDataFormat{value: val, isSet: true} +} + +func (v NullableDataFormat) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataFormat) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_discovered_apis.go b/internal/CapifDiscoverService/model_discovered_apis.go new file mode 100644 index 0000000000000000000000000000000000000000..002b1be54b7e717ecd6bc58b9f92026b5b5a1bf3 --- /dev/null +++ b/internal/CapifDiscoverService/model_discovered_apis.go @@ -0,0 +1,127 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the DiscoveredAPIs type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DiscoveredAPIs{} + +// DiscoveredAPIs Represents a list of APIs currently registered in the CAPIF core function and satisfying a number of filter criteria provided by the API consumer. +type DiscoveredAPIs struct { + // Description of the service API as published by the service. Each service API description shall include AEF profiles matching the filter criteria. + ServiceAPIDescriptions []ServiceAPIDescription `json:"serviceAPIDescriptions,omitempty"` +} + +// NewDiscoveredAPIs instantiates a new DiscoveredAPIs 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 NewDiscoveredAPIs() *DiscoveredAPIs { + this := DiscoveredAPIs{} + return &this +} + +// NewDiscoveredAPIsWithDefaults instantiates a new DiscoveredAPIs object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDiscoveredAPIsWithDefaults() *DiscoveredAPIs { + this := DiscoveredAPIs{} + return &this +} + +// GetServiceAPIDescriptions returns the ServiceAPIDescriptions field value if set, zero value otherwise. +func (o *DiscoveredAPIs) GetServiceAPIDescriptions() []ServiceAPIDescription { + if o == nil || IsNil(o.ServiceAPIDescriptions) { + var ret []ServiceAPIDescription + return ret + } + return o.ServiceAPIDescriptions +} + +// GetServiceAPIDescriptionsOk returns a tuple with the ServiceAPIDescriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DiscoveredAPIs) GetServiceAPIDescriptionsOk() ([]ServiceAPIDescription, bool) { + if o == nil || IsNil(o.ServiceAPIDescriptions) { + return nil, false + } + return o.ServiceAPIDescriptions, true +} + +// HasServiceAPIDescriptions returns a boolean if a field has been set. +func (o *DiscoveredAPIs) HasServiceAPIDescriptions() bool { + if o != nil && !IsNil(o.ServiceAPIDescriptions) { + return true + } + + return false +} + +// SetServiceAPIDescriptions gets a reference to the given []ServiceAPIDescription and assigns it to the ServiceAPIDescriptions field. +func (o *DiscoveredAPIs) SetServiceAPIDescriptions(v []ServiceAPIDescription) { + o.ServiceAPIDescriptions = v +} + +func (o DiscoveredAPIs) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DiscoveredAPIs) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceAPIDescriptions) { + toSerialize["serviceAPIDescriptions"] = o.ServiceAPIDescriptions + } + return toSerialize, nil +} + +type NullableDiscoveredAPIs struct { + value *DiscoveredAPIs + isSet bool +} + +func (v NullableDiscoveredAPIs) Get() *DiscoveredAPIs { + return v.value +} + +func (v *NullableDiscoveredAPIs) Set(val *DiscoveredAPIs) { + v.value = val + v.isSet = true +} + +func (v NullableDiscoveredAPIs) IsSet() bool { + return v.isSet +} + +func (v *NullableDiscoveredAPIs) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDiscoveredAPIs(val *DiscoveredAPIs) *NullableDiscoveredAPIs { + return &NullableDiscoveredAPIs{value: val, isSet: true} +} + +func (v NullableDiscoveredAPIs) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDiscoveredAPIs) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_ellipsoid_arc.go b/internal/CapifDiscoverService/model_ellipsoid_arc.go new file mode 100644 index 0000000000000000000000000000000000000000..dcdb4369fb73e9031ed5302e93e9a249001a71d2 --- /dev/null +++ b/internal/CapifDiscoverService/model_ellipsoid_arc.go @@ -0,0 +1,314 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the EllipsoidArc type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EllipsoidArc{} + +// EllipsoidArc Ellipsoid Arc. +type EllipsoidArc struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of the inner radius. + InnerRadius int32 `json:"innerRadius"` + // Indicates value of uncertainty. + UncertaintyRadius float32 `json:"uncertaintyRadius"` + // Indicates value of angle. + OffsetAngle int32 `json:"offsetAngle"` + // Indicates value of angle. + IncludedAngle int32 `json:"includedAngle"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _EllipsoidArc EllipsoidArc + +// NewEllipsoidArc instantiates a new EllipsoidArc 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 NewEllipsoidArc(point GeographicalCoordinates, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, confidence int32, shape SupportedGADShapes) *EllipsoidArc { + this := EllipsoidArc{} + this.Shape = shape + this.Point = point + this.InnerRadius = innerRadius + this.UncertaintyRadius = uncertaintyRadius + this.OffsetAngle = offsetAngle + this.IncludedAngle = includedAngle + this.Confidence = confidence + return &this +} + +// NewEllipsoidArcWithDefaults instantiates a new EllipsoidArc object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEllipsoidArcWithDefaults() *EllipsoidArc { + this := EllipsoidArc{} + return &this +} + +// GetPoint returns the Point field value +func (o *EllipsoidArc) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *EllipsoidArc) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetInnerRadius returns the InnerRadius field value +func (o *EllipsoidArc) GetInnerRadius() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InnerRadius +} + +// GetInnerRadiusOk returns a tuple with the InnerRadius field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetInnerRadiusOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InnerRadius, true +} + +// SetInnerRadius sets field value +func (o *EllipsoidArc) SetInnerRadius(v int32) { + o.InnerRadius = v +} + +// GetUncertaintyRadius returns the UncertaintyRadius field value +func (o *EllipsoidArc) GetUncertaintyRadius() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.UncertaintyRadius +} + +// GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetUncertaintyRadiusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyRadius, true +} + +// SetUncertaintyRadius sets field value +func (o *EllipsoidArc) SetUncertaintyRadius(v float32) { + o.UncertaintyRadius = v +} + +// GetOffsetAngle returns the OffsetAngle field value +func (o *EllipsoidArc) GetOffsetAngle() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OffsetAngle +} + +// GetOffsetAngleOk returns a tuple with the OffsetAngle field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetOffsetAngleOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OffsetAngle, true +} + +// SetOffsetAngle sets field value +func (o *EllipsoidArc) SetOffsetAngle(v int32) { + o.OffsetAngle = v +} + +// GetIncludedAngle returns the IncludedAngle field value +func (o *EllipsoidArc) GetIncludedAngle() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.IncludedAngle +} + +// GetIncludedAngleOk returns a tuple with the IncludedAngle field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetIncludedAngleOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.IncludedAngle, true +} + +// SetIncludedAngle sets field value +func (o *EllipsoidArc) SetIncludedAngle(v int32) { + o.IncludedAngle = v +} + +// GetConfidence returns the Confidence field value +func (o *EllipsoidArc) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *EllipsoidArc) SetConfidence(v int32) { + o.Confidence = v +} + +func (o EllipsoidArc) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EllipsoidArc) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["innerRadius"] = o.InnerRadius + toSerialize["uncertaintyRadius"] = o.UncertaintyRadius + toSerialize["offsetAngle"] = o.OffsetAngle + toSerialize["includedAngle"] = o.IncludedAngle + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *EllipsoidArc) UnmarshalJSON(data []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{ + "point", + "innerRadius", + "uncertaintyRadius", + "offsetAngle", + "includedAngle", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varEllipsoidArc := _EllipsoidArc{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEllipsoidArc) + + if err != nil { + return err + } + + *o = EllipsoidArc(varEllipsoidArc) + + return err +} + +type NullableEllipsoidArc struct { + value *EllipsoidArc + isSet bool +} + +func (v NullableEllipsoidArc) Get() *EllipsoidArc { + return v.value +} + +func (v *NullableEllipsoidArc) Set(val *EllipsoidArc) { + v.value = val + v.isSet = true +} + +func (v NullableEllipsoidArc) IsSet() bool { + return v.isSet +} + +func (v *NullableEllipsoidArc) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEllipsoidArc(val *EllipsoidArc) *NullableEllipsoidArc { + return &NullableEllipsoidArc{value: val, isSet: true} +} + +func (v NullableEllipsoidArc) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEllipsoidArc) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_gad_shape.go b/internal/CapifDiscoverService/model_gad_shape.go new file mode 100644 index 0000000000000000000000000000000000000000..aa33049a090d36b23820b0495da755811ca4d47d --- /dev/null +++ b/internal/CapifDiscoverService/model_gad_shape.go @@ -0,0 +1,158 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GADShape type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GADShape{} + +// GADShape Common base type for GAD shapes. +type GADShape struct { + Shape SupportedGADShapes `json:"shape"` +} + +type _GADShape GADShape + +// NewGADShape instantiates a new GADShape 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 NewGADShape(shape SupportedGADShapes) *GADShape { + this := GADShape{} + this.Shape = shape + return &this +} + +// NewGADShapeWithDefaults instantiates a new GADShape object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGADShapeWithDefaults() *GADShape { + this := GADShape{} + return &this +} + +// GetShape returns the Shape field value +func (o *GADShape) GetShape() SupportedGADShapes { + if o == nil { + var ret SupportedGADShapes + return ret + } + + return o.Shape +} + +// GetShapeOk returns a tuple with the Shape field value +// and a boolean to check if the value has been set. +func (o *GADShape) GetShapeOk() (*SupportedGADShapes, bool) { + if o == nil { + return nil, false + } + return &o.Shape, true +} + +// SetShape sets field value +func (o *GADShape) SetShape(v SupportedGADShapes) { + o.Shape = v +} + +func (o GADShape) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GADShape) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["shape"] = o.Shape + return toSerialize, nil +} + +func (o *GADShape) UnmarshalJSON(data []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{ + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varGADShape := _GADShape{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGADShape) + + if err != nil { + return err + } + + *o = GADShape(varGADShape) + + return err +} + +type NullableGADShape struct { + value *GADShape + isSet bool +} + +func (v NullableGADShape) Get() *GADShape { + return v.value +} + +func (v *NullableGADShape) Set(val *GADShape) { + v.value = val + v.isSet = true +} + +func (v NullableGADShape) IsSet() bool { + return v.isSet +} + +func (v *NullableGADShape) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGADShape(val *GADShape) *NullableGADShape { + return &NullableGADShape{value: val, isSet: true} +} + +func (v NullableGADShape) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGADShape) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_geographic_area.go b/internal/CapifDiscoverService/model_geographic_area.go new file mode 100644 index 0000000000000000000000000000000000000000..39ed26d55cf5fbe582b64025d9a52972b024e4a9 --- /dev/null +++ b/internal/CapifDiscoverService/model_geographic_area.go @@ -0,0 +1,461 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// GeographicArea Geographic area specified by different shape. +type GeographicArea struct { + EllipsoidArc *EllipsoidArc + Point *Point + PointAltitude *PointAltitude + PointAltitudeUncertainty *PointAltitudeUncertainty + PointUncertaintyCircle *PointUncertaintyCircle + PointUncertaintyEllipse *PointUncertaintyEllipse + Polygon *Polygon +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GeographicArea) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = json.Unmarshal(data, &jsonDict) + if err != nil { + return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup") + } + + // check if the discriminator value is 'ELLIPSOID_ARC' + if jsonDict["shape"] == "ELLIPSOID_ARC" { + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + } + + // IVAN EDIT - No Local2dPointUncertaintyEllipse nor Local3dPointUncertaintyEllipsoid field or method in GeographicArea struc + /* + // check if the discriminator value is 'LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE' + if jsonDict["shape"] == "LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE" { + // try to unmarshal JSON data into Local2dPointUncertaintyEllipse + err = json.Unmarshal(data, &dst.Local2dPointUncertaintyEllipse); + if err == nil { + jsonLocal2dPointUncertaintyEllipse, _ := json.Marshal(dst.Local2dPointUncertaintyEllipse) + if string(jsonLocal2dPointUncertaintyEllipse) == "{}" { // empty struct + dst.Local2dPointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.Local2dPointUncertaintyEllipse, return on the first match + } + } else { + dst.Local2dPointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID' + if jsonDict["shape"] == "LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID" { + // try to unmarshal JSON data into Local3dPointUncertaintyEllipsoid + err = json.Unmarshal(data, &dst.Local3dPointUncertaintyEllipsoid); + if err == nil { + jsonLocal3dPointUncertaintyEllipsoid, _ := json.Marshal(dst.Local3dPointUncertaintyEllipsoid) + if string(jsonLocal3dPointUncertaintyEllipsoid) == "{}" { // empty struct + dst.Local3dPointUncertaintyEllipsoid = nil + } else { + return nil // data stored in dst.Local3dPointUncertaintyEllipsoid, return on the first match + } + } else { + dst.Local3dPointUncertaintyEllipsoid = nil + } + } + */ + + // check if the discriminator value is 'POINT' + if jsonDict["shape"] == "POINT" { + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + } + + // check if the discriminator value is 'POINT_ALTITUDE' + if jsonDict["shape"] == "POINT_ALTITUDE" { + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + } + + // check if the discriminator value is 'POINT_ALTITUDE_UNCERTAINTY' + if jsonDict["shape"] == "POINT_ALTITUDE_UNCERTAINTY" { + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + } + + // check if the discriminator value is 'POINT_UNCERTAINTY_CIRCLE' + if jsonDict["shape"] == "POINT_UNCERTAINTY_CIRCLE" { + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + } + + // check if the discriminator value is 'POINT_UNCERTAINTY_ELLIPSE' + if jsonDict["shape"] == "POINT_UNCERTAINTY_ELLIPSE" { + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'POLYGON' + if jsonDict["shape"] == "POLYGON" { + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + } + + // check if the discriminator value is 'EllipsoidArc' + if jsonDict["shape"] == "EllipsoidArc" { + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + } + + // check if the discriminator value is 'Point' + if jsonDict["shape"] == "Point" { + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + } + + // check if the discriminator value is 'PointAltitude' + if jsonDict["shape"] == "PointAltitude" { + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + } + + // check if the discriminator value is 'PointAltitudeUncertainty' + if jsonDict["shape"] == "PointAltitudeUncertainty" { + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + } + + // check if the discriminator value is 'PointUncertaintyCircle' + if jsonDict["shape"] == "PointUncertaintyCircle" { + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + } + + // check if the discriminator value is 'PointUncertaintyEllipse' + if jsonDict["shape"] == "PointUncertaintyEllipse" { + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'Polygon' + if jsonDict["shape"] == "Polygon" { + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + } + + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GeographicArea)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *GeographicArea) MarshalJSON() ([]byte, error) { + if src.EllipsoidArc != nil { + return json.Marshal(&src.EllipsoidArc) + } + + if src.Point != nil { + return json.Marshal(&src.Point) + } + + if src.PointAltitude != nil { + return json.Marshal(&src.PointAltitude) + } + + if src.PointAltitudeUncertainty != nil { + return json.Marshal(&src.PointAltitudeUncertainty) + } + + if src.PointUncertaintyCircle != nil { + return json.Marshal(&src.PointUncertaintyCircle) + } + + if src.PointUncertaintyEllipse != nil { + return json.Marshal(&src.PointUncertaintyEllipse) + } + + if src.Polygon != nil { + return json.Marshal(&src.Polygon) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGeographicArea struct { + value *GeographicArea + isSet bool +} + +func (v NullableGeographicArea) Get() *GeographicArea { + return v.value +} + +func (v *NullableGeographicArea) Set(val *GeographicArea) { + v.value = val + v.isSet = true +} + +func (v NullableGeographicArea) IsSet() bool { + return v.isSet +} + +func (v *NullableGeographicArea) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGeographicArea(val *GeographicArea) *NullableGeographicArea { + return &NullableGeographicArea{value: val, isSet: true} +} + +func (v NullableGeographicArea) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGeographicArea) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_geographical_coordinates.go b/internal/CapifDiscoverService/model_geographical_coordinates.go new file mode 100644 index 0000000000000000000000000000000000000000..cf3edb66f723c365854a23c9aa4d62581db6b933 --- /dev/null +++ b/internal/CapifDiscoverService/model_geographical_coordinates.go @@ -0,0 +1,186 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GeographicalCoordinates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GeographicalCoordinates{} + +// GeographicalCoordinates Geographical coordinates. +type GeographicalCoordinates struct { + Lon float64 `json:"lon"` + Lat float64 `json:"lat"` +} + +type _GeographicalCoordinates GeographicalCoordinates + +// NewGeographicalCoordinates instantiates a new GeographicalCoordinates 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 NewGeographicalCoordinates(lon float64, lat float64) *GeographicalCoordinates { + this := GeographicalCoordinates{} + this.Lon = lon + this.Lat = lat + return &this +} + +// NewGeographicalCoordinatesWithDefaults instantiates a new GeographicalCoordinates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGeographicalCoordinatesWithDefaults() *GeographicalCoordinates { + this := GeographicalCoordinates{} + return &this +} + +// GetLon returns the Lon field value +func (o *GeographicalCoordinates) GetLon() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Lon +} + +// GetLonOk returns a tuple with the Lon field value +// and a boolean to check if the value has been set. +func (o *GeographicalCoordinates) GetLonOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Lon, true +} + +// SetLon sets field value +func (o *GeographicalCoordinates) SetLon(v float64) { + o.Lon = v +} + +// GetLat returns the Lat field value +func (o *GeographicalCoordinates) GetLat() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Lat +} + +// GetLatOk returns a tuple with the Lat field value +// and a boolean to check if the value has been set. +func (o *GeographicalCoordinates) GetLatOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Lat, true +} + +// SetLat sets field value +func (o *GeographicalCoordinates) SetLat(v float64) { + o.Lat = v +} + +func (o GeographicalCoordinates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GeographicalCoordinates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["lon"] = o.Lon + toSerialize["lat"] = o.Lat + return toSerialize, nil +} + +func (o *GeographicalCoordinates) UnmarshalJSON(data []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{ + "lon", + "lat", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varGeographicalCoordinates := _GeographicalCoordinates{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGeographicalCoordinates) + + if err != nil { + return err + } + + *o = GeographicalCoordinates(varGeographicalCoordinates) + + return err +} + +type NullableGeographicalCoordinates struct { + value *GeographicalCoordinates + isSet bool +} + +func (v NullableGeographicalCoordinates) Get() *GeographicalCoordinates { + return v.value +} + +func (v *NullableGeographicalCoordinates) Set(val *GeographicalCoordinates) { + v.value = val + v.isSet = true +} + +func (v NullableGeographicalCoordinates) IsSet() bool { + return v.isSet +} + +func (v *NullableGeographicalCoordinates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGeographicalCoordinates(val *GeographicalCoordinates) *NullableGeographicalCoordinates { + return &NullableGeographicalCoordinates{value: val, isSet: true} +} + +func (v NullableGeographicalCoordinates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGeographicalCoordinates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_interface_description.go b/internal/CapifDiscoverService/model_interface_description.go new file mode 100644 index 0000000000000000000000000000000000000000..d6d818b14570adf511a23e129b32ce4e1c41d921 --- /dev/null +++ b/internal/CapifDiscoverService/model_interface_description.go @@ -0,0 +1,238 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the InterfaceDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceDescription{} + +// InterfaceDescription Represents the description of an API's interface. +type InterfaceDescription struct { + // string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. + Ipv4Addr *string `json:"ipv4Addr,omitempty"` + // string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. + Ipv6Addr *string `json:"ipv6Addr,omitempty"` + // Unsigned integer with valid values between 0 and 65535. + Port *int32 `json:"port,omitempty"` + // Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"` +} + +// NewInterfaceDescription instantiates a new InterfaceDescription 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 NewInterfaceDescription() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceDescriptionWithDefaults() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// GetIpv4Addr returns the Ipv4Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv4Addr() string { + if o == nil || IsNil(o.Ipv4Addr) { + var ret string + return ret + } + return *o.Ipv4Addr +} + +// GetIpv4AddrOk returns a tuple with the Ipv4Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv4Addr) { + return nil, false + } + return o.Ipv4Addr, true +} + +// HasIpv4Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv4Addr() bool { + if o != nil && !IsNil(o.Ipv4Addr) { + return true + } + + return false +} + +// SetIpv4Addr gets a reference to the given string and assigns it to the Ipv4Addr field. +func (o *InterfaceDescription) SetIpv4Addr(v string) { + o.Ipv4Addr = &v +} + +// GetIpv6Addr returns the Ipv6Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv6Addr() string { + if o == nil || IsNil(o.Ipv6Addr) { + var ret string + return ret + } + return *o.Ipv6Addr +} + +// GetIpv6AddrOk returns a tuple with the Ipv6Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv6Addr) { + return nil, false + } + return o.Ipv6Addr, true +} + +// HasIpv6Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv6Addr() bool { + if o != nil && !IsNil(o.Ipv6Addr) { + return true + } + + return false +} + +// SetIpv6Addr gets a reference to the given string and assigns it to the Ipv6Addr field. +func (o *InterfaceDescription) SetIpv6Addr(v string) { + o.Ipv6Addr = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *InterfaceDescription) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *InterfaceDescription) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *InterfaceDescription) SetPort(v int32) { + o.Port = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *InterfaceDescription) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +func (o InterfaceDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Ipv4Addr) { + toSerialize["ipv4Addr"] = o.Ipv4Addr + } + if !IsNil(o.Ipv6Addr) { + toSerialize["ipv6Addr"] = o.Ipv6Addr + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + return toSerialize, nil +} + +type NullableInterfaceDescription struct { + value *InterfaceDescription + isSet bool +} + +func (v NullableInterfaceDescription) Get() *InterfaceDescription { + return v.value +} + +func (v *NullableInterfaceDescription) Set(val *InterfaceDescription) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceDescription(val *InterfaceDescription) *NullableInterfaceDescription { + return &NullableInterfaceDescription{value: val, isSet: true} +} + +func (v NullableInterfaceDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_invalid_param.go b/internal/CapifDiscoverService/model_invalid_param.go new file mode 100644 index 0000000000000000000000000000000000000000..e9478d4b07f16b17f6eeadfc1aed827511e5ebbc --- /dev/null +++ b/internal/CapifDiscoverService/model_invalid_param.go @@ -0,0 +1,196 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InvalidParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvalidParam{} + +// InvalidParam Represents the description of invalid parameters, for a request rejected due to invalid parameters. +type InvalidParam struct { + // Attribute's name encoded as a JSON Pointer, or header's name. + Param string `json:"param"` + // A human-readable reason, e.g. \"must be a positive integer\". + Reason *string `json:"reason,omitempty"` +} + +type _InvalidParam InvalidParam + +// NewInvalidParam instantiates a new InvalidParam 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 NewInvalidParam(param string) *InvalidParam { + this := InvalidParam{} + this.Param = param + return &this +} + +// NewInvalidParamWithDefaults instantiates a new InvalidParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvalidParamWithDefaults() *InvalidParam { + this := InvalidParam{} + return &this +} + +// GetParam returns the Param field value +func (o *InvalidParam) GetParam() string { + if o == nil { + var ret string + return ret + } + + return o.Param +} + +// GetParamOk returns a tuple with the Param field value +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetParamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Param, true +} + +// SetParam sets field value +func (o *InvalidParam) SetParam(v string) { + o.Param = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InvalidParam) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InvalidParam) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InvalidParam) SetReason(v string) { + o.Reason = &v +} + +func (o InvalidParam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvalidParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["param"] = o.Param + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *InvalidParam) UnmarshalJSON(data []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{ + "param", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varInvalidParam := _InvalidParam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInvalidParam) + + if err != nil { + return err + } + + *o = InvalidParam(varInvalidParam) + + return err +} + +type NullableInvalidParam struct { + value *InvalidParam + isSet bool +} + +func (v NullableInvalidParam) Get() *InvalidParam { + return v.value +} + +func (v *NullableInvalidParam) Set(val *InvalidParam) { + v.value = val + v.isSet = true +} + +func (v NullableInvalidParam) IsSet() bool { + return v.isSet +} + +func (v *NullableInvalidParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvalidParam(val *InvalidParam) *NullableInvalidParam { + return &NullableInvalidParam{value: val, isSet: true} +} + +func (v NullableInvalidParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvalidParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_local2d_point_uncertainty_ellipse.go b/internal/CapifDiscoverService/model_local2d_point_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..e69ae7452b1517cf8db796f1d87bfe07febc0091 --- /dev/null +++ b/internal/CapifDiscoverService/model_local2d_point_uncertainty_ellipse.go @@ -0,0 +1,254 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Local2dPointUncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Local2dPointUncertaintyEllipse{} + +// Local2dPointUncertaintyEllipse Local 2D point with uncertainty ellipse +type Local2dPointUncertaintyEllipse struct { + GADShape + LocalOrigin LocalOrigin `json:"localOrigin"` + Point RelativeCartesianLocation `json:"point"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _Local2dPointUncertaintyEllipse Local2dPointUncertaintyEllipse + +// NewLocal2dPointUncertaintyEllipse instantiates a new Local2dPointUncertaintyEllipse 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 NewLocal2dPointUncertaintyEllipse(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipse UncertaintyEllipse, confidence int32, shape SupportedGADShapes) *Local2dPointUncertaintyEllipse { + this := Local2dPointUncertaintyEllipse{} + this.Shape = shape + this.LocalOrigin = localOrigin + this.Point = point + this.UncertaintyEllipse = uncertaintyEllipse + this.Confidence = confidence + return &this +} + +// NewLocal2dPointUncertaintyEllipseWithDefaults instantiates a new Local2dPointUncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocal2dPointUncertaintyEllipseWithDefaults() *Local2dPointUncertaintyEllipse { + this := Local2dPointUncertaintyEllipse{} + return &this +} + +// GetLocalOrigin returns the LocalOrigin field value +func (o *Local2dPointUncertaintyEllipse) GetLocalOrigin() LocalOrigin { + if o == nil { + var ret LocalOrigin + return ret + } + + return o.LocalOrigin +} + +// GetLocalOriginOk returns a tuple with the LocalOrigin field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetLocalOriginOk() (*LocalOrigin, bool) { + if o == nil { + return nil, false + } + return &o.LocalOrigin, true +} + +// SetLocalOrigin sets field value +func (o *Local2dPointUncertaintyEllipse) SetLocalOrigin(v LocalOrigin) { + o.LocalOrigin = v +} + +// GetPoint returns the Point field value +func (o *Local2dPointUncertaintyEllipse) GetPoint() RelativeCartesianLocation { + if o == nil { + var ret RelativeCartesianLocation + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetPointOk() (*RelativeCartesianLocation, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Local2dPointUncertaintyEllipse) SetPoint(v RelativeCartesianLocation) { + o.Point = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *Local2dPointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetConfidence returns the Confidence field value +func (o *Local2dPointUncertaintyEllipse) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *Local2dPointUncertaintyEllipse) SetConfidence(v int32) { + o.Confidence = v +} + +func (o Local2dPointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Local2dPointUncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["localOrigin"] = o.LocalOrigin + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *Local2dPointUncertaintyEllipse) UnmarshalJSON(data []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{ + "localOrigin", + "point", + "uncertaintyEllipse", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varLocal2dPointUncertaintyEllipse := _Local2dPointUncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLocal2dPointUncertaintyEllipse) + + if err != nil { + return err + } + + *o = Local2dPointUncertaintyEllipse(varLocal2dPointUncertaintyEllipse) + + return err +} + +type NullableLocal2dPointUncertaintyEllipse struct { + value *Local2dPointUncertaintyEllipse + isSet bool +} + +func (v NullableLocal2dPointUncertaintyEllipse) Get() *Local2dPointUncertaintyEllipse { + return v.value +} + +func (v *NullableLocal2dPointUncertaintyEllipse) Set(val *Local2dPointUncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullableLocal2dPointUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullableLocal2dPointUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocal2dPointUncertaintyEllipse(val *Local2dPointUncertaintyEllipse) *NullableLocal2dPointUncertaintyEllipse { + return &NullableLocal2dPointUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullableLocal2dPointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocal2dPointUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_local3d_point_uncertainty_ellipsoid.go b/internal/CapifDiscoverService/model_local3d_point_uncertainty_ellipsoid.go new file mode 100644 index 0000000000000000000000000000000000000000..b1420365b7776e8a480a5802fe499e518d01d4c1 --- /dev/null +++ b/internal/CapifDiscoverService/model_local3d_point_uncertainty_ellipsoid.go @@ -0,0 +1,254 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Local3dPointUncertaintyEllipsoid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Local3dPointUncertaintyEllipsoid{} + +// Local3dPointUncertaintyEllipsoid Local 3D point with uncertainty ellipsoid +type Local3dPointUncertaintyEllipsoid struct { + GADShape + LocalOrigin LocalOrigin `json:"localOrigin"` + Point RelativeCartesianLocation `json:"point"` + UncertaintyEllipsoid UncertaintyEllipsoid `json:"uncertaintyEllipsoid"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _Local3dPointUncertaintyEllipsoid Local3dPointUncertaintyEllipsoid + +// NewLocal3dPointUncertaintyEllipsoid instantiates a new Local3dPointUncertaintyEllipsoid 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 NewLocal3dPointUncertaintyEllipsoid(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipsoid UncertaintyEllipsoid, confidence int32, shape SupportedGADShapes) *Local3dPointUncertaintyEllipsoid { + this := Local3dPointUncertaintyEllipsoid{} + this.Shape = shape + this.LocalOrigin = localOrigin + this.Point = point + this.UncertaintyEllipsoid = uncertaintyEllipsoid + this.Confidence = confidence + return &this +} + +// NewLocal3dPointUncertaintyEllipsoidWithDefaults instantiates a new Local3dPointUncertaintyEllipsoid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocal3dPointUncertaintyEllipsoidWithDefaults() *Local3dPointUncertaintyEllipsoid { + this := Local3dPointUncertaintyEllipsoid{} + return &this +} + +// GetLocalOrigin returns the LocalOrigin field value +func (o *Local3dPointUncertaintyEllipsoid) GetLocalOrigin() LocalOrigin { + if o == nil { + var ret LocalOrigin + return ret + } + + return o.LocalOrigin +} + +// GetLocalOriginOk returns a tuple with the LocalOrigin field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetLocalOriginOk() (*LocalOrigin, bool) { + if o == nil { + return nil, false + } + return &o.LocalOrigin, true +} + +// SetLocalOrigin sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetLocalOrigin(v LocalOrigin) { + o.LocalOrigin = v +} + +// GetPoint returns the Point field value +func (o *Local3dPointUncertaintyEllipsoid) GetPoint() RelativeCartesianLocation { + if o == nil { + var ret RelativeCartesianLocation + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetPointOk() (*RelativeCartesianLocation, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetPoint(v RelativeCartesianLocation) { + o.Point = v +} + +// GetUncertaintyEllipsoid returns the UncertaintyEllipsoid field value +func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoid() UncertaintyEllipsoid { + if o == nil { + var ret UncertaintyEllipsoid + return ret + } + + return o.UncertaintyEllipsoid +} + +// GetUncertaintyEllipsoidOk returns a tuple with the UncertaintyEllipsoid field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoidOk() (*UncertaintyEllipsoid, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipsoid, true +} + +// SetUncertaintyEllipsoid sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetUncertaintyEllipsoid(v UncertaintyEllipsoid) { + o.UncertaintyEllipsoid = v +} + +// GetConfidence returns the Confidence field value +func (o *Local3dPointUncertaintyEllipsoid) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetConfidence(v int32) { + o.Confidence = v +} + +func (o Local3dPointUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Local3dPointUncertaintyEllipsoid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["localOrigin"] = o.LocalOrigin + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipsoid"] = o.UncertaintyEllipsoid + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *Local3dPointUncertaintyEllipsoid) UnmarshalJSON(data []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{ + "localOrigin", + "point", + "uncertaintyEllipsoid", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varLocal3dPointUncertaintyEllipsoid := _Local3dPointUncertaintyEllipsoid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLocal3dPointUncertaintyEllipsoid) + + if err != nil { + return err + } + + *o = Local3dPointUncertaintyEllipsoid(varLocal3dPointUncertaintyEllipsoid) + + return err +} + +type NullableLocal3dPointUncertaintyEllipsoid struct { + value *Local3dPointUncertaintyEllipsoid + isSet bool +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) Get() *Local3dPointUncertaintyEllipsoid { + return v.value +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) Set(val *Local3dPointUncertaintyEllipsoid) { + v.value = val + v.isSet = true +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) IsSet() bool { + return v.isSet +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocal3dPointUncertaintyEllipsoid(val *Local3dPointUncertaintyEllipsoid) *NullableLocal3dPointUncertaintyEllipsoid { + return &NullableLocal3dPointUncertaintyEllipsoid{value: val, isSet: true} +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_local_origin.go b/internal/CapifDiscoverService/model_local_origin.go new file mode 100644 index 0000000000000000000000000000000000000000..e4a06783e835b6b55586da521a6fb19aed80e544 --- /dev/null +++ b/internal/CapifDiscoverService/model_local_origin.go @@ -0,0 +1,162 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the LocalOrigin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocalOrigin{} + +// LocalOrigin Indicates a Local origin in a reference system +type LocalOrigin struct { + CoordinateId *string `json:"coordinateId,omitempty"` + Point *GeographicalCoordinates `json:"point,omitempty"` +} + +// NewLocalOrigin instantiates a new LocalOrigin 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 NewLocalOrigin() *LocalOrigin { + this := LocalOrigin{} + return &this +} + +// NewLocalOriginWithDefaults instantiates a new LocalOrigin object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocalOriginWithDefaults() *LocalOrigin { + this := LocalOrigin{} + return &this +} + +// GetCoordinateId returns the CoordinateId field value if set, zero value otherwise. +func (o *LocalOrigin) GetCoordinateId() string { + if o == nil || IsNil(o.CoordinateId) { + var ret string + return ret + } + return *o.CoordinateId +} + +// GetCoordinateIdOk returns a tuple with the CoordinateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalOrigin) GetCoordinateIdOk() (*string, bool) { + if o == nil || IsNil(o.CoordinateId) { + return nil, false + } + return o.CoordinateId, true +} + +// HasCoordinateId returns a boolean if a field has been set. +func (o *LocalOrigin) HasCoordinateId() bool { + if o != nil && !IsNil(o.CoordinateId) { + return true + } + + return false +} + +// SetCoordinateId gets a reference to the given string and assigns it to the CoordinateId field. +func (o *LocalOrigin) SetCoordinateId(v string) { + o.CoordinateId = &v +} + +// GetPoint returns the Point field value if set, zero value otherwise. +func (o *LocalOrigin) GetPoint() GeographicalCoordinates { + if o == nil || IsNil(o.Point) { + var ret GeographicalCoordinates + return ret + } + return *o.Point +} + +// GetPointOk returns a tuple with the Point field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalOrigin) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil || IsNil(o.Point) { + return nil, false + } + return o.Point, true +} + +// HasPoint returns a boolean if a field has been set. +func (o *LocalOrigin) HasPoint() bool { + if o != nil && !IsNil(o.Point) { + return true + } + + return false +} + +// SetPoint gets a reference to the given GeographicalCoordinates and assigns it to the Point field. +func (o *LocalOrigin) SetPoint(v GeographicalCoordinates) { + o.Point = &v +} + +func (o LocalOrigin) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LocalOrigin) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CoordinateId) { + toSerialize["coordinateId"] = o.CoordinateId + } + if !IsNil(o.Point) { + toSerialize["point"] = o.Point + } + return toSerialize, nil +} + +type NullableLocalOrigin struct { + value *LocalOrigin + isSet bool +} + +func (v NullableLocalOrigin) Get() *LocalOrigin { + return v.value +} + +func (v *NullableLocalOrigin) Set(val *LocalOrigin) { + v.value = val + v.isSet = true +} + +func (v NullableLocalOrigin) IsSet() bool { + return v.isSet +} + +func (v *NullableLocalOrigin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocalOrigin(val *LocalOrigin) *NullableLocalOrigin { + return &NullableLocalOrigin{value: val, isSet: true} +} + +func (v NullableLocalOrigin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocalOrigin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_operation.go b/internal/CapifDiscoverService/model_operation.go new file mode 100644 index 0000000000000000000000000000000000000000..02cd631f858e3f14f6366b40dce92e254a156db6 --- /dev/null +++ b/internal/CapifDiscoverService/model_operation.go @@ -0,0 +1,87 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// Operation Possible values are: - GET: HTTP GET method - POST: HTTP POST method - PUT: HTTP PUT method - PATCH: HTTP PATCH method - DELETE: HTTP DELETE method +type Operation struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Operation) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Operation)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Operation) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableOperation struct { + value *Operation + isSet bool +} + +func (v NullableOperation) Get() *Operation { + return v.value +} + +func (v *NullableOperation) Set(val *Operation) { + v.value = val + v.isSet = true +} + +func (v NullableOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOperation(val *Operation) *NullableOperation { + return &NullableOperation{value: val, isSet: true} +} + +func (v NullableOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_point.go b/internal/CapifDiscoverService/model_point.go new file mode 100644 index 0000000000000000000000000000000000000000..4d5ffae63ef95c6445c0aa5ae28910c25209e2c2 --- /dev/null +++ b/internal/CapifDiscoverService/model_point.go @@ -0,0 +1,169 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Point type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Point{} + +// Point Ellipsoid Point. +type Point struct { + GADShape + Point GeographicalCoordinates `json:"point"` +} + +type _Point Point + +// NewPoint instantiates a new Point 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 NewPoint(point GeographicalCoordinates, shape SupportedGADShapes) *Point { + this := Point{} + this.Shape = shape + this.Point = point + return &this +} + +// NewPointWithDefaults instantiates a new Point object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointWithDefaults() *Point { + this := Point{} + return &this +} + +// GetPoint returns the Point field value +func (o *Point) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Point) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Point) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +func (o Point) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Point) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + return toSerialize, nil +} + +func (o *Point) UnmarshalJSON(data []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{ + "point", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPoint := _Point{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPoint) + + if err != nil { + return err + } + + *o = Point(varPoint) + + return err +} + +type NullablePoint struct { + value *Point + isSet bool +} + +func (v NullablePoint) Get() *Point { + return v.value +} + +func (v *NullablePoint) Set(val *Point) { + v.value = val + v.isSet = true +} + +func (v NullablePoint) IsSet() bool { + return v.isSet +} + +func (v *NullablePoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePoint(val *Point) *NullablePoint { + return &NullablePoint{value: val, isSet: true} +} + +func (v NullablePoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_point_altitude.go b/internal/CapifDiscoverService/model_point_altitude.go new file mode 100644 index 0000000000000000000000000000000000000000..92f9c9c41e9f5d0af2ed018ec9d64349780629e2 --- /dev/null +++ b/internal/CapifDiscoverService/model_point_altitude.go @@ -0,0 +1,198 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointAltitude type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointAltitude{} + +// PointAltitude Ellipsoid point with altitude. +type PointAltitude struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of altitude. + Altitude float64 `json:"altitude"` +} + +type _PointAltitude PointAltitude + +// NewPointAltitude instantiates a new PointAltitude 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 NewPointAltitude(point GeographicalCoordinates, altitude float64, shape SupportedGADShapes) *PointAltitude { + this := PointAltitude{} + this.Shape = shape + this.Point = point + this.Altitude = altitude + return &this +} + +// NewPointAltitudeWithDefaults instantiates a new PointAltitude object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointAltitudeWithDefaults() *PointAltitude { + this := PointAltitude{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointAltitude) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointAltitude) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointAltitude) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetAltitude returns the Altitude field value +func (o *PointAltitude) GetAltitude() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Altitude +} + +// GetAltitudeOk returns a tuple with the Altitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitude) GetAltitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Altitude, true +} + +// SetAltitude sets field value +func (o *PointAltitude) SetAltitude(v float64) { + o.Altitude = v +} + +func (o PointAltitude) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointAltitude) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["altitude"] = o.Altitude + return toSerialize, nil +} + +func (o *PointAltitude) UnmarshalJSON(data []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{ + "point", + "altitude", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointAltitude := _PointAltitude{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointAltitude) + + if err != nil { + return err + } + + *o = PointAltitude(varPointAltitude) + + return err +} + +type NullablePointAltitude struct { + value *PointAltitude + isSet bool +} + +func (v NullablePointAltitude) Get() *PointAltitude { + return v.value +} + +func (v *NullablePointAltitude) Set(val *PointAltitude) { + v.value = val + v.isSet = true +} + +func (v NullablePointAltitude) IsSet() bool { + return v.isSet +} + +func (v *NullablePointAltitude) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointAltitude(val *PointAltitude) *NullablePointAltitude { + return &NullablePointAltitude{value: val, isSet: true} +} + +func (v NullablePointAltitude) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointAltitude) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_point_altitude_uncertainty.go b/internal/CapifDiscoverService/model_point_altitude_uncertainty.go new file mode 100644 index 0000000000000000000000000000000000000000..d9056ad8ec8955912ddf0fbc7869b1c82c39f94c --- /dev/null +++ b/internal/CapifDiscoverService/model_point_altitude_uncertainty.go @@ -0,0 +1,321 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointAltitudeUncertainty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointAltitudeUncertainty{} + +// PointAltitudeUncertainty Ellipsoid point with altitude and uncertainty ellipsoid. +type PointAltitudeUncertainty struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of altitude. + Altitude float64 `json:"altitude"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of uncertainty. + UncertaintyAltitude float32 `json:"uncertaintyAltitude"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` + // Indicates value of confidence. + VConfidence *int32 `json:"vConfidence,omitempty"` +} + +type _PointAltitudeUncertainty PointAltitudeUncertainty + +// NewPointAltitudeUncertainty instantiates a new PointAltitudeUncertainty 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 NewPointAltitudeUncertainty(point GeographicalCoordinates, altitude float64, uncertaintyEllipse UncertaintyEllipse, uncertaintyAltitude float32, confidence int32, shape SupportedGADShapes) *PointAltitudeUncertainty { + this := PointAltitudeUncertainty{} + this.Shape = shape + this.Point = point + this.Altitude = altitude + this.UncertaintyEllipse = uncertaintyEllipse + this.UncertaintyAltitude = uncertaintyAltitude + this.Confidence = confidence + return &this +} + +// NewPointAltitudeUncertaintyWithDefaults instantiates a new PointAltitudeUncertainty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointAltitudeUncertaintyWithDefaults() *PointAltitudeUncertainty { + this := PointAltitudeUncertainty{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointAltitudeUncertainty) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointAltitudeUncertainty) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetAltitude returns the Altitude field value +func (o *PointAltitudeUncertainty) GetAltitude() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Altitude +} + +// GetAltitudeOk returns a tuple with the Altitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetAltitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Altitude, true +} + +// SetAltitude sets field value +func (o *PointAltitudeUncertainty) SetAltitude(v float64) { + o.Altitude = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *PointAltitudeUncertainty) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *PointAltitudeUncertainty) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetUncertaintyAltitude returns the UncertaintyAltitude field value +func (o *PointAltitudeUncertainty) GetUncertaintyAltitude() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.UncertaintyAltitude +} + +// GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetUncertaintyAltitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyAltitude, true +} + +// SetUncertaintyAltitude sets field value +func (o *PointAltitudeUncertainty) SetUncertaintyAltitude(v float32) { + o.UncertaintyAltitude = v +} + +// GetConfidence returns the Confidence field value +func (o *PointAltitudeUncertainty) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *PointAltitudeUncertainty) SetConfidence(v int32) { + o.Confidence = v +} + +// GetVConfidence returns the VConfidence field value if set, zero value otherwise. +func (o *PointAltitudeUncertainty) GetVConfidence() int32 { + if o == nil || IsNil(o.VConfidence) { + var ret int32 + return ret + } + return *o.VConfidence +} + +// GetVConfidenceOk returns a tuple with the VConfidence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetVConfidenceOk() (*int32, bool) { + if o == nil || IsNil(o.VConfidence) { + return nil, false + } + return o.VConfidence, true +} + +// HasVConfidence returns a boolean if a field has been set. +func (o *PointAltitudeUncertainty) HasVConfidence() bool { + if o != nil && !IsNil(o.VConfidence) { + return true + } + + return false +} + +// SetVConfidence gets a reference to the given int32 and assigns it to the VConfidence field. +func (o *PointAltitudeUncertainty) SetVConfidence(v int32) { + o.VConfidence = &v +} + +func (o PointAltitudeUncertainty) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointAltitudeUncertainty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["altitude"] = o.Altitude + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["uncertaintyAltitude"] = o.UncertaintyAltitude + toSerialize["confidence"] = o.Confidence + if !IsNil(o.VConfidence) { + toSerialize["vConfidence"] = o.VConfidence + } + return toSerialize, nil +} + +func (o *PointAltitudeUncertainty) UnmarshalJSON(data []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{ + "point", + "altitude", + "uncertaintyEllipse", + "uncertaintyAltitude", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointAltitudeUncertainty := _PointAltitudeUncertainty{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointAltitudeUncertainty) + + if err != nil { + return err + } + + *o = PointAltitudeUncertainty(varPointAltitudeUncertainty) + + return err +} + +type NullablePointAltitudeUncertainty struct { + value *PointAltitudeUncertainty + isSet bool +} + +func (v NullablePointAltitudeUncertainty) Get() *PointAltitudeUncertainty { + return v.value +} + +func (v *NullablePointAltitudeUncertainty) Set(val *PointAltitudeUncertainty) { + v.value = val + v.isSet = true +} + +func (v NullablePointAltitudeUncertainty) IsSet() bool { + return v.isSet +} + +func (v *NullablePointAltitudeUncertainty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointAltitudeUncertainty(val *PointAltitudeUncertainty) *NullablePointAltitudeUncertainty { + return &NullablePointAltitudeUncertainty{value: val, isSet: true} +} + +func (v NullablePointAltitudeUncertainty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointAltitudeUncertainty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_point_uncertainty_circle.go b/internal/CapifDiscoverService/model_point_uncertainty_circle.go new file mode 100644 index 0000000000000000000000000000000000000000..9f39572c6134dcd6782023b8ad063b166da4d7b6 --- /dev/null +++ b/internal/CapifDiscoverService/model_point_uncertainty_circle.go @@ -0,0 +1,198 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointUncertaintyCircle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointUncertaintyCircle{} + +// PointUncertaintyCircle Ellipsoid point with uncertainty circle. +type PointUncertaintyCircle struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of uncertainty. + Uncertainty float32 `json:"uncertainty"` +} + +type _PointUncertaintyCircle PointUncertaintyCircle + +// NewPointUncertaintyCircle instantiates a new PointUncertaintyCircle 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 NewPointUncertaintyCircle(point GeographicalCoordinates, uncertainty float32, shape SupportedGADShapes) *PointUncertaintyCircle { + this := PointUncertaintyCircle{} + this.Shape = shape + this.Point = point + this.Uncertainty = uncertainty + return &this +} + +// NewPointUncertaintyCircleWithDefaults instantiates a new PointUncertaintyCircle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointUncertaintyCircleWithDefaults() *PointUncertaintyCircle { + this := PointUncertaintyCircle{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointUncertaintyCircle) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyCircle) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointUncertaintyCircle) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetUncertainty returns the Uncertainty field value +func (o *PointUncertaintyCircle) GetUncertainty() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Uncertainty +} + +// GetUncertaintyOk returns a tuple with the Uncertainty field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyCircle) GetUncertaintyOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Uncertainty, true +} + +// SetUncertainty sets field value +func (o *PointUncertaintyCircle) SetUncertainty(v float32) { + o.Uncertainty = v +} + +func (o PointUncertaintyCircle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointUncertaintyCircle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["uncertainty"] = o.Uncertainty + return toSerialize, nil +} + +func (o *PointUncertaintyCircle) UnmarshalJSON(data []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{ + "point", + "uncertainty", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointUncertaintyCircle := _PointUncertaintyCircle{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointUncertaintyCircle) + + if err != nil { + return err + } + + *o = PointUncertaintyCircle(varPointUncertaintyCircle) + + return err +} + +type NullablePointUncertaintyCircle struct { + value *PointUncertaintyCircle + isSet bool +} + +func (v NullablePointUncertaintyCircle) Get() *PointUncertaintyCircle { + return v.value +} + +func (v *NullablePointUncertaintyCircle) Set(val *PointUncertaintyCircle) { + v.value = val + v.isSet = true +} + +func (v NullablePointUncertaintyCircle) IsSet() bool { + return v.isSet +} + +func (v *NullablePointUncertaintyCircle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointUncertaintyCircle(val *PointUncertaintyCircle) *NullablePointUncertaintyCircle { + return &NullablePointUncertaintyCircle{value: val, isSet: true} +} + +func (v NullablePointUncertaintyCircle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointUncertaintyCircle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_point_uncertainty_ellipse.go b/internal/CapifDiscoverService/model_point_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..d47757b3d8925b2ddb1ae3edc84e1147126ba571 --- /dev/null +++ b/internal/CapifDiscoverService/model_point_uncertainty_ellipse.go @@ -0,0 +1,226 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointUncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointUncertaintyEllipse{} + +// PointUncertaintyEllipse Ellipsoid point with uncertainty ellipse. +type PointUncertaintyEllipse struct { + GADShape + Point GeographicalCoordinates `json:"point"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _PointUncertaintyEllipse PointUncertaintyEllipse + +// NewPointUncertaintyEllipse instantiates a new PointUncertaintyEllipse 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 NewPointUncertaintyEllipse(point GeographicalCoordinates, uncertaintyEllipse UncertaintyEllipse, confidence int32, shape SupportedGADShapes) *PointUncertaintyEllipse { + this := PointUncertaintyEllipse{} + this.Shape = shape + this.Point = point + this.UncertaintyEllipse = uncertaintyEllipse + this.Confidence = confidence + return &this +} + +// NewPointUncertaintyEllipseWithDefaults instantiates a new PointUncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointUncertaintyEllipseWithDefaults() *PointUncertaintyEllipse { + this := PointUncertaintyEllipse{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointUncertaintyEllipse) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointUncertaintyEllipse) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *PointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *PointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetConfidence returns the Confidence field value +func (o *PointUncertaintyEllipse) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *PointUncertaintyEllipse) SetConfidence(v int32) { + o.Confidence = v +} + +func (o PointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointUncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *PointUncertaintyEllipse) UnmarshalJSON(data []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{ + "point", + "uncertaintyEllipse", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointUncertaintyEllipse := _PointUncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointUncertaintyEllipse) + + if err != nil { + return err + } + + *o = PointUncertaintyEllipse(varPointUncertaintyEllipse) + + return err +} + +type NullablePointUncertaintyEllipse struct { + value *PointUncertaintyEllipse + isSet bool +} + +func (v NullablePointUncertaintyEllipse) Get() *PointUncertaintyEllipse { + return v.value +} + +func (v *NullablePointUncertaintyEllipse) Set(val *PointUncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullablePointUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullablePointUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointUncertaintyEllipse(val *PointUncertaintyEllipse) *NullablePointUncertaintyEllipse { + return &NullablePointUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullablePointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_polygon.go b/internal/CapifDiscoverService/model_polygon.go new file mode 100644 index 0000000000000000000000000000000000000000..0379dc76fd9db36ef7acb244fd818a8bafa93616 --- /dev/null +++ b/internal/CapifDiscoverService/model_polygon.go @@ -0,0 +1,170 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Polygon type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Polygon{} + +// Polygon Polygon. +type Polygon struct { + GADShape + // List of points. + PointList []GeographicalCoordinates `json:"pointList"` +} + +type _Polygon Polygon + +// NewPolygon instantiates a new Polygon 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 NewPolygon(pointList []GeographicalCoordinates, shape SupportedGADShapes) *Polygon { + this := Polygon{} + this.Shape = shape + this.PointList = pointList + return &this +} + +// NewPolygonWithDefaults instantiates a new Polygon object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolygonWithDefaults() *Polygon { + this := Polygon{} + return &this +} + +// GetPointList returns the PointList field value +func (o *Polygon) GetPointList() []GeographicalCoordinates { + if o == nil { + var ret []GeographicalCoordinates + return ret + } + + return o.PointList +} + +// GetPointListOk returns a tuple with the PointList field value +// and a boolean to check if the value has been set. +func (o *Polygon) GetPointListOk() ([]GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return o.PointList, true +} + +// SetPointList sets field value +func (o *Polygon) SetPointList(v []GeographicalCoordinates) { + o.PointList = v +} + +func (o Polygon) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Polygon) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["pointList"] = o.PointList + return toSerialize, nil +} + +func (o *Polygon) UnmarshalJSON(data []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{ + "pointList", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPolygon := _Polygon{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPolygon) + + if err != nil { + return err + } + + *o = Polygon(varPolygon) + + return err +} + +type NullablePolygon struct { + value *Polygon + isSet bool +} + +func (v NullablePolygon) Get() *Polygon { + return v.value +} + +func (v *NullablePolygon) Set(val *Polygon) { + v.value = val + v.isSet = true +} + +func (v NullablePolygon) IsSet() bool { + return v.isSet +} + +func (v *NullablePolygon) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolygon(val *Polygon) *NullablePolygon { + return &NullablePolygon{value: val, isSet: true} +} + +func (v NullablePolygon) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolygon) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_problem_details.go b/internal/CapifDiscoverService/model_problem_details.go new file mode 100644 index 0000000000000000000000000000000000000000..b378b1edb081237d1136f4962c7545b46c8cf75c --- /dev/null +++ b/internal/CapifDiscoverService/model_problem_details.go @@ -0,0 +1,386 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the ProblemDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProblemDetails{} + +// ProblemDetails Represents additional information and details on an error response. +type ProblemDetails struct { + // string providing an URI formatted according to IETF RFC 3986. + Type *string `json:"type,omitempty"` + // A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. + Title *string `json:"title,omitempty"` + // The HTTP status code for this occurrence of the problem. + Status *int32 `json:"status,omitempty"` + // A human-readable explanation specific to this occurrence of the problem. + Detail *string `json:"detail,omitempty"` + // string providing an URI formatted according to IETF RFC 3986. + Instance *string `json:"instance,omitempty"` + // A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + Cause *string `json:"cause,omitempty"` + // Description of invalid parameters, for a request rejected due to invalid parameters. + InvalidParams []InvalidParam `json:"invalidParams,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` +} + +// NewProblemDetails instantiates a new ProblemDetails 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 NewProblemDetails() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProblemDetailsWithDefaults() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProblemDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProblemDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProblemDetails) SetType(v string) { + o.Type = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ProblemDetails) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ProblemDetails) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ProblemDetails) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ProblemDetails) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ProblemDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ProblemDetails) SetStatus(v int32) { + o.Status = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ProblemDetails) GetDetail() string { + if o == nil || IsNil(o.Detail) { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetDetailOk() (*string, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ProblemDetails) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ProblemDetails) SetDetail(v string) { + o.Detail = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ProblemDetails) GetInstance() string { + if o == nil || IsNil(o.Instance) { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInstanceOk() (*string, bool) { + if o == nil || IsNil(o.Instance) { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ProblemDetails) HasInstance() bool { + if o != nil && !IsNil(o.Instance) { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ProblemDetails) SetInstance(v string) { + o.Instance = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ProblemDetails) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ProblemDetails) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ProblemDetails) SetCause(v string) { + o.Cause = &v +} + +// GetInvalidParams returns the InvalidParams field value if set, zero value otherwise. +func (o *ProblemDetails) GetInvalidParams() []InvalidParam { + if o == nil || IsNil(o.InvalidParams) { + var ret []InvalidParam + return ret + } + return o.InvalidParams +} + +// GetInvalidParamsOk returns a tuple with the InvalidParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInvalidParamsOk() ([]InvalidParam, bool) { + if o == nil || IsNil(o.InvalidParams) { + return nil, false + } + return o.InvalidParams, true +} + +// HasInvalidParams returns a boolean if a field has been set. +func (o *ProblemDetails) HasInvalidParams() bool { + if o != nil && !IsNil(o.InvalidParams) { + return true + } + + return false +} + +// SetInvalidParams gets a reference to the given []InvalidParam and assigns it to the InvalidParams field. +func (o *ProblemDetails) SetInvalidParams(v []InvalidParam) { + o.InvalidParams = v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ProblemDetails) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ProblemDetails) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ProblemDetails) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o ProblemDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProblemDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + if !IsNil(o.Instance) { + toSerialize["instance"] = o.Instance + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.InvalidParams) { + toSerialize["invalidParams"] = o.InvalidParams + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +type NullableProblemDetails struct { + value *ProblemDetails + isSet bool +} + +func (v NullableProblemDetails) Get() *ProblemDetails { + return v.value +} + +func (v *NullableProblemDetails) Set(val *ProblemDetails) { + v.value = val + v.isSet = true +} + +func (v NullableProblemDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableProblemDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProblemDetails(val *ProblemDetails) *NullableProblemDetails { + return &NullableProblemDetails{value: val, isSet: true} +} + +func (v NullableProblemDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProblemDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_protocol.go b/internal/CapifDiscoverService/model_protocol.go new file mode 100644 index 0000000000000000000000000000000000000000..65d81162be89b3c09253ce93fafbbd439a982d30 --- /dev/null +++ b/internal/CapifDiscoverService/model_protocol.go @@ -0,0 +1,87 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// Protocol Possible values are: - HTTP_1_1: HTTP version 1.1 - HTTP_2: HTTP version 2 +type Protocol struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Protocol) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Protocol)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Protocol) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableProtocol struct { + value *Protocol + isSet bool +} + +func (v NullableProtocol) Get() *Protocol { + return v.value +} + +func (v *NullableProtocol) Set(val *Protocol) { + v.value = val + v.isSet = true +} + +func (v NullableProtocol) IsSet() bool { + return v.isSet +} + +func (v *NullableProtocol) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtocol(val *Protocol) *NullableProtocol { + return &NullableProtocol{value: val, isSet: true} +} + +func (v NullableProtocol) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtocol) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_published_api_path.go b/internal/CapifDiscoverService/model_published_api_path.go new file mode 100644 index 0000000000000000000000000000000000000000..141f7caf7aba3e7ac8adb2b3a9e4cfe59bbc19f6 --- /dev/null +++ b/internal/CapifDiscoverService/model_published_api_path.go @@ -0,0 +1,127 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" +) + +// checks if the PublishedApiPath type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublishedApiPath{} + +// PublishedApiPath Represents the published API path within the same CAPIF provider domain. +type PublishedApiPath struct { + // A list of CCF identifiers where the service API is already published. + CcfIds []string `json:"ccfIds,omitempty"` +} + +// NewPublishedApiPath instantiates a new PublishedApiPath 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 NewPublishedApiPath() *PublishedApiPath { + this := PublishedApiPath{} + return &this +} + +// NewPublishedApiPathWithDefaults instantiates a new PublishedApiPath object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublishedApiPathWithDefaults() *PublishedApiPath { + this := PublishedApiPath{} + return &this +} + +// GetCcfIds returns the CcfIds field value if set, zero value otherwise. +func (o *PublishedApiPath) GetCcfIds() []string { + if o == nil || IsNil(o.CcfIds) { + var ret []string + return ret + } + return o.CcfIds +} + +// GetCcfIdsOk returns a tuple with the CcfIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedApiPath) GetCcfIdsOk() ([]string, bool) { + if o == nil || IsNil(o.CcfIds) { + return nil, false + } + return o.CcfIds, true +} + +// HasCcfIds returns a boolean if a field has been set. +func (o *PublishedApiPath) HasCcfIds() bool { + if o != nil && !IsNil(o.CcfIds) { + return true + } + + return false +} + +// SetCcfIds gets a reference to the given []string and assigns it to the CcfIds field. +func (o *PublishedApiPath) SetCcfIds(v []string) { + o.CcfIds = v +} + +func (o PublishedApiPath) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublishedApiPath) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CcfIds) { + toSerialize["ccfIds"] = o.CcfIds + } + return toSerialize, nil +} + +type NullablePublishedApiPath struct { + value *PublishedApiPath + isSet bool +} + +func (v NullablePublishedApiPath) Get() *PublishedApiPath { + return v.value +} + +func (v *NullablePublishedApiPath) Set(val *PublishedApiPath) { + v.value = val + v.isSet = true +} + +func (v NullablePublishedApiPath) IsSet() bool { + return v.isSet +} + +func (v *NullablePublishedApiPath) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublishedApiPath(val *PublishedApiPath) *NullablePublishedApiPath { + return &NullablePublishedApiPath{value: val, isSet: true} +} + +func (v NullablePublishedApiPath) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublishedApiPath) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_relative_cartesian_location.go b/internal/CapifDiscoverService/model_relative_cartesian_location.go new file mode 100644 index 0000000000000000000000000000000000000000..59b189b6a35a11fb06d22e2915f290ec562249dc --- /dev/null +++ b/internal/CapifDiscoverService/model_relative_cartesian_location.go @@ -0,0 +1,225 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RelativeCartesianLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RelativeCartesianLocation{} + +// RelativeCartesianLocation Relative Cartesian Location +type RelativeCartesianLocation struct { + // string with format 'float' as defined in OpenAPI. + X float32 `json:"x"` + // string with format 'float' as defined in OpenAPI. + Y float32 `json:"y"` + // string with format 'float' as defined in OpenAPI. + Z *float32 `json:"z,omitempty"` +} + +type _RelativeCartesianLocation RelativeCartesianLocation + +// NewRelativeCartesianLocation instantiates a new RelativeCartesianLocation 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 NewRelativeCartesianLocation(x float32, y float32) *RelativeCartesianLocation { + this := RelativeCartesianLocation{} + this.X = x + this.Y = y + return &this +} + +// NewRelativeCartesianLocationWithDefaults instantiates a new RelativeCartesianLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRelativeCartesianLocationWithDefaults() *RelativeCartesianLocation { + this := RelativeCartesianLocation{} + return &this +} + +// GetX returns the X field value +func (o *RelativeCartesianLocation) GetX() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.X +} + +// GetXOk returns a tuple with the X field value +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetXOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.X, true +} + +// SetX sets field value +func (o *RelativeCartesianLocation) SetX(v float32) { + o.X = v +} + +// GetY returns the Y field value +func (o *RelativeCartesianLocation) GetY() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Y +} + +// GetYOk returns a tuple with the Y field value +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetYOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Y, true +} + +// SetY sets field value +func (o *RelativeCartesianLocation) SetY(v float32) { + o.Y = v +} + +// GetZ returns the Z field value if set, zero value otherwise. +func (o *RelativeCartesianLocation) GetZ() float32 { + if o == nil || IsNil(o.Z) { + var ret float32 + return ret + } + return *o.Z +} + +// GetZOk returns a tuple with the Z field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetZOk() (*float32, bool) { + if o == nil || IsNil(o.Z) { + return nil, false + } + return o.Z, true +} + +// HasZ returns a boolean if a field has been set. +func (o *RelativeCartesianLocation) HasZ() bool { + if o != nil && !IsNil(o.Z) { + return true + } + + return false +} + +// SetZ gets a reference to the given float32 and assigns it to the Z field. +func (o *RelativeCartesianLocation) SetZ(v float32) { + o.Z = &v +} + +func (o RelativeCartesianLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RelativeCartesianLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["x"] = o.X + toSerialize["y"] = o.Y + if !IsNil(o.Z) { + toSerialize["z"] = o.Z + } + return toSerialize, nil +} + +func (o *RelativeCartesianLocation) UnmarshalJSON(data []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{ + "x", + "y", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varRelativeCartesianLocation := _RelativeCartesianLocation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRelativeCartesianLocation) + + if err != nil { + return err + } + + *o = RelativeCartesianLocation(varRelativeCartesianLocation) + + return err +} + +type NullableRelativeCartesianLocation struct { + value *RelativeCartesianLocation + isSet bool +} + +func (v NullableRelativeCartesianLocation) Get() *RelativeCartesianLocation { + return v.value +} + +func (v *NullableRelativeCartesianLocation) Set(val *RelativeCartesianLocation) { + v.value = val + v.isSet = true +} + +func (v NullableRelativeCartesianLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableRelativeCartesianLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelativeCartesianLocation(val *RelativeCartesianLocation) *NullableRelativeCartesianLocation { + return &NullableRelativeCartesianLocation{value: val, isSet: true} +} + +func (v NullableRelativeCartesianLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelativeCartesianLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_resource.go b/internal/CapifDiscoverService/model_resource.go new file mode 100644 index 0000000000000000000000000000000000000000..7a2221487709a176e39c1a4372676395dac73336 --- /dev/null +++ b/internal/CapifDiscoverService/model_resource.go @@ -0,0 +1,327 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Resource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Resource{} + +// Resource Represents the API resource data. +type Resource struct { + // Resource name + ResourceName string `json:"resourceName"` + CommType CommunicationType `json:"commType"` + // Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + Uri string `json:"uri"` + // it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. + CustOpName *string `json:"custOpName,omitempty"` + // Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + Operations []Operation `json:"operations,omitempty"` + // Text description of the API resource + Description *string `json:"description,omitempty"` +} + +type _Resource Resource + +// NewResource instantiates a new Resource 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 NewResource(resourceName string, commType CommunicationType, uri string) *Resource { + this := Resource{} + this.ResourceName = resourceName + this.CommType = commType + this.Uri = uri + return &this +} + +// NewResourceWithDefaults instantiates a new Resource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceWithDefaults() *Resource { + this := Resource{} + return &this +} + +// GetResourceName returns the ResourceName field value +func (o *Resource) GetResourceName() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value +// and a boolean to check if the value has been set. +func (o *Resource) GetResourceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceName, true +} + +// SetResourceName sets field value +func (o *Resource) SetResourceName(v string) { + o.ResourceName = v +} + +// GetCommType returns the CommType field value +func (o *Resource) GetCommType() CommunicationType { + if o == nil { + var ret CommunicationType + return ret + } + + return o.CommType +} + +// GetCommTypeOk returns a tuple with the CommType field value +// and a boolean to check if the value has been set. +func (o *Resource) GetCommTypeOk() (*CommunicationType, bool) { + if o == nil { + return nil, false + } + return &o.CommType, true +} + +// SetCommType sets field value +func (o *Resource) SetCommType(v CommunicationType) { + o.CommType = v +} + +// GetUri returns the Uri field value +func (o *Resource) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *Resource) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *Resource) SetUri(v string) { + o.Uri = v +} + +// GetCustOpName returns the CustOpName field value if set, zero value otherwise. +func (o *Resource) GetCustOpName() string { + if o == nil || IsNil(o.CustOpName) { + var ret string + return ret + } + return *o.CustOpName +} + +// GetCustOpNameOk returns a tuple with the CustOpName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetCustOpNameOk() (*string, bool) { + if o == nil || IsNil(o.CustOpName) { + return nil, false + } + return o.CustOpName, true +} + +// HasCustOpName returns a boolean if a field has been set. +func (o *Resource) HasCustOpName() bool { + if o != nil && !IsNil(o.CustOpName) { + return true + } + + return false +} + +// SetCustOpName gets a reference to the given string and assigns it to the CustOpName field. +func (o *Resource) SetCustOpName(v string) { + o.CustOpName = &v +} + +// GetOperations returns the Operations field value if set, zero value otherwise. +func (o *Resource) GetOperations() []Operation { + if o == nil || IsNil(o.Operations) { + var ret []Operation + return ret + } + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetOperationsOk() ([]Operation, bool) { + if o == nil || IsNil(o.Operations) { + return nil, false + } + return o.Operations, true +} + +// HasOperations returns a boolean if a field has been set. +func (o *Resource) HasOperations() bool { + if o != nil && !IsNil(o.Operations) { + return true + } + + return false +} + +// SetOperations gets a reference to the given []Operation and assigns it to the Operations field. +func (o *Resource) SetOperations(v []Operation) { + o.Operations = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Resource) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Resource) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Resource) SetDescription(v string) { + o.Description = &v +} + +func (o Resource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Resource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resourceName"] = o.ResourceName + toSerialize["commType"] = o.CommType + toSerialize["uri"] = o.Uri + if !IsNil(o.CustOpName) { + toSerialize["custOpName"] = o.CustOpName + } + if !IsNil(o.Operations) { + toSerialize["operations"] = o.Operations + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +func (o *Resource) UnmarshalJSON(data []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{ + "resourceName", + "commType", + "uri", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varResource := _Resource{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResource) + + if err != nil { + return err + } + + *o = Resource(varResource) + + return err +} + +type NullableResource struct { + value *Resource + isSet bool +} + +func (v NullableResource) Get() *Resource { + return v.value +} + +func (v *NullableResource) Set(val *Resource) { + v.value = val + v.isSet = true +} + +func (v NullableResource) IsSet() bool { + return v.isSet +} + +func (v *NullableResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResource(val *Resource) *NullableResource { + return &NullableResource{value: val, isSet: true} +} + +func (v NullableResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_security_method.go b/internal/CapifDiscoverService/model_security_method.go new file mode 100644 index 0000000000000000000000000000000000000000..5e2a84a4e21fc9f14ba1ccb001b15469f48c3d1c --- /dev/null +++ b/internal/CapifDiscoverService/model_security_method.go @@ -0,0 +1,87 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// SecurityMethod Possible values are: - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 +type SecurityMethod struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SecurityMethod) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SecurityMethod)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SecurityMethod) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSecurityMethod struct { + value *SecurityMethod + isSet bool +} + +func (v NullableSecurityMethod) Get() *SecurityMethod { + return v.value +} + +func (v *NullableSecurityMethod) Set(val *SecurityMethod) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityMethod(val *SecurityMethod) *NullableSecurityMethod { + return &NullableSecurityMethod{value: val, isSet: true} +} + +func (v NullableSecurityMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_service_api_description.go b/internal/CapifDiscoverService/model_service_api_description.go new file mode 100644 index 0000000000000000000000000000000000000000..62334d76d60bae936af8a2031919f0b3198d2133 --- /dev/null +++ b/internal/CapifDiscoverService/model_service_api_description.go @@ -0,0 +1,489 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ServiceAPIDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceAPIDescription{} + +// ServiceAPIDescription Represents the description of a service API as published by the APF. +type ServiceAPIDescription struct { + // API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + ApiName string `json:"apiName"` + // API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). + ApiId *string `json:"apiId,omitempty"` + // AEF profile information, which includes the exposed API details (e.g. protocol). + AefProfiles []AefProfile `json:"aefProfiles,omitempty"` + // Text description of the API + Description *string `json:"description,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` + ShareableInfo *ShareableInformation `json:"shareableInfo,omitempty"` + ServiceAPICategory *string `json:"serviceAPICategory,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + ApiSuppFeats *string `json:"apiSuppFeats,omitempty"` + PubApiPath *PublishedApiPath `json:"pubApiPath,omitempty"` + // CAPIF core function identifier. + CcfId *string `json:"ccfId,omitempty"` +} + +type _ServiceAPIDescription ServiceAPIDescription + +// NewServiceAPIDescription instantiates a new ServiceAPIDescription 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 NewServiceAPIDescription(apiName string) *ServiceAPIDescription { + this := ServiceAPIDescription{} + this.ApiName = apiName + return &this +} + +// NewServiceAPIDescriptionWithDefaults instantiates a new ServiceAPIDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAPIDescriptionWithDefaults() *ServiceAPIDescription { + this := ServiceAPIDescription{} + return &this +} + +// GetApiName returns the ApiName field value +func (o *ServiceAPIDescription) GetApiName() string { + if o == nil { + var ret string + return ret + } + + return o.ApiName +} + +// GetApiNameOk returns a tuple with the ApiName field value +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiName, true +} + +// SetApiName sets field value +func (o *ServiceAPIDescription) SetApiName(v string) { + o.ApiName = v +} + +// GetApiId returns the ApiId field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetApiId() string { + if o == nil || IsNil(o.ApiId) { + var ret string + return ret + } + return *o.ApiId +} + +// GetApiIdOk returns a tuple with the ApiId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiId) { + return nil, false + } + return o.ApiId, true +} + +// HasApiId returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasApiId() bool { + if o != nil && !IsNil(o.ApiId) { + return true + } + + return false +} + +// SetApiId gets a reference to the given string and assigns it to the ApiId field. +func (o *ServiceAPIDescription) SetApiId(v string) { + o.ApiId = &v +} + +// GetAefProfiles returns the AefProfiles field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetAefProfiles() []AefProfile { + if o == nil || IsNil(o.AefProfiles) { + var ret []AefProfile + return ret + } + return o.AefProfiles +} + +// GetAefProfilesOk returns a tuple with the AefProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetAefProfilesOk() ([]AefProfile, bool) { + if o == nil || IsNil(o.AefProfiles) { + return nil, false + } + return o.AefProfiles, true +} + +// HasAefProfiles returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasAefProfiles() bool { + if o != nil && !IsNil(o.AefProfiles) { + return true + } + + return false +} + +// SetAefProfiles gets a reference to the given []AefProfile and assigns it to the AefProfiles field. +func (o *ServiceAPIDescription) SetAefProfiles(v []AefProfile) { + o.AefProfiles = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAPIDescription) SetDescription(v string) { + o.Description = &v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ServiceAPIDescription) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +// GetShareableInfo returns the ShareableInfo field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetShareableInfo() ShareableInformation { + if o == nil || IsNil(o.ShareableInfo) { + var ret ShareableInformation + return ret + } + return *o.ShareableInfo +} + +// GetShareableInfoOk returns a tuple with the ShareableInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetShareableInfoOk() (*ShareableInformation, bool) { + if o == nil || IsNil(o.ShareableInfo) { + return nil, false + } + return o.ShareableInfo, true +} + +// HasShareableInfo returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasShareableInfo() bool { + if o != nil && !IsNil(o.ShareableInfo) { + return true + } + + return false +} + +// SetShareableInfo gets a reference to the given ShareableInformation and assigns it to the ShareableInfo field. +func (o *ServiceAPIDescription) SetShareableInfo(v ShareableInformation) { + o.ShareableInfo = &v +} + +// GetServiceAPICategory returns the ServiceAPICategory field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetServiceAPICategory() string { + if o == nil || IsNil(o.ServiceAPICategory) { + var ret string + return ret + } + return *o.ServiceAPICategory +} + +// GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetServiceAPICategoryOk() (*string, bool) { + if o == nil || IsNil(o.ServiceAPICategory) { + return nil, false + } + return o.ServiceAPICategory, true +} + +// HasServiceAPICategory returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasServiceAPICategory() bool { + if o != nil && !IsNil(o.ServiceAPICategory) { + return true + } + + return false +} + +// SetServiceAPICategory gets a reference to the given string and assigns it to the ServiceAPICategory field. +func (o *ServiceAPIDescription) SetServiceAPICategory(v string) { + o.ServiceAPICategory = &v +} + +// GetApiSuppFeats returns the ApiSuppFeats field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetApiSuppFeats() string { + if o == nil || IsNil(o.ApiSuppFeats) { + var ret string + return ret + } + return *o.ApiSuppFeats +} + +// GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiSuppFeatsOk() (*string, bool) { + if o == nil || IsNil(o.ApiSuppFeats) { + return nil, false + } + return o.ApiSuppFeats, true +} + +// HasApiSuppFeats returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasApiSuppFeats() bool { + if o != nil && !IsNil(o.ApiSuppFeats) { + return true + } + + return false +} + +// SetApiSuppFeats gets a reference to the given string and assigns it to the ApiSuppFeats field. +func (o *ServiceAPIDescription) SetApiSuppFeats(v string) { + o.ApiSuppFeats = &v +} + +// GetPubApiPath returns the PubApiPath field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetPubApiPath() PublishedApiPath { + if o == nil || IsNil(o.PubApiPath) { + var ret PublishedApiPath + return ret + } + return *o.PubApiPath +} + +// GetPubApiPathOk returns a tuple with the PubApiPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetPubApiPathOk() (*PublishedApiPath, bool) { + if o == nil || IsNil(o.PubApiPath) { + return nil, false + } + return o.PubApiPath, true +} + +// HasPubApiPath returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasPubApiPath() bool { + if o != nil && !IsNil(o.PubApiPath) { + return true + } + + return false +} + +// SetPubApiPath gets a reference to the given PublishedApiPath and assigns it to the PubApiPath field. +func (o *ServiceAPIDescription) SetPubApiPath(v PublishedApiPath) { + o.PubApiPath = &v +} + +// GetCcfId returns the CcfId field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetCcfId() string { + if o == nil || IsNil(o.CcfId) { + var ret string + return ret + } + return *o.CcfId +} + +// GetCcfIdOk returns a tuple with the CcfId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetCcfIdOk() (*string, bool) { + if o == nil || IsNil(o.CcfId) { + return nil, false + } + return o.CcfId, true +} + +// HasCcfId returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasCcfId() bool { + if o != nil && !IsNil(o.CcfId) { + return true + } + + return false +} + +// SetCcfId gets a reference to the given string and assigns it to the CcfId field. +func (o *ServiceAPIDescription) SetCcfId(v string) { + o.CcfId = &v +} + +func (o ServiceAPIDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceAPIDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiName"] = o.ApiName + if !IsNil(o.ApiId) { + toSerialize["apiId"] = o.ApiId + } + if !IsNil(o.AefProfiles) { + toSerialize["aefProfiles"] = o.AefProfiles + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + if !IsNil(o.ShareableInfo) { + toSerialize["shareableInfo"] = o.ShareableInfo + } + if !IsNil(o.ServiceAPICategory) { + toSerialize["serviceAPICategory"] = o.ServiceAPICategory + } + if !IsNil(o.ApiSuppFeats) { + toSerialize["apiSuppFeats"] = o.ApiSuppFeats + } + if !IsNil(o.PubApiPath) { + toSerialize["pubApiPath"] = o.PubApiPath + } + if !IsNil(o.CcfId) { + toSerialize["ccfId"] = o.CcfId + } + return toSerialize, nil +} + +func (o *ServiceAPIDescription) UnmarshalJSON(data []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{ + "apiName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varServiceAPIDescription := _ServiceAPIDescription{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceAPIDescription) + + if err != nil { + return err + } + + *o = ServiceAPIDescription(varServiceAPIDescription) + + return err +} + +type NullableServiceAPIDescription struct { + value *ServiceAPIDescription + isSet bool +} + +func (v NullableServiceAPIDescription) Get() *ServiceAPIDescription { + return v.value +} + +func (v *NullableServiceAPIDescription) Set(val *ServiceAPIDescription) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAPIDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAPIDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAPIDescription(val *ServiceAPIDescription) *NullableServiceAPIDescription { + return &NullableServiceAPIDescription{value: val, isSet: true} +} + +func (v NullableServiceAPIDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAPIDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_shareable_information.go b/internal/CapifDiscoverService/model_shareable_information.go new file mode 100644 index 0000000000000000000000000000000000000000..05f36e4785a9ac4bf7f908ec6112af087f162d60 --- /dev/null +++ b/internal/CapifDiscoverService/model_shareable_information.go @@ -0,0 +1,196 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ShareableInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShareableInformation{} + +// ShareableInformation Indicates whether the service API and/or the service API category can be shared to the list of CAPIF provider domains. +type ShareableInformation struct { + // Set to \"true\" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to \"false\". + IsShareable bool `json:"isShareable"` + // List of CAPIF provider domains to which the service API information to be shared. + CapifProvDoms []string `json:"capifProvDoms,omitempty"` +} + +type _ShareableInformation ShareableInformation + +// NewShareableInformation instantiates a new ShareableInformation 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 NewShareableInformation(isShareable bool) *ShareableInformation { + this := ShareableInformation{} + this.IsShareable = isShareable + return &this +} + +// NewShareableInformationWithDefaults instantiates a new ShareableInformation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShareableInformationWithDefaults() *ShareableInformation { + this := ShareableInformation{} + return &this +} + +// GetIsShareable returns the IsShareable field value +func (o *ShareableInformation) GetIsShareable() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsShareable +} + +// GetIsShareableOk returns a tuple with the IsShareable field value +// and a boolean to check if the value has been set. +func (o *ShareableInformation) GetIsShareableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsShareable, true +} + +// SetIsShareable sets field value +func (o *ShareableInformation) SetIsShareable(v bool) { + o.IsShareable = v +} + +// GetCapifProvDoms returns the CapifProvDoms field value if set, zero value otherwise. +func (o *ShareableInformation) GetCapifProvDoms() []string { + if o == nil || IsNil(o.CapifProvDoms) { + var ret []string + return ret + } + return o.CapifProvDoms +} + +// GetCapifProvDomsOk returns a tuple with the CapifProvDoms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShareableInformation) GetCapifProvDomsOk() ([]string, bool) { + if o == nil || IsNil(o.CapifProvDoms) { + return nil, false + } + return o.CapifProvDoms, true +} + +// HasCapifProvDoms returns a boolean if a field has been set. +func (o *ShareableInformation) HasCapifProvDoms() bool { + if o != nil && !IsNil(o.CapifProvDoms) { + return true + } + + return false +} + +// SetCapifProvDoms gets a reference to the given []string and assigns it to the CapifProvDoms field. +func (o *ShareableInformation) SetCapifProvDoms(v []string) { + o.CapifProvDoms = v +} + +func (o ShareableInformation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShareableInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["isShareable"] = o.IsShareable + if !IsNil(o.CapifProvDoms) { + toSerialize["capifProvDoms"] = o.CapifProvDoms + } + return toSerialize, nil +} + +func (o *ShareableInformation) UnmarshalJSON(data []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{ + "isShareable", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varShareableInformation := _ShareableInformation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varShareableInformation) + + if err != nil { + return err + } + + *o = ShareableInformation(varShareableInformation) + + return err +} + +type NullableShareableInformation struct { + value *ShareableInformation + isSet bool +} + +func (v NullableShareableInformation) Get() *ShareableInformation { + return v.value +} + +func (v *NullableShareableInformation) Set(val *ShareableInformation) { + v.value = val + v.isSet = true +} + +func (v NullableShareableInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableShareableInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShareableInformation(val *ShareableInformation) *NullableShareableInformation { + return &NullableShareableInformation{value: val, isSet: true} +} + +func (v NullableShareableInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShareableInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_supported_gad_shapes.go b/internal/CapifDiscoverService/model_supported_gad_shapes.go new file mode 100644 index 0000000000000000000000000000000000000000..ad4077bcc587a477b3b1e8fb44d083af7c62373a --- /dev/null +++ b/internal/CapifDiscoverService/model_supported_gad_shapes.go @@ -0,0 +1,87 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "fmt" +) + +// SupportedGADShapes Indicates supported GAD shapes. +type SupportedGADShapes struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SupportedGADShapes) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SupportedGADShapes)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SupportedGADShapes) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSupportedGADShapes struct { + value *SupportedGADShapes + isSet bool +} + +func (v NullableSupportedGADShapes) Get() *SupportedGADShapes { + return v.value +} + +func (v *NullableSupportedGADShapes) Set(val *SupportedGADShapes) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedGADShapes) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedGADShapes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedGADShapes(val *SupportedGADShapes) *NullableSupportedGADShapes { + return &NullableSupportedGADShapes{value: val, isSet: true} +} + +func (v NullableSupportedGADShapes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedGADShapes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_uncertainty_ellipse.go b/internal/CapifDiscoverService/model_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..d23d75e0d553bb3725214ea0bf4d3b6ff9b2cf8f --- /dev/null +++ b/internal/CapifDiscoverService/model_uncertainty_ellipse.go @@ -0,0 +1,217 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UncertaintyEllipse{} + +// UncertaintyEllipse Ellipse with uncertainty. +type UncertaintyEllipse struct { + // Indicates value of uncertainty. + SemiMajor float32 `json:"semiMajor"` + // Indicates value of uncertainty. + SemiMinor float32 `json:"semiMinor"` + // Indicates value of orientation angle. + OrientationMajor int32 `json:"orientationMajor"` +} + +type _UncertaintyEllipse UncertaintyEllipse + +// NewUncertaintyEllipse instantiates a new UncertaintyEllipse 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 NewUncertaintyEllipse(semiMajor float32, semiMinor float32, orientationMajor int32) *UncertaintyEllipse { + this := UncertaintyEllipse{} + this.SemiMajor = semiMajor + this.SemiMinor = semiMinor + this.OrientationMajor = orientationMajor + return &this +} + +// NewUncertaintyEllipseWithDefaults instantiates a new UncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUncertaintyEllipseWithDefaults() *UncertaintyEllipse { + this := UncertaintyEllipse{} + return &this +} + +// GetSemiMajor returns the SemiMajor field value +func (o *UncertaintyEllipse) GetSemiMajor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMajor +} + +// GetSemiMajorOk returns a tuple with the SemiMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetSemiMajorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMajor, true +} + +// SetSemiMajor sets field value +func (o *UncertaintyEllipse) SetSemiMajor(v float32) { + o.SemiMajor = v +} + +// GetSemiMinor returns the SemiMinor field value +func (o *UncertaintyEllipse) GetSemiMinor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMinor +} + +// GetSemiMinorOk returns a tuple with the SemiMinor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetSemiMinorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMinor, true +} + +// SetSemiMinor sets field value +func (o *UncertaintyEllipse) SetSemiMinor(v float32) { + o.SemiMinor = v +} + +// GetOrientationMajor returns the OrientationMajor field value +func (o *UncertaintyEllipse) GetOrientationMajor() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OrientationMajor +} + +// GetOrientationMajorOk returns a tuple with the OrientationMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetOrientationMajorOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OrientationMajor, true +} + +// SetOrientationMajor sets field value +func (o *UncertaintyEllipse) SetOrientationMajor(v int32) { + o.OrientationMajor = v +} + +func (o UncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["semiMajor"] = o.SemiMajor + toSerialize["semiMinor"] = o.SemiMinor + toSerialize["orientationMajor"] = o.OrientationMajor + return toSerialize, nil +} + +func (o *UncertaintyEllipse) UnmarshalJSON(data []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{ + "semiMajor", + "semiMinor", + "orientationMajor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varUncertaintyEllipse := _UncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUncertaintyEllipse) + + if err != nil { + return err + } + + *o = UncertaintyEllipse(varUncertaintyEllipse) + + return err +} + +type NullableUncertaintyEllipse struct { + value *UncertaintyEllipse + isSet bool +} + +func (v NullableUncertaintyEllipse) Get() *UncertaintyEllipse { + return v.value +} + +func (v *NullableUncertaintyEllipse) Set(val *UncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullableUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullableUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUncertaintyEllipse(val *UncertaintyEllipse) *NullableUncertaintyEllipse { + return &NullableUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullableUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_uncertainty_ellipsoid.go b/internal/CapifDiscoverService/model_uncertainty_ellipsoid.go new file mode 100644 index 0000000000000000000000000000000000000000..6703e9e3d4f36099a695995a3a879d00b7b55990 --- /dev/null +++ b/internal/CapifDiscoverService/model_uncertainty_ellipsoid.go @@ -0,0 +1,246 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UncertaintyEllipsoid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UncertaintyEllipsoid{} + +// UncertaintyEllipsoid Ellipsoid with uncertainty +type UncertaintyEllipsoid struct { + // Indicates value of uncertainty. + SemiMajor float32 `json:"semiMajor"` + // Indicates value of uncertainty. + SemiMinor float32 `json:"semiMinor"` + // Indicates value of uncertainty. + Vertical float32 `json:"vertical"` + // Indicates value of orientation angle. + OrientationMajor int32 `json:"orientationMajor"` +} + +type _UncertaintyEllipsoid UncertaintyEllipsoid + +// NewUncertaintyEllipsoid instantiates a new UncertaintyEllipsoid 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 NewUncertaintyEllipsoid(semiMajor float32, semiMinor float32, vertical float32, orientationMajor int32) *UncertaintyEllipsoid { + this := UncertaintyEllipsoid{} + this.SemiMajor = semiMajor + this.SemiMinor = semiMinor + this.Vertical = vertical + this.OrientationMajor = orientationMajor + return &this +} + +// NewUncertaintyEllipsoidWithDefaults instantiates a new UncertaintyEllipsoid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUncertaintyEllipsoidWithDefaults() *UncertaintyEllipsoid { + this := UncertaintyEllipsoid{} + return &this +} + +// GetSemiMajor returns the SemiMajor field value +func (o *UncertaintyEllipsoid) GetSemiMajor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMajor +} + +// GetSemiMajorOk returns a tuple with the SemiMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetSemiMajorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMajor, true +} + +// SetSemiMajor sets field value +func (o *UncertaintyEllipsoid) SetSemiMajor(v float32) { + o.SemiMajor = v +} + +// GetSemiMinor returns the SemiMinor field value +func (o *UncertaintyEllipsoid) GetSemiMinor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMinor +} + +// GetSemiMinorOk returns a tuple with the SemiMinor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetSemiMinorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMinor, true +} + +// SetSemiMinor sets field value +func (o *UncertaintyEllipsoid) SetSemiMinor(v float32) { + o.SemiMinor = v +} + +// GetVertical returns the Vertical field value +func (o *UncertaintyEllipsoid) GetVertical() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Vertical +} + +// GetVerticalOk returns a tuple with the Vertical field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetVerticalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Vertical, true +} + +// SetVertical sets field value +func (o *UncertaintyEllipsoid) SetVertical(v float32) { + o.Vertical = v +} + +// GetOrientationMajor returns the OrientationMajor field value +func (o *UncertaintyEllipsoid) GetOrientationMajor() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OrientationMajor +} + +// GetOrientationMajorOk returns a tuple with the OrientationMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetOrientationMajorOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OrientationMajor, true +} + +// SetOrientationMajor sets field value +func (o *UncertaintyEllipsoid) SetOrientationMajor(v int32) { + o.OrientationMajor = v +} + +func (o UncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UncertaintyEllipsoid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["semiMajor"] = o.SemiMajor + toSerialize["semiMinor"] = o.SemiMinor + toSerialize["vertical"] = o.Vertical + toSerialize["orientationMajor"] = o.OrientationMajor + return toSerialize, nil +} + +func (o *UncertaintyEllipsoid) UnmarshalJSON(data []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{ + "semiMajor", + "semiMinor", + "vertical", + "orientationMajor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varUncertaintyEllipsoid := _UncertaintyEllipsoid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUncertaintyEllipsoid) + + if err != nil { + return err + } + + *o = UncertaintyEllipsoid(varUncertaintyEllipsoid) + + return err +} + +type NullableUncertaintyEllipsoid struct { + value *UncertaintyEllipsoid + isSet bool +} + +func (v NullableUncertaintyEllipsoid) Get() *UncertaintyEllipsoid { + return v.value +} + +func (v *NullableUncertaintyEllipsoid) Set(val *UncertaintyEllipsoid) { + v.value = val + v.isSet = true +} + +func (v NullableUncertaintyEllipsoid) IsSet() bool { + return v.isSet +} + +func (v *NullableUncertaintyEllipsoid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUncertaintyEllipsoid(val *UncertaintyEllipsoid) *NullableUncertaintyEllipsoid { + return &NullableUncertaintyEllipsoid{value: val, isSet: true} +} + +func (v NullableUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUncertaintyEllipsoid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/model_version.go b/internal/CapifDiscoverService/model_version.go new file mode 100644 index 0000000000000000000000000000000000000000..eac921347d336634a97a2ac6c229b23e3ad66767 --- /dev/null +++ b/internal/CapifDiscoverService/model_version.go @@ -0,0 +1,271 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the Version type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Version{} + +// Version Represents the API version information. +type Version struct { + // API major version in URI (e.g. v1) + ApiVersion string `json:"apiVersion"` + // string with format \"date-time\" as defined in OpenAPI. + Expiry *time.Time `json:"expiry,omitempty"` + // Resources supported by the API. + Resources []Resource `json:"resources,omitempty"` + // Custom operations without resource association. + CustOperations []CustomOperation `json:"custOperations,omitempty"` +} + +type _Version Version + +// NewVersion instantiates a new Version 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 NewVersion(apiVersion string) *Version { + this := Version{} + this.ApiVersion = apiVersion + return &this +} + +// NewVersionWithDefaults instantiates a new Version object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionWithDefaults() *Version { + this := Version{} + return &this +} + +// GetApiVersion returns the ApiVersion field value +func (o *Version) GetApiVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value +// and a boolean to check if the value has been set. +func (o *Version) GetApiVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiVersion, true +} + +// SetApiVersion sets field value +func (o *Version) SetApiVersion(v string) { + o.ApiVersion = v +} + +// GetExpiry returns the Expiry field value if set, zero value otherwise. +func (o *Version) GetExpiry() time.Time { + if o == nil || IsNil(o.Expiry) { + var ret time.Time + return ret + } + return *o.Expiry +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetExpiryOk() (*time.Time, bool) { + if o == nil || IsNil(o.Expiry) { + return nil, false + } + return o.Expiry, true +} + +// HasExpiry returns a boolean if a field has been set. +func (o *Version) HasExpiry() bool { + if o != nil && !IsNil(o.Expiry) { + return true + } + + return false +} + +// SetExpiry gets a reference to the given time.Time and assigns it to the Expiry field. +func (o *Version) SetExpiry(v time.Time) { + o.Expiry = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *Version) GetResources() []Resource { + if o == nil || IsNil(o.Resources) { + var ret []Resource + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetResourcesOk() ([]Resource, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *Version) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Resource and assigns it to the Resources field. +func (o *Version) SetResources(v []Resource) { + o.Resources = v +} + +// GetCustOperations returns the CustOperations field value if set, zero value otherwise. +func (o *Version) GetCustOperations() []CustomOperation { + if o == nil || IsNil(o.CustOperations) { + var ret []CustomOperation + return ret + } + return o.CustOperations +} + +// GetCustOperationsOk returns a tuple with the CustOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetCustOperationsOk() ([]CustomOperation, bool) { + if o == nil || IsNil(o.CustOperations) { + return nil, false + } + return o.CustOperations, true +} + +// HasCustOperations returns a boolean if a field has been set. +func (o *Version) HasCustOperations() bool { + if o != nil && !IsNil(o.CustOperations) { + return true + } + + return false +} + +// SetCustOperations gets a reference to the given []CustomOperation and assigns it to the CustOperations field. +func (o *Version) SetCustOperations(v []CustomOperation) { + o.CustOperations = v +} + +func (o Version) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Version) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiVersion"] = o.ApiVersion + if !IsNil(o.Expiry) { + toSerialize["expiry"] = o.Expiry + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.CustOperations) { + toSerialize["custOperations"] = o.CustOperations + } + return toSerialize, nil +} + +func (o *Version) UnmarshalJSON(data []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{ + "apiVersion", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varVersion := _Version{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varVersion) + + if err != nil { + return err + } + + *o = Version(varVersion) + + return err +} + +type NullableVersion struct { + value *Version + isSet bool +} + +func (v NullableVersion) Get() *Version { + return v.value +} + +func (v *NullableVersion) Set(val *Version) { + v.value = val + v.isSet = true +} + +func (v NullableVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersion(val *Version) *NullableVersion { + return &NullableVersion{value: val, isSet: true} +} + +func (v NullableVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifDiscoverService/response.go b/internal/CapifDiscoverService/response.go new file mode 100644 index 0000000000000000000000000000000000000000..f156266caf95de3f5af8577c9ce3d5c1c96f86fa --- /dev/null +++ b/internal/CapifDiscoverService/response.go @@ -0,0 +1,47 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/internal/CapifDiscoverService/utils.go b/internal/CapifDiscoverService/utils.go new file mode 100644 index 0000000000000000000000000000000000000000..7c09c62f15ea8856f7c335bdf930abf57b9d3341 --- /dev/null +++ b/internal/CapifDiscoverService/utils.go @@ -0,0 +1,347 @@ +/* +CAPIF_Discover_Service_API + +API for discovering service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifDiscoverService + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/internal/CapifPublishService/.gitignore b/internal/CapifPublishService/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..daf913b1b347aae6de6f48d599bc89ef8c8693d6 --- /dev/null +++ b/internal/CapifPublishService/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/internal/CapifPublishService/.openapi-generator-ignore b/internal/CapifPublishService/.openapi-generator-ignore new file mode 100644 index 0000000000000000000000000000000000000000..7484ee590a3894506cf063799b885428f95a71be --- /dev/null +++ b/internal/CapifPublishService/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/internal/CapifPublishService/.openapi-generator/FILES b/internal/CapifPublishService/.openapi-generator/FILES new file mode 100644 index 0000000000000000000000000000000000000000..e9a185ac566c8d5685f9bfaa40022f462fc052b6 --- /dev/null +++ b/internal/CapifPublishService/.openapi-generator/FILES @@ -0,0 +1,88 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +api_individual_apf_published_api.go +client.go +configuration.go +docs/AefLocation.md +docs/AefProfile.md +docs/CivicAddress.md +docs/CommunicationType.md +docs/CustomOperation.md +docs/DataFormat.md +docs/DefaultAPI.md +docs/EllipsoidArc.md +docs/GADShape.md +docs/GeographicArea.md +docs/GeographicalCoordinates.md +docs/IndividualAPFPublishedAPIAPI.md +docs/InterfaceDescription.md +docs/InvalidParam.md +docs/Local2dPointUncertaintyEllipse.md +docs/Local3dPointUncertaintyEllipsoid.md +docs/LocalOrigin.md +docs/Operation.md +docs/Point.md +docs/PointAltitude.md +docs/PointAltitudeUncertainty.md +docs/PointUncertaintyCircle.md +docs/PointUncertaintyEllipse.md +docs/Polygon.md +docs/ProblemDetails.md +docs/Protocol.md +docs/PublishedApiPath.md +docs/RelativeCartesianLocation.md +docs/Resource.md +docs/SecurityMethod.md +docs/ServiceAPIDescription.md +docs/ServiceAPIDescriptionPatch.md +docs/ShareableInformation.md +docs/SupportedGADShapes.md +docs/UncertaintyEllipse.md +docs/UncertaintyEllipsoid.md +docs/Version.md +git_push.sh +go.mod +go.sum +model_aef_location.go +model_aef_profile.go +model_civic_address.go +model_communication_type.go +model_custom_operation.go +model_data_format.go +model_ellipsoid_arc.go +model_gad_shape.go +model_geographic_area.go +model_geographical_coordinates.go +model_interface_description.go +model_invalid_param.go +model_local2d_point_uncertainty_ellipse.go +model_local3d_point_uncertainty_ellipsoid.go +model_local_origin.go +model_operation.go +model_point.go +model_point_altitude.go +model_point_altitude_uncertainty.go +model_point_uncertainty_circle.go +model_point_uncertainty_ellipse.go +model_polygon.go +model_problem_details.go +model_protocol.go +model_published_api_path.go +model_relative_cartesian_location.go +model_resource.go +model_security_method.go +model_service_api_description.go +model_service_api_description_patch.go +model_shareable_information.go +model_supported_gad_shapes.go +model_uncertainty_ellipse.go +model_uncertainty_ellipsoid.go +model_version.go +response.go +test/api_default_test.go +test/api_individual_apf_published_api_test.go +utils.go diff --git a/internal/CapifPublishService/.openapi-generator/VERSION b/internal/CapifPublishService/.openapi-generator/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..93c8ddab9fef3d606dcbc0d562545592cdc40dce --- /dev/null +++ b/internal/CapifPublishService/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.6.0 diff --git a/internal/CapifPublishService/.travis.yml b/internal/CapifPublishService/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..f5cb2ce9a5aad73c57eed886e845d2e79c2899d1 --- /dev/null +++ b/internal/CapifPublishService/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/internal/CapifPublishService/README.md b/internal/CapifPublishService/README.md new file mode 100644 index 0000000000000000000000000000000000000000..63c2d0b8d5babcff95c65ff6304b9729f6857274 --- /dev/null +++ b/internal/CapifPublishService/README.md @@ -0,0 +1,155 @@ +# Go API client for CapifPublishService + +API for publishing service APIs. +© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). +All rights reserved. + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.2.1 +- Package version: 1.0.0 +- Generator version: 7.6.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import CapifPublishService "github.com/GIT_USER_ID/GIT_REPO_ID" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `CapifPublishService.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), CapifPublishService.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `CapifPublishService.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), CapifPublishService.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +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 `CapifPublishService.ContextOperationServerIndices` and `CapifPublishService.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), CapifPublishService.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), CapifPublishService.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://example.com/published-apis/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultAPI* | [**ApfIdServiceApisGet**](docs/DefaultAPI.md#apfidserviceapisget) | **Get** /{apfId}/service-apis | +*DefaultAPI* | [**ApfIdServiceApisPost**](docs/DefaultAPI.md#apfidserviceapispost) | **Post** /{apfId}/service-apis | +*DefaultAPI* | [**ApfIdServiceApisServiceApiIdDelete**](docs/DefaultAPI.md#apfidserviceapisserviceapiiddelete) | **Delete** /{apfId}/service-apis/{serviceApiId} | +*DefaultAPI* | [**ApfIdServiceApisServiceApiIdGet**](docs/DefaultAPI.md#apfidserviceapisserviceapiidget) | **Get** /{apfId}/service-apis/{serviceApiId} | +*DefaultAPI* | [**ApfIdServiceApisServiceApiIdPut**](docs/DefaultAPI.md#apfidserviceapisserviceapiidput) | **Put** /{apfId}/service-apis/{serviceApiId} | +*IndividualAPFPublishedAPIAPI* | [**ModifyIndAPFPubAPI**](docs/IndividualAPFPublishedAPIAPI.md#modifyindapfpubapi) | **Patch** /{apfId}/service-apis/{serviceApiId} | + + +## Documentation For Models + + - [AefLocation](docs/AefLocation.md) + - [AefProfile](docs/AefProfile.md) + - [CivicAddress](docs/CivicAddress.md) + - [CommunicationType](docs/CommunicationType.md) + - [CustomOperation](docs/CustomOperation.md) + - [DataFormat](docs/DataFormat.md) + - [EllipsoidArc](docs/EllipsoidArc.md) + - [GADShape](docs/GADShape.md) + - [GeographicArea](docs/GeographicArea.md) + - [GeographicalCoordinates](docs/GeographicalCoordinates.md) + - [InterfaceDescription](docs/InterfaceDescription.md) + - [InvalidParam](docs/InvalidParam.md) + - [Local2dPointUncertaintyEllipse](docs/Local2dPointUncertaintyEllipse.md) + - [Local3dPointUncertaintyEllipsoid](docs/Local3dPointUncertaintyEllipsoid.md) + - [LocalOrigin](docs/LocalOrigin.md) + - [Operation](docs/Operation.md) + - [Point](docs/Point.md) + - [PointAltitude](docs/PointAltitude.md) + - [PointAltitudeUncertainty](docs/PointAltitudeUncertainty.md) + - [PointUncertaintyCircle](docs/PointUncertaintyCircle.md) + - [PointUncertaintyEllipse](docs/PointUncertaintyEllipse.md) + - [Polygon](docs/Polygon.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [Protocol](docs/Protocol.md) + - [PublishedApiPath](docs/PublishedApiPath.md) + - [RelativeCartesianLocation](docs/RelativeCartesianLocation.md) + - [Resource](docs/Resource.md) + - [SecurityMethod](docs/SecurityMethod.md) + - [ServiceAPIDescription](docs/ServiceAPIDescription.md) + - [ServiceAPIDescriptionPatch](docs/ServiceAPIDescriptionPatch.md) + - [ShareableInformation](docs/ShareableInformation.md) + - [SupportedGADShapes](docs/SupportedGADShapes.md) + - [UncertaintyEllipse](docs/UncertaintyEllipse.md) + - [UncertaintyEllipsoid](docs/UncertaintyEllipsoid.md) + - [Version](docs/Version.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/internal/CapifPublishService/api/openapi.yaml b/internal/CapifPublishService/api/openapi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6cf793b4d3331be31875fbb7ef0ae31168ff5054 --- /dev/null +++ b/internal/CapifPublishService/api/openapi.yaml @@ -0,0 +1,2046 @@ +openapi: 3.0.0 +info: + description: "API for publishing service APIs. \n© 2022, 3GPP Organizational Partners\ + \ (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). \nAll rights reserved.\n" + title: CAPIF_Publish_Service_API + version: 1.2.1 +externalDocs: + description: 3GPP TS 29.222 V17.6.0 Common API Framework for 3GPP Northbound APIs + url: https://www.3gpp.org/ftp/Specs/archive/29_series/29.222/ +servers: +- url: "{apiRoot}/published-apis/v1" + variables: + apiRoot: + default: https://example.com + description: apiRoot as defined in clause 7.5 of 3GPP TS 29.222. +paths: + /{apfId}/service-apis: + get: + description: Retrieve all published APIs. + parameters: + - explode: false + in: path + name: apfId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServiceAPIDescription' + minItems: 0 + type: array + description: Definition of all service API(s) published by the API publishing + function. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + post: + description: Publish a new API. + parameters: + - explode: false + in: path + name: apfId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAPIDescription' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAPIDescription' + description: | + Service API published successfully The URI of the created resource shall be returned in the "Location" HTTP header. + headers: + Location: + description: | + Contains the URI of the newly created resource, according to the structure {apiRoot}/published-apis/v1/{apfId}/service-apis/{serviceApiId} + explode: false + required: true + schema: + type: string + style: simple + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + /{apfId}/service-apis/{serviceApiId}: + delete: + description: Unpublish a published service API. + parameters: + - explode: false + in: path + name: serviceApiId + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: apfId + required: true + schema: + type: string + style: simple + responses: + "204": + description: The individual published service API matching the serviceAPiId + is deleted. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + get: + description: Retrieve a published service API. + parameters: + - explode: false + in: path + name: serviceApiId + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: apfId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAPIDescription' + description: | + Definition of individual service API published by the API publishing function. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + patch: + description: Modify an existing published service API. + operationId: ModifyIndAPFPubAPI + parameters: + - explode: false + in: path + name: serviceApiId + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: apfId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/ServiceAPIDescriptionPatch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAPIDescription' + description: | + The definition of the service API is modified successfully and a representation of the updated service API is returned in the request body. + "204": + description: No Content. The definition of the service API is modified successfully. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + tags: + - Individual APF published API + put: + description: Update a published service API. + parameters: + - explode: false + in: path + name: serviceApiId + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: apfId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAPIDescription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAPIDescription' + description: Definition of service API updated successfully. + "204": + description: No Content + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error +components: + responses: + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + schemas: + ServiceAPIDescription: + description: Represents the description of a service API as published by the + APF. + example: + serviceAPICategory: serviceAPICategory + ccfId: ccfId + apiName: apiName + shareableInfo: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + supportedFeatures: supportedFeatures + description: description + apiSuppFeats: apiSuppFeats + apiId: apiId + aefProfiles: + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + pubApiPath: + ccfIds: + - ccfIds + - ccfIds + properties: + apiName: + description: "API name, it is set as {apiName} part of the URI structure\ + \ as defined in clause 5.2.4 of 3GPP TS 29.122." + type: string + apiId: + description: | + API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). + type: string + aefProfiles: + description: | + AEF profile information, which includes the exposed API details (e.g. protocol). + items: + $ref: '#/components/schemas/AefProfile' + minItems: 1 + type: array + description: + description: Text description of the API + type: string + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + shareableInfo: + $ref: '#/components/schemas/ShareableInformation' + serviceAPICategory: + type: string + apiSuppFeats: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + pubApiPath: + $ref: '#/components/schemas/PublishedApiPath' + ccfId: + description: CAPIF core function identifier. + type: string + required: + - apiName + type: object + InterfaceDescription: + description: Represents the description of an API's interface. + example: + ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted + decimal" notation as defined in IETF RFC 1166. + type: string + ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 + of IETF RFC 5952 shall not be used. + type: string + port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + securityMethods: + description: | + Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + type: object + AefProfile: + description: Represents the AEF profile data. + example: + protocol: HTTP_1_1 + securityMethods: + - PSK + - PSK + versions: + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + - apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + dataFormat: JSON + domainName: domainName + aefLocation: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + aefId: aefId + interfaceDescriptions: + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + - ipv6Addr: ipv6Addr + securityMethods: + - null + - null + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + aefId: + description: Identifier of the API exposing function + type: string + versions: + description: API version + items: + $ref: '#/components/schemas/Version' + minItems: 1 + type: array + protocol: + $ref: '#/components/schemas/Protocol' + dataFormat: + $ref: '#/components/schemas/DataFormat' + securityMethods: + description: Security methods supported by the AEF + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + domainName: + description: Domain to which API belongs to + type: string + interfaceDescriptions: + description: Interface details + items: + $ref: '#/components/schemas/InterfaceDescription' + minItems: 1 + type: array + aefLocation: + $ref: '#/components/schemas/AefLocation' + required: + - aefId + - versions + type: object + Resource: + description: Represents the API resource data. + example: + operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + properties: + resourceName: + description: Resource name + type: string + commType: + $ref: '#/components/schemas/CommunicationType' + uri: + description: | + Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + custOpName: + description: | + it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + operations: + description: | + Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + items: + $ref: '#/components/schemas/Operation' + minItems: 1 + type: array + description: + description: Text description of the API resource + type: string + required: + - commType + - resourceName + - uri + type: object + CustomOperation: + description: Represents the description of a custom operation. + example: + operations: + - null + - null + commType: null + description: description + custOpName: custOpName + properties: + commType: + $ref: '#/components/schemas/CommunicationType' + custOpName: + description: | + it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. + type: string + operations: + description: | + Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + items: + $ref: '#/components/schemas/Operation' + minItems: 1 + type: array + description: + description: Text description of the custom operation + type: string + required: + - commType + - custOpName + type: object + Version: + description: Represents the API version information. + example: + apiVersion: apiVersion + resources: + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + - operations: + - GET + - GET + commType: REQUEST_RESPONSE + description: description + resourceName: resourceName + custOpName: custOpName + uri: uri + custOperations: + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + - operations: + - null + - null + commType: null + description: description + custOpName: custOpName + expiry: 2000-01-23T04:56:07.000+00:00 + properties: + apiVersion: + description: API major version in URI (e.g. v1) + type: string + expiry: + description: string with format "date-time" as defined in OpenAPI. + format: date-time + type: string + resources: + description: Resources supported by the API. + items: + $ref: '#/components/schemas/Resource' + minItems: 1 + type: array + custOperations: + description: Custom operations without resource association. + items: + $ref: '#/components/schemas/CustomOperation' + minItems: 1 + type: array + required: + - apiVersion + type: object + ShareableInformation: + description: | + Indicates whether the service API and/or the service API category can be shared to the list of CAPIF provider domains. + example: + capifProvDoms: + - capifProvDoms + - capifProvDoms + isShareable: true + properties: + isShareable: + description: | + Set to "true" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to "false". + type: boolean + capifProvDoms: + description: | + List of CAPIF provider domains to which the service API information to be shared. + items: + type: string + minItems: 1 + type: array + required: + - isShareable + type: object + PublishedApiPath: + description: Represents the published API path within the same CAPIF provider + domain. + example: + ccfIds: + - ccfIds + - ccfIds + properties: + ccfIds: + description: A list of CCF identifiers where the service API is already + published. + items: + type: string + minItems: 1 + type: array + type: object + AefLocation: + description: | + The location information (e.g. civic address, GPS coordinates, data center ID) where the AEF providing the service API is located. + example: + dcId: dcId + geoArea: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + civicAddr: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + properties: + civicAddr: + $ref: '#/components/schemas/CivicAddress' + geoArea: + $ref: '#/components/schemas/GeographicArea' + dcId: + description: | + Identifies the data center where the AEF providing the service API is located. + type: string + type: object + ServiceAPIDescriptionPatch: + description: | + Represents the parameters to request the modification of an APF published API resource. + properties: + aefProfiles: + items: + $ref: '#/components/schemas/AefProfile' + minItems: 1 + type: array + description: + description: Text description of the API + type: string + shareableInfo: + $ref: '#/components/schemas/ShareableInformation' + serviceAPICategory: + type: string + apiSuppFeats: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + pubApiPath: + $ref: '#/components/schemas/PublishedApiPath' + ccfId: + description: CAPIF core function identifier. + type: string + type: object + Protocol: + anyOf: + - enum: + - HTTP_1_1 + - HTTP_2 + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - HTTP_1_1: HTTP version 1.1 + - HTTP_2: HTTP version 2 + CommunicationType: + anyOf: + - enum: + - REQUEST_RESPONSE + - SUBSCRIBE_NOTIFY + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - REQUEST_RESPONSE: The communication is of the type request-response + - SUBSCRIBE_NOTIFY: The communication is of the type subscribe-notify + DataFormat: + anyOf: + - enum: + - JSON + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - JSON: JavaScript Object Notation + SecurityMethod: + anyOf: + - enum: + - PSK + - PKI + - OAUTH + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 + - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 + - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 + Operation: + anyOf: + - enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - GET: HTTP GET method + - POST: HTTP POST method + - PUT: HTTP PUT method + - PATCH: HTTP PATCH method + - DELETE: HTTP DELETE method + ProblemDetails: + description: Represents additional information and details on an error response. + properties: + type: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + title: + description: "A short, human-readable summary of the problem type. It should\ + \ not change from occurrence to occurrence of the problem." + type: string + status: + description: The HTTP status code for this occurrence of the problem. + type: integer + detail: + description: A human-readable explanation specific to this occurrence of + the problem. + type: string + instance: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + cause: + description: "A machine-readable application error cause specific to this\ + \ occurrence of the problem. This IE should be present and provide application-related\ + \ error information, if available." + type: string + invalidParams: + description: "Description of invalid parameters, for a request rejected\ + \ due to invalid parameters." + items: + $ref: '#/components/schemas/InvalidParam' + minItems: 1 + type: array + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + type: object + Uri: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + InvalidParam: + description: "Represents the description of invalid parameters, for a request\ + \ rejected due to invalid parameters." + properties: + param: + description: "Attribute's name encoded as a JSON Pointer, or header's name." + type: string + reason: + description: "A human-readable reason, e.g. \"must be a positive integer\"\ + ." + type: string + required: + - param + type: object + SupportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + Ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted decimal" + notation as defined in IETF RFC 1166. + type: string + Ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of + IETF RFC 5952 shall not be used. + type: string + Port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + DateTime: + description: string with format "date-time" as defined in OpenAPI. + format: date-time + type: string + CivicAddress: + description: Indicates a Civic address. + example: + POBOX: POBOX + usageRules: usageRules + country: country + PRD: PRD + PLC: PLC + HNO: HNO + PRM: PRM + HNS: HNS + FLR: FLR + A1: A1 + A2: A2 + A3: A3 + A4: A4 + STS: STS + A5: A5 + A6: A6 + RDSEC: RDSEC + providedBy: providedBy + LOC: LOC + UNIT: UNIT + SEAT: SEAT + POD: POD + RDBR: RDBR + method: method + LMK: LMK + POM: POM + ADDCODE: ADDCODE + RD: RD + PC: PC + PCN: PCN + NAM: NAM + BLD: BLD + ROOM: ROOM + RDSUBBR: RDSUBBR + properties: + country: + type: string + A1: + type: string + A2: + type: string + A3: + type: string + A4: + type: string + A5: + type: string + A6: + type: string + PRD: + type: string + POD: + type: string + STS: + type: string + HNO: + type: string + HNS: + type: string + LMK: + type: string + LOC: + type: string + NAM: + type: string + PC: + type: string + BLD: + type: string + UNIT: + type: string + FLR: + type: string + ROOM: + type: string + PLC: + type: string + PCN: + type: string + POBOX: + type: string + ADDCODE: + type: string + SEAT: + type: string + RD: + type: string + RDSEC: + type: string + RDBR: + type: string + RDSUBBR: + type: string + PRM: + type: string + POM: + type: string + usageRules: + type: string + method: + type: string + providedBy: + type: string + type: object + GeographicArea: + anyOf: + - $ref: '#/components/schemas/Point' + - $ref: '#/components/schemas/PointUncertaintyCircle' + - $ref: '#/components/schemas/PointUncertaintyEllipse' + - $ref: '#/components/schemas/Polygon' + - $ref: '#/components/schemas/PointAltitude' + - $ref: '#/components/schemas/PointAltitudeUncertainty' + - $ref: '#/components/schemas/EllipsoidArc' + description: Geographic area specified by different shape. + Point: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + required: + - point + type: object + description: Ellipsoid Point. + example: + shape: POINT + point: + lon: 36.988422590534526 + lat: -63.615366350946985 + GADShape: + description: Common base type for GAD shapes. + discriminator: + mapping: + POINT: '#/components/schemas/Point' + POINT_UNCERTAINTY_CIRCLE: '#/components/schemas/PointUncertaintyCircle' + POINT_UNCERTAINTY_ELLIPSE: '#/components/schemas/PointUncertaintyEllipse' + POLYGON: '#/components/schemas/Polygon' + POINT_ALTITUDE: '#/components/schemas/PointAltitude' + POINT_ALTITUDE_UNCERTAINTY: '#/components/schemas/PointAltitudeUncertainty' + ELLIPSOID_ARC: '#/components/schemas/EllipsoidArc' + LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE: '#/components/schemas/Local2dPointUncertaintyEllipse' + LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID: '#/components/schemas/Local3dPointUncertaintyEllipsoid' + propertyName: shape + properties: + shape: + $ref: '#/components/schemas/SupportedGADShapes' + required: + - shape + type: object + SupportedGADShapes: + anyOf: + - enum: + - POINT + - POINT_UNCERTAINTY_CIRCLE + - POINT_UNCERTAINTY_ELLIPSE + - POLYGON + - POINT_ALTITUDE + - POINT_ALTITUDE_UNCERTAINTY + - ELLIPSOID_ARC + - LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE + - LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID + type: string + - type: string + description: Indicates supported GAD shapes. + PointUncertaintyCircle: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + uncertainty: + $ref: '#/components/schemas/Uncertainty' + required: + - point + - uncertainty + type: object + description: Ellipsoid point with uncertainty circle. + GeographicalCoordinates: + description: Geographical coordinates. + example: + lon: 36.988422590534526 + lat: -63.615366350946985 + properties: + lon: + format: double + maximum: 180 + minimum: -180 + type: number + lat: + format: double + maximum: 90 + minimum: -90 + type: number + required: + - lat + - lon + type: object + Uncertainty: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + PointUncertaintyEllipse: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - point + - uncertaintyEllipse + type: object + description: Ellipsoid point with uncertainty ellipse. + UncertaintyEllipse: + description: Ellipse with uncertainty. + properties: + semiMajor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + semiMinor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + orientationMajor: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + required: + - orientationMajor + - semiMajor + - semiMinor + type: object + Orientation: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + Confidence: + description: Indicates value of confidence. + maximum: 100 + minimum: 0 + type: integer + Polygon: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + pointList: + $ref: '#/components/schemas/PointList' + required: + - pointList + type: object + description: Polygon. + PointList: + description: List of points. + items: + $ref: '#/components/schemas/GeographicalCoordinates' + maxItems: 15 + minItems: 3 + type: array + PointAltitude: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + altitude: + $ref: '#/components/schemas/Altitude' + required: + - altitude + - point + type: object + description: Ellipsoid point with altitude. + Altitude: + description: Indicates value of altitude. + format: double + maximum: 32767 + minimum: -32767 + type: number + PointAltitudeUncertainty: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + altitude: + $ref: '#/components/schemas/Altitude' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + uncertaintyAltitude: + $ref: '#/components/schemas/Uncertainty' + confidence: + $ref: '#/components/schemas/Confidence' + vConfidence: + $ref: '#/components/schemas/Confidence' + required: + - altitude + - confidence + - point + - uncertaintyAltitude + - uncertaintyEllipse + type: object + description: Ellipsoid point with altitude and uncertainty ellipsoid. + EllipsoidArc: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + point: + $ref: '#/components/schemas/GeographicalCoordinates' + innerRadius: + $ref: '#/components/schemas/InnerRadius' + uncertaintyRadius: + $ref: '#/components/schemas/Uncertainty' + offsetAngle: + $ref: '#/components/schemas/Angle' + includedAngle: + $ref: '#/components/schemas/Angle' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - includedAngle + - innerRadius + - offsetAngle + - point + - uncertaintyRadius + type: object + description: Ellipsoid Arc. + InnerRadius: + description: Indicates value of the inner radius. + format: int32 + maximum: 327675 + minimum: 0 + type: integer + Angle: + description: Indicates value of angle. + maximum: 360 + minimum: 0 + type: integer + Local2dPointUncertaintyEllipse: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + localOrigin: + $ref: '#/components/schemas/LocalOrigin' + point: + $ref: '#/components/schemas/RelativeCartesianLocation' + uncertaintyEllipse: + $ref: '#/components/schemas/UncertaintyEllipse' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - localOrigin + - point + - uncertaintyEllipse + type: object + description: Local 2D point with uncertainty ellipse + LocalOrigin: + description: Indicates a Local origin in a reference system + properties: + coordinateId: + type: string + point: + $ref: '#/components/schemas/GeographicalCoordinates' + type: object + RelativeCartesianLocation: + description: Relative Cartesian Location + properties: + x: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + "y": + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + z: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number + required: + - x + - "y" + type: object + Local3dPointUncertaintyEllipsoid: + allOf: + - $ref: '#/components/schemas/GADShape' + - properties: + localOrigin: + $ref: '#/components/schemas/LocalOrigin' + point: + $ref: '#/components/schemas/RelativeCartesianLocation' + uncertaintyEllipsoid: + $ref: '#/components/schemas/UncertaintyEllipsoid' + confidence: + $ref: '#/components/schemas/Confidence' + required: + - confidence + - localOrigin + - point + - uncertaintyEllipsoid + type: object + description: Local 3D point with uncertainty ellipsoid + UncertaintyEllipsoid: + description: Ellipsoid with uncertainty + properties: + semiMajor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + semiMinor: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + vertical: + description: Indicates value of uncertainty. + format: float + minimum: 0 + type: number + orientationMajor: + description: Indicates value of orientation angle. + maximum: 180 + minimum: 0 + type: integer + required: + - orientationMajor + - semiMajor + - semiMinor + - vertical + type: object + Float: + description: string with format 'float' as defined in OpenAPI. + format: float + type: number diff --git a/internal/CapifPublishService/api_default.go b/internal/CapifPublishService/api_default.go new file mode 100644 index 0000000000000000000000000000000000000000..3c6986d5f40d6a21686f24b7895b24398ef17022 --- /dev/null +++ b/internal/CapifPublishService/api_default.go @@ -0,0 +1,1035 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiApfIdServiceApisGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apfId string +} + +func (r ApiApfIdServiceApisGetRequest) Execute() ([]ServiceAPIDescription, *http.Response, error) { + return r.ApiService.ApfIdServiceApisGetExecute(r) +} + +/* +ApfIdServiceApisGet Method for ApfIdServiceApisGet + +Retrieve all published APIs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apfId + @return ApiApfIdServiceApisGetRequest +*/ +func (a *DefaultAPIService) ApfIdServiceApisGet(ctx context.Context, apfId string) ApiApfIdServiceApisGetRequest { + return ApiApfIdServiceApisGetRequest{ + ApiService: a, + ctx: ctx, + apfId: apfId, + } +} + +// Execute executes the request +// @return []ServiceAPIDescription +func (a *DefaultAPIService) ApfIdServiceApisGetExecute(r ApiApfIdServiceApisGetRequest) ([]ServiceAPIDescription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ServiceAPIDescription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApfIdServiceApisGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{apfId}/service-apis" + localVarPath = strings.Replace(localVarPath, "{"+"apfId"+"}", url.PathEscape(parameterValueToString(r.apfId, "apfId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApfIdServiceApisPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apfId string + serviceAPIDescription *ServiceAPIDescription +} + +func (r ApiApfIdServiceApisPostRequest) ServiceAPIDescription(serviceAPIDescription ServiceAPIDescription) ApiApfIdServiceApisPostRequest { + r.serviceAPIDescription = &serviceAPIDescription + return r +} + +func (r ApiApfIdServiceApisPostRequest) Execute() (*ServiceAPIDescription, *http.Response, error) { + return r.ApiService.ApfIdServiceApisPostExecute(r) +} + +/* +ApfIdServiceApisPost Method for ApfIdServiceApisPost + +Publish a new API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apfId + @return ApiApfIdServiceApisPostRequest +*/ +func (a *DefaultAPIService) ApfIdServiceApisPost(ctx context.Context, apfId string) ApiApfIdServiceApisPostRequest { + return ApiApfIdServiceApisPostRequest{ + ApiService: a, + ctx: ctx, + apfId: apfId, + } +} + +// Execute executes the request +// @return ServiceAPIDescription +func (a *DefaultAPIService) ApfIdServiceApisPostExecute(r ApiApfIdServiceApisPostRequest) (*ServiceAPIDescription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceAPIDescription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApfIdServiceApisPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{apfId}/service-apis" + localVarPath = strings.Replace(localVarPath, "{"+"apfId"+"}", url.PathEscape(parameterValueToString(r.apfId, "apfId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceAPIDescription == nil { + return localVarReturnValue, nil, reportError("serviceAPIDescription is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAPIDescription + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApfIdServiceApisServiceApiIdDeleteRequest struct { + ctx context.Context + ApiService *DefaultAPIService + serviceApiId string + apfId string +} + +func (r ApiApfIdServiceApisServiceApiIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ApfIdServiceApisServiceApiIdDeleteExecute(r) +} + +/* +ApfIdServiceApisServiceApiIdDelete Method for ApfIdServiceApisServiceApiIdDelete + +Unpublish a published service API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceApiId + @param apfId + @return ApiApfIdServiceApisServiceApiIdDeleteRequest +*/ +func (a *DefaultAPIService) ApfIdServiceApisServiceApiIdDelete(ctx context.Context, serviceApiId string, apfId string) ApiApfIdServiceApisServiceApiIdDeleteRequest { + return ApiApfIdServiceApisServiceApiIdDeleteRequest{ + ApiService: a, + ctx: ctx, + serviceApiId: serviceApiId, + apfId: apfId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ApfIdServiceApisServiceApiIdDeleteExecute(r ApiApfIdServiceApisServiceApiIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApfIdServiceApisServiceApiIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{apfId}/service-apis/{serviceApiId}" + localVarPath = strings.Replace(localVarPath, "{"+"serviceApiId"+"}", url.PathEscape(parameterValueToString(r.serviceApiId, "serviceApiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apfId"+"}", url.PathEscape(parameterValueToString(r.apfId, "apfId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApfIdServiceApisServiceApiIdGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + serviceApiId string + apfId string +} + +func (r ApiApfIdServiceApisServiceApiIdGetRequest) Execute() (*ServiceAPIDescription, *http.Response, error) { + return r.ApiService.ApfIdServiceApisServiceApiIdGetExecute(r) +} + +/* +ApfIdServiceApisServiceApiIdGet Method for ApfIdServiceApisServiceApiIdGet + +Retrieve a published service API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceApiId + @param apfId + @return ApiApfIdServiceApisServiceApiIdGetRequest +*/ +func (a *DefaultAPIService) ApfIdServiceApisServiceApiIdGet(ctx context.Context, serviceApiId string, apfId string) ApiApfIdServiceApisServiceApiIdGetRequest { + return ApiApfIdServiceApisServiceApiIdGetRequest{ + ApiService: a, + ctx: ctx, + serviceApiId: serviceApiId, + apfId: apfId, + } +} + +// Execute executes the request +// @return ServiceAPIDescription +func (a *DefaultAPIService) ApfIdServiceApisServiceApiIdGetExecute(r ApiApfIdServiceApisServiceApiIdGetRequest) (*ServiceAPIDescription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceAPIDescription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApfIdServiceApisServiceApiIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{apfId}/service-apis/{serviceApiId}" + localVarPath = strings.Replace(localVarPath, "{"+"serviceApiId"+"}", url.PathEscape(parameterValueToString(r.serviceApiId, "serviceApiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apfId"+"}", url.PathEscape(parameterValueToString(r.apfId, "apfId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApfIdServiceApisServiceApiIdPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + serviceApiId string + apfId string + serviceAPIDescription *ServiceAPIDescription +} + +func (r ApiApfIdServiceApisServiceApiIdPutRequest) ServiceAPIDescription(serviceAPIDescription ServiceAPIDescription) ApiApfIdServiceApisServiceApiIdPutRequest { + r.serviceAPIDescription = &serviceAPIDescription + return r +} + +func (r ApiApfIdServiceApisServiceApiIdPutRequest) Execute() (*ServiceAPIDescription, *http.Response, error) { + return r.ApiService.ApfIdServiceApisServiceApiIdPutExecute(r) +} + +/* +ApfIdServiceApisServiceApiIdPut Method for ApfIdServiceApisServiceApiIdPut + +Update a published service API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceApiId + @param apfId + @return ApiApfIdServiceApisServiceApiIdPutRequest +*/ +func (a *DefaultAPIService) ApfIdServiceApisServiceApiIdPut(ctx context.Context, serviceApiId string, apfId string) ApiApfIdServiceApisServiceApiIdPutRequest { + return ApiApfIdServiceApisServiceApiIdPutRequest{ + ApiService: a, + ctx: ctx, + serviceApiId: serviceApiId, + apfId: apfId, + } +} + +// Execute executes the request +// @return ServiceAPIDescription +func (a *DefaultAPIService) ApfIdServiceApisServiceApiIdPutExecute(r ApiApfIdServiceApisServiceApiIdPutRequest) (*ServiceAPIDescription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceAPIDescription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApfIdServiceApisServiceApiIdPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{apfId}/service-apis/{serviceApiId}" + localVarPath = strings.Replace(localVarPath, "{"+"serviceApiId"+"}", url.PathEscape(parameterValueToString(r.serviceApiId, "serviceApiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apfId"+"}", url.PathEscape(parameterValueToString(r.apfId, "apfId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceAPIDescription == nil { + return localVarReturnValue, nil, reportError("serviceAPIDescription is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAPIDescription + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifPublishService/api_individual_apf_published_api.go b/internal/CapifPublishService/api_individual_apf_published_api.go new file mode 100644 index 0000000000000000000000000000000000000000..4a461d2a7d6b3b63b257c361ac54c9bca5025277 --- /dev/null +++ b/internal/CapifPublishService/api_individual_apf_published_api.go @@ -0,0 +1,252 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// IndividualAPFPublishedAPIAPIService IndividualAPFPublishedAPIAPI service +type IndividualAPFPublishedAPIAPIService service + +type ApiModifyIndAPFPubAPIRequest struct { + ctx context.Context + ApiService *IndividualAPFPublishedAPIAPIService + serviceApiId string + apfId string + serviceAPIDescriptionPatch *ServiceAPIDescriptionPatch +} + +func (r ApiModifyIndAPFPubAPIRequest) ServiceAPIDescriptionPatch(serviceAPIDescriptionPatch ServiceAPIDescriptionPatch) ApiModifyIndAPFPubAPIRequest { + r.serviceAPIDescriptionPatch = &serviceAPIDescriptionPatch + return r +} + +func (r ApiModifyIndAPFPubAPIRequest) Execute() (*ServiceAPIDescription, *http.Response, error) { + return r.ApiService.ModifyIndAPFPubAPIExecute(r) +} + +/* +ModifyIndAPFPubAPI Method for ModifyIndAPFPubAPI + +Modify an existing published service API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceApiId + @param apfId + @return ApiModifyIndAPFPubAPIRequest +*/ +func (a *IndividualAPFPublishedAPIAPIService) ModifyIndAPFPubAPI(ctx context.Context, serviceApiId string, apfId string) ApiModifyIndAPFPubAPIRequest { + return ApiModifyIndAPFPubAPIRequest{ + ApiService: a, + ctx: ctx, + serviceApiId: serviceApiId, + apfId: apfId, + } +} + +// Execute executes the request +// @return ServiceAPIDescription +func (a *IndividualAPFPublishedAPIAPIService) ModifyIndAPFPubAPIExecute(r ApiModifyIndAPFPubAPIRequest) (*ServiceAPIDescription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceAPIDescription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IndividualAPFPublishedAPIAPIService.ModifyIndAPFPubAPI") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{apfId}/service-apis/{serviceApiId}" + localVarPath = strings.Replace(localVarPath, "{"+"serviceApiId"+"}", url.PathEscape(parameterValueToString(r.serviceApiId, "serviceApiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apfId"+"}", url.PathEscape(parameterValueToString(r.apfId, "apfId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceAPIDescriptionPatch == nil { + return localVarReturnValue, nil, reportError("serviceAPIDescriptionPatch is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAPIDescriptionPatch + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifPublishService/client.go b/internal/CapifPublishService/client.go new file mode 100644 index 0000000000000000000000000000000000000000..19089347e31c76eda1efbf252a9c05d75c50e9bf --- /dev/null +++ b/internal/CapifPublishService/client.go @@ -0,0 +1,663 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the CAPIF_Publish_Service_API API v1.2.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI *DefaultAPIService + + IndividualAPFPublishedAPIAPI *IndividualAPFPublishedAPIAPIService +} + +type service struct { + client *APIClient +} + +// 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 *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.IndividualAPFPublishedAPIAPI = (*IndividualAPFPublishedAPIAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/internal/CapifPublishService/configuration.go b/internal/CapifPublishService/configuration.go new file mode 100644 index 0000000000000000000000000000000000000000..42aee05958fca93e3a356b07420d548de80033d5 --- /dev/null +++ b/internal/CapifPublishService/configuration.go @@ -0,0 +1,221 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "{apiRoot}/published-apis/v1", + Description: "No description provided", + Variables: map[string]ServerVariable{ + "apiRoot": ServerVariable{ + Description: "apiRoot as defined in clause 7.5 of 3GPP TS 29.222.", + DefaultValue: "https://example.com", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/internal/CapifPublishService/docs/AefLocation.md b/internal/CapifPublishService/docs/AefLocation.md new file mode 100644 index 0000000000000000000000000000000000000000..c2a4a09046a05483ec75ce407bb7e502b14235d9 --- /dev/null +++ b/internal/CapifPublishService/docs/AefLocation.md @@ -0,0 +1,108 @@ +# AefLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CivicAddr** | Pointer to [**CivicAddress**](CivicAddress.md) | | [optional] +**GeoArea** | Pointer to [**GeographicArea**](GeographicArea.md) | | [optional] +**DcId** | Pointer to **string** | Identifies the data center where the AEF providing the service API is located. | [optional] + +## Methods + +### NewAefLocation + +`func NewAefLocation() *AefLocation` + +NewAefLocation instantiates a new AefLocation 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 + +### NewAefLocationWithDefaults + +`func NewAefLocationWithDefaults() *AefLocation` + +NewAefLocationWithDefaults instantiates a new AefLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCivicAddr + +`func (o *AefLocation) GetCivicAddr() CivicAddress` + +GetCivicAddr returns the CivicAddr field if non-nil, zero value otherwise. + +### GetCivicAddrOk + +`func (o *AefLocation) GetCivicAddrOk() (*CivicAddress, bool)` + +GetCivicAddrOk returns a tuple with the CivicAddr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCivicAddr + +`func (o *AefLocation) SetCivicAddr(v CivicAddress)` + +SetCivicAddr sets CivicAddr field to given value. + +### HasCivicAddr + +`func (o *AefLocation) HasCivicAddr() bool` + +HasCivicAddr returns a boolean if a field has been set. + +### GetGeoArea + +`func (o *AefLocation) GetGeoArea() GeographicArea` + +GetGeoArea returns the GeoArea field if non-nil, zero value otherwise. + +### GetGeoAreaOk + +`func (o *AefLocation) GetGeoAreaOk() (*GeographicArea, bool)` + +GetGeoAreaOk returns a tuple with the GeoArea field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeoArea + +`func (o *AefLocation) SetGeoArea(v GeographicArea)` + +SetGeoArea sets GeoArea field to given value. + +### HasGeoArea + +`func (o *AefLocation) HasGeoArea() bool` + +HasGeoArea returns a boolean if a field has been set. + +### GetDcId + +`func (o *AefLocation) GetDcId() string` + +GetDcId returns the DcId field if non-nil, zero value otherwise. + +### GetDcIdOk + +`func (o *AefLocation) GetDcIdOk() (*string, bool)` + +GetDcIdOk returns a tuple with the DcId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDcId + +`func (o *AefLocation) SetDcId(v string)` + +SetDcId sets DcId field to given value. + +### HasDcId + +`func (o *AefLocation) HasDcId() bool` + +HasDcId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/AefProfile.md b/internal/CapifPublishService/docs/AefProfile.md new file mode 100644 index 0000000000000000000000000000000000000000..8da52da6ea5609a2f7df5628bdc44e92e5f32236 --- /dev/null +++ b/internal/CapifPublishService/docs/AefProfile.md @@ -0,0 +1,228 @@ +# AefProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AefId** | **string** | Identifier of the API exposing function | +**Versions** | [**[]Version**](Version.md) | API version | +**Protocol** | Pointer to [**Protocol**](Protocol.md) | | [optional] +**DataFormat** | Pointer to [**DataFormat**](DataFormat.md) | | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the AEF | [optional] +**DomainName** | Pointer to **string** | Domain to which API belongs to | [optional] +**InterfaceDescriptions** | Pointer to [**[]InterfaceDescription**](InterfaceDescription.md) | Interface details | [optional] +**AefLocation** | Pointer to [**AefLocation**](AefLocation.md) | | [optional] + +## Methods + +### NewAefProfile + +`func NewAefProfile(aefId string, versions []Version, ) *AefProfile` + +NewAefProfile instantiates a new AefProfile 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 + +### NewAefProfileWithDefaults + +`func NewAefProfileWithDefaults() *AefProfile` + +NewAefProfileWithDefaults instantiates a new AefProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAefId + +`func (o *AefProfile) GetAefId() string` + +GetAefId returns the AefId field if non-nil, zero value otherwise. + +### GetAefIdOk + +`func (o *AefProfile) GetAefIdOk() (*string, bool)` + +GetAefIdOk returns a tuple with the AefId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefId + +`func (o *AefProfile) SetAefId(v string)` + +SetAefId sets AefId field to given value. + + +### GetVersions + +`func (o *AefProfile) GetVersions() []Version` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AefProfile) GetVersionsOk() (*[]Version, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AefProfile) SetVersions(v []Version)` + +SetVersions sets Versions field to given value. + + +### GetProtocol + +`func (o *AefProfile) GetProtocol() Protocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *AefProfile) GetProtocolOk() (*Protocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *AefProfile) SetProtocol(v Protocol)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *AefProfile) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetDataFormat + +`func (o *AefProfile) GetDataFormat() DataFormat` + +GetDataFormat returns the DataFormat field if non-nil, zero value otherwise. + +### GetDataFormatOk + +`func (o *AefProfile) GetDataFormatOk() (*DataFormat, bool)` + +GetDataFormatOk returns a tuple with the DataFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFormat + +`func (o *AefProfile) SetDataFormat(v DataFormat)` + +SetDataFormat sets DataFormat field to given value. + +### HasDataFormat + +`func (o *AefProfile) HasDataFormat() bool` + +HasDataFormat returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *AefProfile) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *AefProfile) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *AefProfile) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *AefProfile) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + +### GetDomainName + +`func (o *AefProfile) GetDomainName() string` + +GetDomainName returns the DomainName field if non-nil, zero value otherwise. + +### GetDomainNameOk + +`func (o *AefProfile) GetDomainNameOk() (*string, bool)` + +GetDomainNameOk returns a tuple with the DomainName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainName + +`func (o *AefProfile) SetDomainName(v string)` + +SetDomainName sets DomainName field to given value. + +### HasDomainName + +`func (o *AefProfile) HasDomainName() bool` + +HasDomainName returns a boolean if a field has been set. + +### GetInterfaceDescriptions + +`func (o *AefProfile) GetInterfaceDescriptions() []InterfaceDescription` + +GetInterfaceDescriptions returns the InterfaceDescriptions field if non-nil, zero value otherwise. + +### GetInterfaceDescriptionsOk + +`func (o *AefProfile) GetInterfaceDescriptionsOk() (*[]InterfaceDescription, bool)` + +GetInterfaceDescriptionsOk returns a tuple with the InterfaceDescriptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceDescriptions + +`func (o *AefProfile) SetInterfaceDescriptions(v []InterfaceDescription)` + +SetInterfaceDescriptions sets InterfaceDescriptions field to given value. + +### HasInterfaceDescriptions + +`func (o *AefProfile) HasInterfaceDescriptions() bool` + +HasInterfaceDescriptions returns a boolean if a field has been set. + +### GetAefLocation + +`func (o *AefProfile) GetAefLocation() AefLocation` + +GetAefLocation returns the AefLocation field if non-nil, zero value otherwise. + +### GetAefLocationOk + +`func (o *AefProfile) GetAefLocationOk() (*AefLocation, bool)` + +GetAefLocationOk returns a tuple with the AefLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefLocation + +`func (o *AefProfile) SetAefLocation(v AefLocation)` + +SetAefLocation sets AefLocation field to given value. + +### HasAefLocation + +`func (o *AefProfile) HasAefLocation() bool` + +HasAefLocation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/CivicAddress.md b/internal/CapifPublishService/docs/CivicAddress.md new file mode 100644 index 0000000000000000000000000000000000000000..42a88edddf4709626a8c5653d9ccf25c58ac0fc0 --- /dev/null +++ b/internal/CapifPublishService/docs/CivicAddress.md @@ -0,0 +1,914 @@ +# CivicAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | Pointer to **string** | | [optional] +**A1** | Pointer to **string** | | [optional] +**A2** | Pointer to **string** | | [optional] +**A3** | Pointer to **string** | | [optional] +**A4** | Pointer to **string** | | [optional] +**A5** | Pointer to **string** | | [optional] +**A6** | Pointer to **string** | | [optional] +**PRD** | Pointer to **string** | | [optional] +**POD** | Pointer to **string** | | [optional] +**STS** | Pointer to **string** | | [optional] +**HNO** | Pointer to **string** | | [optional] +**HNS** | Pointer to **string** | | [optional] +**LMK** | Pointer to **string** | | [optional] +**LOC** | Pointer to **string** | | [optional] +**NAM** | Pointer to **string** | | [optional] +**PC** | Pointer to **string** | | [optional] +**BLD** | Pointer to **string** | | [optional] +**UNIT** | Pointer to **string** | | [optional] +**FLR** | Pointer to **string** | | [optional] +**ROOM** | Pointer to **string** | | [optional] +**PLC** | Pointer to **string** | | [optional] +**PCN** | Pointer to **string** | | [optional] +**POBOX** | Pointer to **string** | | [optional] +**ADDCODE** | Pointer to **string** | | [optional] +**SEAT** | Pointer to **string** | | [optional] +**RD** | Pointer to **string** | | [optional] +**RDSEC** | Pointer to **string** | | [optional] +**RDBR** | Pointer to **string** | | [optional] +**RDSUBBR** | Pointer to **string** | | [optional] +**PRM** | Pointer to **string** | | [optional] +**POM** | Pointer to **string** | | [optional] +**UsageRules** | Pointer to **string** | | [optional] +**Method** | Pointer to **string** | | [optional] +**ProvidedBy** | Pointer to **string** | | [optional] + +## Methods + +### NewCivicAddress + +`func NewCivicAddress() *CivicAddress` + +NewCivicAddress instantiates a new CivicAddress 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 + +### NewCivicAddressWithDefaults + +`func NewCivicAddressWithDefaults() *CivicAddress` + +NewCivicAddressWithDefaults instantiates a new CivicAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCountry + +`func (o *CivicAddress) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *CivicAddress) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *CivicAddress) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *CivicAddress) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + +### GetA1 + +`func (o *CivicAddress) GetA1() string` + +GetA1 returns the A1 field if non-nil, zero value otherwise. + +### GetA1Ok + +`func (o *CivicAddress) GetA1Ok() (*string, bool)` + +GetA1Ok returns a tuple with the A1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA1 + +`func (o *CivicAddress) SetA1(v string)` + +SetA1 sets A1 field to given value. + +### HasA1 + +`func (o *CivicAddress) HasA1() bool` + +HasA1 returns a boolean if a field has been set. + +### GetA2 + +`func (o *CivicAddress) GetA2() string` + +GetA2 returns the A2 field if non-nil, zero value otherwise. + +### GetA2Ok + +`func (o *CivicAddress) GetA2Ok() (*string, bool)` + +GetA2Ok returns a tuple with the A2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA2 + +`func (o *CivicAddress) SetA2(v string)` + +SetA2 sets A2 field to given value. + +### HasA2 + +`func (o *CivicAddress) HasA2() bool` + +HasA2 returns a boolean if a field has been set. + +### GetA3 + +`func (o *CivicAddress) GetA3() string` + +GetA3 returns the A3 field if non-nil, zero value otherwise. + +### GetA3Ok + +`func (o *CivicAddress) GetA3Ok() (*string, bool)` + +GetA3Ok returns a tuple with the A3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA3 + +`func (o *CivicAddress) SetA3(v string)` + +SetA3 sets A3 field to given value. + +### HasA3 + +`func (o *CivicAddress) HasA3() bool` + +HasA3 returns a boolean if a field has been set. + +### GetA4 + +`func (o *CivicAddress) GetA4() string` + +GetA4 returns the A4 field if non-nil, zero value otherwise. + +### GetA4Ok + +`func (o *CivicAddress) GetA4Ok() (*string, bool)` + +GetA4Ok returns a tuple with the A4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA4 + +`func (o *CivicAddress) SetA4(v string)` + +SetA4 sets A4 field to given value. + +### HasA4 + +`func (o *CivicAddress) HasA4() bool` + +HasA4 returns a boolean if a field has been set. + +### GetA5 + +`func (o *CivicAddress) GetA5() string` + +GetA5 returns the A5 field if non-nil, zero value otherwise. + +### GetA5Ok + +`func (o *CivicAddress) GetA5Ok() (*string, bool)` + +GetA5Ok returns a tuple with the A5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA5 + +`func (o *CivicAddress) SetA5(v string)` + +SetA5 sets A5 field to given value. + +### HasA5 + +`func (o *CivicAddress) HasA5() bool` + +HasA5 returns a boolean if a field has been set. + +### GetA6 + +`func (o *CivicAddress) GetA6() string` + +GetA6 returns the A6 field if non-nil, zero value otherwise. + +### GetA6Ok + +`func (o *CivicAddress) GetA6Ok() (*string, bool)` + +GetA6Ok returns a tuple with the A6 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetA6 + +`func (o *CivicAddress) SetA6(v string)` + +SetA6 sets A6 field to given value. + +### HasA6 + +`func (o *CivicAddress) HasA6() bool` + +HasA6 returns a boolean if a field has been set. + +### GetPRD + +`func (o *CivicAddress) GetPRD() string` + +GetPRD returns the PRD field if non-nil, zero value otherwise. + +### GetPRDOk + +`func (o *CivicAddress) GetPRDOk() (*string, bool)` + +GetPRDOk returns a tuple with the PRD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPRD + +`func (o *CivicAddress) SetPRD(v string)` + +SetPRD sets PRD field to given value. + +### HasPRD + +`func (o *CivicAddress) HasPRD() bool` + +HasPRD returns a boolean if a field has been set. + +### GetPOD + +`func (o *CivicAddress) GetPOD() string` + +GetPOD returns the POD field if non-nil, zero value otherwise. + +### GetPODOk + +`func (o *CivicAddress) GetPODOk() (*string, bool)` + +GetPODOk returns a tuple with the POD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOD + +`func (o *CivicAddress) SetPOD(v string)` + +SetPOD sets POD field to given value. + +### HasPOD + +`func (o *CivicAddress) HasPOD() bool` + +HasPOD returns a boolean if a field has been set. + +### GetSTS + +`func (o *CivicAddress) GetSTS() string` + +GetSTS returns the STS field if non-nil, zero value otherwise. + +### GetSTSOk + +`func (o *CivicAddress) GetSTSOk() (*string, bool)` + +GetSTSOk returns a tuple with the STS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSTS + +`func (o *CivicAddress) SetSTS(v string)` + +SetSTS sets STS field to given value. + +### HasSTS + +`func (o *CivicAddress) HasSTS() bool` + +HasSTS returns a boolean if a field has been set. + +### GetHNO + +`func (o *CivicAddress) GetHNO() string` + +GetHNO returns the HNO field if non-nil, zero value otherwise. + +### GetHNOOk + +`func (o *CivicAddress) GetHNOOk() (*string, bool)` + +GetHNOOk returns a tuple with the HNO field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHNO + +`func (o *CivicAddress) SetHNO(v string)` + +SetHNO sets HNO field to given value. + +### HasHNO + +`func (o *CivicAddress) HasHNO() bool` + +HasHNO returns a boolean if a field has been set. + +### GetHNS + +`func (o *CivicAddress) GetHNS() string` + +GetHNS returns the HNS field if non-nil, zero value otherwise. + +### GetHNSOk + +`func (o *CivicAddress) GetHNSOk() (*string, bool)` + +GetHNSOk returns a tuple with the HNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHNS + +`func (o *CivicAddress) SetHNS(v string)` + +SetHNS sets HNS field to given value. + +### HasHNS + +`func (o *CivicAddress) HasHNS() bool` + +HasHNS returns a boolean if a field has been set. + +### GetLMK + +`func (o *CivicAddress) GetLMK() string` + +GetLMK returns the LMK field if non-nil, zero value otherwise. + +### GetLMKOk + +`func (o *CivicAddress) GetLMKOk() (*string, bool)` + +GetLMKOk returns a tuple with the LMK field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLMK + +`func (o *CivicAddress) SetLMK(v string)` + +SetLMK sets LMK field to given value. + +### HasLMK + +`func (o *CivicAddress) HasLMK() bool` + +HasLMK returns a boolean if a field has been set. + +### GetLOC + +`func (o *CivicAddress) GetLOC() string` + +GetLOC returns the LOC field if non-nil, zero value otherwise. + +### GetLOCOk + +`func (o *CivicAddress) GetLOCOk() (*string, bool)` + +GetLOCOk returns a tuple with the LOC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLOC + +`func (o *CivicAddress) SetLOC(v string)` + +SetLOC sets LOC field to given value. + +### HasLOC + +`func (o *CivicAddress) HasLOC() bool` + +HasLOC returns a boolean if a field has been set. + +### GetNAM + +`func (o *CivicAddress) GetNAM() string` + +GetNAM returns the NAM field if non-nil, zero value otherwise. + +### GetNAMOk + +`func (o *CivicAddress) GetNAMOk() (*string, bool)` + +GetNAMOk returns a tuple with the NAM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNAM + +`func (o *CivicAddress) SetNAM(v string)` + +SetNAM sets NAM field to given value. + +### HasNAM + +`func (o *CivicAddress) HasNAM() bool` + +HasNAM returns a boolean if a field has been set. + +### GetPC + +`func (o *CivicAddress) GetPC() string` + +GetPC returns the PC field if non-nil, zero value otherwise. + +### GetPCOk + +`func (o *CivicAddress) GetPCOk() (*string, bool)` + +GetPCOk returns a tuple with the PC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPC + +`func (o *CivicAddress) SetPC(v string)` + +SetPC sets PC field to given value. + +### HasPC + +`func (o *CivicAddress) HasPC() bool` + +HasPC returns a boolean if a field has been set. + +### GetBLD + +`func (o *CivicAddress) GetBLD() string` + +GetBLD returns the BLD field if non-nil, zero value otherwise. + +### GetBLDOk + +`func (o *CivicAddress) GetBLDOk() (*string, bool)` + +GetBLDOk returns a tuple with the BLD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBLD + +`func (o *CivicAddress) SetBLD(v string)` + +SetBLD sets BLD field to given value. + +### HasBLD + +`func (o *CivicAddress) HasBLD() bool` + +HasBLD returns a boolean if a field has been set. + +### GetUNIT + +`func (o *CivicAddress) GetUNIT() string` + +GetUNIT returns the UNIT field if non-nil, zero value otherwise. + +### GetUNITOk + +`func (o *CivicAddress) GetUNITOk() (*string, bool)` + +GetUNITOk returns a tuple with the UNIT field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUNIT + +`func (o *CivicAddress) SetUNIT(v string)` + +SetUNIT sets UNIT field to given value. + +### HasUNIT + +`func (o *CivicAddress) HasUNIT() bool` + +HasUNIT returns a boolean if a field has been set. + +### GetFLR + +`func (o *CivicAddress) GetFLR() string` + +GetFLR returns the FLR field if non-nil, zero value otherwise. + +### GetFLROk + +`func (o *CivicAddress) GetFLROk() (*string, bool)` + +GetFLROk returns a tuple with the FLR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFLR + +`func (o *CivicAddress) SetFLR(v string)` + +SetFLR sets FLR field to given value. + +### HasFLR + +`func (o *CivicAddress) HasFLR() bool` + +HasFLR returns a boolean if a field has been set. + +### GetROOM + +`func (o *CivicAddress) GetROOM() string` + +GetROOM returns the ROOM field if non-nil, zero value otherwise. + +### GetROOMOk + +`func (o *CivicAddress) GetROOMOk() (*string, bool)` + +GetROOMOk returns a tuple with the ROOM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetROOM + +`func (o *CivicAddress) SetROOM(v string)` + +SetROOM sets ROOM field to given value. + +### HasROOM + +`func (o *CivicAddress) HasROOM() bool` + +HasROOM returns a boolean if a field has been set. + +### GetPLC + +`func (o *CivicAddress) GetPLC() string` + +GetPLC returns the PLC field if non-nil, zero value otherwise. + +### GetPLCOk + +`func (o *CivicAddress) GetPLCOk() (*string, bool)` + +GetPLCOk returns a tuple with the PLC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPLC + +`func (o *CivicAddress) SetPLC(v string)` + +SetPLC sets PLC field to given value. + +### HasPLC + +`func (o *CivicAddress) HasPLC() bool` + +HasPLC returns a boolean if a field has been set. + +### GetPCN + +`func (o *CivicAddress) GetPCN() string` + +GetPCN returns the PCN field if non-nil, zero value otherwise. + +### GetPCNOk + +`func (o *CivicAddress) GetPCNOk() (*string, bool)` + +GetPCNOk returns a tuple with the PCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPCN + +`func (o *CivicAddress) SetPCN(v string)` + +SetPCN sets PCN field to given value. + +### HasPCN + +`func (o *CivicAddress) HasPCN() bool` + +HasPCN returns a boolean if a field has been set. + +### GetPOBOX + +`func (o *CivicAddress) GetPOBOX() string` + +GetPOBOX returns the POBOX field if non-nil, zero value otherwise. + +### GetPOBOXOk + +`func (o *CivicAddress) GetPOBOXOk() (*string, bool)` + +GetPOBOXOk returns a tuple with the POBOX field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOBOX + +`func (o *CivicAddress) SetPOBOX(v string)` + +SetPOBOX sets POBOX field to given value. + +### HasPOBOX + +`func (o *CivicAddress) HasPOBOX() bool` + +HasPOBOX returns a boolean if a field has been set. + +### GetADDCODE + +`func (o *CivicAddress) GetADDCODE() string` + +GetADDCODE returns the ADDCODE field if non-nil, zero value otherwise. + +### GetADDCODEOk + +`func (o *CivicAddress) GetADDCODEOk() (*string, bool)` + +GetADDCODEOk returns a tuple with the ADDCODE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetADDCODE + +`func (o *CivicAddress) SetADDCODE(v string)` + +SetADDCODE sets ADDCODE field to given value. + +### HasADDCODE + +`func (o *CivicAddress) HasADDCODE() bool` + +HasADDCODE returns a boolean if a field has been set. + +### GetSEAT + +`func (o *CivicAddress) GetSEAT() string` + +GetSEAT returns the SEAT field if non-nil, zero value otherwise. + +### GetSEATOk + +`func (o *CivicAddress) GetSEATOk() (*string, bool)` + +GetSEATOk returns a tuple with the SEAT field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSEAT + +`func (o *CivicAddress) SetSEAT(v string)` + +SetSEAT sets SEAT field to given value. + +### HasSEAT + +`func (o *CivicAddress) HasSEAT() bool` + +HasSEAT returns a boolean if a field has been set. + +### GetRD + +`func (o *CivicAddress) GetRD() string` + +GetRD returns the RD field if non-nil, zero value otherwise. + +### GetRDOk + +`func (o *CivicAddress) GetRDOk() (*string, bool)` + +GetRDOk returns a tuple with the RD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRD + +`func (o *CivicAddress) SetRD(v string)` + +SetRD sets RD field to given value. + +### HasRD + +`func (o *CivicAddress) HasRD() bool` + +HasRD returns a boolean if a field has been set. + +### GetRDSEC + +`func (o *CivicAddress) GetRDSEC() string` + +GetRDSEC returns the RDSEC field if non-nil, zero value otherwise. + +### GetRDSECOk + +`func (o *CivicAddress) GetRDSECOk() (*string, bool)` + +GetRDSECOk returns a tuple with the RDSEC field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDSEC + +`func (o *CivicAddress) SetRDSEC(v string)` + +SetRDSEC sets RDSEC field to given value. + +### HasRDSEC + +`func (o *CivicAddress) HasRDSEC() bool` + +HasRDSEC returns a boolean if a field has been set. + +### GetRDBR + +`func (o *CivicAddress) GetRDBR() string` + +GetRDBR returns the RDBR field if non-nil, zero value otherwise. + +### GetRDBROk + +`func (o *CivicAddress) GetRDBROk() (*string, bool)` + +GetRDBROk returns a tuple with the RDBR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDBR + +`func (o *CivicAddress) SetRDBR(v string)` + +SetRDBR sets RDBR field to given value. + +### HasRDBR + +`func (o *CivicAddress) HasRDBR() bool` + +HasRDBR returns a boolean if a field has been set. + +### GetRDSUBBR + +`func (o *CivicAddress) GetRDSUBBR() string` + +GetRDSUBBR returns the RDSUBBR field if non-nil, zero value otherwise. + +### GetRDSUBBROk + +`func (o *CivicAddress) GetRDSUBBROk() (*string, bool)` + +GetRDSUBBROk returns a tuple with the RDSUBBR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRDSUBBR + +`func (o *CivicAddress) SetRDSUBBR(v string)` + +SetRDSUBBR sets RDSUBBR field to given value. + +### HasRDSUBBR + +`func (o *CivicAddress) HasRDSUBBR() bool` + +HasRDSUBBR returns a boolean if a field has been set. + +### GetPRM + +`func (o *CivicAddress) GetPRM() string` + +GetPRM returns the PRM field if non-nil, zero value otherwise. + +### GetPRMOk + +`func (o *CivicAddress) GetPRMOk() (*string, bool)` + +GetPRMOk returns a tuple with the PRM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPRM + +`func (o *CivicAddress) SetPRM(v string)` + +SetPRM sets PRM field to given value. + +### HasPRM + +`func (o *CivicAddress) HasPRM() bool` + +HasPRM returns a boolean if a field has been set. + +### GetPOM + +`func (o *CivicAddress) GetPOM() string` + +GetPOM returns the POM field if non-nil, zero value otherwise. + +### GetPOMOk + +`func (o *CivicAddress) GetPOMOk() (*string, bool)` + +GetPOMOk returns a tuple with the POM field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPOM + +`func (o *CivicAddress) SetPOM(v string)` + +SetPOM sets POM field to given value. + +### HasPOM + +`func (o *CivicAddress) HasPOM() bool` + +HasPOM returns a boolean if a field has been set. + +### GetUsageRules + +`func (o *CivicAddress) GetUsageRules() string` + +GetUsageRules returns the UsageRules field if non-nil, zero value otherwise. + +### GetUsageRulesOk + +`func (o *CivicAddress) GetUsageRulesOk() (*string, bool)` + +GetUsageRulesOk returns a tuple with the UsageRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageRules + +`func (o *CivicAddress) SetUsageRules(v string)` + +SetUsageRules sets UsageRules field to given value. + +### HasUsageRules + +`func (o *CivicAddress) HasUsageRules() bool` + +HasUsageRules returns a boolean if a field has been set. + +### GetMethod + +`func (o *CivicAddress) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *CivicAddress) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *CivicAddress) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *CivicAddress) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### GetProvidedBy + +`func (o *CivicAddress) GetProvidedBy() string` + +GetProvidedBy returns the ProvidedBy field if non-nil, zero value otherwise. + +### GetProvidedByOk + +`func (o *CivicAddress) GetProvidedByOk() (*string, bool)` + +GetProvidedByOk returns a tuple with the ProvidedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvidedBy + +`func (o *CivicAddress) SetProvidedBy(v string)` + +SetProvidedBy sets ProvidedBy field to given value. + +### HasProvidedBy + +`func (o *CivicAddress) HasProvidedBy() bool` + +HasProvidedBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/CommunicationType.md b/internal/CapifPublishService/docs/CommunicationType.md new file mode 100644 index 0000000000000000000000000000000000000000..50d76aa21e1651495e464996cbec140260e39ac6 --- /dev/null +++ b/internal/CapifPublishService/docs/CommunicationType.md @@ -0,0 +1,30 @@ +# CommunicationType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewCommunicationType + +`func NewCommunicationType() *CommunicationType` + +NewCommunicationType instantiates a new CommunicationType 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 + +### NewCommunicationTypeWithDefaults + +`func NewCommunicationTypeWithDefaults() *CommunicationType` + +NewCommunicationTypeWithDefaults instantiates a new CommunicationType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/CustomOperation.md b/internal/CapifPublishService/docs/CustomOperation.md new file mode 100644 index 0000000000000000000000000000000000000000..3f34fd8ea700a560f7d528685bc18248150cda63 --- /dev/null +++ b/internal/CapifPublishService/docs/CustomOperation.md @@ -0,0 +1,124 @@ +# CustomOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommType** | [**CommunicationType**](CommunicationType.md) | | +**CustOpName** | **string** | it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. | +**Operations** | Pointer to [**[]Operation**](Operation.md) | Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. | [optional] +**Description** | Pointer to **string** | Text description of the custom operation | [optional] + +## Methods + +### NewCustomOperation + +`func NewCustomOperation(commType CommunicationType, custOpName string, ) *CustomOperation` + +NewCustomOperation instantiates a new CustomOperation 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 + +### NewCustomOperationWithDefaults + +`func NewCustomOperationWithDefaults() *CustomOperation` + +NewCustomOperationWithDefaults instantiates a new CustomOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommType + +`func (o *CustomOperation) GetCommType() CommunicationType` + +GetCommType returns the CommType field if non-nil, zero value otherwise. + +### GetCommTypeOk + +`func (o *CustomOperation) GetCommTypeOk() (*CommunicationType, bool)` + +GetCommTypeOk returns a tuple with the CommType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommType + +`func (o *CustomOperation) SetCommType(v CommunicationType)` + +SetCommType sets CommType field to given value. + + +### GetCustOpName + +`func (o *CustomOperation) GetCustOpName() string` + +GetCustOpName returns the CustOpName field if non-nil, zero value otherwise. + +### GetCustOpNameOk + +`func (o *CustomOperation) GetCustOpNameOk() (*string, bool)` + +GetCustOpNameOk returns a tuple with the CustOpName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOpName + +`func (o *CustomOperation) SetCustOpName(v string)` + +SetCustOpName sets CustOpName field to given value. + + +### GetOperations + +`func (o *CustomOperation) GetOperations() []Operation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *CustomOperation) GetOperationsOk() (*[]Operation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *CustomOperation) SetOperations(v []Operation)` + +SetOperations sets Operations field to given value. + +### HasOperations + +`func (o *CustomOperation) HasOperations() bool` + +HasOperations returns a boolean if a field has been set. + +### GetDescription + +`func (o *CustomOperation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CustomOperation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CustomOperation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CustomOperation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/DataFormat.md b/internal/CapifPublishService/docs/DataFormat.md new file mode 100644 index 0000000000000000000000000000000000000000..5bc351926828a2a9f33f03050d85d230cbb7ea5a --- /dev/null +++ b/internal/CapifPublishService/docs/DataFormat.md @@ -0,0 +1,30 @@ +# DataFormat + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewDataFormat + +`func NewDataFormat() *DataFormat` + +NewDataFormat instantiates a new DataFormat 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 + +### NewDataFormatWithDefaults + +`func NewDataFormatWithDefaults() *DataFormat` + +NewDataFormatWithDefaults instantiates a new DataFormat object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/DefaultAPI.md b/internal/CapifPublishService/docs/DefaultAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..3051bd9bdd66e06d87f786192541a9a36ece9f66 --- /dev/null +++ b/internal/CapifPublishService/docs/DefaultAPI.md @@ -0,0 +1,374 @@ +# \DefaultAPI + +All URIs are relative to *https://example.com/published-apis/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ApfIdServiceApisGet**](DefaultAPI.md#ApfIdServiceApisGet) | **Get** /{apfId}/service-apis | +[**ApfIdServiceApisPost**](DefaultAPI.md#ApfIdServiceApisPost) | **Post** /{apfId}/service-apis | +[**ApfIdServiceApisServiceApiIdDelete**](DefaultAPI.md#ApfIdServiceApisServiceApiIdDelete) | **Delete** /{apfId}/service-apis/{serviceApiId} | +[**ApfIdServiceApisServiceApiIdGet**](DefaultAPI.md#ApfIdServiceApisServiceApiIdGet) | **Get** /{apfId}/service-apis/{serviceApiId} | +[**ApfIdServiceApisServiceApiIdPut**](DefaultAPI.md#ApfIdServiceApisServiceApiIdPut) | **Put** /{apfId}/service-apis/{serviceApiId} | + + + +## ApfIdServiceApisGet + +> []ServiceAPIDescription ApfIdServiceApisGet(ctx, apfId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apfId := "apfId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ApfIdServiceApisGet(context.Background(), apfId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApfIdServiceApisGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApfIdServiceApisGet`: []ServiceAPIDescription + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApfIdServiceApisGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apfId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApfIdServiceApisGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ServiceAPIDescription**](ServiceAPIDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/problem+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) + + +## ApfIdServiceApisPost + +> ServiceAPIDescription ApfIdServiceApisPost(ctx, apfId).ServiceAPIDescription(serviceAPIDescription).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apfId := "apfId_example" // string | + serviceAPIDescription := *openapiclient.NewServiceAPIDescription("ApiName_example") // ServiceAPIDescription | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ApfIdServiceApisPost(context.Background(), apfId).ServiceAPIDescription(serviceAPIDescription).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApfIdServiceApisPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApfIdServiceApisPost`: ServiceAPIDescription + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApfIdServiceApisPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apfId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApfIdServiceApisPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **serviceAPIDescription** | [**ServiceAPIDescription**](ServiceAPIDescription.md) | | + +### Return type + +[**ServiceAPIDescription**](ServiceAPIDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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) + + +## ApfIdServiceApisServiceApiIdDelete + +> ApfIdServiceApisServiceApiIdDelete(ctx, serviceApiId, apfId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + serviceApiId := "serviceApiId_example" // string | + apfId := "apfId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.ApfIdServiceApisServiceApiIdDelete(context.Background(), serviceApiId, apfId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApfIdServiceApisServiceApiIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceApiId** | **string** | | +**apfId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApfIdServiceApisServiceApiIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/problem+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) + + +## ApfIdServiceApisServiceApiIdGet + +> ServiceAPIDescription ApfIdServiceApisServiceApiIdGet(ctx, serviceApiId, apfId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + serviceApiId := "serviceApiId_example" // string | + apfId := "apfId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ApfIdServiceApisServiceApiIdGet(context.Background(), serviceApiId, apfId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApfIdServiceApisServiceApiIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApfIdServiceApisServiceApiIdGet`: ServiceAPIDescription + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApfIdServiceApisServiceApiIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceApiId** | **string** | | +**apfId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApfIdServiceApisServiceApiIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ServiceAPIDescription**](ServiceAPIDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/problem+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) + + +## ApfIdServiceApisServiceApiIdPut + +> ServiceAPIDescription ApfIdServiceApisServiceApiIdPut(ctx, serviceApiId, apfId).ServiceAPIDescription(serviceAPIDescription).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + serviceApiId := "serviceApiId_example" // string | + apfId := "apfId_example" // string | + serviceAPIDescription := *openapiclient.NewServiceAPIDescription("ApiName_example") // ServiceAPIDescription | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ApfIdServiceApisServiceApiIdPut(context.Background(), serviceApiId, apfId).ServiceAPIDescription(serviceAPIDescription).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApfIdServiceApisServiceApiIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApfIdServiceApisServiceApiIdPut`: ServiceAPIDescription + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApfIdServiceApisServiceApiIdPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceApiId** | **string** | | +**apfId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApfIdServiceApisServiceApiIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **serviceAPIDescription** | [**ServiceAPIDescription**](ServiceAPIDescription.md) | | + +### Return type + +[**ServiceAPIDescription**](ServiceAPIDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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/internal/CapifPublishService/docs/EllipsoidArc.md b/internal/CapifPublishService/docs/EllipsoidArc.md new file mode 100644 index 0000000000000000000000000000000000000000..eb8e00ee36031436acded8a294b36b1938456ad2 --- /dev/null +++ b/internal/CapifPublishService/docs/EllipsoidArc.md @@ -0,0 +1,156 @@ +# EllipsoidArc + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**InnerRadius** | **int32** | Indicates value of the inner radius. | +**UncertaintyRadius** | **float32** | Indicates value of uncertainty. | +**OffsetAngle** | **int32** | Indicates value of angle. | +**IncludedAngle** | **int32** | Indicates value of angle. | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewEllipsoidArc + +`func NewEllipsoidArc(point GeographicalCoordinates, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, confidence int32, ) *EllipsoidArc` + +NewEllipsoidArc instantiates a new EllipsoidArc 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 + +### NewEllipsoidArcWithDefaults + +`func NewEllipsoidArcWithDefaults() *EllipsoidArc` + +NewEllipsoidArcWithDefaults instantiates a new EllipsoidArc object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *EllipsoidArc) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *EllipsoidArc) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *EllipsoidArc) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetInnerRadius + +`func (o *EllipsoidArc) GetInnerRadius() int32` + +GetInnerRadius returns the InnerRadius field if non-nil, zero value otherwise. + +### GetInnerRadiusOk + +`func (o *EllipsoidArc) GetInnerRadiusOk() (*int32, bool)` + +GetInnerRadiusOk returns a tuple with the InnerRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInnerRadius + +`func (o *EllipsoidArc) SetInnerRadius(v int32)` + +SetInnerRadius sets InnerRadius field to given value. + + +### GetUncertaintyRadius + +`func (o *EllipsoidArc) GetUncertaintyRadius() float32` + +GetUncertaintyRadius returns the UncertaintyRadius field if non-nil, zero value otherwise. + +### GetUncertaintyRadiusOk + +`func (o *EllipsoidArc) GetUncertaintyRadiusOk() (*float32, bool)` + +GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyRadius + +`func (o *EllipsoidArc) SetUncertaintyRadius(v float32)` + +SetUncertaintyRadius sets UncertaintyRadius field to given value. + + +### GetOffsetAngle + +`func (o *EllipsoidArc) GetOffsetAngle() int32` + +GetOffsetAngle returns the OffsetAngle field if non-nil, zero value otherwise. + +### GetOffsetAngleOk + +`func (o *EllipsoidArc) GetOffsetAngleOk() (*int32, bool)` + +GetOffsetAngleOk returns a tuple with the OffsetAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffsetAngle + +`func (o *EllipsoidArc) SetOffsetAngle(v int32)` + +SetOffsetAngle sets OffsetAngle field to given value. + + +### GetIncludedAngle + +`func (o *EllipsoidArc) GetIncludedAngle() int32` + +GetIncludedAngle returns the IncludedAngle field if non-nil, zero value otherwise. + +### GetIncludedAngleOk + +`func (o *EllipsoidArc) GetIncludedAngleOk() (*int32, bool)` + +GetIncludedAngleOk returns a tuple with the IncludedAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludedAngle + +`func (o *EllipsoidArc) SetIncludedAngle(v int32)` + +SetIncludedAngle sets IncludedAngle field to given value. + + +### GetConfidence + +`func (o *EllipsoidArc) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *EllipsoidArc) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *EllipsoidArc) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/GADShape.md b/internal/CapifPublishService/docs/GADShape.md new file mode 100644 index 0000000000000000000000000000000000000000..45ec8f3625d43b289474c686df3806f4204ea399 --- /dev/null +++ b/internal/CapifPublishService/docs/GADShape.md @@ -0,0 +1,51 @@ +# GADShape + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | [**SupportedGADShapes**](SupportedGADShapes.md) | | + +## Methods + +### NewGADShape + +`func NewGADShape(shape SupportedGADShapes, ) *GADShape` + +NewGADShape instantiates a new GADShape 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 + +### NewGADShapeWithDefaults + +`func NewGADShapeWithDefaults() *GADShape` + +NewGADShapeWithDefaults instantiates a new GADShape object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShape + +`func (o *GADShape) GetShape() SupportedGADShapes` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *GADShape) GetShapeOk() (*SupportedGADShapes, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *GADShape) SetShape(v SupportedGADShapes)` + +SetShape sets Shape field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/GeographicArea.md b/internal/CapifPublishService/docs/GeographicArea.md new file mode 100644 index 0000000000000000000000000000000000000000..ccde5ace62bfeb6321e0dea8ab3c9739e0198820 --- /dev/null +++ b/internal/CapifPublishService/docs/GeographicArea.md @@ -0,0 +1,308 @@ +# GeographicArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | [**SupportedGADShapes**](SupportedGADShapes.md) | | +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Uncertainty** | **float32** | Indicates value of uncertainty. | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | +**PointList** | [**[]GeographicalCoordinates**](GeographicalCoordinates.md) | List of points. | +**Altitude** | **float64** | Indicates value of altitude. | +**UncertaintyAltitude** | **float32** | Indicates value of uncertainty. | +**VConfidence** | Pointer to **int32** | Indicates value of confidence. | [optional] +**InnerRadius** | **int32** | Indicates value of the inner radius. | +**UncertaintyRadius** | **float32** | Indicates value of uncertainty. | +**OffsetAngle** | **int32** | Indicates value of angle. | +**IncludedAngle** | **int32** | Indicates value of angle. | + +## Methods + +### NewGeographicArea + +`func NewGeographicArea(shape SupportedGADShapes, point GeographicalCoordinates, uncertainty float32, uncertaintyEllipse UncertaintyEllipse, confidence int32, pointList []GeographicalCoordinates, altitude float64, uncertaintyAltitude float32, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, ) *GeographicArea` + +NewGeographicArea instantiates a new GeographicArea 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 + +### NewGeographicAreaWithDefaults + +`func NewGeographicAreaWithDefaults() *GeographicArea` + +NewGeographicAreaWithDefaults instantiates a new GeographicArea object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShape + +`func (o *GeographicArea) GetShape() SupportedGADShapes` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *GeographicArea) GetShapeOk() (*SupportedGADShapes, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *GeographicArea) SetShape(v SupportedGADShapes)` + +SetShape sets Shape field to given value. + + +### GetPoint + +`func (o *GeographicArea) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *GeographicArea) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *GeographicArea) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertainty + +`func (o *GeographicArea) GetUncertainty() float32` + +GetUncertainty returns the Uncertainty field if non-nil, zero value otherwise. + +### GetUncertaintyOk + +`func (o *GeographicArea) GetUncertaintyOk() (*float32, bool)` + +GetUncertaintyOk returns a tuple with the Uncertainty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertainty + +`func (o *GeographicArea) SetUncertainty(v float32)` + +SetUncertainty sets Uncertainty field to given value. + + +### GetUncertaintyEllipse + +`func (o *GeographicArea) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *GeographicArea) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *GeographicArea) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *GeographicArea) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *GeographicArea) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *GeographicArea) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + +### GetPointList + +`func (o *GeographicArea) GetPointList() []GeographicalCoordinates` + +GetPointList returns the PointList field if non-nil, zero value otherwise. + +### GetPointListOk + +`func (o *GeographicArea) GetPointListOk() (*[]GeographicalCoordinates, bool)` + +GetPointListOk returns a tuple with the PointList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointList + +`func (o *GeographicArea) SetPointList(v []GeographicalCoordinates)` + +SetPointList sets PointList field to given value. + + +### GetAltitude + +`func (o *GeographicArea) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *GeographicArea) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *GeographicArea) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + +### GetUncertaintyAltitude + +`func (o *GeographicArea) GetUncertaintyAltitude() float32` + +GetUncertaintyAltitude returns the UncertaintyAltitude field if non-nil, zero value otherwise. + +### GetUncertaintyAltitudeOk + +`func (o *GeographicArea) GetUncertaintyAltitudeOk() (*float32, bool)` + +GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyAltitude + +`func (o *GeographicArea) SetUncertaintyAltitude(v float32)` + +SetUncertaintyAltitude sets UncertaintyAltitude field to given value. + + +### GetVConfidence + +`func (o *GeographicArea) GetVConfidence() int32` + +GetVConfidence returns the VConfidence field if non-nil, zero value otherwise. + +### GetVConfidenceOk + +`func (o *GeographicArea) GetVConfidenceOk() (*int32, bool)` + +GetVConfidenceOk returns a tuple with the VConfidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVConfidence + +`func (o *GeographicArea) SetVConfidence(v int32)` + +SetVConfidence sets VConfidence field to given value. + +### HasVConfidence + +`func (o *GeographicArea) HasVConfidence() bool` + +HasVConfidence returns a boolean if a field has been set. + +### GetInnerRadius + +`func (o *GeographicArea) GetInnerRadius() int32` + +GetInnerRadius returns the InnerRadius field if non-nil, zero value otherwise. + +### GetInnerRadiusOk + +`func (o *GeographicArea) GetInnerRadiusOk() (*int32, bool)` + +GetInnerRadiusOk returns a tuple with the InnerRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInnerRadius + +`func (o *GeographicArea) SetInnerRadius(v int32)` + +SetInnerRadius sets InnerRadius field to given value. + + +### GetUncertaintyRadius + +`func (o *GeographicArea) GetUncertaintyRadius() float32` + +GetUncertaintyRadius returns the UncertaintyRadius field if non-nil, zero value otherwise. + +### GetUncertaintyRadiusOk + +`func (o *GeographicArea) GetUncertaintyRadiusOk() (*float32, bool)` + +GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyRadius + +`func (o *GeographicArea) SetUncertaintyRadius(v float32)` + +SetUncertaintyRadius sets UncertaintyRadius field to given value. + + +### GetOffsetAngle + +`func (o *GeographicArea) GetOffsetAngle() int32` + +GetOffsetAngle returns the OffsetAngle field if non-nil, zero value otherwise. + +### GetOffsetAngleOk + +`func (o *GeographicArea) GetOffsetAngleOk() (*int32, bool)` + +GetOffsetAngleOk returns a tuple with the OffsetAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffsetAngle + +`func (o *GeographicArea) SetOffsetAngle(v int32)` + +SetOffsetAngle sets OffsetAngle field to given value. + + +### GetIncludedAngle + +`func (o *GeographicArea) GetIncludedAngle() int32` + +GetIncludedAngle returns the IncludedAngle field if non-nil, zero value otherwise. + +### GetIncludedAngleOk + +`func (o *GeographicArea) GetIncludedAngleOk() (*int32, bool)` + +GetIncludedAngleOk returns a tuple with the IncludedAngle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludedAngle + +`func (o *GeographicArea) SetIncludedAngle(v int32)` + +SetIncludedAngle sets IncludedAngle field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/GeographicalCoordinates.md b/internal/CapifPublishService/docs/GeographicalCoordinates.md new file mode 100644 index 0000000000000000000000000000000000000000..1bcb866ca23d2369ced3e7e1ce370bd230e17130 --- /dev/null +++ b/internal/CapifPublishService/docs/GeographicalCoordinates.md @@ -0,0 +1,72 @@ +# GeographicalCoordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lon** | **float64** | | +**Lat** | **float64** | | + +## Methods + +### NewGeographicalCoordinates + +`func NewGeographicalCoordinates(lon float64, lat float64, ) *GeographicalCoordinates` + +NewGeographicalCoordinates instantiates a new GeographicalCoordinates 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 + +### NewGeographicalCoordinatesWithDefaults + +`func NewGeographicalCoordinatesWithDefaults() *GeographicalCoordinates` + +NewGeographicalCoordinatesWithDefaults instantiates a new GeographicalCoordinates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLon + +`func (o *GeographicalCoordinates) GetLon() float64` + +GetLon returns the Lon field if non-nil, zero value otherwise. + +### GetLonOk + +`func (o *GeographicalCoordinates) GetLonOk() (*float64, bool)` + +GetLonOk returns a tuple with the Lon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLon + +`func (o *GeographicalCoordinates) SetLon(v float64)` + +SetLon sets Lon field to given value. + + +### GetLat + +`func (o *GeographicalCoordinates) GetLat() float64` + +GetLat returns the Lat field if non-nil, zero value otherwise. + +### GetLatOk + +`func (o *GeographicalCoordinates) GetLatOk() (*float64, bool)` + +GetLatOk returns a tuple with the Lat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLat + +`func (o *GeographicalCoordinates) SetLat(v float64)` + +SetLat sets Lat field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/IndividualAPFPublishedAPIAPI.md b/internal/CapifPublishService/docs/IndividualAPFPublishedAPIAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..5f9be31c16ca790a2ca5f2419dd682691648f18a --- /dev/null +++ b/internal/CapifPublishService/docs/IndividualAPFPublishedAPIAPI.md @@ -0,0 +1,84 @@ +# \IndividualAPFPublishedAPIAPI + +All URIs are relative to *https://example.com/published-apis/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ModifyIndAPFPubAPI**](IndividualAPFPublishedAPIAPI.md#ModifyIndAPFPubAPI) | **Patch** /{apfId}/service-apis/{serviceApiId} | + + + +## ModifyIndAPFPubAPI + +> ServiceAPIDescription ModifyIndAPFPubAPI(ctx, serviceApiId, apfId).ServiceAPIDescriptionPatch(serviceAPIDescriptionPatch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + serviceApiId := "serviceApiId_example" // string | + apfId := "apfId_example" // string | + serviceAPIDescriptionPatch := *openapiclient.NewServiceAPIDescriptionPatch() // ServiceAPIDescriptionPatch | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IndividualAPFPublishedAPIAPI.ModifyIndAPFPubAPI(context.Background(), serviceApiId, apfId).ServiceAPIDescriptionPatch(serviceAPIDescriptionPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IndividualAPFPublishedAPIAPI.ModifyIndAPFPubAPI``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ModifyIndAPFPubAPI`: ServiceAPIDescription + fmt.Fprintf(os.Stdout, "Response from `IndividualAPFPublishedAPIAPI.ModifyIndAPFPubAPI`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceApiId** | **string** | | +**apfId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiModifyIndAPFPubAPIRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **serviceAPIDescriptionPatch** | [**ServiceAPIDescriptionPatch**](ServiceAPIDescriptionPatch.md) | | + +### Return type + +[**ServiceAPIDescription**](ServiceAPIDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/merge-patch+json +- **Accept**: application/json, application/problem+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/internal/CapifPublishService/docs/InterfaceDescription.md b/internal/CapifPublishService/docs/InterfaceDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..d8028b51f483c1c26475863a957495fda5cf11d5 --- /dev/null +++ b/internal/CapifPublishService/docs/InterfaceDescription.md @@ -0,0 +1,134 @@ +# InterfaceDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ipv4Addr** | Pointer to **string** | string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. | [optional] +**Ipv6Addr** | Pointer to **string** | string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. | [optional] +**Port** | Pointer to **int32** | Unsigned integer with valid values between 0 and 65535. | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. | [optional] + +## Methods + +### NewInterfaceDescription + +`func NewInterfaceDescription() *InterfaceDescription` + +NewInterfaceDescription instantiates a new InterfaceDescription 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 + +### NewInterfaceDescriptionWithDefaults + +`func NewInterfaceDescriptionWithDefaults() *InterfaceDescription` + +NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIpv4Addr + +`func (o *InterfaceDescription) GetIpv4Addr() string` + +GetIpv4Addr returns the Ipv4Addr field if non-nil, zero value otherwise. + +### GetIpv4AddrOk + +`func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool)` + +GetIpv4AddrOk returns a tuple with the Ipv4Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv4Addr + +`func (o *InterfaceDescription) SetIpv4Addr(v string)` + +SetIpv4Addr sets Ipv4Addr field to given value. + +### HasIpv4Addr + +`func (o *InterfaceDescription) HasIpv4Addr() bool` + +HasIpv4Addr returns a boolean if a field has been set. + +### GetIpv6Addr + +`func (o *InterfaceDescription) GetIpv6Addr() string` + +GetIpv6Addr returns the Ipv6Addr field if non-nil, zero value otherwise. + +### GetIpv6AddrOk + +`func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool)` + +GetIpv6AddrOk returns a tuple with the Ipv6Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv6Addr + +`func (o *InterfaceDescription) SetIpv6Addr(v string)` + +SetIpv6Addr sets Ipv6Addr field to given value. + +### HasIpv6Addr + +`func (o *InterfaceDescription) HasIpv6Addr() bool` + +HasIpv6Addr returns a boolean if a field has been set. + +### GetPort + +`func (o *InterfaceDescription) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *InterfaceDescription) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *InterfaceDescription) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *InterfaceDescription) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *InterfaceDescription) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *InterfaceDescription) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/InvalidParam.md b/internal/CapifPublishService/docs/InvalidParam.md new file mode 100644 index 0000000000000000000000000000000000000000..f809021f398e0f4e40114ee3686d7c45edd829fe --- /dev/null +++ b/internal/CapifPublishService/docs/InvalidParam.md @@ -0,0 +1,77 @@ +# InvalidParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Param** | **string** | Attribute's name encoded as a JSON Pointer, or header's name. | +**Reason** | Pointer to **string** | A human-readable reason, e.g. \"must be a positive integer\". | [optional] + +## Methods + +### NewInvalidParam + +`func NewInvalidParam(param string, ) *InvalidParam` + +NewInvalidParam instantiates a new InvalidParam 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 + +### NewInvalidParamWithDefaults + +`func NewInvalidParamWithDefaults() *InvalidParam` + +NewInvalidParamWithDefaults instantiates a new InvalidParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParam + +`func (o *InvalidParam) GetParam() string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *InvalidParam) GetParamOk() (*string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *InvalidParam) SetParam(v string)` + +SetParam sets Param field to given value. + + +### GetReason + +`func (o *InvalidParam) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InvalidParam) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InvalidParam) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InvalidParam) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Local2dPointUncertaintyEllipse.md b/internal/CapifPublishService/docs/Local2dPointUncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..10e11811b30a294808b21f2c8a1d8b708e82f371 --- /dev/null +++ b/internal/CapifPublishService/docs/Local2dPointUncertaintyEllipse.md @@ -0,0 +1,114 @@ +# Local2dPointUncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalOrigin** | [**LocalOrigin**](LocalOrigin.md) | | +**Point** | [**RelativeCartesianLocation**](RelativeCartesianLocation.md) | | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewLocal2dPointUncertaintyEllipse + +`func NewLocal2dPointUncertaintyEllipse(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipse UncertaintyEllipse, confidence int32, ) *Local2dPointUncertaintyEllipse` + +NewLocal2dPointUncertaintyEllipse instantiates a new Local2dPointUncertaintyEllipse 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 + +### NewLocal2dPointUncertaintyEllipseWithDefaults + +`func NewLocal2dPointUncertaintyEllipseWithDefaults() *Local2dPointUncertaintyEllipse` + +NewLocal2dPointUncertaintyEllipseWithDefaults instantiates a new Local2dPointUncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocalOrigin + +`func (o *Local2dPointUncertaintyEllipse) GetLocalOrigin() LocalOrigin` + +GetLocalOrigin returns the LocalOrigin field if non-nil, zero value otherwise. + +### GetLocalOriginOk + +`func (o *Local2dPointUncertaintyEllipse) GetLocalOriginOk() (*LocalOrigin, bool)` + +GetLocalOriginOk returns a tuple with the LocalOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalOrigin + +`func (o *Local2dPointUncertaintyEllipse) SetLocalOrigin(v LocalOrigin)` + +SetLocalOrigin sets LocalOrigin field to given value. + + +### GetPoint + +`func (o *Local2dPointUncertaintyEllipse) GetPoint() RelativeCartesianLocation` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Local2dPointUncertaintyEllipse) GetPointOk() (*RelativeCartesianLocation, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Local2dPointUncertaintyEllipse) SetPoint(v RelativeCartesianLocation)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipse + +`func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *Local2dPointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *Local2dPointUncertaintyEllipse) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *Local2dPointUncertaintyEllipse) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *Local2dPointUncertaintyEllipse) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Local3dPointUncertaintyEllipsoid.md b/internal/CapifPublishService/docs/Local3dPointUncertaintyEllipsoid.md new file mode 100644 index 0000000000000000000000000000000000000000..a0bd82efc0353e52d221339b2e22e5d5139bd7ff --- /dev/null +++ b/internal/CapifPublishService/docs/Local3dPointUncertaintyEllipsoid.md @@ -0,0 +1,114 @@ +# Local3dPointUncertaintyEllipsoid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalOrigin** | [**LocalOrigin**](LocalOrigin.md) | | +**Point** | [**RelativeCartesianLocation**](RelativeCartesianLocation.md) | | +**UncertaintyEllipsoid** | [**UncertaintyEllipsoid**](UncertaintyEllipsoid.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewLocal3dPointUncertaintyEllipsoid + +`func NewLocal3dPointUncertaintyEllipsoid(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipsoid UncertaintyEllipsoid, confidence int32, ) *Local3dPointUncertaintyEllipsoid` + +NewLocal3dPointUncertaintyEllipsoid instantiates a new Local3dPointUncertaintyEllipsoid 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 + +### NewLocal3dPointUncertaintyEllipsoidWithDefaults + +`func NewLocal3dPointUncertaintyEllipsoidWithDefaults() *Local3dPointUncertaintyEllipsoid` + +NewLocal3dPointUncertaintyEllipsoidWithDefaults instantiates a new Local3dPointUncertaintyEllipsoid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocalOrigin + +`func (o *Local3dPointUncertaintyEllipsoid) GetLocalOrigin() LocalOrigin` + +GetLocalOrigin returns the LocalOrigin field if non-nil, zero value otherwise. + +### GetLocalOriginOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetLocalOriginOk() (*LocalOrigin, bool)` + +GetLocalOriginOk returns a tuple with the LocalOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalOrigin + +`func (o *Local3dPointUncertaintyEllipsoid) SetLocalOrigin(v LocalOrigin)` + +SetLocalOrigin sets LocalOrigin field to given value. + + +### GetPoint + +`func (o *Local3dPointUncertaintyEllipsoid) GetPoint() RelativeCartesianLocation` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetPointOk() (*RelativeCartesianLocation, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Local3dPointUncertaintyEllipsoid) SetPoint(v RelativeCartesianLocation)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipsoid + +`func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoid() UncertaintyEllipsoid` + +GetUncertaintyEllipsoid returns the UncertaintyEllipsoid field if non-nil, zero value otherwise. + +### GetUncertaintyEllipsoidOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoidOk() (*UncertaintyEllipsoid, bool)` + +GetUncertaintyEllipsoidOk returns a tuple with the UncertaintyEllipsoid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipsoid + +`func (o *Local3dPointUncertaintyEllipsoid) SetUncertaintyEllipsoid(v UncertaintyEllipsoid)` + +SetUncertaintyEllipsoid sets UncertaintyEllipsoid field to given value. + + +### GetConfidence + +`func (o *Local3dPointUncertaintyEllipsoid) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *Local3dPointUncertaintyEllipsoid) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *Local3dPointUncertaintyEllipsoid) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/LocalOrigin.md b/internal/CapifPublishService/docs/LocalOrigin.md new file mode 100644 index 0000000000000000000000000000000000000000..8a5de33d298adf4cbecd699033d699319db73b68 --- /dev/null +++ b/internal/CapifPublishService/docs/LocalOrigin.md @@ -0,0 +1,82 @@ +# LocalOrigin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CoordinateId** | Pointer to **string** | | [optional] +**Point** | Pointer to [**GeographicalCoordinates**](GeographicalCoordinates.md) | | [optional] + +## Methods + +### NewLocalOrigin + +`func NewLocalOrigin() *LocalOrigin` + +NewLocalOrigin instantiates a new LocalOrigin 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 + +### NewLocalOriginWithDefaults + +`func NewLocalOriginWithDefaults() *LocalOrigin` + +NewLocalOriginWithDefaults instantiates a new LocalOrigin object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCoordinateId + +`func (o *LocalOrigin) GetCoordinateId() string` + +GetCoordinateId returns the CoordinateId field if non-nil, zero value otherwise. + +### GetCoordinateIdOk + +`func (o *LocalOrigin) GetCoordinateIdOk() (*string, bool)` + +GetCoordinateIdOk returns a tuple with the CoordinateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoordinateId + +`func (o *LocalOrigin) SetCoordinateId(v string)` + +SetCoordinateId sets CoordinateId field to given value. + +### HasCoordinateId + +`func (o *LocalOrigin) HasCoordinateId() bool` + +HasCoordinateId returns a boolean if a field has been set. + +### GetPoint + +`func (o *LocalOrigin) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *LocalOrigin) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *LocalOrigin) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + +### HasPoint + +`func (o *LocalOrigin) HasPoint() bool` + +HasPoint returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Operation.md b/internal/CapifPublishService/docs/Operation.md new file mode 100644 index 0000000000000000000000000000000000000000..2940414796e3dd8521e2d483ba10b32da911c20d --- /dev/null +++ b/internal/CapifPublishService/docs/Operation.md @@ -0,0 +1,30 @@ +# Operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewOperation + +`func NewOperation() *Operation` + +NewOperation instantiates a new Operation 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 + +### NewOperationWithDefaults + +`func NewOperationWithDefaults() *Operation` + +NewOperationWithDefaults instantiates a new Operation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Point.md b/internal/CapifPublishService/docs/Point.md new file mode 100644 index 0000000000000000000000000000000000000000..68b2d10ad0b5a1c898bb7acebf057b198f87d38f --- /dev/null +++ b/internal/CapifPublishService/docs/Point.md @@ -0,0 +1,51 @@ +# Point + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | + +## Methods + +### NewPoint + +`func NewPoint(point GeographicalCoordinates, ) *Point` + +NewPoint instantiates a new Point 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 + +### NewPointWithDefaults + +`func NewPointWithDefaults() *Point` + +NewPointWithDefaults instantiates a new Point object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *Point) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *Point) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *Point) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/PointAltitude.md b/internal/CapifPublishService/docs/PointAltitude.md new file mode 100644 index 0000000000000000000000000000000000000000..e2219e8b3577588553438dde423e73039e8e9893 --- /dev/null +++ b/internal/CapifPublishService/docs/PointAltitude.md @@ -0,0 +1,72 @@ +# PointAltitude + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Altitude** | **float64** | Indicates value of altitude. | + +## Methods + +### NewPointAltitude + +`func NewPointAltitude(point GeographicalCoordinates, altitude float64, ) *PointAltitude` + +NewPointAltitude instantiates a new PointAltitude 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 + +### NewPointAltitudeWithDefaults + +`func NewPointAltitudeWithDefaults() *PointAltitude` + +NewPointAltitudeWithDefaults instantiates a new PointAltitude object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointAltitude) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointAltitude) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointAltitude) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetAltitude + +`func (o *PointAltitude) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *PointAltitude) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *PointAltitude) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/PointAltitudeUncertainty.md b/internal/CapifPublishService/docs/PointAltitudeUncertainty.md new file mode 100644 index 0000000000000000000000000000000000000000..c79c4cf57a9b856abb33d5fa81da2603396985df --- /dev/null +++ b/internal/CapifPublishService/docs/PointAltitudeUncertainty.md @@ -0,0 +1,161 @@ +# PointAltitudeUncertainty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Altitude** | **float64** | Indicates value of altitude. | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**UncertaintyAltitude** | **float32** | Indicates value of uncertainty. | +**Confidence** | **int32** | Indicates value of confidence. | +**VConfidence** | Pointer to **int32** | Indicates value of confidence. | [optional] + +## Methods + +### NewPointAltitudeUncertainty + +`func NewPointAltitudeUncertainty(point GeographicalCoordinates, altitude float64, uncertaintyEllipse UncertaintyEllipse, uncertaintyAltitude float32, confidence int32, ) *PointAltitudeUncertainty` + +NewPointAltitudeUncertainty instantiates a new PointAltitudeUncertainty 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 + +### NewPointAltitudeUncertaintyWithDefaults + +`func NewPointAltitudeUncertaintyWithDefaults() *PointAltitudeUncertainty` + +NewPointAltitudeUncertaintyWithDefaults instantiates a new PointAltitudeUncertainty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointAltitudeUncertainty) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointAltitudeUncertainty) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointAltitudeUncertainty) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetAltitude + +`func (o *PointAltitudeUncertainty) GetAltitude() float64` + +GetAltitude returns the Altitude field if non-nil, zero value otherwise. + +### GetAltitudeOk + +`func (o *PointAltitudeUncertainty) GetAltitudeOk() (*float64, bool)` + +GetAltitudeOk returns a tuple with the Altitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltitude + +`func (o *PointAltitudeUncertainty) SetAltitude(v float64)` + +SetAltitude sets Altitude field to given value. + + +### GetUncertaintyEllipse + +`func (o *PointAltitudeUncertainty) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *PointAltitudeUncertainty) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *PointAltitudeUncertainty) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetUncertaintyAltitude + +`func (o *PointAltitudeUncertainty) GetUncertaintyAltitude() float32` + +GetUncertaintyAltitude returns the UncertaintyAltitude field if non-nil, zero value otherwise. + +### GetUncertaintyAltitudeOk + +`func (o *PointAltitudeUncertainty) GetUncertaintyAltitudeOk() (*float32, bool)` + +GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyAltitude + +`func (o *PointAltitudeUncertainty) SetUncertaintyAltitude(v float32)` + +SetUncertaintyAltitude sets UncertaintyAltitude field to given value. + + +### GetConfidence + +`func (o *PointAltitudeUncertainty) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *PointAltitudeUncertainty) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *PointAltitudeUncertainty) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + +### GetVConfidence + +`func (o *PointAltitudeUncertainty) GetVConfidence() int32` + +GetVConfidence returns the VConfidence field if non-nil, zero value otherwise. + +### GetVConfidenceOk + +`func (o *PointAltitudeUncertainty) GetVConfidenceOk() (*int32, bool)` + +GetVConfidenceOk returns a tuple with the VConfidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVConfidence + +`func (o *PointAltitudeUncertainty) SetVConfidence(v int32)` + +SetVConfidence sets VConfidence field to given value. + +### HasVConfidence + +`func (o *PointAltitudeUncertainty) HasVConfidence() bool` + +HasVConfidence returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/PointUncertaintyCircle.md b/internal/CapifPublishService/docs/PointUncertaintyCircle.md new file mode 100644 index 0000000000000000000000000000000000000000..1499a24f3c25d954717cb2c858d940300ecbf586 --- /dev/null +++ b/internal/CapifPublishService/docs/PointUncertaintyCircle.md @@ -0,0 +1,72 @@ +# PointUncertaintyCircle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**Uncertainty** | **float32** | Indicates value of uncertainty. | + +## Methods + +### NewPointUncertaintyCircle + +`func NewPointUncertaintyCircle(point GeographicalCoordinates, uncertainty float32, ) *PointUncertaintyCircle` + +NewPointUncertaintyCircle instantiates a new PointUncertaintyCircle 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 + +### NewPointUncertaintyCircleWithDefaults + +`func NewPointUncertaintyCircleWithDefaults() *PointUncertaintyCircle` + +NewPointUncertaintyCircleWithDefaults instantiates a new PointUncertaintyCircle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointUncertaintyCircle) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointUncertaintyCircle) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointUncertaintyCircle) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertainty + +`func (o *PointUncertaintyCircle) GetUncertainty() float32` + +GetUncertainty returns the Uncertainty field if non-nil, zero value otherwise. + +### GetUncertaintyOk + +`func (o *PointUncertaintyCircle) GetUncertaintyOk() (*float32, bool)` + +GetUncertaintyOk returns a tuple with the Uncertainty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertainty + +`func (o *PointUncertaintyCircle) SetUncertainty(v float32)` + +SetUncertainty sets Uncertainty field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/PointUncertaintyEllipse.md b/internal/CapifPublishService/docs/PointUncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..786c3074e38de51d3071ea13f8cd6f0cd44ad766 --- /dev/null +++ b/internal/CapifPublishService/docs/PointUncertaintyEllipse.md @@ -0,0 +1,93 @@ +# PointUncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Point** | [**GeographicalCoordinates**](GeographicalCoordinates.md) | | +**UncertaintyEllipse** | [**UncertaintyEllipse**](UncertaintyEllipse.md) | | +**Confidence** | **int32** | Indicates value of confidence. | + +## Methods + +### NewPointUncertaintyEllipse + +`func NewPointUncertaintyEllipse(point GeographicalCoordinates, uncertaintyEllipse UncertaintyEllipse, confidence int32, ) *PointUncertaintyEllipse` + +NewPointUncertaintyEllipse instantiates a new PointUncertaintyEllipse 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 + +### NewPointUncertaintyEllipseWithDefaults + +`func NewPointUncertaintyEllipseWithDefaults() *PointUncertaintyEllipse` + +NewPointUncertaintyEllipseWithDefaults instantiates a new PointUncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoint + +`func (o *PointUncertaintyEllipse) GetPoint() GeographicalCoordinates` + +GetPoint returns the Point field if non-nil, zero value otherwise. + +### GetPointOk + +`func (o *PointUncertaintyEllipse) GetPointOk() (*GeographicalCoordinates, bool)` + +GetPointOk returns a tuple with the Point field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoint + +`func (o *PointUncertaintyEllipse) SetPoint(v GeographicalCoordinates)` + +SetPoint sets Point field to given value. + + +### GetUncertaintyEllipse + +`func (o *PointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse` + +GetUncertaintyEllipse returns the UncertaintyEllipse field if non-nil, zero value otherwise. + +### GetUncertaintyEllipseOk + +`func (o *PointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool)` + +GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncertaintyEllipse + +`func (o *PointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse)` + +SetUncertaintyEllipse sets UncertaintyEllipse field to given value. + + +### GetConfidence + +`func (o *PointUncertaintyEllipse) GetConfidence() int32` + +GetConfidence returns the Confidence field if non-nil, zero value otherwise. + +### GetConfidenceOk + +`func (o *PointUncertaintyEllipse) GetConfidenceOk() (*int32, bool)` + +GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidence + +`func (o *PointUncertaintyEllipse) SetConfidence(v int32)` + +SetConfidence sets Confidence field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Polygon.md b/internal/CapifPublishService/docs/Polygon.md new file mode 100644 index 0000000000000000000000000000000000000000..ddee5f0fa288b28cc417b9e75cab33bb2bea662b --- /dev/null +++ b/internal/CapifPublishService/docs/Polygon.md @@ -0,0 +1,51 @@ +# Polygon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PointList** | [**[]GeographicalCoordinates**](GeographicalCoordinates.md) | List of points. | + +## Methods + +### NewPolygon + +`func NewPolygon(pointList []GeographicalCoordinates, ) *Polygon` + +NewPolygon instantiates a new Polygon 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 + +### NewPolygonWithDefaults + +`func NewPolygonWithDefaults() *Polygon` + +NewPolygonWithDefaults instantiates a new Polygon object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPointList + +`func (o *Polygon) GetPointList() []GeographicalCoordinates` + +GetPointList returns the PointList field if non-nil, zero value otherwise. + +### GetPointListOk + +`func (o *Polygon) GetPointListOk() (*[]GeographicalCoordinates, bool)` + +GetPointListOk returns a tuple with the PointList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointList + +`func (o *Polygon) SetPointList(v []GeographicalCoordinates)` + +SetPointList sets PointList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/ProblemDetails.md b/internal/CapifPublishService/docs/ProblemDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..0f3b997d8cd366e0219cbf8828307d3241a1cdaf --- /dev/null +++ b/internal/CapifPublishService/docs/ProblemDetails.md @@ -0,0 +1,238 @@ +# ProblemDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Title** | Pointer to **string** | A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. | [optional] +**Status** | Pointer to **int32** | The HTTP status code for this occurrence of the problem. | [optional] +**Detail** | Pointer to **string** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**Instance** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Cause** | Pointer to **string** | A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. | [optional] +**InvalidParams** | Pointer to [**[]InvalidParam**](InvalidParam.md) | Description of invalid parameters, for a request rejected due to invalid parameters. | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewProblemDetails + +`func NewProblemDetails() *ProblemDetails` + +NewProblemDetails instantiates a new ProblemDetails 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 + +### NewProblemDetailsWithDefaults + +`func NewProblemDetailsWithDefaults() *ProblemDetails` + +NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ProblemDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProblemDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProblemDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProblemDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTitle + +`func (o *ProblemDetails) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ProblemDetails) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ProblemDetails) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ProblemDetails) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProblemDetails) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProblemDetails) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProblemDetails) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ProblemDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDetail + +`func (o *ProblemDetails) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ProblemDetails) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ProblemDetails) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ProblemDetails) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetInstance + +`func (o *ProblemDetails) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ProblemDetails) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ProblemDetails) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ProblemDetails) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetCause + +`func (o *ProblemDetails) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ProblemDetails) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ProblemDetails) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ProblemDetails) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInvalidParams + +`func (o *ProblemDetails) GetInvalidParams() []InvalidParam` + +GetInvalidParams returns the InvalidParams field if non-nil, zero value otherwise. + +### GetInvalidParamsOk + +`func (o *ProblemDetails) GetInvalidParamsOk() (*[]InvalidParam, bool)` + +GetInvalidParamsOk returns a tuple with the InvalidParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidParams + +`func (o *ProblemDetails) SetInvalidParams(v []InvalidParam)` + +SetInvalidParams sets InvalidParams field to given value. + +### HasInvalidParams + +`func (o *ProblemDetails) HasInvalidParams() bool` + +HasInvalidParams returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ProblemDetails) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ProblemDetails) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ProblemDetails) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Protocol.md b/internal/CapifPublishService/docs/Protocol.md new file mode 100644 index 0000000000000000000000000000000000000000..be484b8f7278d3ab560eb6f6808f6c0b4688d081 --- /dev/null +++ b/internal/CapifPublishService/docs/Protocol.md @@ -0,0 +1,30 @@ +# Protocol + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewProtocol + +`func NewProtocol() *Protocol` + +NewProtocol instantiates a new Protocol 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 + +### NewProtocolWithDefaults + +`func NewProtocolWithDefaults() *Protocol` + +NewProtocolWithDefaults instantiates a new Protocol object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/PublishedApiPath.md b/internal/CapifPublishService/docs/PublishedApiPath.md new file mode 100644 index 0000000000000000000000000000000000000000..57cfe6c9650882b25fb02ec80a63ef7f0ee0ee41 --- /dev/null +++ b/internal/CapifPublishService/docs/PublishedApiPath.md @@ -0,0 +1,56 @@ +# PublishedApiPath + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CcfIds** | Pointer to **[]string** | A list of CCF identifiers where the service API is already published. | [optional] + +## Methods + +### NewPublishedApiPath + +`func NewPublishedApiPath() *PublishedApiPath` + +NewPublishedApiPath instantiates a new PublishedApiPath 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 + +### NewPublishedApiPathWithDefaults + +`func NewPublishedApiPathWithDefaults() *PublishedApiPath` + +NewPublishedApiPathWithDefaults instantiates a new PublishedApiPath object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCcfIds + +`func (o *PublishedApiPath) GetCcfIds() []string` + +GetCcfIds returns the CcfIds field if non-nil, zero value otherwise. + +### GetCcfIdsOk + +`func (o *PublishedApiPath) GetCcfIdsOk() (*[]string, bool)` + +GetCcfIdsOk returns a tuple with the CcfIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfIds + +`func (o *PublishedApiPath) SetCcfIds(v []string)` + +SetCcfIds sets CcfIds field to given value. + +### HasCcfIds + +`func (o *PublishedApiPath) HasCcfIds() bool` + +HasCcfIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/RelativeCartesianLocation.md b/internal/CapifPublishService/docs/RelativeCartesianLocation.md new file mode 100644 index 0000000000000000000000000000000000000000..e43596ff74165438f506bc441546699928e107d3 --- /dev/null +++ b/internal/CapifPublishService/docs/RelativeCartesianLocation.md @@ -0,0 +1,98 @@ +# RelativeCartesianLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**X** | **float32** | string with format 'float' as defined in OpenAPI. | +**Y** | **float32** | string with format 'float' as defined in OpenAPI. | +**Z** | Pointer to **float32** | string with format 'float' as defined in OpenAPI. | [optional] + +## Methods + +### NewRelativeCartesianLocation + +`func NewRelativeCartesianLocation(x float32, y float32, ) *RelativeCartesianLocation` + +NewRelativeCartesianLocation instantiates a new RelativeCartesianLocation 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 + +### NewRelativeCartesianLocationWithDefaults + +`func NewRelativeCartesianLocationWithDefaults() *RelativeCartesianLocation` + +NewRelativeCartesianLocationWithDefaults instantiates a new RelativeCartesianLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetX + +`func (o *RelativeCartesianLocation) GetX() float32` + +GetX returns the X field if non-nil, zero value otherwise. + +### GetXOk + +`func (o *RelativeCartesianLocation) GetXOk() (*float32, bool)` + +GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX + +`func (o *RelativeCartesianLocation) SetX(v float32)` + +SetX sets X field to given value. + + +### GetY + +`func (o *RelativeCartesianLocation) GetY() float32` + +GetY returns the Y field if non-nil, zero value otherwise. + +### GetYOk + +`func (o *RelativeCartesianLocation) GetYOk() (*float32, bool)` + +GetYOk returns a tuple with the Y field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetY + +`func (o *RelativeCartesianLocation) SetY(v float32)` + +SetY sets Y field to given value. + + +### GetZ + +`func (o *RelativeCartesianLocation) GetZ() float32` + +GetZ returns the Z field if non-nil, zero value otherwise. + +### GetZOk + +`func (o *RelativeCartesianLocation) GetZOk() (*float32, bool)` + +GetZOk returns a tuple with the Z field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZ + +`func (o *RelativeCartesianLocation) SetZ(v float32)` + +SetZ sets Z field to given value. + +### HasZ + +`func (o *RelativeCartesianLocation) HasZ() bool` + +HasZ returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Resource.md b/internal/CapifPublishService/docs/Resource.md new file mode 100644 index 0000000000000000000000000000000000000000..a21f56e669c62e935e6fcd02a881166d4e7f953e --- /dev/null +++ b/internal/CapifPublishService/docs/Resource.md @@ -0,0 +1,171 @@ +# Resource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceName** | **string** | Resource name | +**CommType** | [**CommunicationType**](CommunicationType.md) | | +**Uri** | **string** | Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | +**CustOpName** | Pointer to **string** | it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. | [optional] +**Operations** | Pointer to [**[]Operation**](Operation.md) | Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. | [optional] +**Description** | Pointer to **string** | Text description of the API resource | [optional] + +## Methods + +### NewResource + +`func NewResource(resourceName string, commType CommunicationType, uri string, ) *Resource` + +NewResource instantiates a new Resource 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 + +### NewResourceWithDefaults + +`func NewResourceWithDefaults() *Resource` + +NewResourceWithDefaults instantiates a new Resource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResourceName + +`func (o *Resource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *Resource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *Resource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + + +### GetCommType + +`func (o *Resource) GetCommType() CommunicationType` + +GetCommType returns the CommType field if non-nil, zero value otherwise. + +### GetCommTypeOk + +`func (o *Resource) GetCommTypeOk() (*CommunicationType, bool)` + +GetCommTypeOk returns a tuple with the CommType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommType + +`func (o *Resource) SetCommType(v CommunicationType)` + +SetCommType sets CommType field to given value. + + +### GetUri + +`func (o *Resource) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *Resource) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *Resource) SetUri(v string)` + +SetUri sets Uri field to given value. + + +### GetCustOpName + +`func (o *Resource) GetCustOpName() string` + +GetCustOpName returns the CustOpName field if non-nil, zero value otherwise. + +### GetCustOpNameOk + +`func (o *Resource) GetCustOpNameOk() (*string, bool)` + +GetCustOpNameOk returns a tuple with the CustOpName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOpName + +`func (o *Resource) SetCustOpName(v string)` + +SetCustOpName sets CustOpName field to given value. + +### HasCustOpName + +`func (o *Resource) HasCustOpName() bool` + +HasCustOpName returns a boolean if a field has been set. + +### GetOperations + +`func (o *Resource) GetOperations() []Operation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *Resource) GetOperationsOk() (*[]Operation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *Resource) SetOperations(v []Operation)` + +SetOperations sets Operations field to given value. + +### HasOperations + +`func (o *Resource) HasOperations() bool` + +HasOperations returns a boolean if a field has been set. + +### GetDescription + +`func (o *Resource) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Resource) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Resource) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Resource) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/SecurityMethod.md b/internal/CapifPublishService/docs/SecurityMethod.md new file mode 100644 index 0000000000000000000000000000000000000000..c2bc7c0499975a1153aa5a5c0ab0343ea2c218c8 --- /dev/null +++ b/internal/CapifPublishService/docs/SecurityMethod.md @@ -0,0 +1,30 @@ +# SecurityMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSecurityMethod + +`func NewSecurityMethod() *SecurityMethod` + +NewSecurityMethod instantiates a new SecurityMethod 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 + +### NewSecurityMethodWithDefaults + +`func NewSecurityMethodWithDefaults() *SecurityMethod` + +NewSecurityMethodWithDefaults instantiates a new SecurityMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/ServiceAPIDescription.md b/internal/CapifPublishService/docs/ServiceAPIDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..50fce14878b96816e5ae5f42c65ddf6ec886447c --- /dev/null +++ b/internal/CapifPublishService/docs/ServiceAPIDescription.md @@ -0,0 +1,285 @@ +# ServiceAPIDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiName** | **string** | API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. | +**ApiId** | Pointer to **string** | API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). | [optional] +**AefProfiles** | Pointer to [**[]AefProfile**](AefProfile.md) | AEF profile information, which includes the exposed API details (e.g. protocol). | [optional] +**Description** | Pointer to **string** | Text description of the API | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**ShareableInfo** | Pointer to [**ShareableInformation**](ShareableInformation.md) | | [optional] +**ServiceAPICategory** | Pointer to **string** | | [optional] +**ApiSuppFeats** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**PubApiPath** | Pointer to [**PublishedApiPath**](PublishedApiPath.md) | | [optional] +**CcfId** | Pointer to **string** | CAPIF core function identifier. | [optional] + +## Methods + +### NewServiceAPIDescription + +`func NewServiceAPIDescription(apiName string, ) *ServiceAPIDescription` + +NewServiceAPIDescription instantiates a new ServiceAPIDescription 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 + +### NewServiceAPIDescriptionWithDefaults + +`func NewServiceAPIDescriptionWithDefaults() *ServiceAPIDescription` + +NewServiceAPIDescriptionWithDefaults instantiates a new ServiceAPIDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiName + +`func (o *ServiceAPIDescription) GetApiName() string` + +GetApiName returns the ApiName field if non-nil, zero value otherwise. + +### GetApiNameOk + +`func (o *ServiceAPIDescription) GetApiNameOk() (*string, bool)` + +GetApiNameOk returns a tuple with the ApiName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiName + +`func (o *ServiceAPIDescription) SetApiName(v string)` + +SetApiName sets ApiName field to given value. + + +### GetApiId + +`func (o *ServiceAPIDescription) GetApiId() string` + +GetApiId returns the ApiId field if non-nil, zero value otherwise. + +### GetApiIdOk + +`func (o *ServiceAPIDescription) GetApiIdOk() (*string, bool)` + +GetApiIdOk returns a tuple with the ApiId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiId + +`func (o *ServiceAPIDescription) SetApiId(v string)` + +SetApiId sets ApiId field to given value. + +### HasApiId + +`func (o *ServiceAPIDescription) HasApiId() bool` + +HasApiId returns a boolean if a field has been set. + +### GetAefProfiles + +`func (o *ServiceAPIDescription) GetAefProfiles() []AefProfile` + +GetAefProfiles returns the AefProfiles field if non-nil, zero value otherwise. + +### GetAefProfilesOk + +`func (o *ServiceAPIDescription) GetAefProfilesOk() (*[]AefProfile, bool)` + +GetAefProfilesOk returns a tuple with the AefProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefProfiles + +`func (o *ServiceAPIDescription) SetAefProfiles(v []AefProfile)` + +SetAefProfiles sets AefProfiles field to given value. + +### HasAefProfiles + +`func (o *ServiceAPIDescription) HasAefProfiles() bool` + +HasAefProfiles returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAPIDescription) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAPIDescription) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAPIDescription) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAPIDescription) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ServiceAPIDescription) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ServiceAPIDescription) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ServiceAPIDescription) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ServiceAPIDescription) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + +### GetShareableInfo + +`func (o *ServiceAPIDescription) GetShareableInfo() ShareableInformation` + +GetShareableInfo returns the ShareableInfo field if non-nil, zero value otherwise. + +### GetShareableInfoOk + +`func (o *ServiceAPIDescription) GetShareableInfoOk() (*ShareableInformation, bool)` + +GetShareableInfoOk returns a tuple with the ShareableInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareableInfo + +`func (o *ServiceAPIDescription) SetShareableInfo(v ShareableInformation)` + +SetShareableInfo sets ShareableInfo field to given value. + +### HasShareableInfo + +`func (o *ServiceAPIDescription) HasShareableInfo() bool` + +HasShareableInfo returns a boolean if a field has been set. + +### GetServiceAPICategory + +`func (o *ServiceAPIDescription) GetServiceAPICategory() string` + +GetServiceAPICategory returns the ServiceAPICategory field if non-nil, zero value otherwise. + +### GetServiceAPICategoryOk + +`func (o *ServiceAPIDescription) GetServiceAPICategoryOk() (*string, bool)` + +GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAPICategory + +`func (o *ServiceAPIDescription) SetServiceAPICategory(v string)` + +SetServiceAPICategory sets ServiceAPICategory field to given value. + +### HasServiceAPICategory + +`func (o *ServiceAPIDescription) HasServiceAPICategory() bool` + +HasServiceAPICategory returns a boolean if a field has been set. + +### GetApiSuppFeats + +`func (o *ServiceAPIDescription) GetApiSuppFeats() string` + +GetApiSuppFeats returns the ApiSuppFeats field if non-nil, zero value otherwise. + +### GetApiSuppFeatsOk + +`func (o *ServiceAPIDescription) GetApiSuppFeatsOk() (*string, bool)` + +GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiSuppFeats + +`func (o *ServiceAPIDescription) SetApiSuppFeats(v string)` + +SetApiSuppFeats sets ApiSuppFeats field to given value. + +### HasApiSuppFeats + +`func (o *ServiceAPIDescription) HasApiSuppFeats() bool` + +HasApiSuppFeats returns a boolean if a field has been set. + +### GetPubApiPath + +`func (o *ServiceAPIDescription) GetPubApiPath() PublishedApiPath` + +GetPubApiPath returns the PubApiPath field if non-nil, zero value otherwise. + +### GetPubApiPathOk + +`func (o *ServiceAPIDescription) GetPubApiPathOk() (*PublishedApiPath, bool)` + +GetPubApiPathOk returns a tuple with the PubApiPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPubApiPath + +`func (o *ServiceAPIDescription) SetPubApiPath(v PublishedApiPath)` + +SetPubApiPath sets PubApiPath field to given value. + +### HasPubApiPath + +`func (o *ServiceAPIDescription) HasPubApiPath() bool` + +HasPubApiPath returns a boolean if a field has been set. + +### GetCcfId + +`func (o *ServiceAPIDescription) GetCcfId() string` + +GetCcfId returns the CcfId field if non-nil, zero value otherwise. + +### GetCcfIdOk + +`func (o *ServiceAPIDescription) GetCcfIdOk() (*string, bool)` + +GetCcfIdOk returns a tuple with the CcfId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfId + +`func (o *ServiceAPIDescription) SetCcfId(v string)` + +SetCcfId sets CcfId field to given value. + +### HasCcfId + +`func (o *ServiceAPIDescription) HasCcfId() bool` + +HasCcfId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/ServiceAPIDescriptionPatch.md b/internal/CapifPublishService/docs/ServiceAPIDescriptionPatch.md new file mode 100644 index 0000000000000000000000000000000000000000..0c42365a69394108f9e3af8d589433cfa2ba0dcf --- /dev/null +++ b/internal/CapifPublishService/docs/ServiceAPIDescriptionPatch.md @@ -0,0 +1,212 @@ +# ServiceAPIDescriptionPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AefProfiles** | Pointer to [**[]AefProfile**](AefProfile.md) | | [optional] +**Description** | Pointer to **string** | Text description of the API | [optional] +**ShareableInfo** | Pointer to [**ShareableInformation**](ShareableInformation.md) | | [optional] +**ServiceAPICategory** | Pointer to **string** | | [optional] +**ApiSuppFeats** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**PubApiPath** | Pointer to [**PublishedApiPath**](PublishedApiPath.md) | | [optional] +**CcfId** | Pointer to **string** | CAPIF core function identifier. | [optional] + +## Methods + +### NewServiceAPIDescriptionPatch + +`func NewServiceAPIDescriptionPatch() *ServiceAPIDescriptionPatch` + +NewServiceAPIDescriptionPatch instantiates a new ServiceAPIDescriptionPatch 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 + +### NewServiceAPIDescriptionPatchWithDefaults + +`func NewServiceAPIDescriptionPatchWithDefaults() *ServiceAPIDescriptionPatch` + +NewServiceAPIDescriptionPatchWithDefaults instantiates a new ServiceAPIDescriptionPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAefProfiles + +`func (o *ServiceAPIDescriptionPatch) GetAefProfiles() []AefProfile` + +GetAefProfiles returns the AefProfiles field if non-nil, zero value otherwise. + +### GetAefProfilesOk + +`func (o *ServiceAPIDescriptionPatch) GetAefProfilesOk() (*[]AefProfile, bool)` + +GetAefProfilesOk returns a tuple with the AefProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefProfiles + +`func (o *ServiceAPIDescriptionPatch) SetAefProfiles(v []AefProfile)` + +SetAefProfiles sets AefProfiles field to given value. + +### HasAefProfiles + +`func (o *ServiceAPIDescriptionPatch) HasAefProfiles() bool` + +HasAefProfiles returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAPIDescriptionPatch) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAPIDescriptionPatch) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAPIDescriptionPatch) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAPIDescriptionPatch) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetShareableInfo + +`func (o *ServiceAPIDescriptionPatch) GetShareableInfo() ShareableInformation` + +GetShareableInfo returns the ShareableInfo field if non-nil, zero value otherwise. + +### GetShareableInfoOk + +`func (o *ServiceAPIDescriptionPatch) GetShareableInfoOk() (*ShareableInformation, bool)` + +GetShareableInfoOk returns a tuple with the ShareableInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareableInfo + +`func (o *ServiceAPIDescriptionPatch) SetShareableInfo(v ShareableInformation)` + +SetShareableInfo sets ShareableInfo field to given value. + +### HasShareableInfo + +`func (o *ServiceAPIDescriptionPatch) HasShareableInfo() bool` + +HasShareableInfo returns a boolean if a field has been set. + +### GetServiceAPICategory + +`func (o *ServiceAPIDescriptionPatch) GetServiceAPICategory() string` + +GetServiceAPICategory returns the ServiceAPICategory field if non-nil, zero value otherwise. + +### GetServiceAPICategoryOk + +`func (o *ServiceAPIDescriptionPatch) GetServiceAPICategoryOk() (*string, bool)` + +GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAPICategory + +`func (o *ServiceAPIDescriptionPatch) SetServiceAPICategory(v string)` + +SetServiceAPICategory sets ServiceAPICategory field to given value. + +### HasServiceAPICategory + +`func (o *ServiceAPIDescriptionPatch) HasServiceAPICategory() bool` + +HasServiceAPICategory returns a boolean if a field has been set. + +### GetApiSuppFeats + +`func (o *ServiceAPIDescriptionPatch) GetApiSuppFeats() string` + +GetApiSuppFeats returns the ApiSuppFeats field if non-nil, zero value otherwise. + +### GetApiSuppFeatsOk + +`func (o *ServiceAPIDescriptionPatch) GetApiSuppFeatsOk() (*string, bool)` + +GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiSuppFeats + +`func (o *ServiceAPIDescriptionPatch) SetApiSuppFeats(v string)` + +SetApiSuppFeats sets ApiSuppFeats field to given value. + +### HasApiSuppFeats + +`func (o *ServiceAPIDescriptionPatch) HasApiSuppFeats() bool` + +HasApiSuppFeats returns a boolean if a field has been set. + +### GetPubApiPath + +`func (o *ServiceAPIDescriptionPatch) GetPubApiPath() PublishedApiPath` + +GetPubApiPath returns the PubApiPath field if non-nil, zero value otherwise. + +### GetPubApiPathOk + +`func (o *ServiceAPIDescriptionPatch) GetPubApiPathOk() (*PublishedApiPath, bool)` + +GetPubApiPathOk returns a tuple with the PubApiPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPubApiPath + +`func (o *ServiceAPIDescriptionPatch) SetPubApiPath(v PublishedApiPath)` + +SetPubApiPath sets PubApiPath field to given value. + +### HasPubApiPath + +`func (o *ServiceAPIDescriptionPatch) HasPubApiPath() bool` + +HasPubApiPath returns a boolean if a field has been set. + +### GetCcfId + +`func (o *ServiceAPIDescriptionPatch) GetCcfId() string` + +GetCcfId returns the CcfId field if non-nil, zero value otherwise. + +### GetCcfIdOk + +`func (o *ServiceAPIDescriptionPatch) GetCcfIdOk() (*string, bool)` + +GetCcfIdOk returns a tuple with the CcfId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcfId + +`func (o *ServiceAPIDescriptionPatch) SetCcfId(v string)` + +SetCcfId sets CcfId field to given value. + +### HasCcfId + +`func (o *ServiceAPIDescriptionPatch) HasCcfId() bool` + +HasCcfId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/ShareableInformation.md b/internal/CapifPublishService/docs/ShareableInformation.md new file mode 100644 index 0000000000000000000000000000000000000000..c96c533fd46eb16a6d5f89ed89135bfe28755d08 --- /dev/null +++ b/internal/CapifPublishService/docs/ShareableInformation.md @@ -0,0 +1,77 @@ +# ShareableInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsShareable** | **bool** | Set to \"true\" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to \"false\". | +**CapifProvDoms** | Pointer to **[]string** | List of CAPIF provider domains to which the service API information to be shared. | [optional] + +## Methods + +### NewShareableInformation + +`func NewShareableInformation(isShareable bool, ) *ShareableInformation` + +NewShareableInformation instantiates a new ShareableInformation 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 + +### NewShareableInformationWithDefaults + +`func NewShareableInformationWithDefaults() *ShareableInformation` + +NewShareableInformationWithDefaults instantiates a new ShareableInformation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsShareable + +`func (o *ShareableInformation) GetIsShareable() bool` + +GetIsShareable returns the IsShareable field if non-nil, zero value otherwise. + +### GetIsShareableOk + +`func (o *ShareableInformation) GetIsShareableOk() (*bool, bool)` + +GetIsShareableOk returns a tuple with the IsShareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsShareable + +`func (o *ShareableInformation) SetIsShareable(v bool)` + +SetIsShareable sets IsShareable field to given value. + + +### GetCapifProvDoms + +`func (o *ShareableInformation) GetCapifProvDoms() []string` + +GetCapifProvDoms returns the CapifProvDoms field if non-nil, zero value otherwise. + +### GetCapifProvDomsOk + +`func (o *ShareableInformation) GetCapifProvDomsOk() (*[]string, bool)` + +GetCapifProvDomsOk returns a tuple with the CapifProvDoms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapifProvDoms + +`func (o *ShareableInformation) SetCapifProvDoms(v []string)` + +SetCapifProvDoms sets CapifProvDoms field to given value. + +### HasCapifProvDoms + +`func (o *ShareableInformation) HasCapifProvDoms() bool` + +HasCapifProvDoms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/SupportedGADShapes.md b/internal/CapifPublishService/docs/SupportedGADShapes.md new file mode 100644 index 0000000000000000000000000000000000000000..f5d216ecf841b87ac5ee6c06892e087503c504e9 --- /dev/null +++ b/internal/CapifPublishService/docs/SupportedGADShapes.md @@ -0,0 +1,30 @@ +# SupportedGADShapes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSupportedGADShapes + +`func NewSupportedGADShapes() *SupportedGADShapes` + +NewSupportedGADShapes instantiates a new SupportedGADShapes 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 + +### NewSupportedGADShapesWithDefaults + +`func NewSupportedGADShapesWithDefaults() *SupportedGADShapes` + +NewSupportedGADShapesWithDefaults instantiates a new SupportedGADShapes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/UncertaintyEllipse.md b/internal/CapifPublishService/docs/UncertaintyEllipse.md new file mode 100644 index 0000000000000000000000000000000000000000..c183d397df665dd9e97670f9de7f1318351d4f15 --- /dev/null +++ b/internal/CapifPublishService/docs/UncertaintyEllipse.md @@ -0,0 +1,93 @@ +# UncertaintyEllipse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SemiMajor** | **float32** | Indicates value of uncertainty. | +**SemiMinor** | **float32** | Indicates value of uncertainty. | +**OrientationMajor** | **int32** | Indicates value of orientation angle. | + +## Methods + +### NewUncertaintyEllipse + +`func NewUncertaintyEllipse(semiMajor float32, semiMinor float32, orientationMajor int32, ) *UncertaintyEllipse` + +NewUncertaintyEllipse instantiates a new UncertaintyEllipse 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 + +### NewUncertaintyEllipseWithDefaults + +`func NewUncertaintyEllipseWithDefaults() *UncertaintyEllipse` + +NewUncertaintyEllipseWithDefaults instantiates a new UncertaintyEllipse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSemiMajor + +`func (o *UncertaintyEllipse) GetSemiMajor() float32` + +GetSemiMajor returns the SemiMajor field if non-nil, zero value otherwise. + +### GetSemiMajorOk + +`func (o *UncertaintyEllipse) GetSemiMajorOk() (*float32, bool)` + +GetSemiMajorOk returns a tuple with the SemiMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMajor + +`func (o *UncertaintyEllipse) SetSemiMajor(v float32)` + +SetSemiMajor sets SemiMajor field to given value. + + +### GetSemiMinor + +`func (o *UncertaintyEllipse) GetSemiMinor() float32` + +GetSemiMinor returns the SemiMinor field if non-nil, zero value otherwise. + +### GetSemiMinorOk + +`func (o *UncertaintyEllipse) GetSemiMinorOk() (*float32, bool)` + +GetSemiMinorOk returns a tuple with the SemiMinor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMinor + +`func (o *UncertaintyEllipse) SetSemiMinor(v float32)` + +SetSemiMinor sets SemiMinor field to given value. + + +### GetOrientationMajor + +`func (o *UncertaintyEllipse) GetOrientationMajor() int32` + +GetOrientationMajor returns the OrientationMajor field if non-nil, zero value otherwise. + +### GetOrientationMajorOk + +`func (o *UncertaintyEllipse) GetOrientationMajorOk() (*int32, bool)` + +GetOrientationMajorOk returns a tuple with the OrientationMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrientationMajor + +`func (o *UncertaintyEllipse) SetOrientationMajor(v int32)` + +SetOrientationMajor sets OrientationMajor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/UncertaintyEllipsoid.md b/internal/CapifPublishService/docs/UncertaintyEllipsoid.md new file mode 100644 index 0000000000000000000000000000000000000000..8ef0a2cea838fad4083570661cd06099ac73d6db --- /dev/null +++ b/internal/CapifPublishService/docs/UncertaintyEllipsoid.md @@ -0,0 +1,114 @@ +# UncertaintyEllipsoid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SemiMajor** | **float32** | Indicates value of uncertainty. | +**SemiMinor** | **float32** | Indicates value of uncertainty. | +**Vertical** | **float32** | Indicates value of uncertainty. | +**OrientationMajor** | **int32** | Indicates value of orientation angle. | + +## Methods + +### NewUncertaintyEllipsoid + +`func NewUncertaintyEllipsoid(semiMajor float32, semiMinor float32, vertical float32, orientationMajor int32, ) *UncertaintyEllipsoid` + +NewUncertaintyEllipsoid instantiates a new UncertaintyEllipsoid 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 + +### NewUncertaintyEllipsoidWithDefaults + +`func NewUncertaintyEllipsoidWithDefaults() *UncertaintyEllipsoid` + +NewUncertaintyEllipsoidWithDefaults instantiates a new UncertaintyEllipsoid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSemiMajor + +`func (o *UncertaintyEllipsoid) GetSemiMajor() float32` + +GetSemiMajor returns the SemiMajor field if non-nil, zero value otherwise. + +### GetSemiMajorOk + +`func (o *UncertaintyEllipsoid) GetSemiMajorOk() (*float32, bool)` + +GetSemiMajorOk returns a tuple with the SemiMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMajor + +`func (o *UncertaintyEllipsoid) SetSemiMajor(v float32)` + +SetSemiMajor sets SemiMajor field to given value. + + +### GetSemiMinor + +`func (o *UncertaintyEllipsoid) GetSemiMinor() float32` + +GetSemiMinor returns the SemiMinor field if non-nil, zero value otherwise. + +### GetSemiMinorOk + +`func (o *UncertaintyEllipsoid) GetSemiMinorOk() (*float32, bool)` + +GetSemiMinorOk returns a tuple with the SemiMinor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSemiMinor + +`func (o *UncertaintyEllipsoid) SetSemiMinor(v float32)` + +SetSemiMinor sets SemiMinor field to given value. + + +### GetVertical + +`func (o *UncertaintyEllipsoid) GetVertical() float32` + +GetVertical returns the Vertical field if non-nil, zero value otherwise. + +### GetVerticalOk + +`func (o *UncertaintyEllipsoid) GetVerticalOk() (*float32, bool)` + +GetVerticalOk returns a tuple with the Vertical field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVertical + +`func (o *UncertaintyEllipsoid) SetVertical(v float32)` + +SetVertical sets Vertical field to given value. + + +### GetOrientationMajor + +`func (o *UncertaintyEllipsoid) GetOrientationMajor() int32` + +GetOrientationMajor returns the OrientationMajor field if non-nil, zero value otherwise. + +### GetOrientationMajorOk + +`func (o *UncertaintyEllipsoid) GetOrientationMajorOk() (*int32, bool)` + +GetOrientationMajorOk returns a tuple with the OrientationMajor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrientationMajor + +`func (o *UncertaintyEllipsoid) SetOrientationMajor(v int32)` + +SetOrientationMajor sets OrientationMajor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/docs/Version.md b/internal/CapifPublishService/docs/Version.md new file mode 100644 index 0000000000000000000000000000000000000000..4c153842c87b93e6fbad2f651bc9952dda9c92bc --- /dev/null +++ b/internal/CapifPublishService/docs/Version.md @@ -0,0 +1,129 @@ +# Version + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **string** | API major version in URI (e.g. v1) | +**Expiry** | Pointer to **time.Time** | string with format \"date-time\" as defined in OpenAPI. | [optional] +**Resources** | Pointer to [**[]Resource**](Resource.md) | Resources supported by the API. | [optional] +**CustOperations** | Pointer to [**[]CustomOperation**](CustomOperation.md) | Custom operations without resource association. | [optional] + +## Methods + +### NewVersion + +`func NewVersion(apiVersion string, ) *Version` + +NewVersion instantiates a new Version 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 + +### NewVersionWithDefaults + +`func NewVersionWithDefaults() *Version` + +NewVersionWithDefaults instantiates a new Version object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *Version) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *Version) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *Version) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + + +### GetExpiry + +`func (o *Version) GetExpiry() time.Time` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *Version) GetExpiryOk() (*time.Time, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *Version) SetExpiry(v time.Time)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *Version) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + +### GetResources + +`func (o *Version) GetResources() []Resource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *Version) GetResourcesOk() (*[]Resource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *Version) SetResources(v []Resource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *Version) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetCustOperations + +`func (o *Version) GetCustOperations() []CustomOperation` + +GetCustOperations returns the CustOperations field if non-nil, zero value otherwise. + +### GetCustOperationsOk + +`func (o *Version) GetCustOperationsOk() (*[]CustomOperation, bool)` + +GetCustOperationsOk returns a tuple with the CustOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOperations + +`func (o *Version) SetCustOperations(v []CustomOperation)` + +SetCustOperations sets CustOperations field to given value. + +### HasCustOperations + +`func (o *Version) HasCustOperations() bool` + +HasCustOperations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifPublishService/go.sum b/internal/CapifPublishService/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..c966c8ddfd0dc3dad992126bb0eb50503ecce01a --- /dev/null +++ b/internal/CapifPublishService/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/internal/CapifPublishService/model_aef_location.go b/internal/CapifPublishService/model_aef_location.go new file mode 100644 index 0000000000000000000000000000000000000000..4b26de4977f3825693ac9ac4283c3d862aa1c072 --- /dev/null +++ b/internal/CapifPublishService/model_aef_location.go @@ -0,0 +1,199 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the AefLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AefLocation{} + +// AefLocation The location information (e.g. civic address, GPS coordinates, data center ID) where the AEF providing the service API is located. +type AefLocation struct { + CivicAddr *CivicAddress `json:"civicAddr,omitempty"` + GeoArea *GeographicArea `json:"geoArea,omitempty"` + // Identifies the data center where the AEF providing the service API is located. + DcId *string `json:"dcId,omitempty"` +} + +// NewAefLocation instantiates a new AefLocation 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 NewAefLocation() *AefLocation { + this := AefLocation{} + return &this +} + +// NewAefLocationWithDefaults instantiates a new AefLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAefLocationWithDefaults() *AefLocation { + this := AefLocation{} + return &this +} + +// GetCivicAddr returns the CivicAddr field value if set, zero value otherwise. +func (o *AefLocation) GetCivicAddr() CivicAddress { + if o == nil || IsNil(o.CivicAddr) { + var ret CivicAddress + return ret + } + return *o.CivicAddr +} + +// GetCivicAddrOk returns a tuple with the CivicAddr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetCivicAddrOk() (*CivicAddress, bool) { + if o == nil || IsNil(o.CivicAddr) { + return nil, false + } + return o.CivicAddr, true +} + +// HasCivicAddr returns a boolean if a field has been set. +func (o *AefLocation) HasCivicAddr() bool { + if o != nil && !IsNil(o.CivicAddr) { + return true + } + + return false +} + +// SetCivicAddr gets a reference to the given CivicAddress and assigns it to the CivicAddr field. +func (o *AefLocation) SetCivicAddr(v CivicAddress) { + o.CivicAddr = &v +} + +// GetGeoArea returns the GeoArea field value if set, zero value otherwise. +func (o *AefLocation) GetGeoArea() GeographicArea { + if o == nil || IsNil(o.GeoArea) { + var ret GeographicArea + return ret + } + return *o.GeoArea +} + +// GetGeoAreaOk returns a tuple with the GeoArea field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetGeoAreaOk() (*GeographicArea, bool) { + if o == nil || IsNil(o.GeoArea) { + return nil, false + } + return o.GeoArea, true +} + +// HasGeoArea returns a boolean if a field has been set. +func (o *AefLocation) HasGeoArea() bool { + if o != nil && !IsNil(o.GeoArea) { + return true + } + + return false +} + +// SetGeoArea gets a reference to the given GeographicArea and assigns it to the GeoArea field. +func (o *AefLocation) SetGeoArea(v GeographicArea) { + o.GeoArea = &v +} + +// GetDcId returns the DcId field value if set, zero value otherwise. +func (o *AefLocation) GetDcId() string { + if o == nil || IsNil(o.DcId) { + var ret string + return ret + } + return *o.DcId +} + +// GetDcIdOk returns a tuple with the DcId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefLocation) GetDcIdOk() (*string, bool) { + if o == nil || IsNil(o.DcId) { + return nil, false + } + return o.DcId, true +} + +// HasDcId returns a boolean if a field has been set. +func (o *AefLocation) HasDcId() bool { + if o != nil && !IsNil(o.DcId) { + return true + } + + return false +} + +// SetDcId gets a reference to the given string and assigns it to the DcId field. +func (o *AefLocation) SetDcId(v string) { + o.DcId = &v +} + +func (o AefLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AefLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CivicAddr) { + toSerialize["civicAddr"] = o.CivicAddr + } + if !IsNil(o.GeoArea) { + toSerialize["geoArea"] = o.GeoArea + } + if !IsNil(o.DcId) { + toSerialize["dcId"] = o.DcId + } + return toSerialize, nil +} + +type NullableAefLocation struct { + value *AefLocation + isSet bool +} + +func (v NullableAefLocation) Get() *AefLocation { + return v.value +} + +func (v *NullableAefLocation) Set(val *AefLocation) { + v.value = val + v.isSet = true +} + +func (v NullableAefLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableAefLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAefLocation(val *AefLocation) *NullableAefLocation { + return &NullableAefLocation{value: val, isSet: true} +} + +func (v NullableAefLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAefLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_aef_profile.go b/internal/CapifPublishService/model_aef_profile.go new file mode 100644 index 0000000000000000000000000000000000000000..13801f9f05fd6451566d362c4f042cdeec1663ea --- /dev/null +++ b/internal/CapifPublishService/model_aef_profile.go @@ -0,0 +1,405 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AefProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AefProfile{} + +// AefProfile Represents the AEF profile data. +type AefProfile struct { + // Identifier of the API exposing function + AefId string `json:"aefId"` + // API version + Versions []Version `json:"versions"` + Protocol *Protocol `json:"protocol,omitempty"` + DataFormat *DataFormat `json:"dataFormat,omitempty"` + // Security methods supported by the AEF + SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"` + // Domain to which API belongs to + DomainName *string `json:"domainName,omitempty"` + // Interface details + InterfaceDescriptions []InterfaceDescription `json:"interfaceDescriptions,omitempty"` + AefLocation *AefLocation `json:"aefLocation,omitempty"` +} + +type _AefProfile AefProfile + +// NewAefProfile instantiates a new AefProfile 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 NewAefProfile(aefId string, versions []Version) *AefProfile { + this := AefProfile{} + return &this +} + +// NewAefProfileWithDefaults instantiates a new AefProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAefProfileWithDefaults() *AefProfile { + this := AefProfile{} + return &this +} + +// GetAefId returns the AefId field value +func (o *AefProfile) GetAefId() string { + if o == nil { + var ret string + return ret + } + + return o.AefId +} + +// GetAefIdOk returns a tuple with the AefId field value +// and a boolean to check if the value has been set. +func (o *AefProfile) GetAefIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AefId, true +} + +// SetAefId sets field value +func (o *AefProfile) SetAefId(v string) { + o.AefId = v +} + +// GetVersions returns the Versions field value +func (o *AefProfile) GetVersions() []Version { + if o == nil { + var ret []Version + return ret + } + + return o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value +// and a boolean to check if the value has been set. +func (o *AefProfile) GetVersionsOk() ([]Version, bool) { + if o == nil { + return nil, false + } + return o.Versions, true +} + +// SetVersions sets field value +func (o *AefProfile) SetVersions(v []Version) { + o.Versions = v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *AefProfile) GetProtocol() Protocol { + if o == nil || IsNil(o.Protocol) { + var ret Protocol + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetProtocolOk() (*Protocol, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *AefProfile) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given Protocol and assigns it to the Protocol field. +func (o *AefProfile) SetProtocol(v Protocol) { + o.Protocol = &v +} + +// GetDataFormat returns the DataFormat field value if set, zero value otherwise. +func (o *AefProfile) GetDataFormat() DataFormat { + if o == nil || IsNil(o.DataFormat) { + var ret DataFormat + return ret + } + return *o.DataFormat +} + +// GetDataFormatOk returns a tuple with the DataFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetDataFormatOk() (*DataFormat, bool) { + if o == nil || IsNil(o.DataFormat) { + return nil, false + } + return o.DataFormat, true +} + +// HasDataFormat returns a boolean if a field has been set. +func (o *AefProfile) HasDataFormat() bool { + if o != nil && !IsNil(o.DataFormat) { + return true + } + + return false +} + +// SetDataFormat gets a reference to the given DataFormat and assigns it to the DataFormat field. +func (o *AefProfile) SetDataFormat(v DataFormat) { + o.DataFormat = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *AefProfile) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *AefProfile) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *AefProfile) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +// GetDomainName returns the DomainName field value if set, zero value otherwise. +func (o *AefProfile) GetDomainName() string { + if o == nil || IsNil(o.DomainName) { + var ret string + return ret + } + return *o.DomainName +} + +// GetDomainNameOk returns a tuple with the DomainName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetDomainNameOk() (*string, bool) { + if o == nil || IsNil(o.DomainName) { + return nil, false + } + return o.DomainName, true +} + +// HasDomainName returns a boolean if a field has been set. +func (o *AefProfile) HasDomainName() bool { + if o != nil && !IsNil(o.DomainName) { + return true + } + + return false +} + +// SetDomainName gets a reference to the given string and assigns it to the DomainName field. +func (o *AefProfile) SetDomainName(v string) { + o.DomainName = &v +} + +// GetInterfaceDescriptions returns the InterfaceDescriptions field value if set, zero value otherwise. +func (o *AefProfile) GetInterfaceDescriptions() []InterfaceDescription { + if o == nil || IsNil(o.InterfaceDescriptions) { + var ret []InterfaceDescription + return ret + } + return o.InterfaceDescriptions +} + +// GetInterfaceDescriptionsOk returns a tuple with the InterfaceDescriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetInterfaceDescriptionsOk() ([]InterfaceDescription, bool) { + if o == nil || IsNil(o.InterfaceDescriptions) { + return nil, false + } + return o.InterfaceDescriptions, true +} + +// HasInterfaceDescriptions returns a boolean if a field has been set. +func (o *AefProfile) HasInterfaceDescriptions() bool { + if o != nil && !IsNil(o.InterfaceDescriptions) { + return true + } + + return false +} + +// SetInterfaceDescriptions gets a reference to the given []InterfaceDescription and assigns it to the InterfaceDescriptions field. +func (o *AefProfile) SetInterfaceDescriptions(v []InterfaceDescription) { + o.InterfaceDescriptions = v +} + +// GetAefLocation returns the AefLocation field value if set, zero value otherwise. +func (o *AefProfile) GetAefLocation() AefLocation { + if o == nil || IsNil(o.AefLocation) { + var ret AefLocation + return ret + } + return *o.AefLocation +} + +// GetAefLocationOk returns a tuple with the AefLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AefProfile) GetAefLocationOk() (*AefLocation, bool) { + if o == nil || IsNil(o.AefLocation) { + return nil, false + } + return o.AefLocation, true +} + +// HasAefLocation returns a boolean if a field has been set. +func (o *AefProfile) HasAefLocation() bool { + if o != nil && !IsNil(o.AefLocation) { + return true + } + + return false +} + +// SetAefLocation gets a reference to the given AefLocation and assigns it to the AefLocation field. +func (o *AefProfile) SetAefLocation(v AefLocation) { + o.AefLocation = &v +} + +func (o AefProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AefProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["aefId"] = o.AefId + toSerialize["versions"] = o.Versions + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.DataFormat) { + toSerialize["dataFormat"] = o.DataFormat + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + if !IsNil(o.DomainName) { + toSerialize["domainName"] = o.DomainName + } + if !IsNil(o.InterfaceDescriptions) { + toSerialize["interfaceDescriptions"] = o.InterfaceDescriptions + } + if !IsNil(o.AefLocation) { + toSerialize["aefLocation"] = o.AefLocation + } + return toSerialize, nil +} + +func (o *AefProfile) UnmarshalJSON(data []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{ + "aefId", + "versions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAefProfile := _AefProfile{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAefProfile) + + if err != nil { + return err + } + + *o = AefProfile(varAefProfile) + + return err +} + +type NullableAefProfile struct { + value *AefProfile + isSet bool +} + +func (v NullableAefProfile) Get() *AefProfile { + return v.value +} + +func (v *NullableAefProfile) Set(val *AefProfile) { + v.value = val + v.isSet = true +} + +func (v NullableAefProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableAefProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAefProfile(val *AefProfile) *NullableAefProfile { + return &NullableAefProfile{value: val, isSet: true} +} + +func (v NullableAefProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAefProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_civic_address.go b/internal/CapifPublishService/model_civic_address.go new file mode 100644 index 0000000000000000000000000000000000000000..a8c961462b07f41ae72b9d659c30f7500caff30a --- /dev/null +++ b/internal/CapifPublishService/model_civic_address.go @@ -0,0 +1,1314 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the CivicAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CivicAddress{} + +// CivicAddress Indicates a Civic address. +type CivicAddress struct { + Country *string `json:"country,omitempty"` + A1 *string `json:"A1,omitempty"` + A2 *string `json:"A2,omitempty"` + A3 *string `json:"A3,omitempty"` + A4 *string `json:"A4,omitempty"` + A5 *string `json:"A5,omitempty"` + A6 *string `json:"A6,omitempty"` + PRD *string `json:"PRD,omitempty"` + POD *string `json:"POD,omitempty"` + STS *string `json:"STS,omitempty"` + HNO *string `json:"HNO,omitempty"` + HNS *string `json:"HNS,omitempty"` + LMK *string `json:"LMK,omitempty"` + LOC *string `json:"LOC,omitempty"` + NAM *string `json:"NAM,omitempty"` + PC *string `json:"PC,omitempty"` + BLD *string `json:"BLD,omitempty"` + UNIT *string `json:"UNIT,omitempty"` + FLR *string `json:"FLR,omitempty"` + ROOM *string `json:"ROOM,omitempty"` + PLC *string `json:"PLC,omitempty"` + PCN *string `json:"PCN,omitempty"` + POBOX *string `json:"POBOX,omitempty"` + ADDCODE *string `json:"ADDCODE,omitempty"` + SEAT *string `json:"SEAT,omitempty"` + RD *string `json:"RD,omitempty"` + RDSEC *string `json:"RDSEC,omitempty"` + RDBR *string `json:"RDBR,omitempty"` + RDSUBBR *string `json:"RDSUBBR,omitempty"` + PRM *string `json:"PRM,omitempty"` + POM *string `json:"POM,omitempty"` + UsageRules *string `json:"usageRules,omitempty"` + Method *string `json:"method,omitempty"` + ProvidedBy *string `json:"providedBy,omitempty"` +} + +// NewCivicAddress instantiates a new CivicAddress 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 NewCivicAddress() *CivicAddress { + this := CivicAddress{} + return &this +} + +// NewCivicAddressWithDefaults instantiates a new CivicAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCivicAddressWithDefaults() *CivicAddress { + this := CivicAddress{} + return &this +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *CivicAddress) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *CivicAddress) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *CivicAddress) SetCountry(v string) { + o.Country = &v +} + +// GetA1 returns the A1 field value if set, zero value otherwise. +func (o *CivicAddress) GetA1() string { + if o == nil || IsNil(o.A1) { + var ret string + return ret + } + return *o.A1 +} + +// GetA1Ok returns a tuple with the A1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA1Ok() (*string, bool) { + if o == nil || IsNil(o.A1) { + return nil, false + } + return o.A1, true +} + +// HasA1 returns a boolean if a field has been set. +func (o *CivicAddress) HasA1() bool { + if o != nil && !IsNil(o.A1) { + return true + } + + return false +} + +// SetA1 gets a reference to the given string and assigns it to the A1 field. +func (o *CivicAddress) SetA1(v string) { + o.A1 = &v +} + +// GetA2 returns the A2 field value if set, zero value otherwise. +func (o *CivicAddress) GetA2() string { + if o == nil || IsNil(o.A2) { + var ret string + return ret + } + return *o.A2 +} + +// GetA2Ok returns a tuple with the A2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA2Ok() (*string, bool) { + if o == nil || IsNil(o.A2) { + return nil, false + } + return o.A2, true +} + +// HasA2 returns a boolean if a field has been set. +func (o *CivicAddress) HasA2() bool { + if o != nil && !IsNil(o.A2) { + return true + } + + return false +} + +// SetA2 gets a reference to the given string and assigns it to the A2 field. +func (o *CivicAddress) SetA2(v string) { + o.A2 = &v +} + +// GetA3 returns the A3 field value if set, zero value otherwise. +func (o *CivicAddress) GetA3() string { + if o == nil || IsNil(o.A3) { + var ret string + return ret + } + return *o.A3 +} + +// GetA3Ok returns a tuple with the A3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA3Ok() (*string, bool) { + if o == nil || IsNil(o.A3) { + return nil, false + } + return o.A3, true +} + +// HasA3 returns a boolean if a field has been set. +func (o *CivicAddress) HasA3() bool { + if o != nil && !IsNil(o.A3) { + return true + } + + return false +} + +// SetA3 gets a reference to the given string and assigns it to the A3 field. +func (o *CivicAddress) SetA3(v string) { + o.A3 = &v +} + +// GetA4 returns the A4 field value if set, zero value otherwise. +func (o *CivicAddress) GetA4() string { + if o == nil || IsNil(o.A4) { + var ret string + return ret + } + return *o.A4 +} + +// GetA4Ok returns a tuple with the A4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA4Ok() (*string, bool) { + if o == nil || IsNil(o.A4) { + return nil, false + } + return o.A4, true +} + +// HasA4 returns a boolean if a field has been set. +func (o *CivicAddress) HasA4() bool { + if o != nil && !IsNil(o.A4) { + return true + } + + return false +} + +// SetA4 gets a reference to the given string and assigns it to the A4 field. +func (o *CivicAddress) SetA4(v string) { + o.A4 = &v +} + +// GetA5 returns the A5 field value if set, zero value otherwise. +func (o *CivicAddress) GetA5() string { + if o == nil || IsNil(o.A5) { + var ret string + return ret + } + return *o.A5 +} + +// GetA5Ok returns a tuple with the A5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA5Ok() (*string, bool) { + if o == nil || IsNil(o.A5) { + return nil, false + } + return o.A5, true +} + +// HasA5 returns a boolean if a field has been set. +func (o *CivicAddress) HasA5() bool { + if o != nil && !IsNil(o.A5) { + return true + } + + return false +} + +// SetA5 gets a reference to the given string and assigns it to the A5 field. +func (o *CivicAddress) SetA5(v string) { + o.A5 = &v +} + +// GetA6 returns the A6 field value if set, zero value otherwise. +func (o *CivicAddress) GetA6() string { + if o == nil || IsNil(o.A6) { + var ret string + return ret + } + return *o.A6 +} + +// GetA6Ok returns a tuple with the A6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetA6Ok() (*string, bool) { + if o == nil || IsNil(o.A6) { + return nil, false + } + return o.A6, true +} + +// HasA6 returns a boolean if a field has been set. +func (o *CivicAddress) HasA6() bool { + if o != nil && !IsNil(o.A6) { + return true + } + + return false +} + +// SetA6 gets a reference to the given string and assigns it to the A6 field. +func (o *CivicAddress) SetA6(v string) { + o.A6 = &v +} + +// GetPRD returns the PRD field value if set, zero value otherwise. +func (o *CivicAddress) GetPRD() string { + if o == nil || IsNil(o.PRD) { + var ret string + return ret + } + return *o.PRD +} + +// GetPRDOk returns a tuple with the PRD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPRDOk() (*string, bool) { + if o == nil || IsNil(o.PRD) { + return nil, false + } + return o.PRD, true +} + +// HasPRD returns a boolean if a field has been set. +func (o *CivicAddress) HasPRD() bool { + if o != nil && !IsNil(o.PRD) { + return true + } + + return false +} + +// SetPRD gets a reference to the given string and assigns it to the PRD field. +func (o *CivicAddress) SetPRD(v string) { + o.PRD = &v +} + +// GetPOD returns the POD field value if set, zero value otherwise. +func (o *CivicAddress) GetPOD() string { + if o == nil || IsNil(o.POD) { + var ret string + return ret + } + return *o.POD +} + +// GetPODOk returns a tuple with the POD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPODOk() (*string, bool) { + if o == nil || IsNil(o.POD) { + return nil, false + } + return o.POD, true +} + +// HasPOD returns a boolean if a field has been set. +func (o *CivicAddress) HasPOD() bool { + if o != nil && !IsNil(o.POD) { + return true + } + + return false +} + +// SetPOD gets a reference to the given string and assigns it to the POD field. +func (o *CivicAddress) SetPOD(v string) { + o.POD = &v +} + +// GetSTS returns the STS field value if set, zero value otherwise. +func (o *CivicAddress) GetSTS() string { + if o == nil || IsNil(o.STS) { + var ret string + return ret + } + return *o.STS +} + +// GetSTSOk returns a tuple with the STS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetSTSOk() (*string, bool) { + if o == nil || IsNil(o.STS) { + return nil, false + } + return o.STS, true +} + +// HasSTS returns a boolean if a field has been set. +func (o *CivicAddress) HasSTS() bool { + if o != nil && !IsNil(o.STS) { + return true + } + + return false +} + +// SetSTS gets a reference to the given string and assigns it to the STS field. +func (o *CivicAddress) SetSTS(v string) { + o.STS = &v +} + +// GetHNO returns the HNO field value if set, zero value otherwise. +func (o *CivicAddress) GetHNO() string { + if o == nil || IsNil(o.HNO) { + var ret string + return ret + } + return *o.HNO +} + +// GetHNOOk returns a tuple with the HNO field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetHNOOk() (*string, bool) { + if o == nil || IsNil(o.HNO) { + return nil, false + } + return o.HNO, true +} + +// HasHNO returns a boolean if a field has been set. +func (o *CivicAddress) HasHNO() bool { + if o != nil && !IsNil(o.HNO) { + return true + } + + return false +} + +// SetHNO gets a reference to the given string and assigns it to the HNO field. +func (o *CivicAddress) SetHNO(v string) { + o.HNO = &v +} + +// GetHNS returns the HNS field value if set, zero value otherwise. +func (o *CivicAddress) GetHNS() string { + if o == nil || IsNil(o.HNS) { + var ret string + return ret + } + return *o.HNS +} + +// GetHNSOk returns a tuple with the HNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetHNSOk() (*string, bool) { + if o == nil || IsNil(o.HNS) { + return nil, false + } + return o.HNS, true +} + +// HasHNS returns a boolean if a field has been set. +func (o *CivicAddress) HasHNS() bool { + if o != nil && !IsNil(o.HNS) { + return true + } + + return false +} + +// SetHNS gets a reference to the given string and assigns it to the HNS field. +func (o *CivicAddress) SetHNS(v string) { + o.HNS = &v +} + +// GetLMK returns the LMK field value if set, zero value otherwise. +func (o *CivicAddress) GetLMK() string { + if o == nil || IsNil(o.LMK) { + var ret string + return ret + } + return *o.LMK +} + +// GetLMKOk returns a tuple with the LMK field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetLMKOk() (*string, bool) { + if o == nil || IsNil(o.LMK) { + return nil, false + } + return o.LMK, true +} + +// HasLMK returns a boolean if a field has been set. +func (o *CivicAddress) HasLMK() bool { + if o != nil && !IsNil(o.LMK) { + return true + } + + return false +} + +// SetLMK gets a reference to the given string and assigns it to the LMK field. +func (o *CivicAddress) SetLMK(v string) { + o.LMK = &v +} + +// GetLOC returns the LOC field value if set, zero value otherwise. +func (o *CivicAddress) GetLOC() string { + if o == nil || IsNil(o.LOC) { + var ret string + return ret + } + return *o.LOC +} + +// GetLOCOk returns a tuple with the LOC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetLOCOk() (*string, bool) { + if o == nil || IsNil(o.LOC) { + return nil, false + } + return o.LOC, true +} + +// HasLOC returns a boolean if a field has been set. +func (o *CivicAddress) HasLOC() bool { + if o != nil && !IsNil(o.LOC) { + return true + } + + return false +} + +// SetLOC gets a reference to the given string and assigns it to the LOC field. +func (o *CivicAddress) SetLOC(v string) { + o.LOC = &v +} + +// GetNAM returns the NAM field value if set, zero value otherwise. +func (o *CivicAddress) GetNAM() string { + if o == nil || IsNil(o.NAM) { + var ret string + return ret + } + return *o.NAM +} + +// GetNAMOk returns a tuple with the NAM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetNAMOk() (*string, bool) { + if o == nil || IsNil(o.NAM) { + return nil, false + } + return o.NAM, true +} + +// HasNAM returns a boolean if a field has been set. +func (o *CivicAddress) HasNAM() bool { + if o != nil && !IsNil(o.NAM) { + return true + } + + return false +} + +// SetNAM gets a reference to the given string and assigns it to the NAM field. +func (o *CivicAddress) SetNAM(v string) { + o.NAM = &v +} + +// GetPC returns the PC field value if set, zero value otherwise. +func (o *CivicAddress) GetPC() string { + if o == nil || IsNil(o.PC) { + var ret string + return ret + } + return *o.PC +} + +// GetPCOk returns a tuple with the PC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPCOk() (*string, bool) { + if o == nil || IsNil(o.PC) { + return nil, false + } + return o.PC, true +} + +// HasPC returns a boolean if a field has been set. +func (o *CivicAddress) HasPC() bool { + if o != nil && !IsNil(o.PC) { + return true + } + + return false +} + +// SetPC gets a reference to the given string and assigns it to the PC field. +func (o *CivicAddress) SetPC(v string) { + o.PC = &v +} + +// GetBLD returns the BLD field value if set, zero value otherwise. +func (o *CivicAddress) GetBLD() string { + if o == nil || IsNil(o.BLD) { + var ret string + return ret + } + return *o.BLD +} + +// GetBLDOk returns a tuple with the BLD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetBLDOk() (*string, bool) { + if o == nil || IsNil(o.BLD) { + return nil, false + } + return o.BLD, true +} + +// HasBLD returns a boolean if a field has been set. +func (o *CivicAddress) HasBLD() bool { + if o != nil && !IsNil(o.BLD) { + return true + } + + return false +} + +// SetBLD gets a reference to the given string and assigns it to the BLD field. +func (o *CivicAddress) SetBLD(v string) { + o.BLD = &v +} + +// GetUNIT returns the UNIT field value if set, zero value otherwise. +func (o *CivicAddress) GetUNIT() string { + if o == nil || IsNil(o.UNIT) { + var ret string + return ret + } + return *o.UNIT +} + +// GetUNITOk returns a tuple with the UNIT field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetUNITOk() (*string, bool) { + if o == nil || IsNil(o.UNIT) { + return nil, false + } + return o.UNIT, true +} + +// HasUNIT returns a boolean if a field has been set. +func (o *CivicAddress) HasUNIT() bool { + if o != nil && !IsNil(o.UNIT) { + return true + } + + return false +} + +// SetUNIT gets a reference to the given string and assigns it to the UNIT field. +func (o *CivicAddress) SetUNIT(v string) { + o.UNIT = &v +} + +// GetFLR returns the FLR field value if set, zero value otherwise. +func (o *CivicAddress) GetFLR() string { + if o == nil || IsNil(o.FLR) { + var ret string + return ret + } + return *o.FLR +} + +// GetFLROk returns a tuple with the FLR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetFLROk() (*string, bool) { + if o == nil || IsNil(o.FLR) { + return nil, false + } + return o.FLR, true +} + +// HasFLR returns a boolean if a field has been set. +func (o *CivicAddress) HasFLR() bool { + if o != nil && !IsNil(o.FLR) { + return true + } + + return false +} + +// SetFLR gets a reference to the given string and assigns it to the FLR field. +func (o *CivicAddress) SetFLR(v string) { + o.FLR = &v +} + +// GetROOM returns the ROOM field value if set, zero value otherwise. +func (o *CivicAddress) GetROOM() string { + if o == nil || IsNil(o.ROOM) { + var ret string + return ret + } + return *o.ROOM +} + +// GetROOMOk returns a tuple with the ROOM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetROOMOk() (*string, bool) { + if o == nil || IsNil(o.ROOM) { + return nil, false + } + return o.ROOM, true +} + +// HasROOM returns a boolean if a field has been set. +func (o *CivicAddress) HasROOM() bool { + if o != nil && !IsNil(o.ROOM) { + return true + } + + return false +} + +// SetROOM gets a reference to the given string and assigns it to the ROOM field. +func (o *CivicAddress) SetROOM(v string) { + o.ROOM = &v +} + +// GetPLC returns the PLC field value if set, zero value otherwise. +func (o *CivicAddress) GetPLC() string { + if o == nil || IsNil(o.PLC) { + var ret string + return ret + } + return *o.PLC +} + +// GetPLCOk returns a tuple with the PLC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPLCOk() (*string, bool) { + if o == nil || IsNil(o.PLC) { + return nil, false + } + return o.PLC, true +} + +// HasPLC returns a boolean if a field has been set. +func (o *CivicAddress) HasPLC() bool { + if o != nil && !IsNil(o.PLC) { + return true + } + + return false +} + +// SetPLC gets a reference to the given string and assigns it to the PLC field. +func (o *CivicAddress) SetPLC(v string) { + o.PLC = &v +} + +// GetPCN returns the PCN field value if set, zero value otherwise. +func (o *CivicAddress) GetPCN() string { + if o == nil || IsNil(o.PCN) { + var ret string + return ret + } + return *o.PCN +} + +// GetPCNOk returns a tuple with the PCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPCNOk() (*string, bool) { + if o == nil || IsNil(o.PCN) { + return nil, false + } + return o.PCN, true +} + +// HasPCN returns a boolean if a field has been set. +func (o *CivicAddress) HasPCN() bool { + if o != nil && !IsNil(o.PCN) { + return true + } + + return false +} + +// SetPCN gets a reference to the given string and assigns it to the PCN field. +func (o *CivicAddress) SetPCN(v string) { + o.PCN = &v +} + +// GetPOBOX returns the POBOX field value if set, zero value otherwise. +func (o *CivicAddress) GetPOBOX() string { + if o == nil || IsNil(o.POBOX) { + var ret string + return ret + } + return *o.POBOX +} + +// GetPOBOXOk returns a tuple with the POBOX field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPOBOXOk() (*string, bool) { + if o == nil || IsNil(o.POBOX) { + return nil, false + } + return o.POBOX, true +} + +// HasPOBOX returns a boolean if a field has been set. +func (o *CivicAddress) HasPOBOX() bool { + if o != nil && !IsNil(o.POBOX) { + return true + } + + return false +} + +// SetPOBOX gets a reference to the given string and assigns it to the POBOX field. +func (o *CivicAddress) SetPOBOX(v string) { + o.POBOX = &v +} + +// GetADDCODE returns the ADDCODE field value if set, zero value otherwise. +func (o *CivicAddress) GetADDCODE() string { + if o == nil || IsNil(o.ADDCODE) { + var ret string + return ret + } + return *o.ADDCODE +} + +// GetADDCODEOk returns a tuple with the ADDCODE field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetADDCODEOk() (*string, bool) { + if o == nil || IsNil(o.ADDCODE) { + return nil, false + } + return o.ADDCODE, true +} + +// HasADDCODE returns a boolean if a field has been set. +func (o *CivicAddress) HasADDCODE() bool { + if o != nil && !IsNil(o.ADDCODE) { + return true + } + + return false +} + +// SetADDCODE gets a reference to the given string and assigns it to the ADDCODE field. +func (o *CivicAddress) SetADDCODE(v string) { + o.ADDCODE = &v +} + +// GetSEAT returns the SEAT field value if set, zero value otherwise. +func (o *CivicAddress) GetSEAT() string { + if o == nil || IsNil(o.SEAT) { + var ret string + return ret + } + return *o.SEAT +} + +// GetSEATOk returns a tuple with the SEAT field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetSEATOk() (*string, bool) { + if o == nil || IsNil(o.SEAT) { + return nil, false + } + return o.SEAT, true +} + +// HasSEAT returns a boolean if a field has been set. +func (o *CivicAddress) HasSEAT() bool { + if o != nil && !IsNil(o.SEAT) { + return true + } + + return false +} + +// SetSEAT gets a reference to the given string and assigns it to the SEAT field. +func (o *CivicAddress) SetSEAT(v string) { + o.SEAT = &v +} + +// GetRD returns the RD field value if set, zero value otherwise. +func (o *CivicAddress) GetRD() string { + if o == nil || IsNil(o.RD) { + var ret string + return ret + } + return *o.RD +} + +// GetRDOk returns a tuple with the RD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDOk() (*string, bool) { + if o == nil || IsNil(o.RD) { + return nil, false + } + return o.RD, true +} + +// HasRD returns a boolean if a field has been set. +func (o *CivicAddress) HasRD() bool { + if o != nil && !IsNil(o.RD) { + return true + } + + return false +} + +// SetRD gets a reference to the given string and assigns it to the RD field. +func (o *CivicAddress) SetRD(v string) { + o.RD = &v +} + +// GetRDSEC returns the RDSEC field value if set, zero value otherwise. +func (o *CivicAddress) GetRDSEC() string { + if o == nil || IsNil(o.RDSEC) { + var ret string + return ret + } + return *o.RDSEC +} + +// GetRDSECOk returns a tuple with the RDSEC field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDSECOk() (*string, bool) { + if o == nil || IsNil(o.RDSEC) { + return nil, false + } + return o.RDSEC, true +} + +// HasRDSEC returns a boolean if a field has been set. +func (o *CivicAddress) HasRDSEC() bool { + if o != nil && !IsNil(o.RDSEC) { + return true + } + + return false +} + +// SetRDSEC gets a reference to the given string and assigns it to the RDSEC field. +func (o *CivicAddress) SetRDSEC(v string) { + o.RDSEC = &v +} + +// GetRDBR returns the RDBR field value if set, zero value otherwise. +func (o *CivicAddress) GetRDBR() string { + if o == nil || IsNil(o.RDBR) { + var ret string + return ret + } + return *o.RDBR +} + +// GetRDBROk returns a tuple with the RDBR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDBROk() (*string, bool) { + if o == nil || IsNil(o.RDBR) { + return nil, false + } + return o.RDBR, true +} + +// HasRDBR returns a boolean if a field has been set. +func (o *CivicAddress) HasRDBR() bool { + if o != nil && !IsNil(o.RDBR) { + return true + } + + return false +} + +// SetRDBR gets a reference to the given string and assigns it to the RDBR field. +func (o *CivicAddress) SetRDBR(v string) { + o.RDBR = &v +} + +// GetRDSUBBR returns the RDSUBBR field value if set, zero value otherwise. +func (o *CivicAddress) GetRDSUBBR() string { + if o == nil || IsNil(o.RDSUBBR) { + var ret string + return ret + } + return *o.RDSUBBR +} + +// GetRDSUBBROk returns a tuple with the RDSUBBR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetRDSUBBROk() (*string, bool) { + if o == nil || IsNil(o.RDSUBBR) { + return nil, false + } + return o.RDSUBBR, true +} + +// HasRDSUBBR returns a boolean if a field has been set. +func (o *CivicAddress) HasRDSUBBR() bool { + if o != nil && !IsNil(o.RDSUBBR) { + return true + } + + return false +} + +// SetRDSUBBR gets a reference to the given string and assigns it to the RDSUBBR field. +func (o *CivicAddress) SetRDSUBBR(v string) { + o.RDSUBBR = &v +} + +// GetPRM returns the PRM field value if set, zero value otherwise. +func (o *CivicAddress) GetPRM() string { + if o == nil || IsNil(o.PRM) { + var ret string + return ret + } + return *o.PRM +} + +// GetPRMOk returns a tuple with the PRM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPRMOk() (*string, bool) { + if o == nil || IsNil(o.PRM) { + return nil, false + } + return o.PRM, true +} + +// HasPRM returns a boolean if a field has been set. +func (o *CivicAddress) HasPRM() bool { + if o != nil && !IsNil(o.PRM) { + return true + } + + return false +} + +// SetPRM gets a reference to the given string and assigns it to the PRM field. +func (o *CivicAddress) SetPRM(v string) { + o.PRM = &v +} + +// GetPOM returns the POM field value if set, zero value otherwise. +func (o *CivicAddress) GetPOM() string { + if o == nil || IsNil(o.POM) { + var ret string + return ret + } + return *o.POM +} + +// GetPOMOk returns a tuple with the POM field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetPOMOk() (*string, bool) { + if o == nil || IsNil(o.POM) { + return nil, false + } + return o.POM, true +} + +// HasPOM returns a boolean if a field has been set. +func (o *CivicAddress) HasPOM() bool { + if o != nil && !IsNil(o.POM) { + return true + } + + return false +} + +// SetPOM gets a reference to the given string and assigns it to the POM field. +func (o *CivicAddress) SetPOM(v string) { + o.POM = &v +} + +// GetUsageRules returns the UsageRules field value if set, zero value otherwise. +func (o *CivicAddress) GetUsageRules() string { + if o == nil || IsNil(o.UsageRules) { + var ret string + return ret + } + return *o.UsageRules +} + +// GetUsageRulesOk returns a tuple with the UsageRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetUsageRulesOk() (*string, bool) { + if o == nil || IsNil(o.UsageRules) { + return nil, false + } + return o.UsageRules, true +} + +// HasUsageRules returns a boolean if a field has been set. +func (o *CivicAddress) HasUsageRules() bool { + if o != nil && !IsNil(o.UsageRules) { + return true + } + + return false +} + +// SetUsageRules gets a reference to the given string and assigns it to the UsageRules field. +func (o *CivicAddress) SetUsageRules(v string) { + o.UsageRules = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *CivicAddress) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *CivicAddress) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *CivicAddress) SetMethod(v string) { + o.Method = &v +} + +// GetProvidedBy returns the ProvidedBy field value if set, zero value otherwise. +func (o *CivicAddress) GetProvidedBy() string { + if o == nil || IsNil(o.ProvidedBy) { + var ret string + return ret + } + return *o.ProvidedBy +} + +// GetProvidedByOk returns a tuple with the ProvidedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CivicAddress) GetProvidedByOk() (*string, bool) { + if o == nil || IsNil(o.ProvidedBy) { + return nil, false + } + return o.ProvidedBy, true +} + +// HasProvidedBy returns a boolean if a field has been set. +func (o *CivicAddress) HasProvidedBy() bool { + if o != nil && !IsNil(o.ProvidedBy) { + return true + } + + return false +} + +// SetProvidedBy gets a reference to the given string and assigns it to the ProvidedBy field. +func (o *CivicAddress) SetProvidedBy(v string) { + o.ProvidedBy = &v +} + +func (o CivicAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CivicAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + if !IsNil(o.A1) { + toSerialize["A1"] = o.A1 + } + if !IsNil(o.A2) { + toSerialize["A2"] = o.A2 + } + if !IsNil(o.A3) { + toSerialize["A3"] = o.A3 + } + if !IsNil(o.A4) { + toSerialize["A4"] = o.A4 + } + if !IsNil(o.A5) { + toSerialize["A5"] = o.A5 + } + if !IsNil(o.A6) { + toSerialize["A6"] = o.A6 + } + if !IsNil(o.PRD) { + toSerialize["PRD"] = o.PRD + } + if !IsNil(o.POD) { + toSerialize["POD"] = o.POD + } + if !IsNil(o.STS) { + toSerialize["STS"] = o.STS + } + if !IsNil(o.HNO) { + toSerialize["HNO"] = o.HNO + } + if !IsNil(o.HNS) { + toSerialize["HNS"] = o.HNS + } + if !IsNil(o.LMK) { + toSerialize["LMK"] = o.LMK + } + if !IsNil(o.LOC) { + toSerialize["LOC"] = o.LOC + } + if !IsNil(o.NAM) { + toSerialize["NAM"] = o.NAM + } + if !IsNil(o.PC) { + toSerialize["PC"] = o.PC + } + if !IsNil(o.BLD) { + toSerialize["BLD"] = o.BLD + } + if !IsNil(o.UNIT) { + toSerialize["UNIT"] = o.UNIT + } + if !IsNil(o.FLR) { + toSerialize["FLR"] = o.FLR + } + if !IsNil(o.ROOM) { + toSerialize["ROOM"] = o.ROOM + } + if !IsNil(o.PLC) { + toSerialize["PLC"] = o.PLC + } + if !IsNil(o.PCN) { + toSerialize["PCN"] = o.PCN + } + if !IsNil(o.POBOX) { + toSerialize["POBOX"] = o.POBOX + } + if !IsNil(o.ADDCODE) { + toSerialize["ADDCODE"] = o.ADDCODE + } + if !IsNil(o.SEAT) { + toSerialize["SEAT"] = o.SEAT + } + if !IsNil(o.RD) { + toSerialize["RD"] = o.RD + } + if !IsNil(o.RDSEC) { + toSerialize["RDSEC"] = o.RDSEC + } + if !IsNil(o.RDBR) { + toSerialize["RDBR"] = o.RDBR + } + if !IsNil(o.RDSUBBR) { + toSerialize["RDSUBBR"] = o.RDSUBBR + } + if !IsNil(o.PRM) { + toSerialize["PRM"] = o.PRM + } + if !IsNil(o.POM) { + toSerialize["POM"] = o.POM + } + if !IsNil(o.UsageRules) { + toSerialize["usageRules"] = o.UsageRules + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + if !IsNil(o.ProvidedBy) { + toSerialize["providedBy"] = o.ProvidedBy + } + return toSerialize, nil +} + +type NullableCivicAddress struct { + value *CivicAddress + isSet bool +} + +func (v NullableCivicAddress) Get() *CivicAddress { + return v.value +} + +func (v *NullableCivicAddress) Set(val *CivicAddress) { + v.value = val + v.isSet = true +} + +func (v NullableCivicAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableCivicAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCivicAddress(val *CivicAddress) *NullableCivicAddress { + return &NullableCivicAddress{value: val, isSet: true} +} + +func (v NullableCivicAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCivicAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_communication_type.go b/internal/CapifPublishService/model_communication_type.go new file mode 100644 index 0000000000000000000000000000000000000000..f7d59476e8732775ca2f9c03b4a46c35c2c31bb8 --- /dev/null +++ b/internal/CapifPublishService/model_communication_type.go @@ -0,0 +1,87 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// CommunicationType Possible values are: - REQUEST_RESPONSE: The communication is of the type request-response - SUBSCRIBE_NOTIFY: The communication is of the type subscribe-notify +type CommunicationType struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *CommunicationType) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(CommunicationType)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *CommunicationType) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableCommunicationType struct { + value *CommunicationType + isSet bool +} + +func (v NullableCommunicationType) Get() *CommunicationType { + return v.value +} + +func (v *NullableCommunicationType) Set(val *CommunicationType) { + v.value = val + v.isSet = true +} + +func (v NullableCommunicationType) IsSet() bool { + return v.isSet +} + +func (v *NullableCommunicationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommunicationType(val *CommunicationType) *NullableCommunicationType { + return &NullableCommunicationType{value: val, isSet: true} +} + +func (v NullableCommunicationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommunicationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_custom_operation.go b/internal/CapifPublishService/model_custom_operation.go new file mode 100644 index 0000000000000000000000000000000000000000..9b7bd7885d21336b2b64cb833fdb3432efd752f2 --- /dev/null +++ b/internal/CapifPublishService/model_custom_operation.go @@ -0,0 +1,267 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the CustomOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomOperation{} + +// CustomOperation Represents the description of a custom operation. +type CustomOperation struct { + //CommType CommunicationType `json:"commType"` + CommType string `json:"commType"` + // it is set as {custOpName} part of the URI structure for a custom operation without resource association as defined in clause 5.2.4 of 3GPP TS 29.122. + CustOpName string `json:"custOpName"` + // Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + Operations []Operation `json:"operations,omitempty"` + // Text description of the custom operation + Description *string `json:"description,omitempty"` +} + +type _CustomOperation CustomOperation + +// NewCustomOperation instantiates a new CustomOperation 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 NewCustomOperation(commType CommunicationType, custOpName string) *CustomOperation { +func NewCustomOperation(commType string, custOpName string) *CustomOperation { + this := CustomOperation{} + this.CommType = commType + this.CustOpName = custOpName + return &this +} + +// NewCustomOperationWithDefaults instantiates a new CustomOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomOperationWithDefaults() *CustomOperation { + this := CustomOperation{} + return &this +} + +// GetCommType returns the CommType field value +//func (o *CustomOperation) GetCommType() CommunicationType { +func (o *CustomOperation) GetCommType() string { + if o == nil { + //var ret CommunicationType + var ret string + return ret + } + + return o.CommType +} + +// GetCommTypeOk returns a tuple with the CommType field value +// and a boolean to check if the value has been set. +//func (o *CustomOperation) GetCommTypeOk() (*CommunicationType, bool) { +func (o *CustomOperation) GetCommTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommType, true +} + +// SetCommType sets field value +//func (o *CustomOperation) SetCommType(v CommunicationType) { +func (o *CustomOperation) SetCommType(v string) { + o.CommType = v +} + +// GetCustOpName returns the CustOpName field value +func (o *CustomOperation) GetCustOpName() string { + if o == nil { + var ret string + return ret + } + + return o.CustOpName +} + +// GetCustOpNameOk returns a tuple with the CustOpName field value +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetCustOpNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustOpName, true +} + +// SetCustOpName sets field value +func (o *CustomOperation) SetCustOpName(v string) { + o.CustOpName = v +} + +// GetOperations returns the Operations field value if set, zero value otherwise. +func (o *CustomOperation) GetOperations() []Operation { + if o == nil || IsNil(o.Operations) { + var ret []Operation + return ret + } + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetOperationsOk() ([]Operation, bool) { + if o == nil || IsNil(o.Operations) { + return nil, false + } + return o.Operations, true +} + +// HasOperations returns a boolean if a field has been set. +func (o *CustomOperation) HasOperations() bool { + if o != nil && !IsNil(o.Operations) { + return true + } + + return false +} + +// SetOperations gets a reference to the given []Operation and assigns it to the Operations field. +func (o *CustomOperation) SetOperations(v []Operation) { + o.Operations = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CustomOperation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomOperation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CustomOperation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CustomOperation) SetDescription(v string) { + o.Description = &v +} + +func (o CustomOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commType"] = o.CommType + toSerialize["custOpName"] = o.CustOpName + if !IsNil(o.Operations) { + toSerialize["operations"] = o.Operations + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +func (o *CustomOperation) UnmarshalJSON(data []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{ + "commType", + "custOpName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varCustomOperation := _CustomOperation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCustomOperation) + + if err != nil { + return err + } + + *o = CustomOperation(varCustomOperation) + + return err +} + +type NullableCustomOperation struct { + value *CustomOperation + isSet bool +} + +func (v NullableCustomOperation) Get() *CustomOperation { + return v.value +} + +func (v *NullableCustomOperation) Set(val *CustomOperation) { + v.value = val + v.isSet = true +} + +func (v NullableCustomOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomOperation(val *CustomOperation) *NullableCustomOperation { + return &NullableCustomOperation{value: val, isSet: true} +} + +func (v NullableCustomOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_data_format.go b/internal/CapifPublishService/model_data_format.go new file mode 100644 index 0000000000000000000000000000000000000000..81b1a65cc2c8122fcc88c52bc220d603c24f57f8 --- /dev/null +++ b/internal/CapifPublishService/model_data_format.go @@ -0,0 +1,87 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// DataFormat Possible values are: - JSON: JavaScript Object Notation +type DataFormat struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *DataFormat) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(DataFormat)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *DataFormat) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableDataFormat struct { + value *DataFormat + isSet bool +} + +func (v NullableDataFormat) Get() *DataFormat { + return v.value +} + +func (v *NullableDataFormat) Set(val *DataFormat) { + v.value = val + v.isSet = true +} + +func (v NullableDataFormat) IsSet() bool { + return v.isSet +} + +func (v *NullableDataFormat) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataFormat(val *DataFormat) *NullableDataFormat { + return &NullableDataFormat{value: val, isSet: true} +} + +func (v NullableDataFormat) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataFormat) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_ellipsoid_arc.go b/internal/CapifPublishService/model_ellipsoid_arc.go new file mode 100644 index 0000000000000000000000000000000000000000..04b75b6dc763a087176a87986328b38d78c9882d --- /dev/null +++ b/internal/CapifPublishService/model_ellipsoid_arc.go @@ -0,0 +1,314 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the EllipsoidArc type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EllipsoidArc{} + +// EllipsoidArc Ellipsoid Arc. +type EllipsoidArc struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of the inner radius. + InnerRadius int32 `json:"innerRadius"` + // Indicates value of uncertainty. + UncertaintyRadius float32 `json:"uncertaintyRadius"` + // Indicates value of angle. + OffsetAngle int32 `json:"offsetAngle"` + // Indicates value of angle. + IncludedAngle int32 `json:"includedAngle"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _EllipsoidArc EllipsoidArc + +// NewEllipsoidArc instantiates a new EllipsoidArc 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 NewEllipsoidArc(point GeographicalCoordinates, innerRadius int32, uncertaintyRadius float32, offsetAngle int32, includedAngle int32, confidence int32, shape SupportedGADShapes) *EllipsoidArc { + this := EllipsoidArc{} + this.Shape = shape + this.Point = point + this.InnerRadius = innerRadius + this.UncertaintyRadius = uncertaintyRadius + this.OffsetAngle = offsetAngle + this.IncludedAngle = includedAngle + this.Confidence = confidence + return &this +} + +// NewEllipsoidArcWithDefaults instantiates a new EllipsoidArc object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEllipsoidArcWithDefaults() *EllipsoidArc { + this := EllipsoidArc{} + return &this +} + +// GetPoint returns the Point field value +func (o *EllipsoidArc) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *EllipsoidArc) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetInnerRadius returns the InnerRadius field value +func (o *EllipsoidArc) GetInnerRadius() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InnerRadius +} + +// GetInnerRadiusOk returns a tuple with the InnerRadius field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetInnerRadiusOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InnerRadius, true +} + +// SetInnerRadius sets field value +func (o *EllipsoidArc) SetInnerRadius(v int32) { + o.InnerRadius = v +} + +// GetUncertaintyRadius returns the UncertaintyRadius field value +func (o *EllipsoidArc) GetUncertaintyRadius() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.UncertaintyRadius +} + +// GetUncertaintyRadiusOk returns a tuple with the UncertaintyRadius field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetUncertaintyRadiusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyRadius, true +} + +// SetUncertaintyRadius sets field value +func (o *EllipsoidArc) SetUncertaintyRadius(v float32) { + o.UncertaintyRadius = v +} + +// GetOffsetAngle returns the OffsetAngle field value +func (o *EllipsoidArc) GetOffsetAngle() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OffsetAngle +} + +// GetOffsetAngleOk returns a tuple with the OffsetAngle field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetOffsetAngleOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OffsetAngle, true +} + +// SetOffsetAngle sets field value +func (o *EllipsoidArc) SetOffsetAngle(v int32) { + o.OffsetAngle = v +} + +// GetIncludedAngle returns the IncludedAngle field value +func (o *EllipsoidArc) GetIncludedAngle() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.IncludedAngle +} + +// GetIncludedAngleOk returns a tuple with the IncludedAngle field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetIncludedAngleOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.IncludedAngle, true +} + +// SetIncludedAngle sets field value +func (o *EllipsoidArc) SetIncludedAngle(v int32) { + o.IncludedAngle = v +} + +// GetConfidence returns the Confidence field value +func (o *EllipsoidArc) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *EllipsoidArc) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *EllipsoidArc) SetConfidence(v int32) { + o.Confidence = v +} + +func (o EllipsoidArc) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EllipsoidArc) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["innerRadius"] = o.InnerRadius + toSerialize["uncertaintyRadius"] = o.UncertaintyRadius + toSerialize["offsetAngle"] = o.OffsetAngle + toSerialize["includedAngle"] = o.IncludedAngle + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *EllipsoidArc) UnmarshalJSON(data []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{ + "point", + "innerRadius", + "uncertaintyRadius", + "offsetAngle", + "includedAngle", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varEllipsoidArc := _EllipsoidArc{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEllipsoidArc) + + if err != nil { + return err + } + + *o = EllipsoidArc(varEllipsoidArc) + + return err +} + +type NullableEllipsoidArc struct { + value *EllipsoidArc + isSet bool +} + +func (v NullableEllipsoidArc) Get() *EllipsoidArc { + return v.value +} + +func (v *NullableEllipsoidArc) Set(val *EllipsoidArc) { + v.value = val + v.isSet = true +} + +func (v NullableEllipsoidArc) IsSet() bool { + return v.isSet +} + +func (v *NullableEllipsoidArc) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEllipsoidArc(val *EllipsoidArc) *NullableEllipsoidArc { + return &NullableEllipsoidArc{value: val, isSet: true} +} + +func (v NullableEllipsoidArc) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEllipsoidArc) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_gad_shape.go b/internal/CapifPublishService/model_gad_shape.go new file mode 100644 index 0000000000000000000000000000000000000000..12da298b61d2064063967fe44bd9260dbb516f61 --- /dev/null +++ b/internal/CapifPublishService/model_gad_shape.go @@ -0,0 +1,158 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GADShape type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GADShape{} + +// GADShape Common base type for GAD shapes. +type GADShape struct { + Shape SupportedGADShapes `json:"shape"` +} + +type _GADShape GADShape + +// NewGADShape instantiates a new GADShape 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 NewGADShape(shape SupportedGADShapes) *GADShape { + this := GADShape{} + this.Shape = shape + return &this +} + +// NewGADShapeWithDefaults instantiates a new GADShape object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGADShapeWithDefaults() *GADShape { + this := GADShape{} + return &this +} + +// GetShape returns the Shape field value +func (o *GADShape) GetShape() SupportedGADShapes { + if o == nil { + var ret SupportedGADShapes + return ret + } + + return o.Shape +} + +// GetShapeOk returns a tuple with the Shape field value +// and a boolean to check if the value has been set. +func (o *GADShape) GetShapeOk() (*SupportedGADShapes, bool) { + if o == nil { + return nil, false + } + return &o.Shape, true +} + +// SetShape sets field value +func (o *GADShape) SetShape(v SupportedGADShapes) { + o.Shape = v +} + +func (o GADShape) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GADShape) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["shape"] = o.Shape + return toSerialize, nil +} + +func (o *GADShape) UnmarshalJSON(data []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{ + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varGADShape := _GADShape{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGADShape) + + if err != nil { + return err + } + + *o = GADShape(varGADShape) + + return err +} + +type NullableGADShape struct { + value *GADShape + isSet bool +} + +func (v NullableGADShape) Get() *GADShape { + return v.value +} + +func (v *NullableGADShape) Set(val *GADShape) { + v.value = val + v.isSet = true +} + +func (v NullableGADShape) IsSet() bool { + return v.isSet +} + +func (v *NullableGADShape) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGADShape(val *GADShape) *NullableGADShape { + return &NullableGADShape{value: val, isSet: true} +} + +func (v NullableGADShape) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGADShape) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_geographic_area.go b/internal/CapifPublishService/model_geographic_area.go new file mode 100644 index 0000000000000000000000000000000000000000..6f566b9139ad8afc1b5ad33a64b82dd6bfced090 --- /dev/null +++ b/internal/CapifPublishService/model_geographic_area.go @@ -0,0 +1,461 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// GeographicArea Geographic area specified by different shape. +type GeographicArea struct { + EllipsoidArc *EllipsoidArc + Point *Point + PointAltitude *PointAltitude + PointAltitudeUncertainty *PointAltitudeUncertainty + PointUncertaintyCircle *PointUncertaintyCircle + PointUncertaintyEllipse *PointUncertaintyEllipse + Polygon *Polygon +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GeographicArea) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = json.Unmarshal(data, &jsonDict) + if err != nil { + return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup") + } + + // check if the discriminator value is 'ELLIPSOID_ARC' + if jsonDict["shape"] == "ELLIPSOID_ARC" { + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + } + + // IVAN EDIT - No Local2dPointUncertaintyEllipse nor Local3dPointUncertaintyEllipsoid field or method in GeographicArea struc + /* + // check if the discriminator value is 'LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE' + if jsonDict["shape"] == "LOCAL_2D_POINT_UNCERTAINTY_ELLIPSE" { + // try to unmarshal JSON data into Local2dPointUncertaintyEllipse + err = json.Unmarshal(data, &dst.Local2dPointUncertaintyEllipse); + if err == nil { + jsonLocal2dPointUncertaintyEllipse, _ := json.Marshal(dst.Local2dPointUncertaintyEllipse) + if string(jsonLocal2dPointUncertaintyEllipse) == "{}" { // empty struct + dst.Local2dPointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.Local2dPointUncertaintyEllipse, return on the first match + } + } else { + dst.Local2dPointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID' + if jsonDict["shape"] == "LOCAL_3D_POINT_UNCERTAINTY_ELLIPSOID" { + // try to unmarshal JSON data into Local3dPointUncertaintyEllipsoid + err = json.Unmarshal(data, &dst.Local3dPointUncertaintyEllipsoid); + if err == nil { + jsonLocal3dPointUncertaintyEllipsoid, _ := json.Marshal(dst.Local3dPointUncertaintyEllipsoid) + if string(jsonLocal3dPointUncertaintyEllipsoid) == "{}" { // empty struct + dst.Local3dPointUncertaintyEllipsoid = nil + } else { + return nil // data stored in dst.Local3dPointUncertaintyEllipsoid, return on the first match + } + } else { + dst.Local3dPointUncertaintyEllipsoid = nil + } + } + */ + + // check if the discriminator value is 'POINT' + if jsonDict["shape"] == "POINT" { + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + } + + // check if the discriminator value is 'POINT_ALTITUDE' + if jsonDict["shape"] == "POINT_ALTITUDE" { + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + } + + // check if the discriminator value is 'POINT_ALTITUDE_UNCERTAINTY' + if jsonDict["shape"] == "POINT_ALTITUDE_UNCERTAINTY" { + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + } + + // check if the discriminator value is 'POINT_UNCERTAINTY_CIRCLE' + if jsonDict["shape"] == "POINT_UNCERTAINTY_CIRCLE" { + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + } + + // check if the discriminator value is 'POINT_UNCERTAINTY_ELLIPSE' + if jsonDict["shape"] == "POINT_UNCERTAINTY_ELLIPSE" { + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'POLYGON' + if jsonDict["shape"] == "POLYGON" { + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + } + + // check if the discriminator value is 'EllipsoidArc' + if jsonDict["shape"] == "EllipsoidArc" { + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + } + + // check if the discriminator value is 'Point' + if jsonDict["shape"] == "Point" { + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + } + + // check if the discriminator value is 'PointAltitude' + if jsonDict["shape"] == "PointAltitude" { + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + } + + // check if the discriminator value is 'PointAltitudeUncertainty' + if jsonDict["shape"] == "PointAltitudeUncertainty" { + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + } + + // check if the discriminator value is 'PointUncertaintyCircle' + if jsonDict["shape"] == "PointUncertaintyCircle" { + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + } + + // check if the discriminator value is 'PointUncertaintyEllipse' + if jsonDict["shape"] == "PointUncertaintyEllipse" { + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + } + + // check if the discriminator value is 'Polygon' + if jsonDict["shape"] == "Polygon" { + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + } + + // try to unmarshal JSON data into EllipsoidArc + err = json.Unmarshal(data, &dst.EllipsoidArc); + if err == nil { + jsonEllipsoidArc, _ := json.Marshal(dst.EllipsoidArc) + if string(jsonEllipsoidArc) == "{}" { // empty struct + dst.EllipsoidArc = nil + } else { + return nil // data stored in dst.EllipsoidArc, return on the first match + } + } else { + dst.EllipsoidArc = nil + } + + // try to unmarshal JSON data into Point + err = json.Unmarshal(data, &dst.Point); + if err == nil { + jsonPoint, _ := json.Marshal(dst.Point) + if string(jsonPoint) == "{}" { // empty struct + dst.Point = nil + } else { + return nil // data stored in dst.Point, return on the first match + } + } else { + dst.Point = nil + } + + // try to unmarshal JSON data into PointAltitude + err = json.Unmarshal(data, &dst.PointAltitude); + if err == nil { + jsonPointAltitude, _ := json.Marshal(dst.PointAltitude) + if string(jsonPointAltitude) == "{}" { // empty struct + dst.PointAltitude = nil + } else { + return nil // data stored in dst.PointAltitude, return on the first match + } + } else { + dst.PointAltitude = nil + } + + // try to unmarshal JSON data into PointAltitudeUncertainty + err = json.Unmarshal(data, &dst.PointAltitudeUncertainty); + if err == nil { + jsonPointAltitudeUncertainty, _ := json.Marshal(dst.PointAltitudeUncertainty) + if string(jsonPointAltitudeUncertainty) == "{}" { // empty struct + dst.PointAltitudeUncertainty = nil + } else { + return nil // data stored in dst.PointAltitudeUncertainty, return on the first match + } + } else { + dst.PointAltitudeUncertainty = nil + } + + // try to unmarshal JSON data into PointUncertaintyCircle + err = json.Unmarshal(data, &dst.PointUncertaintyCircle); + if err == nil { + jsonPointUncertaintyCircle, _ := json.Marshal(dst.PointUncertaintyCircle) + if string(jsonPointUncertaintyCircle) == "{}" { // empty struct + dst.PointUncertaintyCircle = nil + } else { + return nil // data stored in dst.PointUncertaintyCircle, return on the first match + } + } else { + dst.PointUncertaintyCircle = nil + } + + // try to unmarshal JSON data into PointUncertaintyEllipse + err = json.Unmarshal(data, &dst.PointUncertaintyEllipse); + if err == nil { + jsonPointUncertaintyEllipse, _ := json.Marshal(dst.PointUncertaintyEllipse) + if string(jsonPointUncertaintyEllipse) == "{}" { // empty struct + dst.PointUncertaintyEllipse = nil + } else { + return nil // data stored in dst.PointUncertaintyEllipse, return on the first match + } + } else { + dst.PointUncertaintyEllipse = nil + } + + // try to unmarshal JSON data into Polygon + err = json.Unmarshal(data, &dst.Polygon); + if err == nil { + jsonPolygon, _ := json.Marshal(dst.Polygon) + if string(jsonPolygon) == "{}" { // empty struct + dst.Polygon = nil + } else { + return nil // data stored in dst.Polygon, return on the first match + } + } else { + dst.Polygon = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GeographicArea)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *GeographicArea) MarshalJSON() ([]byte, error) { + if src.EllipsoidArc != nil { + return json.Marshal(&src.EllipsoidArc) + } + + if src.Point != nil { + return json.Marshal(&src.Point) + } + + if src.PointAltitude != nil { + return json.Marshal(&src.PointAltitude) + } + + if src.PointAltitudeUncertainty != nil { + return json.Marshal(&src.PointAltitudeUncertainty) + } + + if src.PointUncertaintyCircle != nil { + return json.Marshal(&src.PointUncertaintyCircle) + } + + if src.PointUncertaintyEllipse != nil { + return json.Marshal(&src.PointUncertaintyEllipse) + } + + if src.Polygon != nil { + return json.Marshal(&src.Polygon) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGeographicArea struct { + value *GeographicArea + isSet bool +} + +func (v NullableGeographicArea) Get() *GeographicArea { + return v.value +} + +func (v *NullableGeographicArea) Set(val *GeographicArea) { + v.value = val + v.isSet = true +} + +func (v NullableGeographicArea) IsSet() bool { + return v.isSet +} + +func (v *NullableGeographicArea) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGeographicArea(val *GeographicArea) *NullableGeographicArea { + return &NullableGeographicArea{value: val, isSet: true} +} + +func (v NullableGeographicArea) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGeographicArea) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_geographical_coordinates.go b/internal/CapifPublishService/model_geographical_coordinates.go new file mode 100644 index 0000000000000000000000000000000000000000..d7df5df03f7e34fd56961802a8501e60a3dc3060 --- /dev/null +++ b/internal/CapifPublishService/model_geographical_coordinates.go @@ -0,0 +1,186 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GeographicalCoordinates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GeographicalCoordinates{} + +// GeographicalCoordinates Geographical coordinates. +type GeographicalCoordinates struct { + Lon float64 `json:"lon"` + Lat float64 `json:"lat"` +} + +type _GeographicalCoordinates GeographicalCoordinates + +// NewGeographicalCoordinates instantiates a new GeographicalCoordinates 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 NewGeographicalCoordinates(lon float64, lat float64) *GeographicalCoordinates { + this := GeographicalCoordinates{} + this.Lon = lon + this.Lat = lat + return &this +} + +// NewGeographicalCoordinatesWithDefaults instantiates a new GeographicalCoordinates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGeographicalCoordinatesWithDefaults() *GeographicalCoordinates { + this := GeographicalCoordinates{} + return &this +} + +// GetLon returns the Lon field value +func (o *GeographicalCoordinates) GetLon() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Lon +} + +// GetLonOk returns a tuple with the Lon field value +// and a boolean to check if the value has been set. +func (o *GeographicalCoordinates) GetLonOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Lon, true +} + +// SetLon sets field value +func (o *GeographicalCoordinates) SetLon(v float64) { + o.Lon = v +} + +// GetLat returns the Lat field value +func (o *GeographicalCoordinates) GetLat() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Lat +} + +// GetLatOk returns a tuple with the Lat field value +// and a boolean to check if the value has been set. +func (o *GeographicalCoordinates) GetLatOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Lat, true +} + +// SetLat sets field value +func (o *GeographicalCoordinates) SetLat(v float64) { + o.Lat = v +} + +func (o GeographicalCoordinates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GeographicalCoordinates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["lon"] = o.Lon + toSerialize["lat"] = o.Lat + return toSerialize, nil +} + +func (o *GeographicalCoordinates) UnmarshalJSON(data []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{ + "lon", + "lat", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varGeographicalCoordinates := _GeographicalCoordinates{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGeographicalCoordinates) + + if err != nil { + return err + } + + *o = GeographicalCoordinates(varGeographicalCoordinates) + + return err +} + +type NullableGeographicalCoordinates struct { + value *GeographicalCoordinates + isSet bool +} + +func (v NullableGeographicalCoordinates) Get() *GeographicalCoordinates { + return v.value +} + +func (v *NullableGeographicalCoordinates) Set(val *GeographicalCoordinates) { + v.value = val + v.isSet = true +} + +func (v NullableGeographicalCoordinates) IsSet() bool { + return v.isSet +} + +func (v *NullableGeographicalCoordinates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGeographicalCoordinates(val *GeographicalCoordinates) *NullableGeographicalCoordinates { + return &NullableGeographicalCoordinates{value: val, isSet: true} +} + +func (v NullableGeographicalCoordinates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGeographicalCoordinates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_interface_description.go b/internal/CapifPublishService/model_interface_description.go new file mode 100644 index 0000000000000000000000000000000000000000..12327b4578d3f6f92fad8150f70ae5ecb899c79a --- /dev/null +++ b/internal/CapifPublishService/model_interface_description.go @@ -0,0 +1,238 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the InterfaceDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceDescription{} + +// InterfaceDescription Represents the description of an API's interface. +type InterfaceDescription struct { + // string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. + Ipv4Addr *string `json:"ipv4Addr,omitempty"` + // string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. + Ipv6Addr *string `json:"ipv6Addr,omitempty"` + // Unsigned integer with valid values between 0 and 65535. + Port *int32 `json:"port,omitempty"` + // Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"` +} + +// NewInterfaceDescription instantiates a new InterfaceDescription 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 NewInterfaceDescription() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceDescriptionWithDefaults() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// GetIpv4Addr returns the Ipv4Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv4Addr() string { + if o == nil || IsNil(o.Ipv4Addr) { + var ret string + return ret + } + return *o.Ipv4Addr +} + +// GetIpv4AddrOk returns a tuple with the Ipv4Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv4Addr) { + return nil, false + } + return o.Ipv4Addr, true +} + +// HasIpv4Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv4Addr() bool { + if o != nil && !IsNil(o.Ipv4Addr) { + return true + } + + return false +} + +// SetIpv4Addr gets a reference to the given string and assigns it to the Ipv4Addr field. +func (o *InterfaceDescription) SetIpv4Addr(v string) { + o.Ipv4Addr = &v +} + +// GetIpv6Addr returns the Ipv6Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv6Addr() string { + if o == nil || IsNil(o.Ipv6Addr) { + var ret string + return ret + } + return *o.Ipv6Addr +} + +// GetIpv6AddrOk returns a tuple with the Ipv6Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv6Addr) { + return nil, false + } + return o.Ipv6Addr, true +} + +// HasIpv6Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv6Addr() bool { + if o != nil && !IsNil(o.Ipv6Addr) { + return true + } + + return false +} + +// SetIpv6Addr gets a reference to the given string and assigns it to the Ipv6Addr field. +func (o *InterfaceDescription) SetIpv6Addr(v string) { + o.Ipv6Addr = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *InterfaceDescription) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *InterfaceDescription) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *InterfaceDescription) SetPort(v int32) { + o.Port = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *InterfaceDescription) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +func (o InterfaceDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Ipv4Addr) { + toSerialize["ipv4Addr"] = o.Ipv4Addr + } + if !IsNil(o.Ipv6Addr) { + toSerialize["ipv6Addr"] = o.Ipv6Addr + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + return toSerialize, nil +} + +type NullableInterfaceDescription struct { + value *InterfaceDescription + isSet bool +} + +func (v NullableInterfaceDescription) Get() *InterfaceDescription { + return v.value +} + +func (v *NullableInterfaceDescription) Set(val *InterfaceDescription) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceDescription(val *InterfaceDescription) *NullableInterfaceDescription { + return &NullableInterfaceDescription{value: val, isSet: true} +} + +func (v NullableInterfaceDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_invalid_param.go b/internal/CapifPublishService/model_invalid_param.go new file mode 100644 index 0000000000000000000000000000000000000000..8356877a385f6a8659ffffe8fd57659211721259 --- /dev/null +++ b/internal/CapifPublishService/model_invalid_param.go @@ -0,0 +1,196 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InvalidParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvalidParam{} + +// InvalidParam Represents the description of invalid parameters, for a request rejected due to invalid parameters. +type InvalidParam struct { + // Attribute's name encoded as a JSON Pointer, or header's name. + Param string `json:"param"` + // A human-readable reason, e.g. \"must be a positive integer\". + Reason *string `json:"reason,omitempty"` +} + +type _InvalidParam InvalidParam + +// NewInvalidParam instantiates a new InvalidParam 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 NewInvalidParam(param string) *InvalidParam { + this := InvalidParam{} + this.Param = param + return &this +} + +// NewInvalidParamWithDefaults instantiates a new InvalidParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvalidParamWithDefaults() *InvalidParam { + this := InvalidParam{} + return &this +} + +// GetParam returns the Param field value +func (o *InvalidParam) GetParam() string { + if o == nil { + var ret string + return ret + } + + return o.Param +} + +// GetParamOk returns a tuple with the Param field value +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetParamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Param, true +} + +// SetParam sets field value +func (o *InvalidParam) SetParam(v string) { + o.Param = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InvalidParam) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InvalidParam) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InvalidParam) SetReason(v string) { + o.Reason = &v +} + +func (o InvalidParam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvalidParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["param"] = o.Param + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *InvalidParam) UnmarshalJSON(data []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{ + "param", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varInvalidParam := _InvalidParam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInvalidParam) + + if err != nil { + return err + } + + *o = InvalidParam(varInvalidParam) + + return err +} + +type NullableInvalidParam struct { + value *InvalidParam + isSet bool +} + +func (v NullableInvalidParam) Get() *InvalidParam { + return v.value +} + +func (v *NullableInvalidParam) Set(val *InvalidParam) { + v.value = val + v.isSet = true +} + +func (v NullableInvalidParam) IsSet() bool { + return v.isSet +} + +func (v *NullableInvalidParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvalidParam(val *InvalidParam) *NullableInvalidParam { + return &NullableInvalidParam{value: val, isSet: true} +} + +func (v NullableInvalidParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvalidParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_local2d_point_uncertainty_ellipse.go b/internal/CapifPublishService/model_local2d_point_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..793a8df07776067f4653100163919edf0e35a2a3 --- /dev/null +++ b/internal/CapifPublishService/model_local2d_point_uncertainty_ellipse.go @@ -0,0 +1,254 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Local2dPointUncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Local2dPointUncertaintyEllipse{} + +// Local2dPointUncertaintyEllipse Local 2D point with uncertainty ellipse +type Local2dPointUncertaintyEllipse struct { + GADShape + LocalOrigin LocalOrigin `json:"localOrigin"` + Point RelativeCartesianLocation `json:"point"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _Local2dPointUncertaintyEllipse Local2dPointUncertaintyEllipse + +// NewLocal2dPointUncertaintyEllipse instantiates a new Local2dPointUncertaintyEllipse 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 NewLocal2dPointUncertaintyEllipse(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipse UncertaintyEllipse, confidence int32, shape SupportedGADShapes) *Local2dPointUncertaintyEllipse { + this := Local2dPointUncertaintyEllipse{} + this.Shape = shape + this.LocalOrigin = localOrigin + this.Point = point + this.UncertaintyEllipse = uncertaintyEllipse + this.Confidence = confidence + return &this +} + +// NewLocal2dPointUncertaintyEllipseWithDefaults instantiates a new Local2dPointUncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocal2dPointUncertaintyEllipseWithDefaults() *Local2dPointUncertaintyEllipse { + this := Local2dPointUncertaintyEllipse{} + return &this +} + +// GetLocalOrigin returns the LocalOrigin field value +func (o *Local2dPointUncertaintyEllipse) GetLocalOrigin() LocalOrigin { + if o == nil { + var ret LocalOrigin + return ret + } + + return o.LocalOrigin +} + +// GetLocalOriginOk returns a tuple with the LocalOrigin field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetLocalOriginOk() (*LocalOrigin, bool) { + if o == nil { + return nil, false + } + return &o.LocalOrigin, true +} + +// SetLocalOrigin sets field value +func (o *Local2dPointUncertaintyEllipse) SetLocalOrigin(v LocalOrigin) { + o.LocalOrigin = v +} + +// GetPoint returns the Point field value +func (o *Local2dPointUncertaintyEllipse) GetPoint() RelativeCartesianLocation { + if o == nil { + var ret RelativeCartesianLocation + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetPointOk() (*RelativeCartesianLocation, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Local2dPointUncertaintyEllipse) SetPoint(v RelativeCartesianLocation) { + o.Point = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *Local2dPointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetConfidence returns the Confidence field value +func (o *Local2dPointUncertaintyEllipse) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *Local2dPointUncertaintyEllipse) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *Local2dPointUncertaintyEllipse) SetConfidence(v int32) { + o.Confidence = v +} + +func (o Local2dPointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Local2dPointUncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["localOrigin"] = o.LocalOrigin + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *Local2dPointUncertaintyEllipse) UnmarshalJSON(data []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{ + "localOrigin", + "point", + "uncertaintyEllipse", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varLocal2dPointUncertaintyEllipse := _Local2dPointUncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLocal2dPointUncertaintyEllipse) + + if err != nil { + return err + } + + *o = Local2dPointUncertaintyEllipse(varLocal2dPointUncertaintyEllipse) + + return err +} + +type NullableLocal2dPointUncertaintyEllipse struct { + value *Local2dPointUncertaintyEllipse + isSet bool +} + +func (v NullableLocal2dPointUncertaintyEllipse) Get() *Local2dPointUncertaintyEllipse { + return v.value +} + +func (v *NullableLocal2dPointUncertaintyEllipse) Set(val *Local2dPointUncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullableLocal2dPointUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullableLocal2dPointUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocal2dPointUncertaintyEllipse(val *Local2dPointUncertaintyEllipse) *NullableLocal2dPointUncertaintyEllipse { + return &NullableLocal2dPointUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullableLocal2dPointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocal2dPointUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_local3d_point_uncertainty_ellipsoid.go b/internal/CapifPublishService/model_local3d_point_uncertainty_ellipsoid.go new file mode 100644 index 0000000000000000000000000000000000000000..40ce058b9eeab07474c0f039ae621b0c3f85dbb9 --- /dev/null +++ b/internal/CapifPublishService/model_local3d_point_uncertainty_ellipsoid.go @@ -0,0 +1,254 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Local3dPointUncertaintyEllipsoid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Local3dPointUncertaintyEllipsoid{} + +// Local3dPointUncertaintyEllipsoid Local 3D point with uncertainty ellipsoid +type Local3dPointUncertaintyEllipsoid struct { + GADShape + LocalOrigin LocalOrigin `json:"localOrigin"` + Point RelativeCartesianLocation `json:"point"` + UncertaintyEllipsoid UncertaintyEllipsoid `json:"uncertaintyEllipsoid"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _Local3dPointUncertaintyEllipsoid Local3dPointUncertaintyEllipsoid + +// NewLocal3dPointUncertaintyEllipsoid instantiates a new Local3dPointUncertaintyEllipsoid 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 NewLocal3dPointUncertaintyEllipsoid(localOrigin LocalOrigin, point RelativeCartesianLocation, uncertaintyEllipsoid UncertaintyEllipsoid, confidence int32, shape SupportedGADShapes) *Local3dPointUncertaintyEllipsoid { + this := Local3dPointUncertaintyEllipsoid{} + this.Shape = shape + this.LocalOrigin = localOrigin + this.Point = point + this.UncertaintyEllipsoid = uncertaintyEllipsoid + this.Confidence = confidence + return &this +} + +// NewLocal3dPointUncertaintyEllipsoidWithDefaults instantiates a new Local3dPointUncertaintyEllipsoid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocal3dPointUncertaintyEllipsoidWithDefaults() *Local3dPointUncertaintyEllipsoid { + this := Local3dPointUncertaintyEllipsoid{} + return &this +} + +// GetLocalOrigin returns the LocalOrigin field value +func (o *Local3dPointUncertaintyEllipsoid) GetLocalOrigin() LocalOrigin { + if o == nil { + var ret LocalOrigin + return ret + } + + return o.LocalOrigin +} + +// GetLocalOriginOk returns a tuple with the LocalOrigin field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetLocalOriginOk() (*LocalOrigin, bool) { + if o == nil { + return nil, false + } + return &o.LocalOrigin, true +} + +// SetLocalOrigin sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetLocalOrigin(v LocalOrigin) { + o.LocalOrigin = v +} + +// GetPoint returns the Point field value +func (o *Local3dPointUncertaintyEllipsoid) GetPoint() RelativeCartesianLocation { + if o == nil { + var ret RelativeCartesianLocation + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetPointOk() (*RelativeCartesianLocation, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetPoint(v RelativeCartesianLocation) { + o.Point = v +} + +// GetUncertaintyEllipsoid returns the UncertaintyEllipsoid field value +func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoid() UncertaintyEllipsoid { + if o == nil { + var ret UncertaintyEllipsoid + return ret + } + + return o.UncertaintyEllipsoid +} + +// GetUncertaintyEllipsoidOk returns a tuple with the UncertaintyEllipsoid field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetUncertaintyEllipsoidOk() (*UncertaintyEllipsoid, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipsoid, true +} + +// SetUncertaintyEllipsoid sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetUncertaintyEllipsoid(v UncertaintyEllipsoid) { + o.UncertaintyEllipsoid = v +} + +// GetConfidence returns the Confidence field value +func (o *Local3dPointUncertaintyEllipsoid) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *Local3dPointUncertaintyEllipsoid) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *Local3dPointUncertaintyEllipsoid) SetConfidence(v int32) { + o.Confidence = v +} + +func (o Local3dPointUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Local3dPointUncertaintyEllipsoid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["localOrigin"] = o.LocalOrigin + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipsoid"] = o.UncertaintyEllipsoid + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *Local3dPointUncertaintyEllipsoid) UnmarshalJSON(data []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{ + "localOrigin", + "point", + "uncertaintyEllipsoid", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varLocal3dPointUncertaintyEllipsoid := _Local3dPointUncertaintyEllipsoid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLocal3dPointUncertaintyEllipsoid) + + if err != nil { + return err + } + + *o = Local3dPointUncertaintyEllipsoid(varLocal3dPointUncertaintyEllipsoid) + + return err +} + +type NullableLocal3dPointUncertaintyEllipsoid struct { + value *Local3dPointUncertaintyEllipsoid + isSet bool +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) Get() *Local3dPointUncertaintyEllipsoid { + return v.value +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) Set(val *Local3dPointUncertaintyEllipsoid) { + v.value = val + v.isSet = true +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) IsSet() bool { + return v.isSet +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocal3dPointUncertaintyEllipsoid(val *Local3dPointUncertaintyEllipsoid) *NullableLocal3dPointUncertaintyEllipsoid { + return &NullableLocal3dPointUncertaintyEllipsoid{value: val, isSet: true} +} + +func (v NullableLocal3dPointUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocal3dPointUncertaintyEllipsoid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_local_origin.go b/internal/CapifPublishService/model_local_origin.go new file mode 100644 index 0000000000000000000000000000000000000000..3294f3ce9b1e505d60acda27b611ac613271d101 --- /dev/null +++ b/internal/CapifPublishService/model_local_origin.go @@ -0,0 +1,162 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the LocalOrigin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocalOrigin{} + +// LocalOrigin Indicates a Local origin in a reference system +type LocalOrigin struct { + CoordinateId *string `json:"coordinateId,omitempty"` + Point *GeographicalCoordinates `json:"point,omitempty"` +} + +// NewLocalOrigin instantiates a new LocalOrigin 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 NewLocalOrigin() *LocalOrigin { + this := LocalOrigin{} + return &this +} + +// NewLocalOriginWithDefaults instantiates a new LocalOrigin object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocalOriginWithDefaults() *LocalOrigin { + this := LocalOrigin{} + return &this +} + +// GetCoordinateId returns the CoordinateId field value if set, zero value otherwise. +func (o *LocalOrigin) GetCoordinateId() string { + if o == nil || IsNil(o.CoordinateId) { + var ret string + return ret + } + return *o.CoordinateId +} + +// GetCoordinateIdOk returns a tuple with the CoordinateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalOrigin) GetCoordinateIdOk() (*string, bool) { + if o == nil || IsNil(o.CoordinateId) { + return nil, false + } + return o.CoordinateId, true +} + +// HasCoordinateId returns a boolean if a field has been set. +func (o *LocalOrigin) HasCoordinateId() bool { + if o != nil && !IsNil(o.CoordinateId) { + return true + } + + return false +} + +// SetCoordinateId gets a reference to the given string and assigns it to the CoordinateId field. +func (o *LocalOrigin) SetCoordinateId(v string) { + o.CoordinateId = &v +} + +// GetPoint returns the Point field value if set, zero value otherwise. +func (o *LocalOrigin) GetPoint() GeographicalCoordinates { + if o == nil || IsNil(o.Point) { + var ret GeographicalCoordinates + return ret + } + return *o.Point +} + +// GetPointOk returns a tuple with the Point field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalOrigin) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil || IsNil(o.Point) { + return nil, false + } + return o.Point, true +} + +// HasPoint returns a boolean if a field has been set. +func (o *LocalOrigin) HasPoint() bool { + if o != nil && !IsNil(o.Point) { + return true + } + + return false +} + +// SetPoint gets a reference to the given GeographicalCoordinates and assigns it to the Point field. +func (o *LocalOrigin) SetPoint(v GeographicalCoordinates) { + o.Point = &v +} + +func (o LocalOrigin) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LocalOrigin) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CoordinateId) { + toSerialize["coordinateId"] = o.CoordinateId + } + if !IsNil(o.Point) { + toSerialize["point"] = o.Point + } + return toSerialize, nil +} + +type NullableLocalOrigin struct { + value *LocalOrigin + isSet bool +} + +func (v NullableLocalOrigin) Get() *LocalOrigin { + return v.value +} + +func (v *NullableLocalOrigin) Set(val *LocalOrigin) { + v.value = val + v.isSet = true +} + +func (v NullableLocalOrigin) IsSet() bool { + return v.isSet +} + +func (v *NullableLocalOrigin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocalOrigin(val *LocalOrigin) *NullableLocalOrigin { + return &NullableLocalOrigin{value: val, isSet: true} +} + +func (v NullableLocalOrigin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocalOrigin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_operation.go b/internal/CapifPublishService/model_operation.go new file mode 100644 index 0000000000000000000000000000000000000000..19a02e2beefc21b83b94f235e6d733de42cb0dbe --- /dev/null +++ b/internal/CapifPublishService/model_operation.go @@ -0,0 +1,87 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// Operation Possible values are: - GET: HTTP GET method - POST: HTTP POST method - PUT: HTTP PUT method - PATCH: HTTP PATCH method - DELETE: HTTP DELETE method +type Operation struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Operation) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Operation)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Operation) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableOperation struct { + value *Operation + isSet bool +} + +func (v NullableOperation) Get() *Operation { + return v.value +} + +func (v *NullableOperation) Set(val *Operation) { + v.value = val + v.isSet = true +} + +func (v NullableOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOperation(val *Operation) *NullableOperation { + return &NullableOperation{value: val, isSet: true} +} + +func (v NullableOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_point.go b/internal/CapifPublishService/model_point.go new file mode 100644 index 0000000000000000000000000000000000000000..3b3bc63289296bc8d0e69b4a0744db3ace9e1add --- /dev/null +++ b/internal/CapifPublishService/model_point.go @@ -0,0 +1,169 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Point type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Point{} + +// Point Ellipsoid Point. +type Point struct { + GADShape + Point GeographicalCoordinates `json:"point"` +} + +type _Point Point + +// NewPoint instantiates a new Point 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 NewPoint(point GeographicalCoordinates, shape SupportedGADShapes) *Point { + this := Point{} + this.Shape = shape + this.Point = point + return &this +} + +// NewPointWithDefaults instantiates a new Point object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointWithDefaults() *Point { + this := Point{} + return &this +} + +// GetPoint returns the Point field value +func (o *Point) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *Point) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *Point) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +func (o Point) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Point) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + return toSerialize, nil +} + +func (o *Point) UnmarshalJSON(data []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{ + "point", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPoint := _Point{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPoint) + + if err != nil { + return err + } + + *o = Point(varPoint) + + return err +} + +type NullablePoint struct { + value *Point + isSet bool +} + +func (v NullablePoint) Get() *Point { + return v.value +} + +func (v *NullablePoint) Set(val *Point) { + v.value = val + v.isSet = true +} + +func (v NullablePoint) IsSet() bool { + return v.isSet +} + +func (v *NullablePoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePoint(val *Point) *NullablePoint { + return &NullablePoint{value: val, isSet: true} +} + +func (v NullablePoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_point_altitude.go b/internal/CapifPublishService/model_point_altitude.go new file mode 100644 index 0000000000000000000000000000000000000000..8560ada23e7bda55c25258caefcee645ad63e780 --- /dev/null +++ b/internal/CapifPublishService/model_point_altitude.go @@ -0,0 +1,198 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointAltitude type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointAltitude{} + +// PointAltitude Ellipsoid point with altitude. +type PointAltitude struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of altitude. + Altitude float64 `json:"altitude"` +} + +type _PointAltitude PointAltitude + +// NewPointAltitude instantiates a new PointAltitude 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 NewPointAltitude(point GeographicalCoordinates, altitude float64, shape SupportedGADShapes) *PointAltitude { + this := PointAltitude{} + this.Shape = shape + this.Point = point + this.Altitude = altitude + return &this +} + +// NewPointAltitudeWithDefaults instantiates a new PointAltitude object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointAltitudeWithDefaults() *PointAltitude { + this := PointAltitude{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointAltitude) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointAltitude) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointAltitude) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetAltitude returns the Altitude field value +func (o *PointAltitude) GetAltitude() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Altitude +} + +// GetAltitudeOk returns a tuple with the Altitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitude) GetAltitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Altitude, true +} + +// SetAltitude sets field value +func (o *PointAltitude) SetAltitude(v float64) { + o.Altitude = v +} + +func (o PointAltitude) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointAltitude) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["altitude"] = o.Altitude + return toSerialize, nil +} + +func (o *PointAltitude) UnmarshalJSON(data []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{ + "point", + "altitude", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointAltitude := _PointAltitude{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointAltitude) + + if err != nil { + return err + } + + *o = PointAltitude(varPointAltitude) + + return err +} + +type NullablePointAltitude struct { + value *PointAltitude + isSet bool +} + +func (v NullablePointAltitude) Get() *PointAltitude { + return v.value +} + +func (v *NullablePointAltitude) Set(val *PointAltitude) { + v.value = val + v.isSet = true +} + +func (v NullablePointAltitude) IsSet() bool { + return v.isSet +} + +func (v *NullablePointAltitude) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointAltitude(val *PointAltitude) *NullablePointAltitude { + return &NullablePointAltitude{value: val, isSet: true} +} + +func (v NullablePointAltitude) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointAltitude) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_point_altitude_uncertainty.go b/internal/CapifPublishService/model_point_altitude_uncertainty.go new file mode 100644 index 0000000000000000000000000000000000000000..4b026d26c3f0854e43b9290ae783e651438c024f --- /dev/null +++ b/internal/CapifPublishService/model_point_altitude_uncertainty.go @@ -0,0 +1,321 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointAltitudeUncertainty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointAltitudeUncertainty{} + +// PointAltitudeUncertainty Ellipsoid point with altitude and uncertainty ellipsoid. +type PointAltitudeUncertainty struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of altitude. + Altitude float64 `json:"altitude"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of uncertainty. + UncertaintyAltitude float32 `json:"uncertaintyAltitude"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` + // Indicates value of confidence. + VConfidence *int32 `json:"vConfidence,omitempty"` +} + +type _PointAltitudeUncertainty PointAltitudeUncertainty + +// NewPointAltitudeUncertainty instantiates a new PointAltitudeUncertainty 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 NewPointAltitudeUncertainty(point GeographicalCoordinates, altitude float64, uncertaintyEllipse UncertaintyEllipse, uncertaintyAltitude float32, confidence int32, shape SupportedGADShapes) *PointAltitudeUncertainty { + this := PointAltitudeUncertainty{} + this.Shape = shape + this.Point = point + this.Altitude = altitude + this.UncertaintyEllipse = uncertaintyEllipse + this.UncertaintyAltitude = uncertaintyAltitude + this.Confidence = confidence + return &this +} + +// NewPointAltitudeUncertaintyWithDefaults instantiates a new PointAltitudeUncertainty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointAltitudeUncertaintyWithDefaults() *PointAltitudeUncertainty { + this := PointAltitudeUncertainty{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointAltitudeUncertainty) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointAltitudeUncertainty) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetAltitude returns the Altitude field value +func (o *PointAltitudeUncertainty) GetAltitude() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Altitude +} + +// GetAltitudeOk returns a tuple with the Altitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetAltitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Altitude, true +} + +// SetAltitude sets field value +func (o *PointAltitudeUncertainty) SetAltitude(v float64) { + o.Altitude = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *PointAltitudeUncertainty) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *PointAltitudeUncertainty) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetUncertaintyAltitude returns the UncertaintyAltitude field value +func (o *PointAltitudeUncertainty) GetUncertaintyAltitude() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.UncertaintyAltitude +} + +// GetUncertaintyAltitudeOk returns a tuple with the UncertaintyAltitude field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetUncertaintyAltitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyAltitude, true +} + +// SetUncertaintyAltitude sets field value +func (o *PointAltitudeUncertainty) SetUncertaintyAltitude(v float32) { + o.UncertaintyAltitude = v +} + +// GetConfidence returns the Confidence field value +func (o *PointAltitudeUncertainty) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *PointAltitudeUncertainty) SetConfidence(v int32) { + o.Confidence = v +} + +// GetVConfidence returns the VConfidence field value if set, zero value otherwise. +func (o *PointAltitudeUncertainty) GetVConfidence() int32 { + if o == nil || IsNil(o.VConfidence) { + var ret int32 + return ret + } + return *o.VConfidence +} + +// GetVConfidenceOk returns a tuple with the VConfidence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PointAltitudeUncertainty) GetVConfidenceOk() (*int32, bool) { + if o == nil || IsNil(o.VConfidence) { + return nil, false + } + return o.VConfidence, true +} + +// HasVConfidence returns a boolean if a field has been set. +func (o *PointAltitudeUncertainty) HasVConfidence() bool { + if o != nil && !IsNil(o.VConfidence) { + return true + } + + return false +} + +// SetVConfidence gets a reference to the given int32 and assigns it to the VConfidence field. +func (o *PointAltitudeUncertainty) SetVConfidence(v int32) { + o.VConfidence = &v +} + +func (o PointAltitudeUncertainty) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointAltitudeUncertainty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["altitude"] = o.Altitude + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["uncertaintyAltitude"] = o.UncertaintyAltitude + toSerialize["confidence"] = o.Confidence + if !IsNil(o.VConfidence) { + toSerialize["vConfidence"] = o.VConfidence + } + return toSerialize, nil +} + +func (o *PointAltitudeUncertainty) UnmarshalJSON(data []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{ + "point", + "altitude", + "uncertaintyEllipse", + "uncertaintyAltitude", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointAltitudeUncertainty := _PointAltitudeUncertainty{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointAltitudeUncertainty) + + if err != nil { + return err + } + + *o = PointAltitudeUncertainty(varPointAltitudeUncertainty) + + return err +} + +type NullablePointAltitudeUncertainty struct { + value *PointAltitudeUncertainty + isSet bool +} + +func (v NullablePointAltitudeUncertainty) Get() *PointAltitudeUncertainty { + return v.value +} + +func (v *NullablePointAltitudeUncertainty) Set(val *PointAltitudeUncertainty) { + v.value = val + v.isSet = true +} + +func (v NullablePointAltitudeUncertainty) IsSet() bool { + return v.isSet +} + +func (v *NullablePointAltitudeUncertainty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointAltitudeUncertainty(val *PointAltitudeUncertainty) *NullablePointAltitudeUncertainty { + return &NullablePointAltitudeUncertainty{value: val, isSet: true} +} + +func (v NullablePointAltitudeUncertainty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointAltitudeUncertainty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_point_uncertainty_circle.go b/internal/CapifPublishService/model_point_uncertainty_circle.go new file mode 100644 index 0000000000000000000000000000000000000000..22d497cebf1243450940224c867cd52b594a87e1 --- /dev/null +++ b/internal/CapifPublishService/model_point_uncertainty_circle.go @@ -0,0 +1,198 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointUncertaintyCircle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointUncertaintyCircle{} + +// PointUncertaintyCircle Ellipsoid point with uncertainty circle. +type PointUncertaintyCircle struct { + GADShape + Point GeographicalCoordinates `json:"point"` + // Indicates value of uncertainty. + Uncertainty float32 `json:"uncertainty"` +} + +type _PointUncertaintyCircle PointUncertaintyCircle + +// NewPointUncertaintyCircle instantiates a new PointUncertaintyCircle 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 NewPointUncertaintyCircle(point GeographicalCoordinates, uncertainty float32, shape SupportedGADShapes) *PointUncertaintyCircle { + this := PointUncertaintyCircle{} + this.Shape = shape + this.Point = point + this.Uncertainty = uncertainty + return &this +} + +// NewPointUncertaintyCircleWithDefaults instantiates a new PointUncertaintyCircle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointUncertaintyCircleWithDefaults() *PointUncertaintyCircle { + this := PointUncertaintyCircle{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointUncertaintyCircle) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyCircle) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointUncertaintyCircle) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetUncertainty returns the Uncertainty field value +func (o *PointUncertaintyCircle) GetUncertainty() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Uncertainty +} + +// GetUncertaintyOk returns a tuple with the Uncertainty field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyCircle) GetUncertaintyOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Uncertainty, true +} + +// SetUncertainty sets field value +func (o *PointUncertaintyCircle) SetUncertainty(v float32) { + o.Uncertainty = v +} + +func (o PointUncertaintyCircle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointUncertaintyCircle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["uncertainty"] = o.Uncertainty + return toSerialize, nil +} + +func (o *PointUncertaintyCircle) UnmarshalJSON(data []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{ + "point", + "uncertainty", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointUncertaintyCircle := _PointUncertaintyCircle{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointUncertaintyCircle) + + if err != nil { + return err + } + + *o = PointUncertaintyCircle(varPointUncertaintyCircle) + + return err +} + +type NullablePointUncertaintyCircle struct { + value *PointUncertaintyCircle + isSet bool +} + +func (v NullablePointUncertaintyCircle) Get() *PointUncertaintyCircle { + return v.value +} + +func (v *NullablePointUncertaintyCircle) Set(val *PointUncertaintyCircle) { + v.value = val + v.isSet = true +} + +func (v NullablePointUncertaintyCircle) IsSet() bool { + return v.isSet +} + +func (v *NullablePointUncertaintyCircle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointUncertaintyCircle(val *PointUncertaintyCircle) *NullablePointUncertaintyCircle { + return &NullablePointUncertaintyCircle{value: val, isSet: true} +} + +func (v NullablePointUncertaintyCircle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointUncertaintyCircle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_point_uncertainty_ellipse.go b/internal/CapifPublishService/model_point_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..bea13dac0f3f4ea2c4dfeed6311003103061d8dd --- /dev/null +++ b/internal/CapifPublishService/model_point_uncertainty_ellipse.go @@ -0,0 +1,226 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PointUncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointUncertaintyEllipse{} + +// PointUncertaintyEllipse Ellipsoid point with uncertainty ellipse. +type PointUncertaintyEllipse struct { + GADShape + Point GeographicalCoordinates `json:"point"` + UncertaintyEllipse UncertaintyEllipse `json:"uncertaintyEllipse"` + // Indicates value of confidence. + Confidence int32 `json:"confidence"` +} + +type _PointUncertaintyEllipse PointUncertaintyEllipse + +// NewPointUncertaintyEllipse instantiates a new PointUncertaintyEllipse 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 NewPointUncertaintyEllipse(point GeographicalCoordinates, uncertaintyEllipse UncertaintyEllipse, confidence int32, shape SupportedGADShapes) *PointUncertaintyEllipse { + this := PointUncertaintyEllipse{} + this.Shape = shape + this.Point = point + this.UncertaintyEllipse = uncertaintyEllipse + this.Confidence = confidence + return &this +} + +// NewPointUncertaintyEllipseWithDefaults instantiates a new PointUncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointUncertaintyEllipseWithDefaults() *PointUncertaintyEllipse { + this := PointUncertaintyEllipse{} + return &this +} + +// GetPoint returns the Point field value +func (o *PointUncertaintyEllipse) GetPoint() GeographicalCoordinates { + if o == nil { + var ret GeographicalCoordinates + return ret + } + + return o.Point +} + +// GetPointOk returns a tuple with the Point field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetPointOk() (*GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return &o.Point, true +} + +// SetPoint sets field value +func (o *PointUncertaintyEllipse) SetPoint(v GeographicalCoordinates) { + o.Point = v +} + +// GetUncertaintyEllipse returns the UncertaintyEllipse field value +func (o *PointUncertaintyEllipse) GetUncertaintyEllipse() UncertaintyEllipse { + if o == nil { + var ret UncertaintyEllipse + return ret + } + + return o.UncertaintyEllipse +} + +// GetUncertaintyEllipseOk returns a tuple with the UncertaintyEllipse field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetUncertaintyEllipseOk() (*UncertaintyEllipse, bool) { + if o == nil { + return nil, false + } + return &o.UncertaintyEllipse, true +} + +// SetUncertaintyEllipse sets field value +func (o *PointUncertaintyEllipse) SetUncertaintyEllipse(v UncertaintyEllipse) { + o.UncertaintyEllipse = v +} + +// GetConfidence returns the Confidence field value +func (o *PointUncertaintyEllipse) GetConfidence() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Confidence +} + +// GetConfidenceOk returns a tuple with the Confidence field value +// and a boolean to check if the value has been set. +func (o *PointUncertaintyEllipse) GetConfidenceOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Confidence, true +} + +// SetConfidence sets field value +func (o *PointUncertaintyEllipse) SetConfidence(v int32) { + o.Confidence = v +} + +func (o PointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointUncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["point"] = o.Point + toSerialize["uncertaintyEllipse"] = o.UncertaintyEllipse + toSerialize["confidence"] = o.Confidence + return toSerialize, nil +} + +func (o *PointUncertaintyEllipse) UnmarshalJSON(data []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{ + "point", + "uncertaintyEllipse", + "confidence", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPointUncertaintyEllipse := _PointUncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPointUncertaintyEllipse) + + if err != nil { + return err + } + + *o = PointUncertaintyEllipse(varPointUncertaintyEllipse) + + return err +} + +type NullablePointUncertaintyEllipse struct { + value *PointUncertaintyEllipse + isSet bool +} + +func (v NullablePointUncertaintyEllipse) Get() *PointUncertaintyEllipse { + return v.value +} + +func (v *NullablePointUncertaintyEllipse) Set(val *PointUncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullablePointUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullablePointUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointUncertaintyEllipse(val *PointUncertaintyEllipse) *NullablePointUncertaintyEllipse { + return &NullablePointUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullablePointUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_polygon.go b/internal/CapifPublishService/model_polygon.go new file mode 100644 index 0000000000000000000000000000000000000000..d75c448bd555d395cb6fbd96526c84c959f90038 --- /dev/null +++ b/internal/CapifPublishService/model_polygon.go @@ -0,0 +1,170 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Polygon type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Polygon{} + +// Polygon Polygon. +type Polygon struct { + GADShape + // List of points. + PointList []GeographicalCoordinates `json:"pointList"` +} + +type _Polygon Polygon + +// NewPolygon instantiates a new Polygon 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 NewPolygon(pointList []GeographicalCoordinates, shape SupportedGADShapes) *Polygon { + this := Polygon{} + this.Shape = shape + this.PointList = pointList + return &this +} + +// NewPolygonWithDefaults instantiates a new Polygon object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolygonWithDefaults() *Polygon { + this := Polygon{} + return &this +} + +// GetPointList returns the PointList field value +func (o *Polygon) GetPointList() []GeographicalCoordinates { + if o == nil { + var ret []GeographicalCoordinates + return ret + } + + return o.PointList +} + +// GetPointListOk returns a tuple with the PointList field value +// and a boolean to check if the value has been set. +func (o *Polygon) GetPointListOk() ([]GeographicalCoordinates, bool) { + if o == nil { + return nil, false + } + return o.PointList, true +} + +// SetPointList sets field value +func (o *Polygon) SetPointList(v []GeographicalCoordinates) { + o.PointList = v +} + +func (o Polygon) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Polygon) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedGADShape, errGADShape := json.Marshal(o.GADShape) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + errGADShape = json.Unmarshal([]byte(serializedGADShape), &toSerialize) + if errGADShape != nil { + return map[string]interface{}{}, errGADShape + } + toSerialize["pointList"] = o.PointList + return toSerialize, nil +} + +func (o *Polygon) UnmarshalJSON(data []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{ + "pointList", + "shape", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPolygon := _Polygon{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPolygon) + + if err != nil { + return err + } + + *o = Polygon(varPolygon) + + return err +} + +type NullablePolygon struct { + value *Polygon + isSet bool +} + +func (v NullablePolygon) Get() *Polygon { + return v.value +} + +func (v *NullablePolygon) Set(val *Polygon) { + v.value = val + v.isSet = true +} + +func (v NullablePolygon) IsSet() bool { + return v.isSet +} + +func (v *NullablePolygon) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolygon(val *Polygon) *NullablePolygon { + return &NullablePolygon{value: val, isSet: true} +} + +func (v NullablePolygon) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolygon) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_problem_details.go b/internal/CapifPublishService/model_problem_details.go new file mode 100644 index 0000000000000000000000000000000000000000..098a46557c7653949322addc721d5bf716f007c3 --- /dev/null +++ b/internal/CapifPublishService/model_problem_details.go @@ -0,0 +1,386 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the ProblemDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProblemDetails{} + +// ProblemDetails Represents additional information and details on an error response. +type ProblemDetails struct { + // string providing an URI formatted according to IETF RFC 3986. + Type *string `json:"type,omitempty"` + // A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. + Title *string `json:"title,omitempty"` + // The HTTP status code for this occurrence of the problem. + Status *int32 `json:"status,omitempty"` + // A human-readable explanation specific to this occurrence of the problem. + Detail *string `json:"detail,omitempty"` + // string providing an URI formatted according to IETF RFC 3986. + Instance *string `json:"instance,omitempty"` + // A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + Cause *string `json:"cause,omitempty"` + // Description of invalid parameters, for a request rejected due to invalid parameters. + InvalidParams []InvalidParam `json:"invalidParams,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` +} + +// NewProblemDetails instantiates a new ProblemDetails 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 NewProblemDetails() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProblemDetailsWithDefaults() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProblemDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProblemDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProblemDetails) SetType(v string) { + o.Type = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ProblemDetails) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ProblemDetails) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ProblemDetails) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ProblemDetails) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ProblemDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ProblemDetails) SetStatus(v int32) { + o.Status = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ProblemDetails) GetDetail() string { + if o == nil || IsNil(o.Detail) { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetDetailOk() (*string, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ProblemDetails) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ProblemDetails) SetDetail(v string) { + o.Detail = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ProblemDetails) GetInstance() string { + if o == nil || IsNil(o.Instance) { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInstanceOk() (*string, bool) { + if o == nil || IsNil(o.Instance) { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ProblemDetails) HasInstance() bool { + if o != nil && !IsNil(o.Instance) { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ProblemDetails) SetInstance(v string) { + o.Instance = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ProblemDetails) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ProblemDetails) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ProblemDetails) SetCause(v string) { + o.Cause = &v +} + +// GetInvalidParams returns the InvalidParams field value if set, zero value otherwise. +func (o *ProblemDetails) GetInvalidParams() []InvalidParam { + if o == nil || IsNil(o.InvalidParams) { + var ret []InvalidParam + return ret + } + return o.InvalidParams +} + +// GetInvalidParamsOk returns a tuple with the InvalidParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInvalidParamsOk() ([]InvalidParam, bool) { + if o == nil || IsNil(o.InvalidParams) { + return nil, false + } + return o.InvalidParams, true +} + +// HasInvalidParams returns a boolean if a field has been set. +func (o *ProblemDetails) HasInvalidParams() bool { + if o != nil && !IsNil(o.InvalidParams) { + return true + } + + return false +} + +// SetInvalidParams gets a reference to the given []InvalidParam and assigns it to the InvalidParams field. +func (o *ProblemDetails) SetInvalidParams(v []InvalidParam) { + o.InvalidParams = v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ProblemDetails) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ProblemDetails) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ProblemDetails) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o ProblemDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProblemDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + if !IsNil(o.Instance) { + toSerialize["instance"] = o.Instance + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.InvalidParams) { + toSerialize["invalidParams"] = o.InvalidParams + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +type NullableProblemDetails struct { + value *ProblemDetails + isSet bool +} + +func (v NullableProblemDetails) Get() *ProblemDetails { + return v.value +} + +func (v *NullableProblemDetails) Set(val *ProblemDetails) { + v.value = val + v.isSet = true +} + +func (v NullableProblemDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableProblemDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProblemDetails(val *ProblemDetails) *NullableProblemDetails { + return &NullableProblemDetails{value: val, isSet: true} +} + +func (v NullableProblemDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProblemDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_protocol.go b/internal/CapifPublishService/model_protocol.go new file mode 100644 index 0000000000000000000000000000000000000000..f39896841e76c6d5799b6fda881ee3c5ba155cbf --- /dev/null +++ b/internal/CapifPublishService/model_protocol.go @@ -0,0 +1,87 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// Protocol Possible values are: - HTTP_1_1: HTTP version 1.1 - HTTP_2: HTTP version 2 +type Protocol struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Protocol) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Protocol)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Protocol) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableProtocol struct { + value *Protocol + isSet bool +} + +func (v NullableProtocol) Get() *Protocol { + return v.value +} + +func (v *NullableProtocol) Set(val *Protocol) { + v.value = val + v.isSet = true +} + +func (v NullableProtocol) IsSet() bool { + return v.isSet +} + +func (v *NullableProtocol) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtocol(val *Protocol) *NullableProtocol { + return &NullableProtocol{value: val, isSet: true} +} + +func (v NullableProtocol) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtocol) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_published_api_path.go b/internal/CapifPublishService/model_published_api_path.go new file mode 100644 index 0000000000000000000000000000000000000000..9e24288431ea444dc1e2425f394b730a90293367 --- /dev/null +++ b/internal/CapifPublishService/model_published_api_path.go @@ -0,0 +1,127 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the PublishedApiPath type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublishedApiPath{} + +// PublishedApiPath Represents the published API path within the same CAPIF provider domain. +type PublishedApiPath struct { + // A list of CCF identifiers where the service API is already published. + CcfIds []string `json:"ccfIds,omitempty"` +} + +// NewPublishedApiPath instantiates a new PublishedApiPath 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 NewPublishedApiPath() *PublishedApiPath { + this := PublishedApiPath{} + return &this +} + +// NewPublishedApiPathWithDefaults instantiates a new PublishedApiPath object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublishedApiPathWithDefaults() *PublishedApiPath { + this := PublishedApiPath{} + return &this +} + +// GetCcfIds returns the CcfIds field value if set, zero value otherwise. +func (o *PublishedApiPath) GetCcfIds() []string { + if o == nil || IsNil(o.CcfIds) { + var ret []string + return ret + } + return o.CcfIds +} + +// GetCcfIdsOk returns a tuple with the CcfIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedApiPath) GetCcfIdsOk() ([]string, bool) { + if o == nil || IsNil(o.CcfIds) { + return nil, false + } + return o.CcfIds, true +} + +// HasCcfIds returns a boolean if a field has been set. +func (o *PublishedApiPath) HasCcfIds() bool { + if o != nil && !IsNil(o.CcfIds) { + return true + } + + return false +} + +// SetCcfIds gets a reference to the given []string and assigns it to the CcfIds field. +func (o *PublishedApiPath) SetCcfIds(v []string) { + o.CcfIds = v +} + +func (o PublishedApiPath) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublishedApiPath) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CcfIds) { + toSerialize["ccfIds"] = o.CcfIds + } + return toSerialize, nil +} + +type NullablePublishedApiPath struct { + value *PublishedApiPath + isSet bool +} + +func (v NullablePublishedApiPath) Get() *PublishedApiPath { + return v.value +} + +func (v *NullablePublishedApiPath) Set(val *PublishedApiPath) { + v.value = val + v.isSet = true +} + +func (v NullablePublishedApiPath) IsSet() bool { + return v.isSet +} + +func (v *NullablePublishedApiPath) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublishedApiPath(val *PublishedApiPath) *NullablePublishedApiPath { + return &NullablePublishedApiPath{value: val, isSet: true} +} + +func (v NullablePublishedApiPath) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublishedApiPath) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_relative_cartesian_location.go b/internal/CapifPublishService/model_relative_cartesian_location.go new file mode 100644 index 0000000000000000000000000000000000000000..4d3ea45d78a7d189f26f493ce353ad93849b2aad --- /dev/null +++ b/internal/CapifPublishService/model_relative_cartesian_location.go @@ -0,0 +1,225 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RelativeCartesianLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RelativeCartesianLocation{} + +// RelativeCartesianLocation Relative Cartesian Location +type RelativeCartesianLocation struct { + // string with format 'float' as defined in OpenAPI. + X float32 `json:"x"` + // string with format 'float' as defined in OpenAPI. + Y float32 `json:"y"` + // string with format 'float' as defined in OpenAPI. + Z *float32 `json:"z,omitempty"` +} + +type _RelativeCartesianLocation RelativeCartesianLocation + +// NewRelativeCartesianLocation instantiates a new RelativeCartesianLocation 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 NewRelativeCartesianLocation(x float32, y float32) *RelativeCartesianLocation { + this := RelativeCartesianLocation{} + this.X = x + this.Y = y + return &this +} + +// NewRelativeCartesianLocationWithDefaults instantiates a new RelativeCartesianLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRelativeCartesianLocationWithDefaults() *RelativeCartesianLocation { + this := RelativeCartesianLocation{} + return &this +} + +// GetX returns the X field value +func (o *RelativeCartesianLocation) GetX() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.X +} + +// GetXOk returns a tuple with the X field value +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetXOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.X, true +} + +// SetX sets field value +func (o *RelativeCartesianLocation) SetX(v float32) { + o.X = v +} + +// GetY returns the Y field value +func (o *RelativeCartesianLocation) GetY() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Y +} + +// GetYOk returns a tuple with the Y field value +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetYOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Y, true +} + +// SetY sets field value +func (o *RelativeCartesianLocation) SetY(v float32) { + o.Y = v +} + +// GetZ returns the Z field value if set, zero value otherwise. +func (o *RelativeCartesianLocation) GetZ() float32 { + if o == nil || IsNil(o.Z) { + var ret float32 + return ret + } + return *o.Z +} + +// GetZOk returns a tuple with the Z field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelativeCartesianLocation) GetZOk() (*float32, bool) { + if o == nil || IsNil(o.Z) { + return nil, false + } + return o.Z, true +} + +// HasZ returns a boolean if a field has been set. +func (o *RelativeCartesianLocation) HasZ() bool { + if o != nil && !IsNil(o.Z) { + return true + } + + return false +} + +// SetZ gets a reference to the given float32 and assigns it to the Z field. +func (o *RelativeCartesianLocation) SetZ(v float32) { + o.Z = &v +} + +func (o RelativeCartesianLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RelativeCartesianLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["x"] = o.X + toSerialize["y"] = o.Y + if !IsNil(o.Z) { + toSerialize["z"] = o.Z + } + return toSerialize, nil +} + +func (o *RelativeCartesianLocation) UnmarshalJSON(data []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{ + "x", + "y", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varRelativeCartesianLocation := _RelativeCartesianLocation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRelativeCartesianLocation) + + if err != nil { + return err + } + + *o = RelativeCartesianLocation(varRelativeCartesianLocation) + + return err +} + +type NullableRelativeCartesianLocation struct { + value *RelativeCartesianLocation + isSet bool +} + +func (v NullableRelativeCartesianLocation) Get() *RelativeCartesianLocation { + return v.value +} + +func (v *NullableRelativeCartesianLocation) Set(val *RelativeCartesianLocation) { + v.value = val + v.isSet = true +} + +func (v NullableRelativeCartesianLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableRelativeCartesianLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelativeCartesianLocation(val *RelativeCartesianLocation) *NullableRelativeCartesianLocation { + return &NullableRelativeCartesianLocation{value: val, isSet: true} +} + +func (v NullableRelativeCartesianLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelativeCartesianLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_resource.go b/internal/CapifPublishService/model_resource.go new file mode 100644 index 0000000000000000000000000000000000000000..f27513b4105109e16b686ba0555dc6f496a2fa36 --- /dev/null +++ b/internal/CapifPublishService/model_resource.go @@ -0,0 +1,333 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Resource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Resource{} + +// Resource Represents the API resource data. +type Resource struct { + // Resource name + ResourceName string `json:"resourceName"` + //CommType CommunicationType `json:"commType"` + CommType string `json:"commType"` + // Relative URI of the API resource, it is set as {apiSpecificSuffixes} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + Uri string `json:"uri"` + // it is set as {custOpName} part of the URI structure for a custom operation associated with a resource as defined in clause 5.2.4 of 3GPP TS 29.122. + CustOpName *string `json:"custOpName,omitempty"` + // Supported HTTP methods for the API resource. Only applicable when the protocol in AefProfile indicates HTTP. + Operations []Operation `json:"operations,omitempty"` + // Text description of the API resource + Description *string `json:"description,omitempty"` +} + +type _Resource Resource + +// NewResource instantiates a new Resource 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 NewResource(resourceName string, commType CommunicationType, uri string) *Resource { +func NewResource(resourceName string, commType string, uri string) *Resource { + this := Resource{} + this.ResourceName = resourceName + this.CommType = commType + this.Uri = uri + return &this +} + +// NewResourceWithDefaults instantiates a new Resource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceWithDefaults() *Resource { + this := Resource{} + return &this +} + +// GetResourceName returns the ResourceName field value +func (o *Resource) GetResourceName() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value +// and a boolean to check if the value has been set. +func (o *Resource) GetResourceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceName, true +} + +// SetResourceName sets field value +func (o *Resource) SetResourceName(v string) { + o.ResourceName = v +} + +// GetCommType returns the CommType field value +//func (o *Resource) GetCommType() CommunicationType { +func (o *Resource) GetCommType() string { + if o == nil { + //var ret CommunicationType + var ret string + return ret + } + + return o.CommType +} + +// GetCommTypeOk returns a tuple with the CommType field value +// and a boolean to check if the value has been set. +//func (o *Resource) GetCommTypeOk() (*CommunicationType, bool) { +func (o *Resource) GetCommTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommType, true +} + +// SetCommType sets field value +//func (o *Resource) SetCommType(v CommunicationType) { +func (o *Resource) SetCommType(v string) { + o.CommType = v +} + +// GetUri returns the Uri field value +func (o *Resource) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *Resource) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *Resource) SetUri(v string) { + o.Uri = v +} + +// GetCustOpName returns the CustOpName field value if set, zero value otherwise. +func (o *Resource) GetCustOpName() string { + if o == nil || IsNil(o.CustOpName) { + var ret string + return ret + } + return *o.CustOpName +} + +// GetCustOpNameOk returns a tuple with the CustOpName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetCustOpNameOk() (*string, bool) { + if o == nil || IsNil(o.CustOpName) { + return nil, false + } + return o.CustOpName, true +} + +// HasCustOpName returns a boolean if a field has been set. +func (o *Resource) HasCustOpName() bool { + if o != nil && !IsNil(o.CustOpName) { + return true + } + + return false +} + +// SetCustOpName gets a reference to the given string and assigns it to the CustOpName field. +func (o *Resource) SetCustOpName(v string) { + o.CustOpName = &v +} + +// GetOperations returns the Operations field value if set, zero value otherwise. +func (o *Resource) GetOperations() []Operation { + if o == nil || IsNil(o.Operations) { + var ret []Operation + return ret + } + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetOperationsOk() ([]Operation, bool) { + if o == nil || IsNil(o.Operations) { + return nil, false + } + return o.Operations, true +} + +// HasOperations returns a boolean if a field has been set. +func (o *Resource) HasOperations() bool { + if o != nil && !IsNil(o.Operations) { + return true + } + + return false +} + +// SetOperations gets a reference to the given []Operation and assigns it to the Operations field. +func (o *Resource) SetOperations(v []Operation) { + o.Operations = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Resource) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Resource) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Resource) SetDescription(v string) { + o.Description = &v +} + +func (o Resource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Resource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resourceName"] = o.ResourceName + toSerialize["commType"] = o.CommType + toSerialize["uri"] = o.Uri + if !IsNil(o.CustOpName) { + toSerialize["custOpName"] = o.CustOpName + } + if !IsNil(o.Operations) { + toSerialize["operations"] = o.Operations + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +func (o *Resource) UnmarshalJSON(data []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{ + "resourceName", + "commType", + "uri", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varResource := _Resource{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResource) + + if err != nil { + return err + } + + *o = Resource(varResource) + + return err +} + +type NullableResource struct { + value *Resource + isSet bool +} + +func (v NullableResource) Get() *Resource { + return v.value +} + +func (v *NullableResource) Set(val *Resource) { + v.value = val + v.isSet = true +} + +func (v NullableResource) IsSet() bool { + return v.isSet +} + +func (v *NullableResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResource(val *Resource) *NullableResource { + return &NullableResource{value: val, isSet: true} +} + +func (v NullableResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_security_method.go b/internal/CapifPublishService/model_security_method.go new file mode 100644 index 0000000000000000000000000000000000000000..814374d03616818842418bb43475236d1d891453 --- /dev/null +++ b/internal/CapifPublishService/model_security_method.go @@ -0,0 +1,87 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// SecurityMethod Possible values are: - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 +type SecurityMethod struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SecurityMethod) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SecurityMethod)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SecurityMethod) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSecurityMethod struct { + value *SecurityMethod + isSet bool +} + +func (v NullableSecurityMethod) Get() *SecurityMethod { + return v.value +} + +func (v *NullableSecurityMethod) Set(val *SecurityMethod) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityMethod(val *SecurityMethod) *NullableSecurityMethod { + return &NullableSecurityMethod{value: val, isSet: true} +} + +func (v NullableSecurityMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_service_api_description.go b/internal/CapifPublishService/model_service_api_description.go new file mode 100644 index 0000000000000000000000000000000000000000..3f10025c4cff0d8dc92c364055afb08a2f099fb7 --- /dev/null +++ b/internal/CapifPublishService/model_service_api_description.go @@ -0,0 +1,489 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ServiceAPIDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceAPIDescription{} + +// ServiceAPIDescription Represents the description of a service API as published by the APF. +type ServiceAPIDescription struct { + // API name, it is set as {apiName} part of the URI structure as defined in clause 5.2.4 of 3GPP TS 29.122. + ApiName string `json:"apiName"` + // API identifier assigned by the CAPIF core function to the published service API. Shall not be present in the HTTP POST request from the API publishing function to the CAPIF core function. Shall be present in the HTTP POST response from the CAPIF core function to the API publishing function and in the HTTP GET response from the CAPIF core function to the API invoker (discovery API). + ApiId *string `json:"apiId,omitempty"` + // AEF profile information, which includes the exposed API details (e.g. protocol). + AefProfiles []AefProfile `json:"aefProfiles,omitempty"` + // Text description of the API + Description *string `json:"description,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty"` + ShareableInfo *ShareableInformation `json:"shareableInfo,omitempty"` + ServiceAPICategory *string `json:"serviceAPICategory,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + ApiSuppFeats *string `json:"apiSuppFeats,omitempty"` + PubApiPath *PublishedApiPath `json:"pubApiPath,omitempty"` + // CAPIF core function identifier. + CcfId *string `json:"ccfId,omitempty"` +} + +type _ServiceAPIDescription ServiceAPIDescription + +// NewServiceAPIDescription instantiates a new ServiceAPIDescription 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 NewServiceAPIDescription(apiName string) *ServiceAPIDescription { + this := ServiceAPIDescription{} + this.ApiName = apiName + return &this +} + +// NewServiceAPIDescriptionWithDefaults instantiates a new ServiceAPIDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAPIDescriptionWithDefaults() *ServiceAPIDescription { + this := ServiceAPIDescription{} + return &this +} + +// GetApiName returns the ApiName field value +func (o *ServiceAPIDescription) GetApiName() string { + if o == nil { + var ret string + return ret + } + + return o.ApiName +} + +// GetApiNameOk returns a tuple with the ApiName field value +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiName, true +} + +// SetApiName sets field value +func (o *ServiceAPIDescription) SetApiName(v string) { + o.ApiName = v +} + +// GetApiId returns the ApiId field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetApiId() string { + if o == nil || IsNil(o.ApiId) { + var ret string + return ret + } + return *o.ApiId +} + +// GetApiIdOk returns a tuple with the ApiId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiId) { + return nil, false + } + return o.ApiId, true +} + +// HasApiId returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasApiId() bool { + if o != nil && !IsNil(o.ApiId) { + return true + } + + return false +} + +// SetApiId gets a reference to the given string and assigns it to the ApiId field. +func (o *ServiceAPIDescription) SetApiId(v string) { + o.ApiId = &v +} + +// GetAefProfiles returns the AefProfiles field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetAefProfiles() []AefProfile { + if o == nil || IsNil(o.AefProfiles) { + var ret []AefProfile + return ret + } + return o.AefProfiles +} + +// GetAefProfilesOk returns a tuple with the AefProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetAefProfilesOk() ([]AefProfile, bool) { + if o == nil || IsNil(o.AefProfiles) { + return nil, false + } + return o.AefProfiles, true +} + +// HasAefProfiles returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasAefProfiles() bool { + if o != nil && !IsNil(o.AefProfiles) { + return true + } + + return false +} + +// SetAefProfiles gets a reference to the given []AefProfile and assigns it to the AefProfiles field. +func (o *ServiceAPIDescription) SetAefProfiles(v []AefProfile) { + o.AefProfiles = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAPIDescription) SetDescription(v string) { + o.Description = &v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ServiceAPIDescription) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +// GetShareableInfo returns the ShareableInfo field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetShareableInfo() ShareableInformation { + if o == nil || IsNil(o.ShareableInfo) { + var ret ShareableInformation + return ret + } + return *o.ShareableInfo +} + +// GetShareableInfoOk returns a tuple with the ShareableInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetShareableInfoOk() (*ShareableInformation, bool) { + if o == nil || IsNil(o.ShareableInfo) { + return nil, false + } + return o.ShareableInfo, true +} + +// HasShareableInfo returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasShareableInfo() bool { + if o != nil && !IsNil(o.ShareableInfo) { + return true + } + + return false +} + +// SetShareableInfo gets a reference to the given ShareableInformation and assigns it to the ShareableInfo field. +func (o *ServiceAPIDescription) SetShareableInfo(v ShareableInformation) { + o.ShareableInfo = &v +} + +// GetServiceAPICategory returns the ServiceAPICategory field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetServiceAPICategory() string { + if o == nil || IsNil(o.ServiceAPICategory) { + var ret string + return ret + } + return *o.ServiceAPICategory +} + +// GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetServiceAPICategoryOk() (*string, bool) { + if o == nil || IsNil(o.ServiceAPICategory) { + return nil, false + } + return o.ServiceAPICategory, true +} + +// HasServiceAPICategory returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasServiceAPICategory() bool { + if o != nil && !IsNil(o.ServiceAPICategory) { + return true + } + + return false +} + +// SetServiceAPICategory gets a reference to the given string and assigns it to the ServiceAPICategory field. +func (o *ServiceAPIDescription) SetServiceAPICategory(v string) { + o.ServiceAPICategory = &v +} + +// GetApiSuppFeats returns the ApiSuppFeats field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetApiSuppFeats() string { + if o == nil || IsNil(o.ApiSuppFeats) { + var ret string + return ret + } + return *o.ApiSuppFeats +} + +// GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetApiSuppFeatsOk() (*string, bool) { + if o == nil || IsNil(o.ApiSuppFeats) { + return nil, false + } + return o.ApiSuppFeats, true +} + +// HasApiSuppFeats returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasApiSuppFeats() bool { + if o != nil && !IsNil(o.ApiSuppFeats) { + return true + } + + return false +} + +// SetApiSuppFeats gets a reference to the given string and assigns it to the ApiSuppFeats field. +func (o *ServiceAPIDescription) SetApiSuppFeats(v string) { + o.ApiSuppFeats = &v +} + +// GetPubApiPath returns the PubApiPath field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetPubApiPath() PublishedApiPath { + if o == nil || IsNil(o.PubApiPath) { + var ret PublishedApiPath + return ret + } + return *o.PubApiPath +} + +// GetPubApiPathOk returns a tuple with the PubApiPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetPubApiPathOk() (*PublishedApiPath, bool) { + if o == nil || IsNil(o.PubApiPath) { + return nil, false + } + return o.PubApiPath, true +} + +// HasPubApiPath returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasPubApiPath() bool { + if o != nil && !IsNil(o.PubApiPath) { + return true + } + + return false +} + +// SetPubApiPath gets a reference to the given PublishedApiPath and assigns it to the PubApiPath field. +func (o *ServiceAPIDescription) SetPubApiPath(v PublishedApiPath) { + o.PubApiPath = &v +} + +// GetCcfId returns the CcfId field value if set, zero value otherwise. +func (o *ServiceAPIDescription) GetCcfId() string { + if o == nil || IsNil(o.CcfId) { + var ret string + return ret + } + return *o.CcfId +} + +// GetCcfIdOk returns a tuple with the CcfId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescription) GetCcfIdOk() (*string, bool) { + if o == nil || IsNil(o.CcfId) { + return nil, false + } + return o.CcfId, true +} + +// HasCcfId returns a boolean if a field has been set. +func (o *ServiceAPIDescription) HasCcfId() bool { + if o != nil && !IsNil(o.CcfId) { + return true + } + + return false +} + +// SetCcfId gets a reference to the given string and assigns it to the CcfId field. +func (o *ServiceAPIDescription) SetCcfId(v string) { + o.CcfId = &v +} + +func (o ServiceAPIDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceAPIDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiName"] = o.ApiName + if !IsNil(o.ApiId) { + toSerialize["apiId"] = o.ApiId + } + if !IsNil(o.AefProfiles) { + toSerialize["aefProfiles"] = o.AefProfiles + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + if !IsNil(o.ShareableInfo) { + toSerialize["shareableInfo"] = o.ShareableInfo + } + if !IsNil(o.ServiceAPICategory) { + toSerialize["serviceAPICategory"] = o.ServiceAPICategory + } + if !IsNil(o.ApiSuppFeats) { + toSerialize["apiSuppFeats"] = o.ApiSuppFeats + } + if !IsNil(o.PubApiPath) { + toSerialize["pubApiPath"] = o.PubApiPath + } + if !IsNil(o.CcfId) { + toSerialize["ccfId"] = o.CcfId + } + return toSerialize, nil +} + +func (o *ServiceAPIDescription) UnmarshalJSON(data []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{ + "apiName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varServiceAPIDescription := _ServiceAPIDescription{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceAPIDescription) + + if err != nil { + return err + } + + *o = ServiceAPIDescription(varServiceAPIDescription) + + return err +} + +type NullableServiceAPIDescription struct { + value *ServiceAPIDescription + isSet bool +} + +func (v NullableServiceAPIDescription) Get() *ServiceAPIDescription { + return v.value +} + +func (v *NullableServiceAPIDescription) Set(val *ServiceAPIDescription) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAPIDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAPIDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAPIDescription(val *ServiceAPIDescription) *NullableServiceAPIDescription { + return &NullableServiceAPIDescription{value: val, isSet: true} +} + +func (v NullableServiceAPIDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAPIDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_service_api_description_patch.go b/internal/CapifPublishService/model_service_api_description_patch.go new file mode 100644 index 0000000000000000000000000000000000000000..aef849ddb801fc8be01caf802ec9e24b8b6c8d51 --- /dev/null +++ b/internal/CapifPublishService/model_service_api_description_patch.go @@ -0,0 +1,345 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" +) + +// checks if the ServiceAPIDescriptionPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceAPIDescriptionPatch{} + +// ServiceAPIDescriptionPatch Represents the parameters to request the modification of an APF published API resource. +type ServiceAPIDescriptionPatch struct { + AefProfiles []AefProfile `json:"aefProfiles,omitempty"` + // Text description of the API + Description *string `json:"description,omitempty"` + ShareableInfo *ShareableInformation `json:"shareableInfo,omitempty"` + ServiceAPICategory *string `json:"serviceAPICategory,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + ApiSuppFeats *string `json:"apiSuppFeats,omitempty"` + PubApiPath *PublishedApiPath `json:"pubApiPath,omitempty"` + // CAPIF core function identifier. + CcfId *string `json:"ccfId,omitempty"` +} + +// NewServiceAPIDescriptionPatch instantiates a new ServiceAPIDescriptionPatch 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 NewServiceAPIDescriptionPatch() *ServiceAPIDescriptionPatch { + this := ServiceAPIDescriptionPatch{} + return &this +} + +// NewServiceAPIDescriptionPatchWithDefaults instantiates a new ServiceAPIDescriptionPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAPIDescriptionPatchWithDefaults() *ServiceAPIDescriptionPatch { + this := ServiceAPIDescriptionPatch{} + return &this +} + +// GetAefProfiles returns the AefProfiles field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetAefProfiles() []AefProfile { + if o == nil || IsNil(o.AefProfiles) { + var ret []AefProfile + return ret + } + return o.AefProfiles +} + +// GetAefProfilesOk returns a tuple with the AefProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetAefProfilesOk() ([]AefProfile, bool) { + if o == nil || IsNil(o.AefProfiles) { + return nil, false + } + return o.AefProfiles, true +} + +// HasAefProfiles returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasAefProfiles() bool { + if o != nil && !IsNil(o.AefProfiles) { + return true + } + + return false +} + +// SetAefProfiles gets a reference to the given []AefProfile and assigns it to the AefProfiles field. +func (o *ServiceAPIDescriptionPatch) SetAefProfiles(v []AefProfile) { + o.AefProfiles = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAPIDescriptionPatch) SetDescription(v string) { + o.Description = &v +} + +// GetShareableInfo returns the ShareableInfo field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetShareableInfo() ShareableInformation { + if o == nil || IsNil(o.ShareableInfo) { + var ret ShareableInformation + return ret + } + return *o.ShareableInfo +} + +// GetShareableInfoOk returns a tuple with the ShareableInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetShareableInfoOk() (*ShareableInformation, bool) { + if o == nil || IsNil(o.ShareableInfo) { + return nil, false + } + return o.ShareableInfo, true +} + +// HasShareableInfo returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasShareableInfo() bool { + if o != nil && !IsNil(o.ShareableInfo) { + return true + } + + return false +} + +// SetShareableInfo gets a reference to the given ShareableInformation and assigns it to the ShareableInfo field. +func (o *ServiceAPIDescriptionPatch) SetShareableInfo(v ShareableInformation) { + o.ShareableInfo = &v +} + +// GetServiceAPICategory returns the ServiceAPICategory field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetServiceAPICategory() string { + if o == nil || IsNil(o.ServiceAPICategory) { + var ret string + return ret + } + return *o.ServiceAPICategory +} + +// GetServiceAPICategoryOk returns a tuple with the ServiceAPICategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetServiceAPICategoryOk() (*string, bool) { + if o == nil || IsNil(o.ServiceAPICategory) { + return nil, false + } + return o.ServiceAPICategory, true +} + +// HasServiceAPICategory returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasServiceAPICategory() bool { + if o != nil && !IsNil(o.ServiceAPICategory) { + return true + } + + return false +} + +// SetServiceAPICategory gets a reference to the given string and assigns it to the ServiceAPICategory field. +func (o *ServiceAPIDescriptionPatch) SetServiceAPICategory(v string) { + o.ServiceAPICategory = &v +} + +// GetApiSuppFeats returns the ApiSuppFeats field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetApiSuppFeats() string { + if o == nil || IsNil(o.ApiSuppFeats) { + var ret string + return ret + } + return *o.ApiSuppFeats +} + +// GetApiSuppFeatsOk returns a tuple with the ApiSuppFeats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetApiSuppFeatsOk() (*string, bool) { + if o == nil || IsNil(o.ApiSuppFeats) { + return nil, false + } + return o.ApiSuppFeats, true +} + +// HasApiSuppFeats returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasApiSuppFeats() bool { + if o != nil && !IsNil(o.ApiSuppFeats) { + return true + } + + return false +} + +// SetApiSuppFeats gets a reference to the given string and assigns it to the ApiSuppFeats field. +func (o *ServiceAPIDescriptionPatch) SetApiSuppFeats(v string) { + o.ApiSuppFeats = &v +} + +// GetPubApiPath returns the PubApiPath field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetPubApiPath() PublishedApiPath { + if o == nil || IsNil(o.PubApiPath) { + var ret PublishedApiPath + return ret + } + return *o.PubApiPath +} + +// GetPubApiPathOk returns a tuple with the PubApiPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetPubApiPathOk() (*PublishedApiPath, bool) { + if o == nil || IsNil(o.PubApiPath) { + return nil, false + } + return o.PubApiPath, true +} + +// HasPubApiPath returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasPubApiPath() bool { + if o != nil && !IsNil(o.PubApiPath) { + return true + } + + return false +} + +// SetPubApiPath gets a reference to the given PublishedApiPath and assigns it to the PubApiPath field. +func (o *ServiceAPIDescriptionPatch) SetPubApiPath(v PublishedApiPath) { + o.PubApiPath = &v +} + +// GetCcfId returns the CcfId field value if set, zero value otherwise. +func (o *ServiceAPIDescriptionPatch) GetCcfId() string { + if o == nil || IsNil(o.CcfId) { + var ret string + return ret + } + return *o.CcfId +} + +// GetCcfIdOk returns a tuple with the CcfId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAPIDescriptionPatch) GetCcfIdOk() (*string, bool) { + if o == nil || IsNil(o.CcfId) { + return nil, false + } + return o.CcfId, true +} + +// HasCcfId returns a boolean if a field has been set. +func (o *ServiceAPIDescriptionPatch) HasCcfId() bool { + if o != nil && !IsNil(o.CcfId) { + return true + } + + return false +} + +// SetCcfId gets a reference to the given string and assigns it to the CcfId field. +func (o *ServiceAPIDescriptionPatch) SetCcfId(v string) { + o.CcfId = &v +} + +func (o ServiceAPIDescriptionPatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceAPIDescriptionPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AefProfiles) { + toSerialize["aefProfiles"] = o.AefProfiles + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.ShareableInfo) { + toSerialize["shareableInfo"] = o.ShareableInfo + } + if !IsNil(o.ServiceAPICategory) { + toSerialize["serviceAPICategory"] = o.ServiceAPICategory + } + if !IsNil(o.ApiSuppFeats) { + toSerialize["apiSuppFeats"] = o.ApiSuppFeats + } + if !IsNil(o.PubApiPath) { + toSerialize["pubApiPath"] = o.PubApiPath + } + if !IsNil(o.CcfId) { + toSerialize["ccfId"] = o.CcfId + } + return toSerialize, nil +} + +type NullableServiceAPIDescriptionPatch struct { + value *ServiceAPIDescriptionPatch + isSet bool +} + +func (v NullableServiceAPIDescriptionPatch) Get() *ServiceAPIDescriptionPatch { + return v.value +} + +func (v *NullableServiceAPIDescriptionPatch) Set(val *ServiceAPIDescriptionPatch) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAPIDescriptionPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAPIDescriptionPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAPIDescriptionPatch(val *ServiceAPIDescriptionPatch) *NullableServiceAPIDescriptionPatch { + return &NullableServiceAPIDescriptionPatch{value: val, isSet: true} +} + +func (v NullableServiceAPIDescriptionPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAPIDescriptionPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_shareable_information.go b/internal/CapifPublishService/model_shareable_information.go new file mode 100644 index 0000000000000000000000000000000000000000..9deec09bea81c084b18d036e82fb18013c98dc72 --- /dev/null +++ b/internal/CapifPublishService/model_shareable_information.go @@ -0,0 +1,196 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ShareableInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShareableInformation{} + +// ShareableInformation Indicates whether the service API and/or the service API category can be shared to the list of CAPIF provider domains. +type ShareableInformation struct { + // Set to \"true\" indicates that the service API and/or the service API category can be shared to the list of CAPIF provider domain information. Otherwise set to \"false\". + IsShareable bool `json:"isShareable"` + // List of CAPIF provider domains to which the service API information to be shared. + CapifProvDoms []string `json:"capifProvDoms,omitempty"` +} + +type _ShareableInformation ShareableInformation + +// NewShareableInformation instantiates a new ShareableInformation 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 NewShareableInformation(isShareable bool) *ShareableInformation { + this := ShareableInformation{} + this.IsShareable = isShareable + return &this +} + +// NewShareableInformationWithDefaults instantiates a new ShareableInformation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShareableInformationWithDefaults() *ShareableInformation { + this := ShareableInformation{} + return &this +} + +// GetIsShareable returns the IsShareable field value +func (o *ShareableInformation) GetIsShareable() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsShareable +} + +// GetIsShareableOk returns a tuple with the IsShareable field value +// and a boolean to check if the value has been set. +func (o *ShareableInformation) GetIsShareableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsShareable, true +} + +// SetIsShareable sets field value +func (o *ShareableInformation) SetIsShareable(v bool) { + o.IsShareable = v +} + +// GetCapifProvDoms returns the CapifProvDoms field value if set, zero value otherwise. +func (o *ShareableInformation) GetCapifProvDoms() []string { + if o == nil || IsNil(o.CapifProvDoms) { + var ret []string + return ret + } + return o.CapifProvDoms +} + +// GetCapifProvDomsOk returns a tuple with the CapifProvDoms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShareableInformation) GetCapifProvDomsOk() ([]string, bool) { + if o == nil || IsNil(o.CapifProvDoms) { + return nil, false + } + return o.CapifProvDoms, true +} + +// HasCapifProvDoms returns a boolean if a field has been set. +func (o *ShareableInformation) HasCapifProvDoms() bool { + if o != nil && !IsNil(o.CapifProvDoms) { + return true + } + + return false +} + +// SetCapifProvDoms gets a reference to the given []string and assigns it to the CapifProvDoms field. +func (o *ShareableInformation) SetCapifProvDoms(v []string) { + o.CapifProvDoms = v +} + +func (o ShareableInformation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShareableInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["isShareable"] = o.IsShareable + if !IsNil(o.CapifProvDoms) { + toSerialize["capifProvDoms"] = o.CapifProvDoms + } + return toSerialize, nil +} + +func (o *ShareableInformation) UnmarshalJSON(data []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{ + "isShareable", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varShareableInformation := _ShareableInformation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varShareableInformation) + + if err != nil { + return err + } + + *o = ShareableInformation(varShareableInformation) + + return err +} + +type NullableShareableInformation struct { + value *ShareableInformation + isSet bool +} + +func (v NullableShareableInformation) Get() *ShareableInformation { + return v.value +} + +func (v *NullableShareableInformation) Set(val *ShareableInformation) { + v.value = val + v.isSet = true +} + +func (v NullableShareableInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableShareableInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShareableInformation(val *ShareableInformation) *NullableShareableInformation { + return &NullableShareableInformation{value: val, isSet: true} +} + +func (v NullableShareableInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShareableInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_supported_gad_shapes.go b/internal/CapifPublishService/model_supported_gad_shapes.go new file mode 100644 index 0000000000000000000000000000000000000000..0ef21064b57866a028b2bc48ee4371cfb11f0909 --- /dev/null +++ b/internal/CapifPublishService/model_supported_gad_shapes.go @@ -0,0 +1,87 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "fmt" +) + +// SupportedGADShapes Indicates supported GAD shapes. +type SupportedGADShapes struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SupportedGADShapes) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SupportedGADShapes)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SupportedGADShapes) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(&src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSupportedGADShapes struct { + value *SupportedGADShapes + isSet bool +} + +func (v NullableSupportedGADShapes) Get() *SupportedGADShapes { + return v.value +} + +func (v *NullableSupportedGADShapes) Set(val *SupportedGADShapes) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedGADShapes) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedGADShapes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedGADShapes(val *SupportedGADShapes) *NullableSupportedGADShapes { + return &NullableSupportedGADShapes{value: val, isSet: true} +} + +func (v NullableSupportedGADShapes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedGADShapes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_uncertainty_ellipse.go b/internal/CapifPublishService/model_uncertainty_ellipse.go new file mode 100644 index 0000000000000000000000000000000000000000..ea07fb4084e9dbba8c2cdf4e6c649090f72fae0a --- /dev/null +++ b/internal/CapifPublishService/model_uncertainty_ellipse.go @@ -0,0 +1,217 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UncertaintyEllipse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UncertaintyEllipse{} + +// UncertaintyEllipse Ellipse with uncertainty. +type UncertaintyEllipse struct { + // Indicates value of uncertainty. + SemiMajor float32 `json:"semiMajor"` + // Indicates value of uncertainty. + SemiMinor float32 `json:"semiMinor"` + // Indicates value of orientation angle. + OrientationMajor int32 `json:"orientationMajor"` +} + +type _UncertaintyEllipse UncertaintyEllipse + +// NewUncertaintyEllipse instantiates a new UncertaintyEllipse 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 NewUncertaintyEllipse(semiMajor float32, semiMinor float32, orientationMajor int32) *UncertaintyEllipse { + this := UncertaintyEllipse{} + this.SemiMajor = semiMajor + this.SemiMinor = semiMinor + this.OrientationMajor = orientationMajor + return &this +} + +// NewUncertaintyEllipseWithDefaults instantiates a new UncertaintyEllipse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUncertaintyEllipseWithDefaults() *UncertaintyEllipse { + this := UncertaintyEllipse{} + return &this +} + +// GetSemiMajor returns the SemiMajor field value +func (o *UncertaintyEllipse) GetSemiMajor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMajor +} + +// GetSemiMajorOk returns a tuple with the SemiMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetSemiMajorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMajor, true +} + +// SetSemiMajor sets field value +func (o *UncertaintyEllipse) SetSemiMajor(v float32) { + o.SemiMajor = v +} + +// GetSemiMinor returns the SemiMinor field value +func (o *UncertaintyEllipse) GetSemiMinor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMinor +} + +// GetSemiMinorOk returns a tuple with the SemiMinor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetSemiMinorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMinor, true +} + +// SetSemiMinor sets field value +func (o *UncertaintyEllipse) SetSemiMinor(v float32) { + o.SemiMinor = v +} + +// GetOrientationMajor returns the OrientationMajor field value +func (o *UncertaintyEllipse) GetOrientationMajor() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OrientationMajor +} + +// GetOrientationMajorOk returns a tuple with the OrientationMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipse) GetOrientationMajorOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OrientationMajor, true +} + +// SetOrientationMajor sets field value +func (o *UncertaintyEllipse) SetOrientationMajor(v int32) { + o.OrientationMajor = v +} + +func (o UncertaintyEllipse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UncertaintyEllipse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["semiMajor"] = o.SemiMajor + toSerialize["semiMinor"] = o.SemiMinor + toSerialize["orientationMajor"] = o.OrientationMajor + return toSerialize, nil +} + +func (o *UncertaintyEllipse) UnmarshalJSON(data []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{ + "semiMajor", + "semiMinor", + "orientationMajor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varUncertaintyEllipse := _UncertaintyEllipse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUncertaintyEllipse) + + if err != nil { + return err + } + + *o = UncertaintyEllipse(varUncertaintyEllipse) + + return err +} + +type NullableUncertaintyEllipse struct { + value *UncertaintyEllipse + isSet bool +} + +func (v NullableUncertaintyEllipse) Get() *UncertaintyEllipse { + return v.value +} + +func (v *NullableUncertaintyEllipse) Set(val *UncertaintyEllipse) { + v.value = val + v.isSet = true +} + +func (v NullableUncertaintyEllipse) IsSet() bool { + return v.isSet +} + +func (v *NullableUncertaintyEllipse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUncertaintyEllipse(val *UncertaintyEllipse) *NullableUncertaintyEllipse { + return &NullableUncertaintyEllipse{value: val, isSet: true} +} + +func (v NullableUncertaintyEllipse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUncertaintyEllipse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_uncertainty_ellipsoid.go b/internal/CapifPublishService/model_uncertainty_ellipsoid.go new file mode 100644 index 0000000000000000000000000000000000000000..77795eb3ea16328ea6afb3029ae7e96541df53b9 --- /dev/null +++ b/internal/CapifPublishService/model_uncertainty_ellipsoid.go @@ -0,0 +1,246 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UncertaintyEllipsoid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UncertaintyEllipsoid{} + +// UncertaintyEllipsoid Ellipsoid with uncertainty +type UncertaintyEllipsoid struct { + // Indicates value of uncertainty. + SemiMajor float32 `json:"semiMajor"` + // Indicates value of uncertainty. + SemiMinor float32 `json:"semiMinor"` + // Indicates value of uncertainty. + Vertical float32 `json:"vertical"` + // Indicates value of orientation angle. + OrientationMajor int32 `json:"orientationMajor"` +} + +type _UncertaintyEllipsoid UncertaintyEllipsoid + +// NewUncertaintyEllipsoid instantiates a new UncertaintyEllipsoid 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 NewUncertaintyEllipsoid(semiMajor float32, semiMinor float32, vertical float32, orientationMajor int32) *UncertaintyEllipsoid { + this := UncertaintyEllipsoid{} + this.SemiMajor = semiMajor + this.SemiMinor = semiMinor + this.Vertical = vertical + this.OrientationMajor = orientationMajor + return &this +} + +// NewUncertaintyEllipsoidWithDefaults instantiates a new UncertaintyEllipsoid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUncertaintyEllipsoidWithDefaults() *UncertaintyEllipsoid { + this := UncertaintyEllipsoid{} + return &this +} + +// GetSemiMajor returns the SemiMajor field value +func (o *UncertaintyEllipsoid) GetSemiMajor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMajor +} + +// GetSemiMajorOk returns a tuple with the SemiMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetSemiMajorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMajor, true +} + +// SetSemiMajor sets field value +func (o *UncertaintyEllipsoid) SetSemiMajor(v float32) { + o.SemiMajor = v +} + +// GetSemiMinor returns the SemiMinor field value +func (o *UncertaintyEllipsoid) GetSemiMinor() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SemiMinor +} + +// GetSemiMinorOk returns a tuple with the SemiMinor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetSemiMinorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SemiMinor, true +} + +// SetSemiMinor sets field value +func (o *UncertaintyEllipsoid) SetSemiMinor(v float32) { + o.SemiMinor = v +} + +// GetVertical returns the Vertical field value +func (o *UncertaintyEllipsoid) GetVertical() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Vertical +} + +// GetVerticalOk returns a tuple with the Vertical field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetVerticalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Vertical, true +} + +// SetVertical sets field value +func (o *UncertaintyEllipsoid) SetVertical(v float32) { + o.Vertical = v +} + +// GetOrientationMajor returns the OrientationMajor field value +func (o *UncertaintyEllipsoid) GetOrientationMajor() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.OrientationMajor +} + +// GetOrientationMajorOk returns a tuple with the OrientationMajor field value +// and a boolean to check if the value has been set. +func (o *UncertaintyEllipsoid) GetOrientationMajorOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.OrientationMajor, true +} + +// SetOrientationMajor sets field value +func (o *UncertaintyEllipsoid) SetOrientationMajor(v int32) { + o.OrientationMajor = v +} + +func (o UncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UncertaintyEllipsoid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["semiMajor"] = o.SemiMajor + toSerialize["semiMinor"] = o.SemiMinor + toSerialize["vertical"] = o.Vertical + toSerialize["orientationMajor"] = o.OrientationMajor + return toSerialize, nil +} + +func (o *UncertaintyEllipsoid) UnmarshalJSON(data []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{ + "semiMajor", + "semiMinor", + "vertical", + "orientationMajor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varUncertaintyEllipsoid := _UncertaintyEllipsoid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUncertaintyEllipsoid) + + if err != nil { + return err + } + + *o = UncertaintyEllipsoid(varUncertaintyEllipsoid) + + return err +} + +type NullableUncertaintyEllipsoid struct { + value *UncertaintyEllipsoid + isSet bool +} + +func (v NullableUncertaintyEllipsoid) Get() *UncertaintyEllipsoid { + return v.value +} + +func (v *NullableUncertaintyEllipsoid) Set(val *UncertaintyEllipsoid) { + v.value = val + v.isSet = true +} + +func (v NullableUncertaintyEllipsoid) IsSet() bool { + return v.isSet +} + +func (v *NullableUncertaintyEllipsoid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUncertaintyEllipsoid(val *UncertaintyEllipsoid) *NullableUncertaintyEllipsoid { + return &NullableUncertaintyEllipsoid{value: val, isSet: true} +} + +func (v NullableUncertaintyEllipsoid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUncertaintyEllipsoid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/model_version.go b/internal/CapifPublishService/model_version.go new file mode 100644 index 0000000000000000000000000000000000000000..542bdd9fa411cab0c51c7fa47405f8c2b71d54ac --- /dev/null +++ b/internal/CapifPublishService/model_version.go @@ -0,0 +1,271 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the Version type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Version{} + +// Version Represents the API version information. +type Version struct { + // API major version in URI (e.g. v1) + ApiVersion string `json:"apiVersion"` + // string with format \"date-time\" as defined in OpenAPI. + Expiry *time.Time `json:"expiry,omitempty"` + // Resources supported by the API. + Resources []Resource `json:"resources,omitempty"` + // Custom operations without resource association. + CustOperations []CustomOperation `json:"custOperations,omitempty"` +} + +type _Version Version + +// NewVersion instantiates a new Version 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 NewVersion(apiVersion string) *Version { + this := Version{} + this.ApiVersion = apiVersion + return &this +} + +// NewVersionWithDefaults instantiates a new Version object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionWithDefaults() *Version { + this := Version{} + return &this +} + +// GetApiVersion returns the ApiVersion field value +func (o *Version) GetApiVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value +// and a boolean to check if the value has been set. +func (o *Version) GetApiVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiVersion, true +} + +// SetApiVersion sets field value +func (o *Version) SetApiVersion(v string) { + o.ApiVersion = v +} + +// GetExpiry returns the Expiry field value if set, zero value otherwise. +func (o *Version) GetExpiry() time.Time { + if o == nil || IsNil(o.Expiry) { + var ret time.Time + return ret + } + return *o.Expiry +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetExpiryOk() (*time.Time, bool) { + if o == nil || IsNil(o.Expiry) { + return nil, false + } + return o.Expiry, true +} + +// HasExpiry returns a boolean if a field has been set. +func (o *Version) HasExpiry() bool { + if o != nil && !IsNil(o.Expiry) { + return true + } + + return false +} + +// SetExpiry gets a reference to the given time.Time and assigns it to the Expiry field. +func (o *Version) SetExpiry(v time.Time) { + o.Expiry = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *Version) GetResources() []Resource { + if o == nil || IsNil(o.Resources) { + var ret []Resource + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetResourcesOk() ([]Resource, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *Version) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Resource and assigns it to the Resources field. +func (o *Version) SetResources(v []Resource) { + o.Resources = v +} + +// GetCustOperations returns the CustOperations field value if set, zero value otherwise. +func (o *Version) GetCustOperations() []CustomOperation { + if o == nil || IsNil(o.CustOperations) { + var ret []CustomOperation + return ret + } + return o.CustOperations +} + +// GetCustOperationsOk returns a tuple with the CustOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetCustOperationsOk() ([]CustomOperation, bool) { + if o == nil || IsNil(o.CustOperations) { + return nil, false + } + return o.CustOperations, true +} + +// HasCustOperations returns a boolean if a field has been set. +func (o *Version) HasCustOperations() bool { + if o != nil && !IsNil(o.CustOperations) { + return true + } + + return false +} + +// SetCustOperations gets a reference to the given []CustomOperation and assigns it to the CustOperations field. +func (o *Version) SetCustOperations(v []CustomOperation) { + o.CustOperations = v +} + +func (o Version) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Version) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiVersion"] = o.ApiVersion + if !IsNil(o.Expiry) { + toSerialize["expiry"] = o.Expiry + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.CustOperations) { + toSerialize["custOperations"] = o.CustOperations + } + return toSerialize, nil +} + +func (o *Version) UnmarshalJSON(data []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{ + "apiVersion", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varVersion := _Version{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varVersion) + + if err != nil { + return err + } + + *o = Version(varVersion) + + return err +} + +type NullableVersion struct { + value *Version + isSet bool +} + +func (v NullableVersion) Get() *Version { + return v.value +} + +func (v *NullableVersion) Set(val *Version) { + v.value = val + v.isSet = true +} + +func (v NullableVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersion(val *Version) *NullableVersion { + return &NullableVersion{value: val, isSet: true} +} + +func (v NullableVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifPublishService/response.go b/internal/CapifPublishService/response.go new file mode 100644 index 0000000000000000000000000000000000000000..70b467f12d3022ff14bea8bf65834aa75d256eaf --- /dev/null +++ b/internal/CapifPublishService/response.go @@ -0,0 +1,47 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/internal/CapifPublishService/utils.go b/internal/CapifPublishService/utils.go new file mode 100644 index 0000000000000000000000000000000000000000..1171f6816f0caa87f9db643f7af70eacd5e9c8c6 --- /dev/null +++ b/internal/CapifPublishService/utils.go @@ -0,0 +1,347 @@ +/* +CAPIF_Publish_Service_API + +API for publishing service APIs. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifPublishService + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/internal/CapifSecurity/.gitignore b/internal/CapifSecurity/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..daf913b1b347aae6de6f48d599bc89ef8c8693d6 --- /dev/null +++ b/internal/CapifSecurity/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/internal/CapifSecurity/.openapi-generator-ignore b/internal/CapifSecurity/.openapi-generator-ignore new file mode 100644 index 0000000000000000000000000000000000000000..7484ee590a3894506cf063799b885428f95a71be --- /dev/null +++ b/internal/CapifSecurity/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/internal/CapifSecurity/.openapi-generator/FILES b/internal/CapifSecurity/.openapi-generator/FILES new file mode 100644 index 0000000000000000000000000000000000000000..08ae1f7da974b57b825f2aeafa3fe5a1f01ab08b --- /dev/null +++ b/internal/CapifSecurity/.openapi-generator/FILES @@ -0,0 +1,55 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/AccessTokenClaims.md +docs/AccessTokenErr.md +docs/AccessTokenErr1.md +docs/AccessTokenReq1.md +docs/AccessTokenRsp.md +docs/Cause.md +docs/DefaultAPI.md +docs/InterfaceDescription.md +docs/InvalidParam.md +docs/InvalidParam1.md +docs/NFType.md +docs/PlmnId.md +docs/PlmnIdNid.md +docs/ProblemDetails.md +docs/ProblemDetails1.md +docs/SecurityInformation.md +docs/SecurityMethod.md +docs/SecurityNotification.md +docs/ServiceSecurity.md +docs/Snssai.md +docs/WebsockNotifConfig.md +git_push.sh +go.mod +go.sum +model_access_token_claims.go +model_access_token_err.go +model_access_token_err_1.go +model_access_token_req_1.go +model_access_token_rsp.go +model_cause.go +model_interface_description.go +model_invalid_param.go +model_invalid_param_1.go +model_nf_type.go +model_plmn_id.go +model_plmn_id_nid.go +model_problem_details.go +model_problem_details_1.go +model_security_information.go +model_security_method.go +model_security_notification.go +model_service_security.go +model_snssai.go +model_websock_notif_config.go +response.go +test/api_default_test.go +utils.go diff --git a/internal/CapifSecurity/.openapi-generator/VERSION b/internal/CapifSecurity/.openapi-generator/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..09a6d30847de30d7c0613ac8e5a5a9c85cb8b96b --- /dev/null +++ b/internal/CapifSecurity/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/internal/CapifSecurity/.travis.yml b/internal/CapifSecurity/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..f5cb2ce9a5aad73c57eed886e845d2e79c2899d1 --- /dev/null +++ b/internal/CapifSecurity/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/internal/CapifSecurity/README.md b/internal/CapifSecurity/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8466870df7a411c14f4266aa16a777c4cdedd913 --- /dev/null +++ b/internal/CapifSecurity/README.md @@ -0,0 +1,140 @@ +# Go API client for CapifSecurity + +API for CAPIF security management. +© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). +All rights reserved. + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.2.0 +- Package version: 1.0.0 +- Generator version: 7.8.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import CapifSecurity "github.com/GIT_USER_ID/GIT_REPO_ID" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `CapifSecurity.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), CapifSecurity.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `CapifSecurity.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), CapifSecurity.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +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 `CapifSecurity.ContextOperationServerIndices` and `CapifSecurity.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), CapifSecurity.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), CapifSecurity.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://example.com/capif-security/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultAPI* | [**SecuritiesSecurityIdTokenPost**](docs/DefaultAPI.md#securitiessecurityidtokenpost) | **Post** /securities/{securityId}/token | +*DefaultAPI* | [**TrustedInvokersApiInvokerIdDelete**](docs/DefaultAPI.md#trustedinvokersapiinvokeriddelete) | **Delete** /trustedInvokers/{apiInvokerId} | +*DefaultAPI* | [**TrustedInvokersApiInvokerIdDeletePost**](docs/DefaultAPI.md#trustedinvokersapiinvokeriddeletepost) | **Post** /trustedInvokers/{apiInvokerId}/delete | +*DefaultAPI* | [**TrustedInvokersApiInvokerIdGet**](docs/DefaultAPI.md#trustedinvokersapiinvokeridget) | **Get** /trustedInvokers/{apiInvokerId} | +*DefaultAPI* | [**TrustedInvokersApiInvokerIdPut**](docs/DefaultAPI.md#trustedinvokersapiinvokeridput) | **Put** /trustedInvokers/{apiInvokerId} | +*DefaultAPI* | [**TrustedInvokersApiInvokerIdUpdatePost**](docs/DefaultAPI.md#trustedinvokersapiinvokeridupdatepost) | **Post** /trustedInvokers/{apiInvokerId}/update | + + +## Documentation For Models + + - [AccessTokenClaims](docs/AccessTokenClaims.md) + - [AccessTokenErr](docs/AccessTokenErr.md) + - [AccessTokenErr1](docs/AccessTokenErr1.md) + - [AccessTokenReq1](docs/AccessTokenReq1.md) + - [AccessTokenRsp](docs/AccessTokenRsp.md) + - [Cause](docs/Cause.md) + - [InterfaceDescription](docs/InterfaceDescription.md) + - [InvalidParam](docs/InvalidParam.md) + - [InvalidParam1](docs/InvalidParam1.md) + - [NFType](docs/NFType.md) + - [PlmnId](docs/PlmnId.md) + - [PlmnIdNid](docs/PlmnIdNid.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [ProblemDetails1](docs/ProblemDetails1.md) + - [SecurityInformation](docs/SecurityInformation.md) + - [SecurityMethod](docs/SecurityMethod.md) + - [SecurityNotification](docs/SecurityNotification.md) + - [ServiceSecurity](docs/ServiceSecurity.md) + - [Snssai](docs/Snssai.md) + - [WebsockNotifConfig](docs/WebsockNotifConfig.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/internal/CapifSecurity/api/openapi.yaml b/internal/CapifSecurity/api/openapi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5a91a2ae83e925ca192ad9c14f5bf3f5c568256b --- /dev/null +++ b/internal/CapifSecurity/api/openapi.yaml @@ -0,0 +1,1539 @@ +openapi: 3.0.0 +info: + description: "API for CAPIF security management. \n© 2022, 3GPP Organizational\ + \ Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). \nAll rights reserved.\n" + title: CAPIF_Security_API + version: 1.2.0 +externalDocs: + description: 3GPP TS 29.222 V17.5.0 Common API Framework for 3GPP Northbound APIs + url: https://www.3gpp.org/ftp/Specs/archive/29_series/29.222/ +servers: +- url: "{apiRoot}/capif-security/v1" + variables: + apiRoot: + default: https://example.com + description: apiRoot as defined in clause 7.5 of 3GPP TS 29.222. +paths: + /trustedInvokers/{apiInvokerId}: + delete: + parameters: + - description: Identifier of an individual API invoker + explode: false + in: path + name: apiInvokerId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content (Successful deletion of the existing subscription) + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + get: + parameters: + - description: Identifier of an individual API invoker + explode: false + in: path + name: apiInvokerId + required: true + schema: + type: string + style: simple + - description: | + When set to 'true', it indicates the CAPIF core function to send the authentication information of the API invoker. Set to false or omitted otherwise. + explode: true + in: query + name: authenticationInfo + required: false + schema: + type: boolean + style: form + - description: | + When set to 'true', it indicates the CAPIF core function to send the authorization information of the API invoker. Set to false or omitted otherwise. + explode: true + in: query + name: authorizationInfo + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceSecurity' + description: | + The security related information of the API Invoker based on the request from the API exposing function. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "414": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: URI Too Long + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + put: + callbacks: + notificationDestination: + '{request.body#/notificationDestination}': + post: + operationId: NotificationDestinationRequestBodyNotificationDestinationPost + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityNotification' + required: true + responses: + "204": + description: No Content (successful notification) + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + x-callback-request: true + parameters: + - description: Identifier of an individual API invoker + explode: false + in: path + name: apiInvokerId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceSecurity' + description: create a security context for an API invoker + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceSecurity' + description: Successful created. + headers: + Location: + description: | + Contains the URI of the newly created resource, according to the structure {apiRoot}/capif-security/v1/trustedInvokers/{apiInvokerId} + explode: false + required: true + schema: + type: string + style: simple + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "414": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: URI Too Long + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + /trustedInvokers/{apiInvokerId}/update: + post: + parameters: + - description: Identifier of an individual API invoker + explode: false + in: path + name: apiInvokerId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceSecurity' + description: Update the security context (e.g. re-negotiate the security methods). + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceSecurity' + description: Successful updated. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + /trustedInvokers/{apiInvokerId}/delete: + post: + parameters: + - description: Identifier of an individual API invoker + explode: false + in: path + name: apiInvokerId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityNotification' + description: Revoke the authorization of the API invoker for APIs. + required: true + responses: + "204": + description: Successful revoked. + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + /securities/{securityId}/token: + post: + parameters: + - description: Identifier of an individual API invoker + explode: false + in: path + name: securityId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AccessTokenReq' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessTokenRsp' + description: Successful Access Token Request + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessTokenErr' + description: Error in the Access Token Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessTokenErr' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error +components: + responses: + "307": + description: Temporary Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "308": + description: Permanent Redirect + headers: + Location: + description: An alternative URI of the resource. + required: true + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Bad request + "401": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unauthorized + "403": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Forbidden + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Found + "406": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Not Acceptable + "414": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: URI Too Long + "429": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Too Many Requests + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Internal Server Error + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Service Unavailable + default: + description: Generic Error + "411": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Length Required + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Payload Too Large + "415": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ProblemDetails' + description: Unsupported Media Type + schemas: + ServiceSecurity: + description: | + Represents the details of the security method for each service API interface. When included by the API invoker, it indicates the preferred method of security. When included by the CAPIF core function, it indicates the security method to be used for the service API interface. + example: + notificationDestination: notificationDestination + supportedFeatures: supportedFeatures + securityInfo: + - selSecurityMethod: null + authenticationInfo: authenticationInfo + authorizationInfo: authorizationInfo + interfaceDetails: + ipv6Addr: ipv6Addr + securityMethods: + - PSK + - PSK + port: 5248 + ipv4Addr: ipv4Addr + prefSecurityMethods: + - null + - null + aefId: aefId + apiId: apiId + - selSecurityMethod: null + authenticationInfo: authenticationInfo + authorizationInfo: authorizationInfo + interfaceDetails: + ipv6Addr: ipv6Addr + securityMethods: + - PSK + - PSK + port: 5248 + ipv4Addr: ipv4Addr + prefSecurityMethods: + - null + - null + aefId: aefId + apiId: apiId + websockNotifConfig: + requestWebsocketUri: true + websocketUri: websocketUri + requestTestNotification: true + properties: + securityInfo: + items: + $ref: '#/components/schemas/SecurityInformation' + minimum: 1 + type: array + notificationDestination: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + requestTestNotification: + description: | + Set to true by API invoker to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. + type: boolean + websockNotifConfig: + $ref: '#/components/schemas/WebsockNotifConfig' + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + required: + - notificationDestination + - securityInfo + type: object + SecurityInformation: + description: Represents the interface details and the security method. + example: + selSecurityMethod: null + authenticationInfo: authenticationInfo + authorizationInfo: authorizationInfo + interfaceDetails: + ipv6Addr: ipv6Addr + securityMethods: + - PSK + - PSK + port: 5248 + ipv4Addr: ipv4Addr + prefSecurityMethods: + - null + - null + aefId: aefId + apiId: apiId + nullable: true + oneOf: [] + properties: + interfaceDetails: + $ref: '#/components/schemas/InterfaceDescription' + aefId: + description: Identifier of the API exposing function + type: string + apiId: + description: API identifier + type: string + prefSecurityMethods: + description: Security methods preferred by the API invoker for the API interface. + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + selSecurityMethod: + $ref: '#/components/schemas/SecurityMethod' + authenticationInfo: + description: Authentication related information + type: string + authorizationInfo: + description: Authorization related information + type: string + required: + - prefSecurityMethods + type: object + SecurityNotification: + description: Represents revoked authorization notification details. + example: + apiInvokerId: apiInvokerId + cause: OVERLIMIT_USAGE + aefId: aefId + apiIds: + - apiIds + - apiIds + properties: + apiInvokerId: + description: String identifying the API invoker assigned by the CAPIF core + function. + type: string + aefId: + description: String identifying the AEF. + type: string + apiIds: + description: Identifier of the service API + items: + type: string + minItems: 1 + type: array + cause: + $ref: '#/components/schemas/Cause' + required: + - apiIds + - apiInvokerId + - cause + type: object + AccessTokenReq: + description: Represents the access token request information. + format: x-www-form-urlencoded + properties: + grant_type: + enum: + - client_credentials + type: string + client_id: + type: string + client_secret: + type: string + scope: + type: string + required: + - client_id + - grant_type + AccessTokenRsp: + description: Represents the access token response information. + example: + access_token: access_token + scope: scope + token_type: Bearer + expires_in: 0 + properties: + access_token: + description: | + JWS Compact Serialized representation of JWS signed JSON object (AccessTokenClaims) + type: string + token_type: + enum: + - Bearer + type: string + expires_in: + description: Unsigned integer identifying a period of time in units of seconds. + minimum: 0 + type: integer + scope: + type: string + required: + - access_token + - expires_in + - token_type + type: object + AccessTokenClaims: + description: Represents the claims data structure for the access token. + properties: + iss: + type: string + scope: + type: string + exp: + description: Unsigned integer identifying a period of time in units of seconds. + minimum: 0 + type: integer + required: + - exp + - iss + - scope + type: object + AccessTokenErr: + description: Represents an error in the access token request. + example: + error_description: error_description + error: invalid_request + error_uri: error_uri + properties: + error: + enum: + - invalid_request + - invalid_client + - invalid_grant + - unauthorized_client + - unsupported_grant_type + - invalid_scope + type: string + error_description: + type: string + error_uri: + type: string + required: + - error + type: object + Cause: + anyOf: + - enum: + - OVERLIMIT_USAGE + - UNEXPECTED_REASON + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API + - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason. + ProblemDetails: + description: Represents additional information and details on an error response. + properties: + type: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + title: + description: "A short, human-readable summary of the problem type. It should\ + \ not change from occurrence to occurrence of the problem." + type: string + status: + description: The HTTP status code for this occurrence of the problem. + type: integer + detail: + description: A human-readable explanation specific to this occurrence of + the problem. + type: string + instance: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + cause: + description: "A machine-readable application error cause specific to this\ + \ occurrence of the problem. This IE should be present and provide application-related\ + \ error information, if available." + type: string + invalidParams: + description: "Description of invalid parameters, for a request rejected\ + \ due to invalid parameters." + items: + $ref: '#/components/schemas/InvalidParam' + minItems: 1 + type: array + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + type: object + Uri: + description: string providing an URI formatted according to IETF RFC 3986. + type: string + InvalidParam: + description: "Represents the description of invalid parameters, for a request\ + \ rejected due to invalid parameters." + properties: + param: + description: "Attribute's name encoded as a JSON Pointer, or header's name." + type: string + reason: + description: "A human-readable reason, e.g. \"must be a positive integer\"\ + ." + type: string + required: + - param + type: object + ProblemDetails_1: + description: Provides additional information in an error response. + properties: + type: + description: String providing an URI formatted according to RFC 3986. + type: string + title: + type: string + status: + type: integer + detail: + description: A human-readable explanation specific to this occurrence of + the problem. + type: string + instance: + description: String providing an URI formatted according to RFC 3986. + type: string + cause: + description: | + A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + type: string + invalidParams: + items: + $ref: '#/components/schemas/InvalidParam_1' + minItems: 1 + type: array + supportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + accessTokenError: + $ref: '#/components/schemas/AccessTokenErr_1' + accessTokenRequest: + $ref: '#/components/schemas/AccessTokenReq_1' + nrfId: + description: Fully Qualified Domain Name + maxLength: 253 + minLength: 4 + pattern: "^([0-9A-Za-z]([-0-9A-Za-z]{0,61}[0-9A-Za-z])?\\.)+[A-Za-z]{2,63}\\\ + .?$" + type: string + type: object + Uri_1: + description: String providing an URI formatted according to RFC 3986. + type: string + InvalidParam_1: + description: It contains an invalid parameter and a related description. + properties: + param: + description: | + If the invalid parameter is an attribute in a JSON body, this IE shall contain the attribute's name and shall be encoded as a JSON Pointer. If the invalid parameter is an HTTP header, this IE shall be formatted as the concatenation of the string "header " plus the name of such header. If the invalid parameter is a query parameter, this IE shall be formatted as the concatenation of the string "query " plus the name of such query parameter. If the invalid parameter is a variable part in the path of a resource URI, this IE shall contain the name of the variable, including the symbols "{" and "}" used in OpenAPI specification as the notation to represent variable path segments. + type: string + reason: + description: | + A human-readable reason, e.g. "must be a positive integer". In cases involving failed operations in a PATCH request, the reason string should identify the operation that failed using the operation's array index to assist in correlation of the invalid parameter with the failed operation, e.g." Replacement value invalid for attribute (failed operation index= 4)" + type: string + required: + - param + type: object + SupportedFeatures: + description: | + A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + pattern: "^[A-Fa-f0-9]*$" + type: string + Fqdn: + description: Fully Qualified Domain Name + maxLength: 253 + minLength: 4 + pattern: "^([0-9A-Za-z]([-0-9A-Za-z]{0,61}[0-9A-Za-z])?\\.)+[A-Za-z]{2,63}\\\ + .?$" + type: string + WebsockNotifConfig: + description: Represents the configuration information for the delivery of notifications + over Websockets. + example: + requestWebsocketUri: true + websocketUri: websocketUri + properties: + websocketUri: + description: string formatted according to IETF RFC 3986 identifying a referenced + resource. + type: string + requestWebsocketUri: + description: Set by the SCS/AS to indicate that the Websocket delivery is + requested. + type: boolean + type: object + Link: + description: string formatted according to IETF RFC 3986 identifying a referenced + resource. + type: string + InterfaceDescription: + description: Represents the description of an API's interface. + example: + ipv6Addr: ipv6Addr + securityMethods: + - PSK + - PSK + port: 5248 + ipv4Addr: ipv4Addr + nullable: true + oneOf: [] + properties: + ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted + decimal" notation as defined in IETF RFC 1166. + type: string + ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 + of IETF RFC 5952 shall not be used. + type: string + port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + securityMethods: + description: | + Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + items: + $ref: '#/components/schemas/SecurityMethod' + minItems: 1 + type: array + type: object + SecurityMethod: + anyOf: + - enum: + - PSK + - PKI + - OAUTH + type: string + - description: | + This string provides forward-compatibility with future extensions to the enumeration but is not used to encode content defined in the present version of this API. + type: string + description: | + Possible values are: + - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 + - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 + - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 + DurationSec: + description: Unsigned integer identifying a period of time in units of seconds. + minimum: 0 + type: integer + AccessTokenErr_1: + description: Error returned in the access token response message + properties: + error: + enum: + - invalid_request + - invalid_client + - invalid_grant + - unauthorized_client + - unsupported_grant_type + - invalid_scope + type: string + error_description: + type: string + error_uri: + type: string + required: + - error + type: object + AccessTokenReq_1: + description: Contains information related to the access token request + properties: + grant_type: + enum: + - client_credentials + type: string + nfInstanceId: + description: "String uniquely identifying a NF instance. The format of the\ + \ NF Instance ID shall be a Universally Unique Identifier (UUID) version\ + \ 4, as described in IETF RFC 4122. \n" + format: uuid + type: string + nfType: + $ref: '#/components/schemas/NFType' + targetNfType: + $ref: '#/components/schemas/NFType' + scope: + pattern: "^([a-zA-Z0-9_:-]+)( [a-zA-Z0-9_:-]+)*$" + type: string + targetNfInstanceId: + description: "String uniquely identifying a NF instance. The format of the\ + \ NF Instance ID shall be a Universally Unique Identifier (UUID) version\ + \ 4, as described in IETF RFC 4122. \n" + format: uuid + type: string + requesterPlmn: + $ref: '#/components/schemas/PlmnId' + requesterPlmnList: + items: + $ref: '#/components/schemas/PlmnId' + minItems: 2 + type: array + requesterSnssaiList: + items: + $ref: '#/components/schemas/Snssai' + minItems: 1 + type: array + requesterFqdn: + description: Fully Qualified Domain Name + maxLength: 253 + minLength: 4 + pattern: "^([0-9A-Za-z]([-0-9A-Za-z]{0,61}[0-9A-Za-z])?\\.)+[A-Za-z]{2,63}\\\ + .?$" + type: string + requesterSnpnList: + items: + $ref: '#/components/schemas/PlmnIdNid' + minItems: 1 + type: array + targetPlmn: + $ref: '#/components/schemas/PlmnId' + targetSnpn: + $ref: '#/components/schemas/PlmnIdNid' + targetSnssaiList: + items: + $ref: '#/components/schemas/Snssai' + minItems: 1 + type: array + targetNsiList: + items: + type: string + minItems: 1 + type: array + targetNfSetId: + description: "NF Set Identifier (see clause 28.12 of 3GPP TS 23.003), formatted\ + \ as the following string \"set.set.5gc.mnc.mcc\"\ + , or \"set.set.5gc.nid.mnc.mcc\" with \ + \ encoded as defined in clause 5.4.2 (\"Mcc\" data type definition)\ + \ encoding the Mobile Network Code part of the PLMN, comprising\ + \ 3 digits. \n If there are only 2 significant digits in the MNC, one\ + \ \"0\" digit shall be inserted \n at the left side to fill the 3 digits\ + \ coding of MNC. Pattern: '^[0-9]{3}$'\n encoded as a value defined\ + \ in Table 6.1.6.3.3-1 of 3GPP TS 29.510 but \n with lower case characters\ + \ encoded as a string of characters consisting of \n alphabetic\ + \ characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that\ + \ \n shall end with either an alphabetic character or a digit. \n" + type: string + targetNfServiceSetId: + description: "NF Service Set Identifier (see clause 28.12 of 3GPP TS 23.003)\ + \ formatted as the following string \"set.sn.nfi.5gc.mnc.mcc\", or \"set.sn.nfi.5gc.nid.mnc.mcc\"\ + \ with encoded as defined in clause 5.4.2 (\"Mcc\" data type definition)\ + \ encoding the Mobile Network Code part of the PLMN, comprising\ + \ 3 digits. \n If there are only 2 significant digits in the MNC, one\ + \ \"0\" digit shall be inserted \n at the left side to fill the 3 digits\ + \ coding of MNC. Pattern: '^[0-9]{3}$'\n encoded as defined in clause\_\ + 5.4.2 (\"Nid\" data type definition) encoded as defined\ + \ in clause 5.3.2 encoded as defined in 3GPP TS 29.510\ + \ encoded as a string of characters consisting of alphabetic\ + \ \n characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and\ + \ that shall end \n with either an alphabetic character or a digit.\n" + type: string + hnrfAccessTokenUri: + description: String providing an URI formatted according to RFC 3986. + type: string + sourceNfInstanceId: + description: "String uniquely identifying a NF instance. The format of the\ + \ NF Instance ID shall be a Universally Unique Identifier (UUID) version\ + \ 4, as described in IETF RFC 4122. \n" + format: uuid + type: string + required: + - grant_type + - nfInstanceId + - scope + type: object + Ipv4Addr: + description: string identifying a Ipv4 address formatted in the "dotted decimal" + notation as defined in IETF RFC 1166. + type: string + Ipv6Addr: + description: string identifying a Ipv6 address formatted according to clause + 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of + IETF RFC 5952 shall not be used. + type: string + Port: + description: Unsigned integer with valid values between 0 and 65535. + maximum: 65535 + minimum: 0 + type: integer + NfInstanceId: + description: "String uniquely identifying a NF instance. The format of the NF\ + \ Instance ID shall be a Universally Unique Identifier (UUID) version 4,\ + \ as described in IETF RFC 4122. \n" + format: uuid + type: string + NFType: + anyOf: + - enum: + - NRF + - UDM + - AMF + - SMF + - AUSF + - NEF + - PCF + - SMSF + - NSSF + - UDR + - LMF + - GMLC + - 5G_EIR + - SEPP + - UPF + - N3IWF + - AF + - UDSF + - BSF + - CHF + - NWDAF + - PCSCF + - CBCF + - HSS + - UCMF + - SOR_AF + - SPAF + - MME + - SCSAS + - SCEF + - SCP + - NSSAAF + - ICSCF + - SCSCF + - DRA + - IMS_AS + - AANF + - 5G_DDNMF + - NSACF + - MFAF + - EASDF + - DCCF + - MB_SMF + - TSCTSF + - ADRF + - GBA_BSF + - CEF + - MB_UPF + - NSWOF + - PKMF + - MNPF + - SMS_GMSC + - SMS_IWMSC + - MBSF + - MBSTF + - PANF + - IP_SM_GW + - SMS_ROUTER + type: string + - type: string + description: NF types known to NRF + PlmnId: + description: | + When PlmnId needs to be converted to string (e.g. when used in maps as key), the string shall be composed of three digits "mcc" followed by "-" and two or three digits "mnc". + properties: + mcc: + description: "Mobile Country Code part of the PLMN, comprising 3 digits,\ + \ as defined in clause 9.3.3.5 of 3GPP TS 38.413. \n" + pattern: "^\\d{3}$" + type: string + mnc: + description: "Mobile Network Code part of the PLMN, comprising 2 or 3 digits,\ + \ as defined in clause 9.3.3.5 of 3GPP TS 38.413." + pattern: "^\\d{2,3}$" + type: string + required: + - mcc + - mnc + type: object + Mcc: + description: "Mobile Country Code part of the PLMN, comprising 3 digits, as\ + \ defined in clause 9.3.3.5 of 3GPP TS 38.413. \n" + pattern: "^\\d{3}$" + type: string + Mnc: + description: "Mobile Network Code part of the PLMN, comprising 2 or 3 digits,\ + \ as defined in clause 9.3.3.5 of 3GPP TS 38.413." + pattern: "^\\d{2,3}$" + type: string + Snssai: + description: | + When Snssai needs to be converted to string (e.g. when used in maps as key), the string shall be composed of one to three digits "sst" optionally followed by "-" and 6 hexadecimal digits "sd". + properties: + sst: + description: "Unsigned integer, within the range 0 to 255, representing\ + \ the Slice/Service Type. It indicates the expected Network Slice behaviour\ + \ in terms of features and services. Values 0 to 127 correspond to the\ + \ standardized SST range. Values 128 to 255 correspond to the Operator-specific\ + \ range. See clause 28.4.2 of 3GPP TS 23.003. Standardized values are\ + \ defined in clause 5.15.2.2 of 3GPP TS 23.501. \n" + maximum: 255 + minimum: 0 + type: integer + sd: + description: | + 3-octet string, representing the Slice Differentiator, in hexadecimal representation. Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F" and shall represent 4 bits. The most significant character representing the 4 most significant bits of the SD shall appear first in the string, and the character representing the 4 least significant bit of the SD shall appear last in the string. This is an optional parameter that complements the Slice/Service type(s) to allow to differentiate amongst multiple Network Slices of the same Slice/Service type. This IE shall be absent if no SD value is associated with the SST. + pattern: "^[A-Fa-f0-9]{6}$" + type: string + required: + - sst + type: object + PlmnIdNid: + description: | + Contains the serving core network operator PLMN ID and, for an SNPN, the NID that together with the PLMN ID identifies the SNPN. + properties: + mcc: + description: "Mobile Country Code part of the PLMN, comprising 3 digits,\ + \ as defined in clause 9.3.3.5 of 3GPP TS 38.413. \n" + pattern: "^\\d{3}$" + type: string + mnc: + description: "Mobile Network Code part of the PLMN, comprising 2 or 3 digits,\ + \ as defined in clause 9.3.3.5 of 3GPP TS 38.413." + pattern: "^\\d{2,3}$" + type: string + nid: + description: "This represents the Network Identifier, which together with\ + \ a PLMN ID is used to identify an SNPN (see 3GPP TS 23.003 and 3GPP TS\ + \ 23.501 clause 5.30.2.1). \n" + pattern: "^[A-Fa-f0-9]{11}$" + type: string + required: + - mcc + - mnc + type: object + Nid: + description: "This represents the Network Identifier, which together with a\ + \ PLMN ID is used to identify an SNPN (see 3GPP TS 23.003 and 3GPP TS 23.501\ + \ clause 5.30.2.1). \n" + pattern: "^[A-Fa-f0-9]{11}$" + type: string + NfSetId: + description: "NF Set Identifier (see clause 28.12 of 3GPP TS 23.003), formatted\ + \ as the following string \"set.set.5gc.mnc.mcc\"\ + , or \"set.set.5gc.nid.mnc.mcc\" with \ + \ encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) \ + \ encoding the Mobile Network Code part of the PLMN, comprising 3 digits.\ + \ \n If there are only 2 significant digits in the MNC, one \"0\" digit shall\ + \ be inserted \n at the left side to fill the 3 digits coding of MNC. Pattern:\ + \ '^[0-9]{3}$'\n encoded as a value defined in Table 6.1.6.3.3-1 of\ + \ 3GPP TS 29.510 but \n with lower case characters encoded as a\ + \ string of characters consisting of \n alphabetic characters (A-Z and a-z),\ + \ digits (0-9) and/or the hyphen (-) and that \n shall end with either an\ + \ alphabetic character or a digit. \n" + type: string + NfServiceSetId: + description: "NF Service Set Identifier (see clause 28.12 of 3GPP TS 23.003)\ + \ formatted as the following string \"set.sn.nfi.5gc.mnc.mcc\", or \"set.sn.nfi.5gc.nid.mnc.mcc\"\ + \ with encoded as defined in clause 5.4.2 (\"Mcc\" data type definition)\ + \ encoding the Mobile Network Code part of the PLMN, comprising 3\ + \ digits. \n If there are only 2 significant digits in the MNC, one \"0\"\ + \ digit shall be inserted \n at the left side to fill the 3 digits coding\ + \ of MNC. Pattern: '^[0-9]{3}$'\n encoded as defined in clause\_5.4.2\ + \ (\"Nid\" data type definition) encoded as defined in clause\ + \ 5.3.2 encoded as defined in 3GPP TS 29.510 encoded\ + \ as a string of characters consisting of alphabetic \n characters (A-Z and\ + \ a-z), digits (0-9) and/or the hyphen (-) and that shall end \n with either\ + \ an alphabetic character or a digit.\n" + type: string diff --git a/internal/CapifSecurity/api_default.go b/internal/CapifSecurity/api_default.go new file mode 100644 index 0000000000000000000000000000000000000000..a3d3c2c28afe394ae7722e60c1d3037996398114 --- /dev/null +++ b/internal/CapifSecurity/api_default.go @@ -0,0 +1,1318 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiSecuritiesSecurityIdTokenPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + securityId string + grantType *string + clientId *string + clientSecret *string + scope *string +} + +func (r ApiSecuritiesSecurityIdTokenPostRequest) GrantType(grantType string) ApiSecuritiesSecurityIdTokenPostRequest { + r.grantType = &grantType + return r +} + +func (r ApiSecuritiesSecurityIdTokenPostRequest) ClientId(clientId string) ApiSecuritiesSecurityIdTokenPostRequest { + r.clientId = &clientId + return r +} + +func (r ApiSecuritiesSecurityIdTokenPostRequest) ClientSecret(clientSecret string) ApiSecuritiesSecurityIdTokenPostRequest { + r.clientSecret = &clientSecret + return r +} + +func (r ApiSecuritiesSecurityIdTokenPostRequest) Scope(scope string) ApiSecuritiesSecurityIdTokenPostRequest { + r.scope = &scope + return r +} + +func (r ApiSecuritiesSecurityIdTokenPostRequest) Execute() (*AccessTokenRsp, *http.Response, error) { + return r.ApiService.SecuritiesSecurityIdTokenPostExecute(r) +} + +/* +SecuritiesSecurityIdTokenPost Method for SecuritiesSecurityIdTokenPost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param securityId Identifier of an individual API invoker + @return ApiSecuritiesSecurityIdTokenPostRequest +*/ +func (a *DefaultAPIService) SecuritiesSecurityIdTokenPost(ctx context.Context, securityId string) ApiSecuritiesSecurityIdTokenPostRequest { + return ApiSecuritiesSecurityIdTokenPostRequest{ + ApiService: a, + ctx: ctx, + securityId: securityId, + } +} + +// Execute executes the request +// @return AccessTokenRsp +func (a *DefaultAPIService) SecuritiesSecurityIdTokenPostExecute(r ApiSecuritiesSecurityIdTokenPostRequest) (*AccessTokenRsp, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessTokenRsp + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.SecuritiesSecurityIdTokenPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/securities/{securityId}/token" + localVarPath = strings.Replace(localVarPath, "{"+"securityId"+"}", url.PathEscape(parameterValueToString(r.securityId, "securityId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.grantType == nil { + return localVarReturnValue, nil, reportError("grantType is required and must be specified") + } + if r.clientId == nil { + return localVarReturnValue, nil, reportError("clientId is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarFormParams, "grant_type", r.grantType, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "client_id", r.clientId, "", "") + if r.clientSecret != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "client_secret", r.clientSecret, "", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "scope", r.scope, "", "") + } + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v AccessTokenErr + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v AccessTokenErr + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTrustedInvokersApiInvokerIdDeleteRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apiInvokerId string +} + +func (r ApiTrustedInvokersApiInvokerIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.TrustedInvokersApiInvokerIdDeleteExecute(r) +} + +/* +TrustedInvokersApiInvokerIdDelete Method for TrustedInvokersApiInvokerIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apiInvokerId Identifier of an individual API invoker + @return ApiTrustedInvokersApiInvokerIdDeleteRequest +*/ +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdDelete(ctx context.Context, apiInvokerId string) ApiTrustedInvokersApiInvokerIdDeleteRequest { + return ApiTrustedInvokersApiInvokerIdDeleteRequest{ + ApiService: a, + ctx: ctx, + apiInvokerId: apiInvokerId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdDeleteExecute(r ApiTrustedInvokersApiInvokerIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TrustedInvokersApiInvokerIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/trustedInvokers/{apiInvokerId}" + localVarPath = strings.Replace(localVarPath, "{"+"apiInvokerId"+"}", url.PathEscape(parameterValueToString(r.apiInvokerId, "apiInvokerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiTrustedInvokersApiInvokerIdDeletePostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apiInvokerId string + securityNotification *SecurityNotification +} + +// Revoke the authorization of the API invoker for APIs. +func (r ApiTrustedInvokersApiInvokerIdDeletePostRequest) SecurityNotification(securityNotification SecurityNotification) ApiTrustedInvokersApiInvokerIdDeletePostRequest { + r.securityNotification = &securityNotification + return r +} + +func (r ApiTrustedInvokersApiInvokerIdDeletePostRequest) Execute() (*http.Response, error) { + return r.ApiService.TrustedInvokersApiInvokerIdDeletePostExecute(r) +} + +/* +TrustedInvokersApiInvokerIdDeletePost Method for TrustedInvokersApiInvokerIdDeletePost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apiInvokerId Identifier of an individual API invoker + @return ApiTrustedInvokersApiInvokerIdDeletePostRequest +*/ +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdDeletePost(ctx context.Context, apiInvokerId string) ApiTrustedInvokersApiInvokerIdDeletePostRequest { + return ApiTrustedInvokersApiInvokerIdDeletePostRequest{ + ApiService: a, + ctx: ctx, + apiInvokerId: apiInvokerId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdDeletePostExecute(r ApiTrustedInvokersApiInvokerIdDeletePostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TrustedInvokersApiInvokerIdDeletePost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/trustedInvokers/{apiInvokerId}/delete" + localVarPath = strings.Replace(localVarPath, "{"+"apiInvokerId"+"}", url.PathEscape(parameterValueToString(r.apiInvokerId, "apiInvokerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.securityNotification == nil { + return nil, reportError("securityNotification is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.securityNotification + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiTrustedInvokersApiInvokerIdGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apiInvokerId string + authenticationInfo *bool + authorizationInfo *bool +} + +// When set to 'true', it indicates the CAPIF core function to send the authentication information of the API invoker. Set to false or omitted otherwise. +func (r ApiTrustedInvokersApiInvokerIdGetRequest) AuthenticationInfo(authenticationInfo bool) ApiTrustedInvokersApiInvokerIdGetRequest { + r.authenticationInfo = &authenticationInfo + return r +} + +// When set to 'true', it indicates the CAPIF core function to send the authorization information of the API invoker. Set to false or omitted otherwise. +func (r ApiTrustedInvokersApiInvokerIdGetRequest) AuthorizationInfo(authorizationInfo bool) ApiTrustedInvokersApiInvokerIdGetRequest { + r.authorizationInfo = &authorizationInfo + return r +} + +func (r ApiTrustedInvokersApiInvokerIdGetRequest) Execute() (*ServiceSecurity, *http.Response, error) { + return r.ApiService.TrustedInvokersApiInvokerIdGetExecute(r) +} + +/* +TrustedInvokersApiInvokerIdGet Method for TrustedInvokersApiInvokerIdGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apiInvokerId Identifier of an individual API invoker + @return ApiTrustedInvokersApiInvokerIdGetRequest +*/ +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdGet(ctx context.Context, apiInvokerId string) ApiTrustedInvokersApiInvokerIdGetRequest { + return ApiTrustedInvokersApiInvokerIdGetRequest{ + ApiService: a, + ctx: ctx, + apiInvokerId: apiInvokerId, + } +} + +// Execute executes the request +// @return ServiceSecurity +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdGetExecute(r ApiTrustedInvokersApiInvokerIdGetRequest) (*ServiceSecurity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceSecurity + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TrustedInvokersApiInvokerIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/trustedInvokers/{apiInvokerId}" + localVarPath = strings.Replace(localVarPath, "{"+"apiInvokerId"+"}", url.PathEscape(parameterValueToString(r.apiInvokerId, "apiInvokerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.authenticationInfo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authenticationInfo", r.authenticationInfo, "form", "") + } + if r.authorizationInfo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authorizationInfo", r.authorizationInfo, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 414 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTrustedInvokersApiInvokerIdPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apiInvokerId string + serviceSecurity *ServiceSecurity +} + +// create a security context for an API invoker +func (r ApiTrustedInvokersApiInvokerIdPutRequest) ServiceSecurity(serviceSecurity ServiceSecurity) ApiTrustedInvokersApiInvokerIdPutRequest { + r.serviceSecurity = &serviceSecurity + return r +} + +func (r ApiTrustedInvokersApiInvokerIdPutRequest) Execute() (*ServiceSecurity, *http.Response, error) { + return r.ApiService.TrustedInvokersApiInvokerIdPutExecute(r) +} + +/* +TrustedInvokersApiInvokerIdPut Method for TrustedInvokersApiInvokerIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apiInvokerId Identifier of an individual API invoker + @return ApiTrustedInvokersApiInvokerIdPutRequest +*/ +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdPut(ctx context.Context, apiInvokerId string) ApiTrustedInvokersApiInvokerIdPutRequest { + return ApiTrustedInvokersApiInvokerIdPutRequest{ + ApiService: a, + ctx: ctx, + apiInvokerId: apiInvokerId, + } +} + +// Execute executes the request +// @return ServiceSecurity +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdPutExecute(r ApiTrustedInvokersApiInvokerIdPutRequest) (*ServiceSecurity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceSecurity + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TrustedInvokersApiInvokerIdPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/trustedInvokers/{apiInvokerId}" + localVarPath = strings.Replace(localVarPath, "{"+"apiInvokerId"+"}", url.PathEscape(parameterValueToString(r.apiInvokerId, "apiInvokerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceSecurity == nil { + return localVarReturnValue, nil, reportError("serviceSecurity is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceSecurity + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 414 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTrustedInvokersApiInvokerIdUpdatePostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + apiInvokerId string + serviceSecurity *ServiceSecurity +} + +// Update the security context (e.g. re-negotiate the security methods). +func (r ApiTrustedInvokersApiInvokerIdUpdatePostRequest) ServiceSecurity(serviceSecurity ServiceSecurity) ApiTrustedInvokersApiInvokerIdUpdatePostRequest { + r.serviceSecurity = &serviceSecurity + return r +} + +func (r ApiTrustedInvokersApiInvokerIdUpdatePostRequest) Execute() (*ServiceSecurity, *http.Response, error) { + return r.ApiService.TrustedInvokersApiInvokerIdUpdatePostExecute(r) +} + +/* +TrustedInvokersApiInvokerIdUpdatePost Method for TrustedInvokersApiInvokerIdUpdatePost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apiInvokerId Identifier of an individual API invoker + @return ApiTrustedInvokersApiInvokerIdUpdatePostRequest +*/ +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdUpdatePost(ctx context.Context, apiInvokerId string) ApiTrustedInvokersApiInvokerIdUpdatePostRequest { + return ApiTrustedInvokersApiInvokerIdUpdatePostRequest{ + ApiService: a, + ctx: ctx, + apiInvokerId: apiInvokerId, + } +} + +// Execute executes the request +// @return ServiceSecurity +func (a *DefaultAPIService) TrustedInvokersApiInvokerIdUpdatePostExecute(r ApiTrustedInvokersApiInvokerIdUpdatePostRequest) (*ServiceSecurity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceSecurity + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TrustedInvokersApiInvokerIdUpdatePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/trustedInvokers/{apiInvokerId}/update" + localVarPath = strings.Replace(localVarPath, "{"+"apiInvokerId"+"}", url.PathEscape(parameterValueToString(r.apiInvokerId, "apiInvokerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceSecurity == nil { + return localVarReturnValue, nil, reportError("serviceSecurity is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceSecurity + 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 := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 411 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ProblemDetails + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/CapifSecurity/client.go b/internal/CapifSecurity/client.go new file mode 100644 index 0000000000000000000000000000000000000000..3c33082d180d5866d8baa2c269ce49a5940c2d59 --- /dev/null +++ b/internal/CapifSecurity/client.go @@ -0,0 +1,652 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the CAPIF_Security_API API v1.2.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI *DefaultAPIService +} + +type service struct { + client *APIClient +} + +// 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 *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/internal/CapifSecurity/configuration.go b/internal/CapifSecurity/configuration.go new file mode 100644 index 0000000000000000000000000000000000000000..d710b5fd262048e1876bc2f288b9c954f316fa7e --- /dev/null +++ b/internal/CapifSecurity/configuration.go @@ -0,0 +1,221 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "{apiRoot}/capif-security/v1", + Description: "No description provided", + Variables: map[string]ServerVariable{ + "apiRoot": ServerVariable{ + Description: "apiRoot as defined in clause 7.5 of 3GPP TS 29.222.", + DefaultValue: "https://example.com", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/internal/CapifSecurity/docs/AccessTokenClaims.md b/internal/CapifSecurity/docs/AccessTokenClaims.md new file mode 100644 index 0000000000000000000000000000000000000000..89921c1a592109417c52c635b9e21227785c773e --- /dev/null +++ b/internal/CapifSecurity/docs/AccessTokenClaims.md @@ -0,0 +1,93 @@ +# AccessTokenClaims + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Iss** | **string** | | +**Scope** | **string** | | +**Exp** | **int32** | Unsigned integer identifying a period of time in units of seconds. | + +## Methods + +### NewAccessTokenClaims + +`func NewAccessTokenClaims(iss string, scope string, exp int32, ) *AccessTokenClaims` + +NewAccessTokenClaims instantiates a new AccessTokenClaims 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 + +### NewAccessTokenClaimsWithDefaults + +`func NewAccessTokenClaimsWithDefaults() *AccessTokenClaims` + +NewAccessTokenClaimsWithDefaults instantiates a new AccessTokenClaims object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIss + +`func (o *AccessTokenClaims) GetIss() string` + +GetIss returns the Iss field if non-nil, zero value otherwise. + +### GetIssOk + +`func (o *AccessTokenClaims) GetIssOk() (*string, bool)` + +GetIssOk returns a tuple with the Iss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIss + +`func (o *AccessTokenClaims) SetIss(v string)` + +SetIss sets Iss field to given value. + + +### GetScope + +`func (o *AccessTokenClaims) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *AccessTokenClaims) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *AccessTokenClaims) SetScope(v string)` + +SetScope sets Scope field to given value. + + +### GetExp + +`func (o *AccessTokenClaims) GetExp() int32` + +GetExp returns the Exp field if non-nil, zero value otherwise. + +### GetExpOk + +`func (o *AccessTokenClaims) GetExpOk() (*int32, bool)` + +GetExpOk returns a tuple with the Exp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExp + +`func (o *AccessTokenClaims) SetExp(v int32)` + +SetExp sets Exp field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/AccessTokenErr.md b/internal/CapifSecurity/docs/AccessTokenErr.md new file mode 100644 index 0000000000000000000000000000000000000000..005f964ea77007a3daee05899f739ad1bfc8d466 --- /dev/null +++ b/internal/CapifSecurity/docs/AccessTokenErr.md @@ -0,0 +1,103 @@ +# AccessTokenErr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | **string** | | +**ErrorDescription** | Pointer to **string** | | [optional] +**ErrorUri** | Pointer to **string** | | [optional] + +## Methods + +### NewAccessTokenErr + +`func NewAccessTokenErr(error_ string, ) *AccessTokenErr` + +NewAccessTokenErr instantiates a new AccessTokenErr 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 + +### NewAccessTokenErrWithDefaults + +`func NewAccessTokenErrWithDefaults() *AccessTokenErr` + +NewAccessTokenErrWithDefaults instantiates a new AccessTokenErr object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *AccessTokenErr) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *AccessTokenErr) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *AccessTokenErr) SetError(v string)` + +SetError sets Error field to given value. + + +### GetErrorDescription + +`func (o *AccessTokenErr) GetErrorDescription() string` + +GetErrorDescription returns the ErrorDescription field if non-nil, zero value otherwise. + +### GetErrorDescriptionOk + +`func (o *AccessTokenErr) GetErrorDescriptionOk() (*string, bool)` + +GetErrorDescriptionOk returns a tuple with the ErrorDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDescription + +`func (o *AccessTokenErr) SetErrorDescription(v string)` + +SetErrorDescription sets ErrorDescription field to given value. + +### HasErrorDescription + +`func (o *AccessTokenErr) HasErrorDescription() bool` + +HasErrorDescription returns a boolean if a field has been set. + +### GetErrorUri + +`func (o *AccessTokenErr) GetErrorUri() string` + +GetErrorUri returns the ErrorUri field if non-nil, zero value otherwise. + +### GetErrorUriOk + +`func (o *AccessTokenErr) GetErrorUriOk() (*string, bool)` + +GetErrorUriOk returns a tuple with the ErrorUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorUri + +`func (o *AccessTokenErr) SetErrorUri(v string)` + +SetErrorUri sets ErrorUri field to given value. + +### HasErrorUri + +`func (o *AccessTokenErr) HasErrorUri() bool` + +HasErrorUri returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/AccessTokenErr1.md b/internal/CapifSecurity/docs/AccessTokenErr1.md new file mode 100644 index 0000000000000000000000000000000000000000..220d86c622c974576b9555903e03bc5e97332b04 --- /dev/null +++ b/internal/CapifSecurity/docs/AccessTokenErr1.md @@ -0,0 +1,103 @@ +# AccessTokenErr1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | **string** | | +**ErrorDescription** | Pointer to **string** | | [optional] +**ErrorUri** | Pointer to **string** | | [optional] + +## Methods + +### NewAccessTokenErr1 + +`func NewAccessTokenErr1(error_ string, ) *AccessTokenErr1` + +NewAccessTokenErr1 instantiates a new AccessTokenErr1 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 + +### NewAccessTokenErr1WithDefaults + +`func NewAccessTokenErr1WithDefaults() *AccessTokenErr1` + +NewAccessTokenErr1WithDefaults instantiates a new AccessTokenErr1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *AccessTokenErr1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *AccessTokenErr1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *AccessTokenErr1) SetError(v string)` + +SetError sets Error field to given value. + + +### GetErrorDescription + +`func (o *AccessTokenErr1) GetErrorDescription() string` + +GetErrorDescription returns the ErrorDescription field if non-nil, zero value otherwise. + +### GetErrorDescriptionOk + +`func (o *AccessTokenErr1) GetErrorDescriptionOk() (*string, bool)` + +GetErrorDescriptionOk returns a tuple with the ErrorDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDescription + +`func (o *AccessTokenErr1) SetErrorDescription(v string)` + +SetErrorDescription sets ErrorDescription field to given value. + +### HasErrorDescription + +`func (o *AccessTokenErr1) HasErrorDescription() bool` + +HasErrorDescription returns a boolean if a field has been set. + +### GetErrorUri + +`func (o *AccessTokenErr1) GetErrorUri() string` + +GetErrorUri returns the ErrorUri field if non-nil, zero value otherwise. + +### GetErrorUriOk + +`func (o *AccessTokenErr1) GetErrorUriOk() (*string, bool)` + +GetErrorUriOk returns a tuple with the ErrorUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorUri + +`func (o *AccessTokenErr1) SetErrorUri(v string)` + +SetErrorUri sets ErrorUri field to given value. + +### HasErrorUri + +`func (o *AccessTokenErr1) HasErrorUri() bool` + +HasErrorUri returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/AccessTokenReq1.md b/internal/CapifSecurity/docs/AccessTokenReq1.md new file mode 100644 index 0000000000000000000000000000000000000000..bdd1ed85cc8f9cc7d73e51965eca45d6c820c01b --- /dev/null +++ b/internal/CapifSecurity/docs/AccessTokenReq1.md @@ -0,0 +1,509 @@ +# AccessTokenReq1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GrantType** | **string** | | +**NfInstanceId** | **string** | String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122. | +**NfType** | Pointer to [**NFType**](NFType.md) | | [optional] +**TargetNfType** | Pointer to [**NFType**](NFType.md) | | [optional] +**Scope** | **string** | | +**TargetNfInstanceId** | Pointer to **string** | String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122. | [optional] +**RequesterPlmn** | Pointer to [**PlmnId**](PlmnId.md) | | [optional] +**RequesterPlmnList** | Pointer to [**[]PlmnId**](PlmnId.md) | | [optional] +**RequesterSnssaiList** | Pointer to [**[]Snssai**](Snssai.md) | | [optional] +**RequesterFqdn** | Pointer to **string** | Fully Qualified Domain Name | [optional] +**RequesterSnpnList** | Pointer to [**[]PlmnIdNid**](PlmnIdNid.md) | | [optional] +**TargetPlmn** | Pointer to [**PlmnId**](PlmnId.md) | | [optional] +**TargetSnpn** | Pointer to [**PlmnIdNid**](PlmnIdNid.md) | | [optional] +**TargetSnssaiList** | Pointer to [**[]Snssai**](Snssai.md) | | [optional] +**TargetNsiList** | Pointer to **[]string** | | [optional] +**TargetNfSetId** | Pointer to **string** | NF Set Identifier (see clause 28.12 of 3GPP TS 23.003), formatted as the following string \"set<Set ID>.<nftype>set.5gc.mnc<MNC>.mcc<MCC>\", or \"set<SetID>.<NFType>set.5gc.nid<NID>.mnc<MNC>.mcc<MCC>\" with <MCC> encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) <MNC> encoding the Mobile Network Code part of the PLMN, comprising 3 digits. If there are only 2 significant digits in the MNC, one \"0\" digit shall be inserted at the left side to fill the 3 digits coding of MNC. Pattern: '^[0-9]{3}$' <NFType> encoded as a value defined in Table 6.1.6.3.3-1 of 3GPP TS 29.510 but with lower case characters <Set ID> encoded as a string of characters consisting of alphabetic characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that shall end with either an alphabetic character or a digit. | [optional] +**TargetNfServiceSetId** | Pointer to **string** | NF Service Set Identifier (see clause 28.12 of 3GPP TS 23.003) formatted as the following string \"set<Set ID>.sn<Service Name>.nfi<NF Instance ID>.5gc.mnc<MNC>.mcc<MCC>\", or \"set<SetID>.sn<ServiceName>.nfi<NFInstanceID>.5gc.nid<NID>.mnc<MNC>.mcc<MCC>\" with <MCC> encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) <MNC> encoding the Mobile Network Code part of the PLMN, comprising 3 digits. If there are only 2 significant digits in the MNC, one \"0\" digit shall be inserted at the left side to fill the 3 digits coding of MNC. Pattern: '^[0-9]{3}$' <NID> encoded as defined in clause 5.4.2 (\"Nid\" data type definition) <NFInstanceId> encoded as defined in clause 5.3.2 <ServiceName> encoded as defined in 3GPP TS 29.510 <Set ID> encoded as a string of characters consisting of alphabetic characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that shall end with either an alphabetic character or a digit. | [optional] +**HnrfAccessTokenUri** | Pointer to **string** | String providing an URI formatted according to RFC 3986. | [optional] +**SourceNfInstanceId** | Pointer to **string** | String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122. | [optional] + +## Methods + +### NewAccessTokenReq1 + +`func NewAccessTokenReq1(grantType string, nfInstanceId string, scope string, ) *AccessTokenReq1` + +NewAccessTokenReq1 instantiates a new AccessTokenReq1 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 + +### NewAccessTokenReq1WithDefaults + +`func NewAccessTokenReq1WithDefaults() *AccessTokenReq1` + +NewAccessTokenReq1WithDefaults instantiates a new AccessTokenReq1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGrantType + +`func (o *AccessTokenReq1) GetGrantType() string` + +GetGrantType returns the GrantType field if non-nil, zero value otherwise. + +### GetGrantTypeOk + +`func (o *AccessTokenReq1) GetGrantTypeOk() (*string, bool)` + +GetGrantTypeOk returns a tuple with the GrantType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantType + +`func (o *AccessTokenReq1) SetGrantType(v string)` + +SetGrantType sets GrantType field to given value. + + +### GetNfInstanceId + +`func (o *AccessTokenReq1) GetNfInstanceId() string` + +GetNfInstanceId returns the NfInstanceId field if non-nil, zero value otherwise. + +### GetNfInstanceIdOk + +`func (o *AccessTokenReq1) GetNfInstanceIdOk() (*string, bool)` + +GetNfInstanceIdOk returns a tuple with the NfInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNfInstanceId + +`func (o *AccessTokenReq1) SetNfInstanceId(v string)` + +SetNfInstanceId sets NfInstanceId field to given value. + + +### GetNfType + +`func (o *AccessTokenReq1) GetNfType() NFType` + +GetNfType returns the NfType field if non-nil, zero value otherwise. + +### GetNfTypeOk + +`func (o *AccessTokenReq1) GetNfTypeOk() (*NFType, bool)` + +GetNfTypeOk returns a tuple with the NfType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNfType + +`func (o *AccessTokenReq1) SetNfType(v NFType)` + +SetNfType sets NfType field to given value. + +### HasNfType + +`func (o *AccessTokenReq1) HasNfType() bool` + +HasNfType returns a boolean if a field has been set. + +### GetTargetNfType + +`func (o *AccessTokenReq1) GetTargetNfType() NFType` + +GetTargetNfType returns the TargetNfType field if non-nil, zero value otherwise. + +### GetTargetNfTypeOk + +`func (o *AccessTokenReq1) GetTargetNfTypeOk() (*NFType, bool)` + +GetTargetNfTypeOk returns a tuple with the TargetNfType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetNfType + +`func (o *AccessTokenReq1) SetTargetNfType(v NFType)` + +SetTargetNfType sets TargetNfType field to given value. + +### HasTargetNfType + +`func (o *AccessTokenReq1) HasTargetNfType() bool` + +HasTargetNfType returns a boolean if a field has been set. + +### GetScope + +`func (o *AccessTokenReq1) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *AccessTokenReq1) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *AccessTokenReq1) SetScope(v string)` + +SetScope sets Scope field to given value. + + +### GetTargetNfInstanceId + +`func (o *AccessTokenReq1) GetTargetNfInstanceId() string` + +GetTargetNfInstanceId returns the TargetNfInstanceId field if non-nil, zero value otherwise. + +### GetTargetNfInstanceIdOk + +`func (o *AccessTokenReq1) GetTargetNfInstanceIdOk() (*string, bool)` + +GetTargetNfInstanceIdOk returns a tuple with the TargetNfInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetNfInstanceId + +`func (o *AccessTokenReq1) SetTargetNfInstanceId(v string)` + +SetTargetNfInstanceId sets TargetNfInstanceId field to given value. + +### HasTargetNfInstanceId + +`func (o *AccessTokenReq1) HasTargetNfInstanceId() bool` + +HasTargetNfInstanceId returns a boolean if a field has been set. + +### GetRequesterPlmn + +`func (o *AccessTokenReq1) GetRequesterPlmn() PlmnId` + +GetRequesterPlmn returns the RequesterPlmn field if non-nil, zero value otherwise. + +### GetRequesterPlmnOk + +`func (o *AccessTokenReq1) GetRequesterPlmnOk() (*PlmnId, bool)` + +GetRequesterPlmnOk returns a tuple with the RequesterPlmn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterPlmn + +`func (o *AccessTokenReq1) SetRequesterPlmn(v PlmnId)` + +SetRequesterPlmn sets RequesterPlmn field to given value. + +### HasRequesterPlmn + +`func (o *AccessTokenReq1) HasRequesterPlmn() bool` + +HasRequesterPlmn returns a boolean if a field has been set. + +### GetRequesterPlmnList + +`func (o *AccessTokenReq1) GetRequesterPlmnList() []PlmnId` + +GetRequesterPlmnList returns the RequesterPlmnList field if non-nil, zero value otherwise. + +### GetRequesterPlmnListOk + +`func (o *AccessTokenReq1) GetRequesterPlmnListOk() (*[]PlmnId, bool)` + +GetRequesterPlmnListOk returns a tuple with the RequesterPlmnList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterPlmnList + +`func (o *AccessTokenReq1) SetRequesterPlmnList(v []PlmnId)` + +SetRequesterPlmnList sets RequesterPlmnList field to given value. + +### HasRequesterPlmnList + +`func (o *AccessTokenReq1) HasRequesterPlmnList() bool` + +HasRequesterPlmnList returns a boolean if a field has been set. + +### GetRequesterSnssaiList + +`func (o *AccessTokenReq1) GetRequesterSnssaiList() []Snssai` + +GetRequesterSnssaiList returns the RequesterSnssaiList field if non-nil, zero value otherwise. + +### GetRequesterSnssaiListOk + +`func (o *AccessTokenReq1) GetRequesterSnssaiListOk() (*[]Snssai, bool)` + +GetRequesterSnssaiListOk returns a tuple with the RequesterSnssaiList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterSnssaiList + +`func (o *AccessTokenReq1) SetRequesterSnssaiList(v []Snssai)` + +SetRequesterSnssaiList sets RequesterSnssaiList field to given value. + +### HasRequesterSnssaiList + +`func (o *AccessTokenReq1) HasRequesterSnssaiList() bool` + +HasRequesterSnssaiList returns a boolean if a field has been set. + +### GetRequesterFqdn + +`func (o *AccessTokenReq1) GetRequesterFqdn() string` + +GetRequesterFqdn returns the RequesterFqdn field if non-nil, zero value otherwise. + +### GetRequesterFqdnOk + +`func (o *AccessTokenReq1) GetRequesterFqdnOk() (*string, bool)` + +GetRequesterFqdnOk returns a tuple with the RequesterFqdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterFqdn + +`func (o *AccessTokenReq1) SetRequesterFqdn(v string)` + +SetRequesterFqdn sets RequesterFqdn field to given value. + +### HasRequesterFqdn + +`func (o *AccessTokenReq1) HasRequesterFqdn() bool` + +HasRequesterFqdn returns a boolean if a field has been set. + +### GetRequesterSnpnList + +`func (o *AccessTokenReq1) GetRequesterSnpnList() []PlmnIdNid` + +GetRequesterSnpnList returns the RequesterSnpnList field if non-nil, zero value otherwise. + +### GetRequesterSnpnListOk + +`func (o *AccessTokenReq1) GetRequesterSnpnListOk() (*[]PlmnIdNid, bool)` + +GetRequesterSnpnListOk returns a tuple with the RequesterSnpnList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterSnpnList + +`func (o *AccessTokenReq1) SetRequesterSnpnList(v []PlmnIdNid)` + +SetRequesterSnpnList sets RequesterSnpnList field to given value. + +### HasRequesterSnpnList + +`func (o *AccessTokenReq1) HasRequesterSnpnList() bool` + +HasRequesterSnpnList returns a boolean if a field has been set. + +### GetTargetPlmn + +`func (o *AccessTokenReq1) GetTargetPlmn() PlmnId` + +GetTargetPlmn returns the TargetPlmn field if non-nil, zero value otherwise. + +### GetTargetPlmnOk + +`func (o *AccessTokenReq1) GetTargetPlmnOk() (*PlmnId, bool)` + +GetTargetPlmnOk returns a tuple with the TargetPlmn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetPlmn + +`func (o *AccessTokenReq1) SetTargetPlmn(v PlmnId)` + +SetTargetPlmn sets TargetPlmn field to given value. + +### HasTargetPlmn + +`func (o *AccessTokenReq1) HasTargetPlmn() bool` + +HasTargetPlmn returns a boolean if a field has been set. + +### GetTargetSnpn + +`func (o *AccessTokenReq1) GetTargetSnpn() PlmnIdNid` + +GetTargetSnpn returns the TargetSnpn field if non-nil, zero value otherwise. + +### GetTargetSnpnOk + +`func (o *AccessTokenReq1) GetTargetSnpnOk() (*PlmnIdNid, bool)` + +GetTargetSnpnOk returns a tuple with the TargetSnpn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetSnpn + +`func (o *AccessTokenReq1) SetTargetSnpn(v PlmnIdNid)` + +SetTargetSnpn sets TargetSnpn field to given value. + +### HasTargetSnpn + +`func (o *AccessTokenReq1) HasTargetSnpn() bool` + +HasTargetSnpn returns a boolean if a field has been set. + +### GetTargetSnssaiList + +`func (o *AccessTokenReq1) GetTargetSnssaiList() []Snssai` + +GetTargetSnssaiList returns the TargetSnssaiList field if non-nil, zero value otherwise. + +### GetTargetSnssaiListOk + +`func (o *AccessTokenReq1) GetTargetSnssaiListOk() (*[]Snssai, bool)` + +GetTargetSnssaiListOk returns a tuple with the TargetSnssaiList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetSnssaiList + +`func (o *AccessTokenReq1) SetTargetSnssaiList(v []Snssai)` + +SetTargetSnssaiList sets TargetSnssaiList field to given value. + +### HasTargetSnssaiList + +`func (o *AccessTokenReq1) HasTargetSnssaiList() bool` + +HasTargetSnssaiList returns a boolean if a field has been set. + +### GetTargetNsiList + +`func (o *AccessTokenReq1) GetTargetNsiList() []string` + +GetTargetNsiList returns the TargetNsiList field if non-nil, zero value otherwise. + +### GetTargetNsiListOk + +`func (o *AccessTokenReq1) GetTargetNsiListOk() (*[]string, bool)` + +GetTargetNsiListOk returns a tuple with the TargetNsiList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetNsiList + +`func (o *AccessTokenReq1) SetTargetNsiList(v []string)` + +SetTargetNsiList sets TargetNsiList field to given value. + +### HasTargetNsiList + +`func (o *AccessTokenReq1) HasTargetNsiList() bool` + +HasTargetNsiList returns a boolean if a field has been set. + +### GetTargetNfSetId + +`func (o *AccessTokenReq1) GetTargetNfSetId() string` + +GetTargetNfSetId returns the TargetNfSetId field if non-nil, zero value otherwise. + +### GetTargetNfSetIdOk + +`func (o *AccessTokenReq1) GetTargetNfSetIdOk() (*string, bool)` + +GetTargetNfSetIdOk returns a tuple with the TargetNfSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetNfSetId + +`func (o *AccessTokenReq1) SetTargetNfSetId(v string)` + +SetTargetNfSetId sets TargetNfSetId field to given value. + +### HasTargetNfSetId + +`func (o *AccessTokenReq1) HasTargetNfSetId() bool` + +HasTargetNfSetId returns a boolean if a field has been set. + +### GetTargetNfServiceSetId + +`func (o *AccessTokenReq1) GetTargetNfServiceSetId() string` + +GetTargetNfServiceSetId returns the TargetNfServiceSetId field if non-nil, zero value otherwise. + +### GetTargetNfServiceSetIdOk + +`func (o *AccessTokenReq1) GetTargetNfServiceSetIdOk() (*string, bool)` + +GetTargetNfServiceSetIdOk returns a tuple with the TargetNfServiceSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetNfServiceSetId + +`func (o *AccessTokenReq1) SetTargetNfServiceSetId(v string)` + +SetTargetNfServiceSetId sets TargetNfServiceSetId field to given value. + +### HasTargetNfServiceSetId + +`func (o *AccessTokenReq1) HasTargetNfServiceSetId() bool` + +HasTargetNfServiceSetId returns a boolean if a field has been set. + +### GetHnrfAccessTokenUri + +`func (o *AccessTokenReq1) GetHnrfAccessTokenUri() string` + +GetHnrfAccessTokenUri returns the HnrfAccessTokenUri field if non-nil, zero value otherwise. + +### GetHnrfAccessTokenUriOk + +`func (o *AccessTokenReq1) GetHnrfAccessTokenUriOk() (*string, bool)` + +GetHnrfAccessTokenUriOk returns a tuple with the HnrfAccessTokenUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHnrfAccessTokenUri + +`func (o *AccessTokenReq1) SetHnrfAccessTokenUri(v string)` + +SetHnrfAccessTokenUri sets HnrfAccessTokenUri field to given value. + +### HasHnrfAccessTokenUri + +`func (o *AccessTokenReq1) HasHnrfAccessTokenUri() bool` + +HasHnrfAccessTokenUri returns a boolean if a field has been set. + +### GetSourceNfInstanceId + +`func (o *AccessTokenReq1) GetSourceNfInstanceId() string` + +GetSourceNfInstanceId returns the SourceNfInstanceId field if non-nil, zero value otherwise. + +### GetSourceNfInstanceIdOk + +`func (o *AccessTokenReq1) GetSourceNfInstanceIdOk() (*string, bool)` + +GetSourceNfInstanceIdOk returns a tuple with the SourceNfInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceNfInstanceId + +`func (o *AccessTokenReq1) SetSourceNfInstanceId(v string)` + +SetSourceNfInstanceId sets SourceNfInstanceId field to given value. + +### HasSourceNfInstanceId + +`func (o *AccessTokenReq1) HasSourceNfInstanceId() bool` + +HasSourceNfInstanceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/AccessTokenRsp.md b/internal/CapifSecurity/docs/AccessTokenRsp.md new file mode 100644 index 0000000000000000000000000000000000000000..525f9f1d8732eb1f1859c307511b67ce507e1819 --- /dev/null +++ b/internal/CapifSecurity/docs/AccessTokenRsp.md @@ -0,0 +1,119 @@ +# AccessTokenRsp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | **string** | JWS Compact Serialized representation of JWS signed JSON object (AccessTokenClaims) | +**TokenType** | **string** | | +**ExpiresIn** | **int32** | Unsigned integer identifying a period of time in units of seconds. | +**Scope** | Pointer to **string** | | [optional] + +## Methods + +### NewAccessTokenRsp + +`func NewAccessTokenRsp(accessToken string, tokenType string, expiresIn int32, ) *AccessTokenRsp` + +NewAccessTokenRsp instantiates a new AccessTokenRsp 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 + +### NewAccessTokenRspWithDefaults + +`func NewAccessTokenRspWithDefaults() *AccessTokenRsp` + +NewAccessTokenRspWithDefaults instantiates a new AccessTokenRsp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessToken + +`func (o *AccessTokenRsp) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *AccessTokenRsp) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *AccessTokenRsp) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + + +### GetTokenType + +`func (o *AccessTokenRsp) GetTokenType() string` + +GetTokenType returns the TokenType field if non-nil, zero value otherwise. + +### GetTokenTypeOk + +`func (o *AccessTokenRsp) GetTokenTypeOk() (*string, bool)` + +GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenType + +`func (o *AccessTokenRsp) SetTokenType(v string)` + +SetTokenType sets TokenType field to given value. + + +### GetExpiresIn + +`func (o *AccessTokenRsp) GetExpiresIn() int32` + +GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise. + +### GetExpiresInOk + +`func (o *AccessTokenRsp) GetExpiresInOk() (*int32, bool)` + +GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresIn + +`func (o *AccessTokenRsp) SetExpiresIn(v int32)` + +SetExpiresIn sets ExpiresIn field to given value. + + +### GetScope + +`func (o *AccessTokenRsp) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *AccessTokenRsp) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *AccessTokenRsp) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *AccessTokenRsp) HasScope() bool` + +HasScope returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/Cause.md b/internal/CapifSecurity/docs/Cause.md new file mode 100644 index 0000000000000000000000000000000000000000..9134789a8ff04a04a7cda42134de6c32b9cbf9f7 --- /dev/null +++ b/internal/CapifSecurity/docs/Cause.md @@ -0,0 +1,30 @@ +# Cause + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewCause + +`func NewCause() *Cause` + +NewCause instantiates a new Cause 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 + +### NewCauseWithDefaults + +`func NewCauseWithDefaults() *Cause` + +NewCauseWithDefaults instantiates a new Cause object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/DefaultAPI.md b/internal/CapifSecurity/docs/DefaultAPI.md new file mode 100644 index 0000000000000000000000000000000000000000..c32ee2b4b88f7f3741b1aa95356020baebb7e907 --- /dev/null +++ b/internal/CapifSecurity/docs/DefaultAPI.md @@ -0,0 +1,436 @@ +# \DefaultAPI + +All URIs are relative to *https://example.com/capif-security/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SecuritiesSecurityIdTokenPost**](DefaultAPI.md#SecuritiesSecurityIdTokenPost) | **Post** /securities/{securityId}/token | +[**TrustedInvokersApiInvokerIdDelete**](DefaultAPI.md#TrustedInvokersApiInvokerIdDelete) | **Delete** /trustedInvokers/{apiInvokerId} | +[**TrustedInvokersApiInvokerIdDeletePost**](DefaultAPI.md#TrustedInvokersApiInvokerIdDeletePost) | **Post** /trustedInvokers/{apiInvokerId}/delete | +[**TrustedInvokersApiInvokerIdGet**](DefaultAPI.md#TrustedInvokersApiInvokerIdGet) | **Get** /trustedInvokers/{apiInvokerId} | +[**TrustedInvokersApiInvokerIdPut**](DefaultAPI.md#TrustedInvokersApiInvokerIdPut) | **Put** /trustedInvokers/{apiInvokerId} | +[**TrustedInvokersApiInvokerIdUpdatePost**](DefaultAPI.md#TrustedInvokersApiInvokerIdUpdatePost) | **Post** /trustedInvokers/{apiInvokerId}/update | + + + +## SecuritiesSecurityIdTokenPost + +> AccessTokenRsp SecuritiesSecurityIdTokenPost(ctx, securityId).GrantType(grantType).ClientId(clientId).ClientSecret(clientSecret).Scope(scope).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + securityId := "securityId_example" // string | Identifier of an individual API invoker + grantType := "grantType_example" // string | + clientId := "clientId_example" // string | + clientSecret := "clientSecret_example" // string | (optional) + scope := "scope_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.SecuritiesSecurityIdTokenPost(context.Background(), securityId).GrantType(grantType).ClientId(clientId).ClientSecret(clientSecret).Scope(scope).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SecuritiesSecurityIdTokenPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecuritiesSecurityIdTokenPost`: AccessTokenRsp + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SecuritiesSecurityIdTokenPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**securityId** | **string** | Identifier of an individual API invoker | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecuritiesSecurityIdTokenPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **grantType** | **string** | | + **clientId** | **string** | | + **clientSecret** | **string** | | + **scope** | **string** | | + +### Return type + +[**AccessTokenRsp**](AccessTokenRsp.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json, application/problem+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) + + +## TrustedInvokersApiInvokerIdDelete + +> TrustedInvokersApiInvokerIdDelete(ctx, apiInvokerId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apiInvokerId := "apiInvokerId_example" // string | Identifier of an individual API invoker + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdDelete(context.Background(), apiInvokerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.TrustedInvokersApiInvokerIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apiInvokerId** | **string** | Identifier of an individual API invoker | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTrustedInvokersApiInvokerIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/problem+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) + + +## TrustedInvokersApiInvokerIdDeletePost + +> TrustedInvokersApiInvokerIdDeletePost(ctx, apiInvokerId).SecurityNotification(securityNotification).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apiInvokerId := "apiInvokerId_example" // string | Identifier of an individual API invoker + securityNotification := *openapiclient.NewSecurityNotification("ApiInvokerId_example", []string{"ApiIds_example"}, *openapiclient.NewCause()) // SecurityNotification | Revoke the authorization of the API invoker for APIs. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdDeletePost(context.Background(), apiInvokerId).SecurityNotification(securityNotification).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.TrustedInvokersApiInvokerIdDeletePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apiInvokerId** | **string** | Identifier of an individual API invoker | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTrustedInvokersApiInvokerIdDeletePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **securityNotification** | [**SecurityNotification**](SecurityNotification.md) | Revoke the authorization of the API invoker for APIs. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/problem+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) + + +## TrustedInvokersApiInvokerIdGet + +> ServiceSecurity TrustedInvokersApiInvokerIdGet(ctx, apiInvokerId).AuthenticationInfo(authenticationInfo).AuthorizationInfo(authorizationInfo).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apiInvokerId := "apiInvokerId_example" // string | Identifier of an individual API invoker + authenticationInfo := true // bool | When set to 'true', it indicates the CAPIF core function to send the authentication information of the API invoker. Set to false or omitted otherwise. (optional) + authorizationInfo := true // bool | When set to 'true', it indicates the CAPIF core function to send the authorization information of the API invoker. Set to false or omitted otherwise. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdGet(context.Background(), apiInvokerId).AuthenticationInfo(authenticationInfo).AuthorizationInfo(authorizationInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.TrustedInvokersApiInvokerIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TrustedInvokersApiInvokerIdGet`: ServiceSecurity + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.TrustedInvokersApiInvokerIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apiInvokerId** | **string** | Identifier of an individual API invoker | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTrustedInvokersApiInvokerIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authenticationInfo** | **bool** | When set to 'true', it indicates the CAPIF core function to send the authentication information of the API invoker. Set to false or omitted otherwise. | + **authorizationInfo** | **bool** | When set to 'true', it indicates the CAPIF core function to send the authorization information of the API invoker. Set to false or omitted otherwise. | + +### Return type + +[**ServiceSecurity**](ServiceSecurity.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/problem+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) + + +## TrustedInvokersApiInvokerIdPut + +> ServiceSecurity TrustedInvokersApiInvokerIdPut(ctx, apiInvokerId).ServiceSecurity(serviceSecurity).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apiInvokerId := "apiInvokerId_example" // string | Identifier of an individual API invoker + serviceSecurity := *openapiclient.NewServiceSecurity([]openapiclient.SecurityInformation{nil}, "NotificationDestination_example") // ServiceSecurity | create a security context for an API invoker + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdPut(context.Background(), apiInvokerId).ServiceSecurity(serviceSecurity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.TrustedInvokersApiInvokerIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TrustedInvokersApiInvokerIdPut`: ServiceSecurity + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.TrustedInvokersApiInvokerIdPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apiInvokerId** | **string** | Identifier of an individual API invoker | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTrustedInvokersApiInvokerIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **serviceSecurity** | [**ServiceSecurity**](ServiceSecurity.md) | create a security context for an API invoker | + +### Return type + +[**ServiceSecurity**](ServiceSecurity.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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) + + +## TrustedInvokersApiInvokerIdUpdatePost + +> ServiceSecurity TrustedInvokersApiInvokerIdUpdatePost(ctx, apiInvokerId).ServiceSecurity(serviceSecurity).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + apiInvokerId := "apiInvokerId_example" // string | Identifier of an individual API invoker + serviceSecurity := *openapiclient.NewServiceSecurity([]openapiclient.SecurityInformation{nil}, "NotificationDestination_example") // ServiceSecurity | Update the security context (e.g. re-negotiate the security methods). + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.TrustedInvokersApiInvokerIdUpdatePost(context.Background(), apiInvokerId).ServiceSecurity(serviceSecurity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.TrustedInvokersApiInvokerIdUpdatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TrustedInvokersApiInvokerIdUpdatePost`: ServiceSecurity + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.TrustedInvokersApiInvokerIdUpdatePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**apiInvokerId** | **string** | Identifier of an individual API invoker | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTrustedInvokersApiInvokerIdUpdatePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **serviceSecurity** | [**ServiceSecurity**](ServiceSecurity.md) | Update the security context (e.g. re-negotiate the security methods). | + +### Return type + +[**ServiceSecurity**](ServiceSecurity.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/problem+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/internal/CapifSecurity/docs/InterfaceDescription.md b/internal/CapifSecurity/docs/InterfaceDescription.md new file mode 100644 index 0000000000000000000000000000000000000000..d8028b51f483c1c26475863a957495fda5cf11d5 --- /dev/null +++ b/internal/CapifSecurity/docs/InterfaceDescription.md @@ -0,0 +1,134 @@ +# InterfaceDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ipv4Addr** | Pointer to **string** | string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. | [optional] +**Ipv6Addr** | Pointer to **string** | string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. | [optional] +**Port** | Pointer to **int32** | Unsigned integer with valid values between 0 and 65535. | [optional] +**SecurityMethods** | Pointer to [**[]SecurityMethod**](SecurityMethod.md) | Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. | [optional] + +## Methods + +### NewInterfaceDescription + +`func NewInterfaceDescription() *InterfaceDescription` + +NewInterfaceDescription instantiates a new InterfaceDescription 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 + +### NewInterfaceDescriptionWithDefaults + +`func NewInterfaceDescriptionWithDefaults() *InterfaceDescription` + +NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIpv4Addr + +`func (o *InterfaceDescription) GetIpv4Addr() string` + +GetIpv4Addr returns the Ipv4Addr field if non-nil, zero value otherwise. + +### GetIpv4AddrOk + +`func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool)` + +GetIpv4AddrOk returns a tuple with the Ipv4Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv4Addr + +`func (o *InterfaceDescription) SetIpv4Addr(v string)` + +SetIpv4Addr sets Ipv4Addr field to given value. + +### HasIpv4Addr + +`func (o *InterfaceDescription) HasIpv4Addr() bool` + +HasIpv4Addr returns a boolean if a field has been set. + +### GetIpv6Addr + +`func (o *InterfaceDescription) GetIpv6Addr() string` + +GetIpv6Addr returns the Ipv6Addr field if non-nil, zero value otherwise. + +### GetIpv6AddrOk + +`func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool)` + +GetIpv6AddrOk returns a tuple with the Ipv6Addr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv6Addr + +`func (o *InterfaceDescription) SetIpv6Addr(v string)` + +SetIpv6Addr sets Ipv6Addr field to given value. + +### HasIpv6Addr + +`func (o *InterfaceDescription) HasIpv6Addr() bool` + +HasIpv6Addr returns a boolean if a field has been set. + +### GetPort + +`func (o *InterfaceDescription) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *InterfaceDescription) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *InterfaceDescription) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *InterfaceDescription) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetSecurityMethods + +`func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod` + +GetSecurityMethods returns the SecurityMethods field if non-nil, zero value otherwise. + +### GetSecurityMethodsOk + +`func (o *InterfaceDescription) GetSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetSecurityMethodsOk returns a tuple with the SecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityMethods + +`func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod)` + +SetSecurityMethods sets SecurityMethods field to given value. + +### HasSecurityMethods + +`func (o *InterfaceDescription) HasSecurityMethods() bool` + +HasSecurityMethods returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/InvalidParam.md b/internal/CapifSecurity/docs/InvalidParam.md new file mode 100644 index 0000000000000000000000000000000000000000..f809021f398e0f4e40114ee3686d7c45edd829fe --- /dev/null +++ b/internal/CapifSecurity/docs/InvalidParam.md @@ -0,0 +1,77 @@ +# InvalidParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Param** | **string** | Attribute's name encoded as a JSON Pointer, or header's name. | +**Reason** | Pointer to **string** | A human-readable reason, e.g. \"must be a positive integer\". | [optional] + +## Methods + +### NewInvalidParam + +`func NewInvalidParam(param string, ) *InvalidParam` + +NewInvalidParam instantiates a new InvalidParam 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 + +### NewInvalidParamWithDefaults + +`func NewInvalidParamWithDefaults() *InvalidParam` + +NewInvalidParamWithDefaults instantiates a new InvalidParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParam + +`func (o *InvalidParam) GetParam() string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *InvalidParam) GetParamOk() (*string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *InvalidParam) SetParam(v string)` + +SetParam sets Param field to given value. + + +### GetReason + +`func (o *InvalidParam) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InvalidParam) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InvalidParam) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InvalidParam) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/InvalidParam1.md b/internal/CapifSecurity/docs/InvalidParam1.md new file mode 100644 index 0000000000000000000000000000000000000000..ac3c66f6323a6a7478516f5b2d7a1fb89a9f517e --- /dev/null +++ b/internal/CapifSecurity/docs/InvalidParam1.md @@ -0,0 +1,77 @@ +# InvalidParam1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Param** | **string** | If the invalid parameter is an attribute in a JSON body, this IE shall contain the attribute's name and shall be encoded as a JSON Pointer. If the invalid parameter is an HTTP header, this IE shall be formatted as the concatenation of the string \"header \" plus the name of such header. If the invalid parameter is a query parameter, this IE shall be formatted as the concatenation of the string \"query \" plus the name of such query parameter. If the invalid parameter is a variable part in the path of a resource URI, this IE shall contain the name of the variable, including the symbols \"{\" and \"}\" used in OpenAPI specification as the notation to represent variable path segments. | +**Reason** | Pointer to **string** | A human-readable reason, e.g. \"must be a positive integer\". In cases involving failed operations in a PATCH request, the reason string should identify the operation that failed using the operation's array index to assist in correlation of the invalid parameter with the failed operation, e.g.\" Replacement value invalid for attribute (failed operation index= 4)\" | [optional] + +## Methods + +### NewInvalidParam1 + +`func NewInvalidParam1(param string, ) *InvalidParam1` + +NewInvalidParam1 instantiates a new InvalidParam1 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 + +### NewInvalidParam1WithDefaults + +`func NewInvalidParam1WithDefaults() *InvalidParam1` + +NewInvalidParam1WithDefaults instantiates a new InvalidParam1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParam + +`func (o *InvalidParam1) GetParam() string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *InvalidParam1) GetParamOk() (*string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *InvalidParam1) SetParam(v string)` + +SetParam sets Param field to given value. + + +### GetReason + +`func (o *InvalidParam1) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InvalidParam1) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InvalidParam1) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InvalidParam1) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/NFType.md b/internal/CapifSecurity/docs/NFType.md new file mode 100644 index 0000000000000000000000000000000000000000..f64167cd2e0166e8bba470114f210cb4476e4e27 --- /dev/null +++ b/internal/CapifSecurity/docs/NFType.md @@ -0,0 +1,30 @@ +# NFType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewNFType + +`func NewNFType() *NFType` + +NewNFType instantiates a new NFType 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 + +### NewNFTypeWithDefaults + +`func NewNFTypeWithDefaults() *NFType` + +NewNFTypeWithDefaults instantiates a new NFType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/PlmnId.md b/internal/CapifSecurity/docs/PlmnId.md new file mode 100644 index 0000000000000000000000000000000000000000..757b76c5ed580d69842cba9527f7642cc193296e --- /dev/null +++ b/internal/CapifSecurity/docs/PlmnId.md @@ -0,0 +1,72 @@ +# PlmnId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mcc** | **string** | Mobile Country Code part of the PLMN, comprising 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. | +**Mnc** | **string** | Mobile Network Code part of the PLMN, comprising 2 or 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. | + +## Methods + +### NewPlmnId + +`func NewPlmnId(mcc string, mnc string, ) *PlmnId` + +NewPlmnId instantiates a new PlmnId 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 + +### NewPlmnIdWithDefaults + +`func NewPlmnIdWithDefaults() *PlmnId` + +NewPlmnIdWithDefaults instantiates a new PlmnId object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMcc + +`func (o *PlmnId) GetMcc() string` + +GetMcc returns the Mcc field if non-nil, zero value otherwise. + +### GetMccOk + +`func (o *PlmnId) GetMccOk() (*string, bool)` + +GetMccOk returns a tuple with the Mcc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMcc + +`func (o *PlmnId) SetMcc(v string)` + +SetMcc sets Mcc field to given value. + + +### GetMnc + +`func (o *PlmnId) GetMnc() string` + +GetMnc returns the Mnc field if non-nil, zero value otherwise. + +### GetMncOk + +`func (o *PlmnId) GetMncOk() (*string, bool)` + +GetMncOk returns a tuple with the Mnc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMnc + +`func (o *PlmnId) SetMnc(v string)` + +SetMnc sets Mnc field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/PlmnIdNid.md b/internal/CapifSecurity/docs/PlmnIdNid.md new file mode 100644 index 0000000000000000000000000000000000000000..524980a3e781b82932d9c5453178b35f500eae59 --- /dev/null +++ b/internal/CapifSecurity/docs/PlmnIdNid.md @@ -0,0 +1,98 @@ +# PlmnIdNid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mcc** | **string** | Mobile Country Code part of the PLMN, comprising 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. | +**Mnc** | **string** | Mobile Network Code part of the PLMN, comprising 2 or 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. | +**Nid** | Pointer to **string** | This represents the Network Identifier, which together with a PLMN ID is used to identify an SNPN (see 3GPP TS 23.003 and 3GPP TS 23.501 clause 5.30.2.1). | [optional] + +## Methods + +### NewPlmnIdNid + +`func NewPlmnIdNid(mcc string, mnc string, ) *PlmnIdNid` + +NewPlmnIdNid instantiates a new PlmnIdNid 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 + +### NewPlmnIdNidWithDefaults + +`func NewPlmnIdNidWithDefaults() *PlmnIdNid` + +NewPlmnIdNidWithDefaults instantiates a new PlmnIdNid object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMcc + +`func (o *PlmnIdNid) GetMcc() string` + +GetMcc returns the Mcc field if non-nil, zero value otherwise. + +### GetMccOk + +`func (o *PlmnIdNid) GetMccOk() (*string, bool)` + +GetMccOk returns a tuple with the Mcc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMcc + +`func (o *PlmnIdNid) SetMcc(v string)` + +SetMcc sets Mcc field to given value. + + +### GetMnc + +`func (o *PlmnIdNid) GetMnc() string` + +GetMnc returns the Mnc field if non-nil, zero value otherwise. + +### GetMncOk + +`func (o *PlmnIdNid) GetMncOk() (*string, bool)` + +GetMncOk returns a tuple with the Mnc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMnc + +`func (o *PlmnIdNid) SetMnc(v string)` + +SetMnc sets Mnc field to given value. + + +### GetNid + +`func (o *PlmnIdNid) GetNid() string` + +GetNid returns the Nid field if non-nil, zero value otherwise. + +### GetNidOk + +`func (o *PlmnIdNid) GetNidOk() (*string, bool)` + +GetNidOk returns a tuple with the Nid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNid + +`func (o *PlmnIdNid) SetNid(v string)` + +SetNid sets Nid field to given value. + +### HasNid + +`func (o *PlmnIdNid) HasNid() bool` + +HasNid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/ProblemDetails.md b/internal/CapifSecurity/docs/ProblemDetails.md new file mode 100644 index 0000000000000000000000000000000000000000..0f3b997d8cd366e0219cbf8828307d3241a1cdaf --- /dev/null +++ b/internal/CapifSecurity/docs/ProblemDetails.md @@ -0,0 +1,238 @@ +# ProblemDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Title** | Pointer to **string** | A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. | [optional] +**Status** | Pointer to **int32** | The HTTP status code for this occurrence of the problem. | [optional] +**Detail** | Pointer to **string** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**Instance** | Pointer to **string** | string providing an URI formatted according to IETF RFC 3986. | [optional] +**Cause** | Pointer to **string** | A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. | [optional] +**InvalidParams** | Pointer to [**[]InvalidParam**](InvalidParam.md) | Description of invalid parameters, for a request rejected due to invalid parameters. | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewProblemDetails + +`func NewProblemDetails() *ProblemDetails` + +NewProblemDetails instantiates a new ProblemDetails 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 + +### NewProblemDetailsWithDefaults + +`func NewProblemDetailsWithDefaults() *ProblemDetails` + +NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ProblemDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProblemDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProblemDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProblemDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTitle + +`func (o *ProblemDetails) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ProblemDetails) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ProblemDetails) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ProblemDetails) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProblemDetails) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProblemDetails) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProblemDetails) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ProblemDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDetail + +`func (o *ProblemDetails) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ProblemDetails) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ProblemDetails) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ProblemDetails) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetInstance + +`func (o *ProblemDetails) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ProblemDetails) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ProblemDetails) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ProblemDetails) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetCause + +`func (o *ProblemDetails) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ProblemDetails) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ProblemDetails) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ProblemDetails) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInvalidParams + +`func (o *ProblemDetails) GetInvalidParams() []InvalidParam` + +GetInvalidParams returns the InvalidParams field if non-nil, zero value otherwise. + +### GetInvalidParamsOk + +`func (o *ProblemDetails) GetInvalidParamsOk() (*[]InvalidParam, bool)` + +GetInvalidParamsOk returns a tuple with the InvalidParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidParams + +`func (o *ProblemDetails) SetInvalidParams(v []InvalidParam)` + +SetInvalidParams sets InvalidParams field to given value. + +### HasInvalidParams + +`func (o *ProblemDetails) HasInvalidParams() bool` + +HasInvalidParams returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ProblemDetails) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ProblemDetails) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ProblemDetails) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/ProblemDetails1.md b/internal/CapifSecurity/docs/ProblemDetails1.md new file mode 100644 index 0000000000000000000000000000000000000000..fdd2b121117737b2327fad446b6129e211051900 --- /dev/null +++ b/internal/CapifSecurity/docs/ProblemDetails1.md @@ -0,0 +1,316 @@ +# ProblemDetails1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | String providing an URI formatted according to RFC 3986. | [optional] +**Title** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**Detail** | Pointer to **string** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**Instance** | Pointer to **string** | String providing an URI formatted according to RFC 3986. | [optional] +**Cause** | Pointer to **string** | A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. | [optional] +**InvalidParams** | Pointer to [**[]InvalidParam1**](InvalidParam1.md) | | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] +**AccessTokenError** | Pointer to [**AccessTokenErr1**](AccessTokenErr1.md) | | [optional] +**AccessTokenRequest** | Pointer to [**AccessTokenReq1**](AccessTokenReq1.md) | | [optional] +**NrfId** | Pointer to **string** | Fully Qualified Domain Name | [optional] + +## Methods + +### NewProblemDetails1 + +`func NewProblemDetails1() *ProblemDetails1` + +NewProblemDetails1 instantiates a new ProblemDetails1 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 + +### NewProblemDetails1WithDefaults + +`func NewProblemDetails1WithDefaults() *ProblemDetails1` + +NewProblemDetails1WithDefaults instantiates a new ProblemDetails1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ProblemDetails1) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProblemDetails1) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProblemDetails1) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProblemDetails1) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTitle + +`func (o *ProblemDetails1) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ProblemDetails1) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ProblemDetails1) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ProblemDetails1) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProblemDetails1) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProblemDetails1) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProblemDetails1) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ProblemDetails1) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDetail + +`func (o *ProblemDetails1) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ProblemDetails1) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ProblemDetails1) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ProblemDetails1) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetInstance + +`func (o *ProblemDetails1) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ProblemDetails1) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ProblemDetails1) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ProblemDetails1) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetCause + +`func (o *ProblemDetails1) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ProblemDetails1) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ProblemDetails1) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ProblemDetails1) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInvalidParams + +`func (o *ProblemDetails1) GetInvalidParams() []InvalidParam1` + +GetInvalidParams returns the InvalidParams field if non-nil, zero value otherwise. + +### GetInvalidParamsOk + +`func (o *ProblemDetails1) GetInvalidParamsOk() (*[]InvalidParam1, bool)` + +GetInvalidParamsOk returns a tuple with the InvalidParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidParams + +`func (o *ProblemDetails1) SetInvalidParams(v []InvalidParam1)` + +SetInvalidParams sets InvalidParams field to given value. + +### HasInvalidParams + +`func (o *ProblemDetails1) HasInvalidParams() bool` + +HasInvalidParams returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ProblemDetails1) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ProblemDetails1) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ProblemDetails1) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ProblemDetails1) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + +### GetAccessTokenError + +`func (o *ProblemDetails1) GetAccessTokenError() AccessTokenErr1` + +GetAccessTokenError returns the AccessTokenError field if non-nil, zero value otherwise. + +### GetAccessTokenErrorOk + +`func (o *ProblemDetails1) GetAccessTokenErrorOk() (*AccessTokenErr1, bool)` + +GetAccessTokenErrorOk returns a tuple with the AccessTokenError field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessTokenError + +`func (o *ProblemDetails1) SetAccessTokenError(v AccessTokenErr1)` + +SetAccessTokenError sets AccessTokenError field to given value. + +### HasAccessTokenError + +`func (o *ProblemDetails1) HasAccessTokenError() bool` + +HasAccessTokenError returns a boolean if a field has been set. + +### GetAccessTokenRequest + +`func (o *ProblemDetails1) GetAccessTokenRequest() AccessTokenReq1` + +GetAccessTokenRequest returns the AccessTokenRequest field if non-nil, zero value otherwise. + +### GetAccessTokenRequestOk + +`func (o *ProblemDetails1) GetAccessTokenRequestOk() (*AccessTokenReq1, bool)` + +GetAccessTokenRequestOk returns a tuple with the AccessTokenRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessTokenRequest + +`func (o *ProblemDetails1) SetAccessTokenRequest(v AccessTokenReq1)` + +SetAccessTokenRequest sets AccessTokenRequest field to given value. + +### HasAccessTokenRequest + +`func (o *ProblemDetails1) HasAccessTokenRequest() bool` + +HasAccessTokenRequest returns a boolean if a field has been set. + +### GetNrfId + +`func (o *ProblemDetails1) GetNrfId() string` + +GetNrfId returns the NrfId field if non-nil, zero value otherwise. + +### GetNrfIdOk + +`func (o *ProblemDetails1) GetNrfIdOk() (*string, bool)` + +GetNrfIdOk returns a tuple with the NrfId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNrfId + +`func (o *ProblemDetails1) SetNrfId(v string)` + +SetNrfId sets NrfId field to given value. + +### HasNrfId + +`func (o *ProblemDetails1) HasNrfId() bool` + +HasNrfId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/SecurityInformation.md b/internal/CapifSecurity/docs/SecurityInformation.md new file mode 100644 index 0000000000000000000000000000000000000000..28cf18112cd11fd3dd822929d5085c95b11bdf9b --- /dev/null +++ b/internal/CapifSecurity/docs/SecurityInformation.md @@ -0,0 +1,217 @@ +# SecurityInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InterfaceDetails** | Pointer to [**NullableInterfaceDescription**](InterfaceDescription.md) | | [optional] +**AefId** | Pointer to **string** | Identifier of the API exposing function | [optional] +**ApiId** | Pointer to **string** | API identifier | [optional] +**PrefSecurityMethods** | [**[]SecurityMethod**](SecurityMethod.md) | Security methods preferred by the API invoker for the API interface. | +**SelSecurityMethod** | Pointer to [**SecurityMethod**](SecurityMethod.md) | | [optional] +**AuthenticationInfo** | Pointer to **string** | Authentication related information | [optional] +**AuthorizationInfo** | Pointer to **string** | Authorization related information | [optional] + +## Methods + +### NewSecurityInformation + +`func NewSecurityInformation(prefSecurityMethods []SecurityMethod, ) *SecurityInformation` + +NewSecurityInformation instantiates a new SecurityInformation 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 + +### NewSecurityInformationWithDefaults + +`func NewSecurityInformationWithDefaults() *SecurityInformation` + +NewSecurityInformationWithDefaults instantiates a new SecurityInformation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInterfaceDetails + +`func (o *SecurityInformation) GetInterfaceDetails() InterfaceDescription` + +GetInterfaceDetails returns the InterfaceDetails field if non-nil, zero value otherwise. + +### GetInterfaceDetailsOk + +`func (o *SecurityInformation) GetInterfaceDetailsOk() (*InterfaceDescription, bool)` + +GetInterfaceDetailsOk returns a tuple with the InterfaceDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceDetails + +`func (o *SecurityInformation) SetInterfaceDetails(v InterfaceDescription)` + +SetInterfaceDetails sets InterfaceDetails field to given value. + +### HasInterfaceDetails + +`func (o *SecurityInformation) HasInterfaceDetails() bool` + +HasInterfaceDetails returns a boolean if a field has been set. + +### SetInterfaceDetailsNil + +`func (o *SecurityInformation) SetInterfaceDetailsNil(b bool)` + + SetInterfaceDetailsNil sets the value for InterfaceDetails to be an explicit nil + +### UnsetInterfaceDetails +`func (o *SecurityInformation) UnsetInterfaceDetails()` + +UnsetInterfaceDetails ensures that no value is present for InterfaceDetails, not even an explicit nil +### GetAefId + +`func (o *SecurityInformation) GetAefId() string` + +GetAefId returns the AefId field if non-nil, zero value otherwise. + +### GetAefIdOk + +`func (o *SecurityInformation) GetAefIdOk() (*string, bool)` + +GetAefIdOk returns a tuple with the AefId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefId + +`func (o *SecurityInformation) SetAefId(v string)` + +SetAefId sets AefId field to given value. + +### HasAefId + +`func (o *SecurityInformation) HasAefId() bool` + +HasAefId returns a boolean if a field has been set. + +### GetApiId + +`func (o *SecurityInformation) GetApiId() string` + +GetApiId returns the ApiId field if non-nil, zero value otherwise. + +### GetApiIdOk + +`func (o *SecurityInformation) GetApiIdOk() (*string, bool)` + +GetApiIdOk returns a tuple with the ApiId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiId + +`func (o *SecurityInformation) SetApiId(v string)` + +SetApiId sets ApiId field to given value. + +### HasApiId + +`func (o *SecurityInformation) HasApiId() bool` + +HasApiId returns a boolean if a field has been set. + +### GetPrefSecurityMethods + +`func (o *SecurityInformation) GetPrefSecurityMethods() []SecurityMethod` + +GetPrefSecurityMethods returns the PrefSecurityMethods field if non-nil, zero value otherwise. + +### GetPrefSecurityMethodsOk + +`func (o *SecurityInformation) GetPrefSecurityMethodsOk() (*[]SecurityMethod, bool)` + +GetPrefSecurityMethodsOk returns a tuple with the PrefSecurityMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefSecurityMethods + +`func (o *SecurityInformation) SetPrefSecurityMethods(v []SecurityMethod)` + +SetPrefSecurityMethods sets PrefSecurityMethods field to given value. + + +### GetSelSecurityMethod + +`func (o *SecurityInformation) GetSelSecurityMethod() SecurityMethod` + +GetSelSecurityMethod returns the SelSecurityMethod field if non-nil, zero value otherwise. + +### GetSelSecurityMethodOk + +`func (o *SecurityInformation) GetSelSecurityMethodOk() (*SecurityMethod, bool)` + +GetSelSecurityMethodOk returns a tuple with the SelSecurityMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelSecurityMethod + +`func (o *SecurityInformation) SetSelSecurityMethod(v SecurityMethod)` + +SetSelSecurityMethod sets SelSecurityMethod field to given value. + +### HasSelSecurityMethod + +`func (o *SecurityInformation) HasSelSecurityMethod() bool` + +HasSelSecurityMethod returns a boolean if a field has been set. + +### GetAuthenticationInfo + +`func (o *SecurityInformation) GetAuthenticationInfo() string` + +GetAuthenticationInfo returns the AuthenticationInfo field if non-nil, zero value otherwise. + +### GetAuthenticationInfoOk + +`func (o *SecurityInformation) GetAuthenticationInfoOk() (*string, bool)` + +GetAuthenticationInfoOk returns a tuple with the AuthenticationInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationInfo + +`func (o *SecurityInformation) SetAuthenticationInfo(v string)` + +SetAuthenticationInfo sets AuthenticationInfo field to given value. + +### HasAuthenticationInfo + +`func (o *SecurityInformation) HasAuthenticationInfo() bool` + +HasAuthenticationInfo returns a boolean if a field has been set. + +### GetAuthorizationInfo + +`func (o *SecurityInformation) GetAuthorizationInfo() string` + +GetAuthorizationInfo returns the AuthorizationInfo field if non-nil, zero value otherwise. + +### GetAuthorizationInfoOk + +`func (o *SecurityInformation) GetAuthorizationInfoOk() (*string, bool)` + +GetAuthorizationInfoOk returns a tuple with the AuthorizationInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationInfo + +`func (o *SecurityInformation) SetAuthorizationInfo(v string)` + +SetAuthorizationInfo sets AuthorizationInfo field to given value. + +### HasAuthorizationInfo + +`func (o *SecurityInformation) HasAuthorizationInfo() bool` + +HasAuthorizationInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/SecurityMethod.md b/internal/CapifSecurity/docs/SecurityMethod.md new file mode 100644 index 0000000000000000000000000000000000000000..c2bc7c0499975a1153aa5a5c0ab0343ea2c218c8 --- /dev/null +++ b/internal/CapifSecurity/docs/SecurityMethod.md @@ -0,0 +1,30 @@ +# SecurityMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSecurityMethod + +`func NewSecurityMethod() *SecurityMethod` + +NewSecurityMethod instantiates a new SecurityMethod 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 + +### NewSecurityMethodWithDefaults + +`func NewSecurityMethodWithDefaults() *SecurityMethod` + +NewSecurityMethodWithDefaults instantiates a new SecurityMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/SecurityNotification.md b/internal/CapifSecurity/docs/SecurityNotification.md new file mode 100644 index 0000000000000000000000000000000000000000..3e2ca593e9f6813c214f983a4f7664cad7c23fbc --- /dev/null +++ b/internal/CapifSecurity/docs/SecurityNotification.md @@ -0,0 +1,119 @@ +# SecurityNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiInvokerId** | **string** | String identifying the API invoker assigned by the CAPIF core function. | +**AefId** | Pointer to **string** | String identifying the AEF. | [optional] +**ApiIds** | **[]string** | Identifier of the service API | +**Cause** | [**Cause**](Cause.md) | | + +## Methods + +### NewSecurityNotification + +`func NewSecurityNotification(apiInvokerId string, apiIds []string, cause Cause, ) *SecurityNotification` + +NewSecurityNotification instantiates a new SecurityNotification 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 + +### NewSecurityNotificationWithDefaults + +`func NewSecurityNotificationWithDefaults() *SecurityNotification` + +NewSecurityNotificationWithDefaults instantiates a new SecurityNotification object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiInvokerId + +`func (o *SecurityNotification) GetApiInvokerId() string` + +GetApiInvokerId returns the ApiInvokerId field if non-nil, zero value otherwise. + +### GetApiInvokerIdOk + +`func (o *SecurityNotification) GetApiInvokerIdOk() (*string, bool)` + +GetApiInvokerIdOk returns a tuple with the ApiInvokerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiInvokerId + +`func (o *SecurityNotification) SetApiInvokerId(v string)` + +SetApiInvokerId sets ApiInvokerId field to given value. + + +### GetAefId + +`func (o *SecurityNotification) GetAefId() string` + +GetAefId returns the AefId field if non-nil, zero value otherwise. + +### GetAefIdOk + +`func (o *SecurityNotification) GetAefIdOk() (*string, bool)` + +GetAefIdOk returns a tuple with the AefId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAefId + +`func (o *SecurityNotification) SetAefId(v string)` + +SetAefId sets AefId field to given value. + +### HasAefId + +`func (o *SecurityNotification) HasAefId() bool` + +HasAefId returns a boolean if a field has been set. + +### GetApiIds + +`func (o *SecurityNotification) GetApiIds() []string` + +GetApiIds returns the ApiIds field if non-nil, zero value otherwise. + +### GetApiIdsOk + +`func (o *SecurityNotification) GetApiIdsOk() (*[]string, bool)` + +GetApiIdsOk returns a tuple with the ApiIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiIds + +`func (o *SecurityNotification) SetApiIds(v []string)` + +SetApiIds sets ApiIds field to given value. + + +### GetCause + +`func (o *SecurityNotification) GetCause() Cause` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *SecurityNotification) GetCauseOk() (*Cause, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *SecurityNotification) SetCause(v Cause)` + +SetCause sets Cause field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/ServiceSecurity.md b/internal/CapifSecurity/docs/ServiceSecurity.md new file mode 100644 index 0000000000000000000000000000000000000000..47118df202bea98abde2973b5b2379fad4fd3c0b --- /dev/null +++ b/internal/CapifSecurity/docs/ServiceSecurity.md @@ -0,0 +1,150 @@ +# ServiceSecurity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecurityInfo** | [**[]SecurityInformation**](SecurityInformation.md) | | +**NotificationDestination** | **string** | string providing an URI formatted according to IETF RFC 3986. | +**RequestTestNotification** | Pointer to **bool** | Set to true by API invoker to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. | [optional] +**WebsockNotifConfig** | Pointer to [**WebsockNotifConfig**](WebsockNotifConfig.md) | | [optional] +**SupportedFeatures** | Pointer to **string** | A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. | [optional] + +## Methods + +### NewServiceSecurity + +`func NewServiceSecurity(securityInfo []SecurityInformation, notificationDestination string, ) *ServiceSecurity` + +NewServiceSecurity instantiates a new ServiceSecurity 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 + +### NewServiceSecurityWithDefaults + +`func NewServiceSecurityWithDefaults() *ServiceSecurity` + +NewServiceSecurityWithDefaults instantiates a new ServiceSecurity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecurityInfo + +`func (o *ServiceSecurity) GetSecurityInfo() []SecurityInformation` + +GetSecurityInfo returns the SecurityInfo field if non-nil, zero value otherwise. + +### GetSecurityInfoOk + +`func (o *ServiceSecurity) GetSecurityInfoOk() (*[]SecurityInformation, bool)` + +GetSecurityInfoOk returns a tuple with the SecurityInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityInfo + +`func (o *ServiceSecurity) SetSecurityInfo(v []SecurityInformation)` + +SetSecurityInfo sets SecurityInfo field to given value. + + +### GetNotificationDestination + +`func (o *ServiceSecurity) GetNotificationDestination() string` + +GetNotificationDestination returns the NotificationDestination field if non-nil, zero value otherwise. + +### GetNotificationDestinationOk + +`func (o *ServiceSecurity) GetNotificationDestinationOk() (*string, bool)` + +GetNotificationDestinationOk returns a tuple with the NotificationDestination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationDestination + +`func (o *ServiceSecurity) SetNotificationDestination(v string)` + +SetNotificationDestination sets NotificationDestination field to given value. + + +### GetRequestTestNotification + +`func (o *ServiceSecurity) GetRequestTestNotification() bool` + +GetRequestTestNotification returns the RequestTestNotification field if non-nil, zero value otherwise. + +### GetRequestTestNotificationOk + +`func (o *ServiceSecurity) GetRequestTestNotificationOk() (*bool, bool)` + +GetRequestTestNotificationOk returns a tuple with the RequestTestNotification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTestNotification + +`func (o *ServiceSecurity) SetRequestTestNotification(v bool)` + +SetRequestTestNotification sets RequestTestNotification field to given value. + +### HasRequestTestNotification + +`func (o *ServiceSecurity) HasRequestTestNotification() bool` + +HasRequestTestNotification returns a boolean if a field has been set. + +### GetWebsockNotifConfig + +`func (o *ServiceSecurity) GetWebsockNotifConfig() WebsockNotifConfig` + +GetWebsockNotifConfig returns the WebsockNotifConfig field if non-nil, zero value otherwise. + +### GetWebsockNotifConfigOk + +`func (o *ServiceSecurity) GetWebsockNotifConfigOk() (*WebsockNotifConfig, bool)` + +GetWebsockNotifConfigOk returns a tuple with the WebsockNotifConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsockNotifConfig + +`func (o *ServiceSecurity) SetWebsockNotifConfig(v WebsockNotifConfig)` + +SetWebsockNotifConfig sets WebsockNotifConfig field to given value. + +### HasWebsockNotifConfig + +`func (o *ServiceSecurity) HasWebsockNotifConfig() bool` + +HasWebsockNotifConfig returns a boolean if a field has been set. + +### GetSupportedFeatures + +`func (o *ServiceSecurity) GetSupportedFeatures() string` + +GetSupportedFeatures returns the SupportedFeatures field if non-nil, zero value otherwise. + +### GetSupportedFeaturesOk + +`func (o *ServiceSecurity) GetSupportedFeaturesOk() (*string, bool)` + +GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatures + +`func (o *ServiceSecurity) SetSupportedFeatures(v string)` + +SetSupportedFeatures sets SupportedFeatures field to given value. + +### HasSupportedFeatures + +`func (o *ServiceSecurity) HasSupportedFeatures() bool` + +HasSupportedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/Snssai.md b/internal/CapifSecurity/docs/Snssai.md new file mode 100644 index 0000000000000000000000000000000000000000..4e050d744b60e165a81da892f03465072d068b5f --- /dev/null +++ b/internal/CapifSecurity/docs/Snssai.md @@ -0,0 +1,77 @@ +# Snssai + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sst** | **int32** | Unsigned integer, within the range 0 to 255, representing the Slice/Service Type. It indicates the expected Network Slice behaviour in terms of features and services. Values 0 to 127 correspond to the standardized SST range. Values 128 to 255 correspond to the Operator-specific range. See clause 28.4.2 of 3GPP TS 23.003. Standardized values are defined in clause 5.15.2.2 of 3GPP TS 23.501. | +**Sd** | Pointer to **string** | 3-octet string, representing the Slice Differentiator, in hexadecimal representation. Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent 4 bits. The most significant character representing the 4 most significant bits of the SD shall appear first in the string, and the character representing the 4 least significant bit of the SD shall appear last in the string. This is an optional parameter that complements the Slice/Service type(s) to allow to differentiate amongst multiple Network Slices of the same Slice/Service type. This IE shall be absent if no SD value is associated with the SST. | [optional] + +## Methods + +### NewSnssai + +`func NewSnssai(sst int32, ) *Snssai` + +NewSnssai instantiates a new Snssai 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 + +### NewSnssaiWithDefaults + +`func NewSnssaiWithDefaults() *Snssai` + +NewSnssaiWithDefaults instantiates a new Snssai object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSst + +`func (o *Snssai) GetSst() int32` + +GetSst returns the Sst field if non-nil, zero value otherwise. + +### GetSstOk + +`func (o *Snssai) GetSstOk() (*int32, bool)` + +GetSstOk returns a tuple with the Sst field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSst + +`func (o *Snssai) SetSst(v int32)` + +SetSst sets Sst field to given value. + + +### GetSd + +`func (o *Snssai) GetSd() string` + +GetSd returns the Sd field if non-nil, zero value otherwise. + +### GetSdOk + +`func (o *Snssai) GetSdOk() (*string, bool)` + +GetSdOk returns a tuple with the Sd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSd + +`func (o *Snssai) SetSd(v string)` + +SetSd sets Sd field to given value. + +### HasSd + +`func (o *Snssai) HasSd() bool` + +HasSd returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/docs/WebsockNotifConfig.md b/internal/CapifSecurity/docs/WebsockNotifConfig.md new file mode 100644 index 0000000000000000000000000000000000000000..99a885f97f18cd450c6d4eea760c16786d4cbaa0 --- /dev/null +++ b/internal/CapifSecurity/docs/WebsockNotifConfig.md @@ -0,0 +1,82 @@ +# WebsockNotifConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebsocketUri** | Pointer to **string** | string formatted according to IETF RFC 3986 identifying a referenced resource. | [optional] +**RequestWebsocketUri** | Pointer to **bool** | Set by the SCS/AS to indicate that the Websocket delivery is requested. | [optional] + +## Methods + +### NewWebsockNotifConfig + +`func NewWebsockNotifConfig() *WebsockNotifConfig` + +NewWebsockNotifConfig instantiates a new WebsockNotifConfig 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 + +### NewWebsockNotifConfigWithDefaults + +`func NewWebsockNotifConfigWithDefaults() *WebsockNotifConfig` + +NewWebsockNotifConfigWithDefaults instantiates a new WebsockNotifConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWebsocketUri + +`func (o *WebsockNotifConfig) GetWebsocketUri() string` + +GetWebsocketUri returns the WebsocketUri field if non-nil, zero value otherwise. + +### GetWebsocketUriOk + +`func (o *WebsockNotifConfig) GetWebsocketUriOk() (*string, bool)` + +GetWebsocketUriOk returns a tuple with the WebsocketUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketUri + +`func (o *WebsockNotifConfig) SetWebsocketUri(v string)` + +SetWebsocketUri sets WebsocketUri field to given value. + +### HasWebsocketUri + +`func (o *WebsockNotifConfig) HasWebsocketUri() bool` + +HasWebsocketUri returns a boolean if a field has been set. + +### GetRequestWebsocketUri + +`func (o *WebsockNotifConfig) GetRequestWebsocketUri() bool` + +GetRequestWebsocketUri returns the RequestWebsocketUri field if non-nil, zero value otherwise. + +### GetRequestWebsocketUriOk + +`func (o *WebsockNotifConfig) GetRequestWebsocketUriOk() (*bool, bool)` + +GetRequestWebsocketUriOk returns a tuple with the RequestWebsocketUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestWebsocketUri + +`func (o *WebsockNotifConfig) SetRequestWebsocketUri(v bool)` + +SetRequestWebsocketUri sets RequestWebsocketUri field to given value. + +### HasRequestWebsocketUri + +`func (o *WebsockNotifConfig) HasRequestWebsocketUri() bool` + +HasRequestWebsocketUri returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/CapifSecurity/go.sum b/internal/CapifSecurity/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..c966c8ddfd0dc3dad992126bb0eb50503ecce01a --- /dev/null +++ b/internal/CapifSecurity/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/internal/CapifSecurity/model_access_token_claims.go b/internal/CapifSecurity/model_access_token_claims.go new file mode 100644 index 0000000000000000000000000000000000000000..d559a964291c5703a58601cf560ed73a46bf1244 --- /dev/null +++ b/internal/CapifSecurity/model_access_token_claims.go @@ -0,0 +1,215 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessTokenClaims type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokenClaims{} + +// AccessTokenClaims Represents the claims data structure for the access token. +type AccessTokenClaims struct { + Iss string `json:"iss"` + Scope string `json:"scope"` + // Unsigned integer identifying a period of time in units of seconds. + Exp int32 `json:"exp"` +} + +type _AccessTokenClaims AccessTokenClaims + +// NewAccessTokenClaims instantiates a new AccessTokenClaims 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 NewAccessTokenClaims(iss string, scope string, exp int32) *AccessTokenClaims { + this := AccessTokenClaims{} + this.Iss = iss + this.Scope = scope + this.Exp = exp + return &this +} + +// NewAccessTokenClaimsWithDefaults instantiates a new AccessTokenClaims object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenClaimsWithDefaults() *AccessTokenClaims { + this := AccessTokenClaims{} + return &this +} + +// GetIss returns the Iss field value +func (o *AccessTokenClaims) GetIss() string { + if o == nil { + var ret string + return ret + } + + return o.Iss +} + +// GetIssOk returns a tuple with the Iss field value +// and a boolean to check if the value has been set. +func (o *AccessTokenClaims) GetIssOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Iss, true +} + +// SetIss sets field value +func (o *AccessTokenClaims) SetIss(v string) { + o.Iss = v +} + +// GetScope returns the Scope field value +func (o *AccessTokenClaims) GetScope() string { + if o == nil { + var ret string + return ret + } + + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value +// and a boolean to check if the value has been set. +func (o *AccessTokenClaims) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Scope, true +} + +// SetScope sets field value +func (o *AccessTokenClaims) SetScope(v string) { + o.Scope = v +} + +// GetExp returns the Exp field value +func (o *AccessTokenClaims) GetExp() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Exp +} + +// GetExpOk returns a tuple with the Exp field value +// and a boolean to check if the value has been set. +func (o *AccessTokenClaims) GetExpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Exp, true +} + +// SetExp sets field value +func (o *AccessTokenClaims) SetExp(v int32) { + o.Exp = v +} + +func (o AccessTokenClaims) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokenClaims) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["iss"] = o.Iss + toSerialize["scope"] = o.Scope + toSerialize["exp"] = o.Exp + return toSerialize, nil +} + +func (o *AccessTokenClaims) UnmarshalJSON(data []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{ + "iss", + "scope", + "exp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAccessTokenClaims := _AccessTokenClaims{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokenClaims) + + if err != nil { + return err + } + + *o = AccessTokenClaims(varAccessTokenClaims) + + return err +} + +type NullableAccessTokenClaims struct { + value *AccessTokenClaims + isSet bool +} + +func (v NullableAccessTokenClaims) Get() *AccessTokenClaims { + return v.value +} + +func (v *NullableAccessTokenClaims) Set(val *AccessTokenClaims) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokenClaims) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokenClaims) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokenClaims(val *AccessTokenClaims) *NullableAccessTokenClaims { + return &NullableAccessTokenClaims{value: val, isSet: true} +} + +func (v NullableAccessTokenClaims) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokenClaims) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_access_token_err.go b/internal/CapifSecurity/model_access_token_err.go new file mode 100644 index 0000000000000000000000000000000000000000..14cba518756d82176764675e18685a919bb2880d --- /dev/null +++ b/internal/CapifSecurity/model_access_token_err.go @@ -0,0 +1,230 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessTokenErr type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokenErr{} + +// AccessTokenErr Represents an error in the access token request. +type AccessTokenErr struct { + Error string `json:"error"` + ErrorDescription *string `json:"error_description,omitempty"` + ErrorUri *string `json:"error_uri,omitempty"` +} + +type _AccessTokenErr AccessTokenErr + +// NewAccessTokenErr instantiates a new AccessTokenErr 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 NewAccessTokenErr(error_ string) *AccessTokenErr { + this := AccessTokenErr{} + this.Error = error_ + return &this +} + +// NewAccessTokenErrWithDefaults instantiates a new AccessTokenErr object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenErrWithDefaults() *AccessTokenErr { + this := AccessTokenErr{} + return &this +} + +// GetError returns the Error field value +func (o *AccessTokenErr) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *AccessTokenErr) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *AccessTokenErr) SetError(v string) { + o.Error = v +} + +// GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. +func (o *AccessTokenErr) GetErrorDescription() string { + if o == nil || IsNil(o.ErrorDescription) { + var ret string + return ret + } + return *o.ErrorDescription +} + +// GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenErr) GetErrorDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ErrorDescription) { + return nil, false + } + return o.ErrorDescription, true +} + +// HasErrorDescription returns a boolean if a field has been set. +func (o *AccessTokenErr) HasErrorDescription() bool { + if o != nil && !IsNil(o.ErrorDescription) { + return true + } + + return false +} + +// SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field. +func (o *AccessTokenErr) SetErrorDescription(v string) { + o.ErrorDescription = &v +} + +// GetErrorUri returns the ErrorUri field value if set, zero value otherwise. +func (o *AccessTokenErr) GetErrorUri() string { + if o == nil || IsNil(o.ErrorUri) { + var ret string + return ret + } + return *o.ErrorUri +} + +// GetErrorUriOk returns a tuple with the ErrorUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenErr) GetErrorUriOk() (*string, bool) { + if o == nil || IsNil(o.ErrorUri) { + return nil, false + } + return o.ErrorUri, true +} + +// HasErrorUri returns a boolean if a field has been set. +func (o *AccessTokenErr) HasErrorUri() bool { + if o != nil && !IsNil(o.ErrorUri) { + return true + } + + return false +} + +// SetErrorUri gets a reference to the given string and assigns it to the ErrorUri field. +func (o *AccessTokenErr) SetErrorUri(v string) { + o.ErrorUri = &v +} + +func (o AccessTokenErr) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokenErr) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["error"] = o.Error + if !IsNil(o.ErrorDescription) { + toSerialize["error_description"] = o.ErrorDescription + } + if !IsNil(o.ErrorUri) { + toSerialize["error_uri"] = o.ErrorUri + } + return toSerialize, nil +} + +func (o *AccessTokenErr) UnmarshalJSON(data []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{ + "error", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAccessTokenErr := _AccessTokenErr{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokenErr) + + if err != nil { + return err + } + + *o = AccessTokenErr(varAccessTokenErr) + + return err +} + +type NullableAccessTokenErr struct { + value *AccessTokenErr + isSet bool +} + +func (v NullableAccessTokenErr) Get() *AccessTokenErr { + return v.value +} + +func (v *NullableAccessTokenErr) Set(val *AccessTokenErr) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokenErr) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokenErr) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokenErr(val *AccessTokenErr) *NullableAccessTokenErr { + return &NullableAccessTokenErr{value: val, isSet: true} +} + +func (v NullableAccessTokenErr) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokenErr) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_access_token_err_1.go b/internal/CapifSecurity/model_access_token_err_1.go new file mode 100644 index 0000000000000000000000000000000000000000..e7faaa2112011a0f5778a36bac0d822c7b77a1fd --- /dev/null +++ b/internal/CapifSecurity/model_access_token_err_1.go @@ -0,0 +1,230 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessTokenErr1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokenErr1{} + +// AccessTokenErr1 Error returned in the access token response message +type AccessTokenErr1 struct { + Error string `json:"error"` + ErrorDescription *string `json:"error_description,omitempty"` + ErrorUri *string `json:"error_uri,omitempty"` +} + +type _AccessTokenErr1 AccessTokenErr1 + +// NewAccessTokenErr1 instantiates a new AccessTokenErr1 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 NewAccessTokenErr1(error_ string) *AccessTokenErr1 { + this := AccessTokenErr1{} + this.Error = error_ + return &this +} + +// NewAccessTokenErr1WithDefaults instantiates a new AccessTokenErr1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenErr1WithDefaults() *AccessTokenErr1 { + this := AccessTokenErr1{} + return &this +} + +// GetError returns the Error field value +func (o *AccessTokenErr1) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *AccessTokenErr1) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *AccessTokenErr1) SetError(v string) { + o.Error = v +} + +// GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. +func (o *AccessTokenErr1) GetErrorDescription() string { + if o == nil || IsNil(o.ErrorDescription) { + var ret string + return ret + } + return *o.ErrorDescription +} + +// GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenErr1) GetErrorDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ErrorDescription) { + return nil, false + } + return o.ErrorDescription, true +} + +// HasErrorDescription returns a boolean if a field has been set. +func (o *AccessTokenErr1) HasErrorDescription() bool { + if o != nil && !IsNil(o.ErrorDescription) { + return true + } + + return false +} + +// SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field. +func (o *AccessTokenErr1) SetErrorDescription(v string) { + o.ErrorDescription = &v +} + +// GetErrorUri returns the ErrorUri field value if set, zero value otherwise. +func (o *AccessTokenErr1) GetErrorUri() string { + if o == nil || IsNil(o.ErrorUri) { + var ret string + return ret + } + return *o.ErrorUri +} + +// GetErrorUriOk returns a tuple with the ErrorUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenErr1) GetErrorUriOk() (*string, bool) { + if o == nil || IsNil(o.ErrorUri) { + return nil, false + } + return o.ErrorUri, true +} + +// HasErrorUri returns a boolean if a field has been set. +func (o *AccessTokenErr1) HasErrorUri() bool { + if o != nil && !IsNil(o.ErrorUri) { + return true + } + + return false +} + +// SetErrorUri gets a reference to the given string and assigns it to the ErrorUri field. +func (o *AccessTokenErr1) SetErrorUri(v string) { + o.ErrorUri = &v +} + +func (o AccessTokenErr1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokenErr1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["error"] = o.Error + if !IsNil(o.ErrorDescription) { + toSerialize["error_description"] = o.ErrorDescription + } + if !IsNil(o.ErrorUri) { + toSerialize["error_uri"] = o.ErrorUri + } + return toSerialize, nil +} + +func (o *AccessTokenErr1) UnmarshalJSON(data []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{ + "error", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAccessTokenErr1 := _AccessTokenErr1{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokenErr1) + + if err != nil { + return err + } + + *o = AccessTokenErr1(varAccessTokenErr1) + + return err +} + +type NullableAccessTokenErr1 struct { + value *AccessTokenErr1 + isSet bool +} + +func (v NullableAccessTokenErr1) Get() *AccessTokenErr1 { + return v.value +} + +func (v *NullableAccessTokenErr1) Set(val *AccessTokenErr1) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokenErr1) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokenErr1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokenErr1(val *AccessTokenErr1) *NullableAccessTokenErr1 { + return &NullableAccessTokenErr1{value: val, isSet: true} +} + +func (v NullableAccessTokenErr1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokenErr1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_access_token_req_1.go b/internal/CapifSecurity/model_access_token_req_1.go new file mode 100644 index 0000000000000000000000000000000000000000..a3c925460b09dd784c497aced7c1afa249a56f82 --- /dev/null +++ b/internal/CapifSecurity/model_access_token_req_1.go @@ -0,0 +1,797 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessTokenReq1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokenReq1{} + +// AccessTokenReq1 Contains information related to the access token request +type AccessTokenReq1 struct { + GrantType string `json:"grant_type"` + // String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122. + NfInstanceId string `json:"nfInstanceId"` + NfType *NFType `json:"nfType,omitempty"` + TargetNfType *NFType `json:"targetNfType,omitempty"` + Scope string `json:"scope" validate:"regexp=^([a-zA-Z0-9_:-]+)( [a-zA-Z0-9_:-]+)*$"` + // String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122. + TargetNfInstanceId *string `json:"targetNfInstanceId,omitempty"` + RequesterPlmn *PlmnId `json:"requesterPlmn,omitempty"` + RequesterPlmnList []PlmnId `json:"requesterPlmnList,omitempty"` + RequesterSnssaiList []Snssai `json:"requesterSnssaiList,omitempty"` + // Fully Qualified Domain Name + RequesterFqdn *string `json:"requesterFqdn,omitempty" validate:"regexp=^([0-9A-Za-z]([-0-9A-Za-z]{0,61}[0-9A-Za-z])?\\\\.)+[A-Za-z]{2,63}\\\\.?$"` + RequesterSnpnList []PlmnIdNid `json:"requesterSnpnList,omitempty"` + TargetPlmn *PlmnId `json:"targetPlmn,omitempty"` + TargetSnpn *PlmnIdNid `json:"targetSnpn,omitempty"` + TargetSnssaiList []Snssai `json:"targetSnssaiList,omitempty"` + TargetNsiList []string `json:"targetNsiList,omitempty"` + // NF Set Identifier (see clause 28.12 of 3GPP TS 23.003), formatted as the following string \"set.set.5gc.mnc.mcc\", or \"set.set.5gc.nid.mnc.mcc\" with encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) encoding the Mobile Network Code part of the PLMN, comprising 3 digits. If there are only 2 significant digits in the MNC, one \"0\" digit shall be inserted at the left side to fill the 3 digits coding of MNC. Pattern: '^[0-9]{3}$' encoded as a value defined in Table 6.1.6.3.3-1 of 3GPP TS 29.510 but with lower case characters encoded as a string of characters consisting of alphabetic characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that shall end with either an alphabetic character or a digit. + TargetNfSetId *string `json:"targetNfSetId,omitempty"` + // NF Service Set Identifier (see clause 28.12 of 3GPP TS 23.003) formatted as the following string \"set.sn.nfi.5gc.mnc.mcc\", or \"set.sn.nfi.5gc.nid.mnc.mcc\" with encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) encoding the Mobile Network Code part of the PLMN, comprising 3 digits. If there are only 2 significant digits in the MNC, one \"0\" digit shall be inserted at the left side to fill the 3 digits coding of MNC. Pattern: '^[0-9]{3}$' encoded as defined in clause 5.4.2 (\"Nid\" data type definition) encoded as defined in clause 5.3.2 encoded as defined in 3GPP TS 29.510 encoded as a string of characters consisting of alphabetic characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that shall end with either an alphabetic character or a digit. + TargetNfServiceSetId *string `json:"targetNfServiceSetId,omitempty"` + // String providing an URI formatted according to RFC 3986. + HnrfAccessTokenUri *string `json:"hnrfAccessTokenUri,omitempty"` + // String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122. + SourceNfInstanceId *string `json:"sourceNfInstanceId,omitempty"` +} + +type _AccessTokenReq1 AccessTokenReq1 + +// NewAccessTokenReq1 instantiates a new AccessTokenReq1 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 NewAccessTokenReq1(grantType string, nfInstanceId string, scope string) *AccessTokenReq1 { + this := AccessTokenReq1{} + this.GrantType = grantType + this.NfInstanceId = nfInstanceId + this.Scope = scope + return &this +} + +// NewAccessTokenReq1WithDefaults instantiates a new AccessTokenReq1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenReq1WithDefaults() *AccessTokenReq1 { + this := AccessTokenReq1{} + return &this +} + +// GetGrantType returns the GrantType field value +func (o *AccessTokenReq1) GetGrantType() string { + if o == nil { + var ret string + return ret + } + + return o.GrantType +} + +// GetGrantTypeOk returns a tuple with the GrantType field value +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetGrantTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GrantType, true +} + +// SetGrantType sets field value +func (o *AccessTokenReq1) SetGrantType(v string) { + o.GrantType = v +} + +// GetNfInstanceId returns the NfInstanceId field value +func (o *AccessTokenReq1) GetNfInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.NfInstanceId +} + +// GetNfInstanceIdOk returns a tuple with the NfInstanceId field value +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetNfInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NfInstanceId, true +} + +// SetNfInstanceId sets field value +func (o *AccessTokenReq1) SetNfInstanceId(v string) { + o.NfInstanceId = v +} + +// GetNfType returns the NfType field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetNfType() NFType { + if o == nil || IsNil(o.NfType) { + var ret NFType + return ret + } + return *o.NfType +} + +// GetNfTypeOk returns a tuple with the NfType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetNfTypeOk() (*NFType, bool) { + if o == nil || IsNil(o.NfType) { + return nil, false + } + return o.NfType, true +} + +// HasNfType returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasNfType() bool { + if o != nil && !IsNil(o.NfType) { + return true + } + + return false +} + +// SetNfType gets a reference to the given NFType and assigns it to the NfType field. +func (o *AccessTokenReq1) SetNfType(v NFType) { + o.NfType = &v +} + +// GetTargetNfType returns the TargetNfType field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetNfType() NFType { + if o == nil || IsNil(o.TargetNfType) { + var ret NFType + return ret + } + return *o.TargetNfType +} + +// GetTargetNfTypeOk returns a tuple with the TargetNfType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetNfTypeOk() (*NFType, bool) { + if o == nil || IsNil(o.TargetNfType) { + return nil, false + } + return o.TargetNfType, true +} + +// HasTargetNfType returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetNfType() bool { + if o != nil && !IsNil(o.TargetNfType) { + return true + } + + return false +} + +// SetTargetNfType gets a reference to the given NFType and assigns it to the TargetNfType field. +func (o *AccessTokenReq1) SetTargetNfType(v NFType) { + o.TargetNfType = &v +} + +// GetScope returns the Scope field value +func (o *AccessTokenReq1) GetScope() string { + if o == nil { + var ret string + return ret + } + + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Scope, true +} + +// SetScope sets field value +func (o *AccessTokenReq1) SetScope(v string) { + o.Scope = v +} + +// GetTargetNfInstanceId returns the TargetNfInstanceId field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetNfInstanceId() string { + if o == nil || IsNil(o.TargetNfInstanceId) { + var ret string + return ret + } + return *o.TargetNfInstanceId +} + +// GetTargetNfInstanceIdOk returns a tuple with the TargetNfInstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetNfInstanceIdOk() (*string, bool) { + if o == nil || IsNil(o.TargetNfInstanceId) { + return nil, false + } + return o.TargetNfInstanceId, true +} + +// HasTargetNfInstanceId returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetNfInstanceId() bool { + if o != nil && !IsNil(o.TargetNfInstanceId) { + return true + } + + return false +} + +// SetTargetNfInstanceId gets a reference to the given string and assigns it to the TargetNfInstanceId field. +func (o *AccessTokenReq1) SetTargetNfInstanceId(v string) { + o.TargetNfInstanceId = &v +} + +// GetRequesterPlmn returns the RequesterPlmn field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetRequesterPlmn() PlmnId { + if o == nil || IsNil(o.RequesterPlmn) { + var ret PlmnId + return ret + } + return *o.RequesterPlmn +} + +// GetRequesterPlmnOk returns a tuple with the RequesterPlmn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetRequesterPlmnOk() (*PlmnId, bool) { + if o == nil || IsNil(o.RequesterPlmn) { + return nil, false + } + return o.RequesterPlmn, true +} + +// HasRequesterPlmn returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasRequesterPlmn() bool { + if o != nil && !IsNil(o.RequesterPlmn) { + return true + } + + return false +} + +// SetRequesterPlmn gets a reference to the given PlmnId and assigns it to the RequesterPlmn field. +func (o *AccessTokenReq1) SetRequesterPlmn(v PlmnId) { + o.RequesterPlmn = &v +} + +// GetRequesterPlmnList returns the RequesterPlmnList field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetRequesterPlmnList() []PlmnId { + if o == nil || IsNil(o.RequesterPlmnList) { + var ret []PlmnId + return ret + } + return o.RequesterPlmnList +} + +// GetRequesterPlmnListOk returns a tuple with the RequesterPlmnList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetRequesterPlmnListOk() ([]PlmnId, bool) { + if o == nil || IsNil(o.RequesterPlmnList) { + return nil, false + } + return o.RequesterPlmnList, true +} + +// HasRequesterPlmnList returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasRequesterPlmnList() bool { + if o != nil && !IsNil(o.RequesterPlmnList) { + return true + } + + return false +} + +// SetRequesterPlmnList gets a reference to the given []PlmnId and assigns it to the RequesterPlmnList field. +func (o *AccessTokenReq1) SetRequesterPlmnList(v []PlmnId) { + o.RequesterPlmnList = v +} + +// GetRequesterSnssaiList returns the RequesterSnssaiList field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetRequesterSnssaiList() []Snssai { + if o == nil || IsNil(o.RequesterSnssaiList) { + var ret []Snssai + return ret + } + return o.RequesterSnssaiList +} + +// GetRequesterSnssaiListOk returns a tuple with the RequesterSnssaiList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetRequesterSnssaiListOk() ([]Snssai, bool) { + if o == nil || IsNil(o.RequesterSnssaiList) { + return nil, false + } + return o.RequesterSnssaiList, true +} + +// HasRequesterSnssaiList returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasRequesterSnssaiList() bool { + if o != nil && !IsNil(o.RequesterSnssaiList) { + return true + } + + return false +} + +// SetRequesterSnssaiList gets a reference to the given []Snssai and assigns it to the RequesterSnssaiList field. +func (o *AccessTokenReq1) SetRequesterSnssaiList(v []Snssai) { + o.RequesterSnssaiList = v +} + +// GetRequesterFqdn returns the RequesterFqdn field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetRequesterFqdn() string { + if o == nil || IsNil(o.RequesterFqdn) { + var ret string + return ret + } + return *o.RequesterFqdn +} + +// GetRequesterFqdnOk returns a tuple with the RequesterFqdn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetRequesterFqdnOk() (*string, bool) { + if o == nil || IsNil(o.RequesterFqdn) { + return nil, false + } + return o.RequesterFqdn, true +} + +// HasRequesterFqdn returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasRequesterFqdn() bool { + if o != nil && !IsNil(o.RequesterFqdn) { + return true + } + + return false +} + +// SetRequesterFqdn gets a reference to the given string and assigns it to the RequesterFqdn field. +func (o *AccessTokenReq1) SetRequesterFqdn(v string) { + o.RequesterFqdn = &v +} + +// GetRequesterSnpnList returns the RequesterSnpnList field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetRequesterSnpnList() []PlmnIdNid { + if o == nil || IsNil(o.RequesterSnpnList) { + var ret []PlmnIdNid + return ret + } + return o.RequesterSnpnList +} + +// GetRequesterSnpnListOk returns a tuple with the RequesterSnpnList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetRequesterSnpnListOk() ([]PlmnIdNid, bool) { + if o == nil || IsNil(o.RequesterSnpnList) { + return nil, false + } + return o.RequesterSnpnList, true +} + +// HasRequesterSnpnList returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasRequesterSnpnList() bool { + if o != nil && !IsNil(o.RequesterSnpnList) { + return true + } + + return false +} + +// SetRequesterSnpnList gets a reference to the given []PlmnIdNid and assigns it to the RequesterSnpnList field. +func (o *AccessTokenReq1) SetRequesterSnpnList(v []PlmnIdNid) { + o.RequesterSnpnList = v +} + +// GetTargetPlmn returns the TargetPlmn field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetPlmn() PlmnId { + if o == nil || IsNil(o.TargetPlmn) { + var ret PlmnId + return ret + } + return *o.TargetPlmn +} + +// GetTargetPlmnOk returns a tuple with the TargetPlmn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetPlmnOk() (*PlmnId, bool) { + if o == nil || IsNil(o.TargetPlmn) { + return nil, false + } + return o.TargetPlmn, true +} + +// HasTargetPlmn returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetPlmn() bool { + if o != nil && !IsNil(o.TargetPlmn) { + return true + } + + return false +} + +// SetTargetPlmn gets a reference to the given PlmnId and assigns it to the TargetPlmn field. +func (o *AccessTokenReq1) SetTargetPlmn(v PlmnId) { + o.TargetPlmn = &v +} + +// GetTargetSnpn returns the TargetSnpn field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetSnpn() PlmnIdNid { + if o == nil || IsNil(o.TargetSnpn) { + var ret PlmnIdNid + return ret + } + return *o.TargetSnpn +} + +// GetTargetSnpnOk returns a tuple with the TargetSnpn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetSnpnOk() (*PlmnIdNid, bool) { + if o == nil || IsNil(o.TargetSnpn) { + return nil, false + } + return o.TargetSnpn, true +} + +// HasTargetSnpn returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetSnpn() bool { + if o != nil && !IsNil(o.TargetSnpn) { + return true + } + + return false +} + +// SetTargetSnpn gets a reference to the given PlmnIdNid and assigns it to the TargetSnpn field. +func (o *AccessTokenReq1) SetTargetSnpn(v PlmnIdNid) { + o.TargetSnpn = &v +} + +// GetTargetSnssaiList returns the TargetSnssaiList field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetSnssaiList() []Snssai { + if o == nil || IsNil(o.TargetSnssaiList) { + var ret []Snssai + return ret + } + return o.TargetSnssaiList +} + +// GetTargetSnssaiListOk returns a tuple with the TargetSnssaiList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetSnssaiListOk() ([]Snssai, bool) { + if o == nil || IsNil(o.TargetSnssaiList) { + return nil, false + } + return o.TargetSnssaiList, true +} + +// HasTargetSnssaiList returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetSnssaiList() bool { + if o != nil && !IsNil(o.TargetSnssaiList) { + return true + } + + return false +} + +// SetTargetSnssaiList gets a reference to the given []Snssai and assigns it to the TargetSnssaiList field. +func (o *AccessTokenReq1) SetTargetSnssaiList(v []Snssai) { + o.TargetSnssaiList = v +} + +// GetTargetNsiList returns the TargetNsiList field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetNsiList() []string { + if o == nil || IsNil(o.TargetNsiList) { + var ret []string + return ret + } + return o.TargetNsiList +} + +// GetTargetNsiListOk returns a tuple with the TargetNsiList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetNsiListOk() ([]string, bool) { + if o == nil || IsNil(o.TargetNsiList) { + return nil, false + } + return o.TargetNsiList, true +} + +// HasTargetNsiList returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetNsiList() bool { + if o != nil && !IsNil(o.TargetNsiList) { + return true + } + + return false +} + +// SetTargetNsiList gets a reference to the given []string and assigns it to the TargetNsiList field. +func (o *AccessTokenReq1) SetTargetNsiList(v []string) { + o.TargetNsiList = v +} + +// GetTargetNfSetId returns the TargetNfSetId field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetNfSetId() string { + if o == nil || IsNil(o.TargetNfSetId) { + var ret string + return ret + } + return *o.TargetNfSetId +} + +// GetTargetNfSetIdOk returns a tuple with the TargetNfSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetNfSetIdOk() (*string, bool) { + if o == nil || IsNil(o.TargetNfSetId) { + return nil, false + } + return o.TargetNfSetId, true +} + +// HasTargetNfSetId returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetNfSetId() bool { + if o != nil && !IsNil(o.TargetNfSetId) { + return true + } + + return false +} + +// SetTargetNfSetId gets a reference to the given string and assigns it to the TargetNfSetId field. +func (o *AccessTokenReq1) SetTargetNfSetId(v string) { + o.TargetNfSetId = &v +} + +// GetTargetNfServiceSetId returns the TargetNfServiceSetId field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetTargetNfServiceSetId() string { + if o == nil || IsNil(o.TargetNfServiceSetId) { + var ret string + return ret + } + return *o.TargetNfServiceSetId +} + +// GetTargetNfServiceSetIdOk returns a tuple with the TargetNfServiceSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetTargetNfServiceSetIdOk() (*string, bool) { + if o == nil || IsNil(o.TargetNfServiceSetId) { + return nil, false + } + return o.TargetNfServiceSetId, true +} + +// HasTargetNfServiceSetId returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasTargetNfServiceSetId() bool { + if o != nil && !IsNil(o.TargetNfServiceSetId) { + return true + } + + return false +} + +// SetTargetNfServiceSetId gets a reference to the given string and assigns it to the TargetNfServiceSetId field. +func (o *AccessTokenReq1) SetTargetNfServiceSetId(v string) { + o.TargetNfServiceSetId = &v +} + +// GetHnrfAccessTokenUri returns the HnrfAccessTokenUri field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetHnrfAccessTokenUri() string { + if o == nil || IsNil(o.HnrfAccessTokenUri) { + var ret string + return ret + } + return *o.HnrfAccessTokenUri +} + +// GetHnrfAccessTokenUriOk returns a tuple with the HnrfAccessTokenUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetHnrfAccessTokenUriOk() (*string, bool) { + if o == nil || IsNil(o.HnrfAccessTokenUri) { + return nil, false + } + return o.HnrfAccessTokenUri, true +} + +// HasHnrfAccessTokenUri returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasHnrfAccessTokenUri() bool { + if o != nil && !IsNil(o.HnrfAccessTokenUri) { + return true + } + + return false +} + +// SetHnrfAccessTokenUri gets a reference to the given string and assigns it to the HnrfAccessTokenUri field. +func (o *AccessTokenReq1) SetHnrfAccessTokenUri(v string) { + o.HnrfAccessTokenUri = &v +} + +// GetSourceNfInstanceId returns the SourceNfInstanceId field value if set, zero value otherwise. +func (o *AccessTokenReq1) GetSourceNfInstanceId() string { + if o == nil || IsNil(o.SourceNfInstanceId) { + var ret string + return ret + } + return *o.SourceNfInstanceId +} + +// GetSourceNfInstanceIdOk returns a tuple with the SourceNfInstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenReq1) GetSourceNfInstanceIdOk() (*string, bool) { + if o == nil || IsNil(o.SourceNfInstanceId) { + return nil, false + } + return o.SourceNfInstanceId, true +} + +// HasSourceNfInstanceId returns a boolean if a field has been set. +func (o *AccessTokenReq1) HasSourceNfInstanceId() bool { + if o != nil && !IsNil(o.SourceNfInstanceId) { + return true + } + + return false +} + +// SetSourceNfInstanceId gets a reference to the given string and assigns it to the SourceNfInstanceId field. +func (o *AccessTokenReq1) SetSourceNfInstanceId(v string) { + o.SourceNfInstanceId = &v +} + +func (o AccessTokenReq1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokenReq1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["grant_type"] = o.GrantType + toSerialize["nfInstanceId"] = o.NfInstanceId + if !IsNil(o.NfType) { + toSerialize["nfType"] = o.NfType + } + if !IsNil(o.TargetNfType) { + toSerialize["targetNfType"] = o.TargetNfType + } + toSerialize["scope"] = o.Scope + if !IsNil(o.TargetNfInstanceId) { + toSerialize["targetNfInstanceId"] = o.TargetNfInstanceId + } + if !IsNil(o.RequesterPlmn) { + toSerialize["requesterPlmn"] = o.RequesterPlmn + } + if !IsNil(o.RequesterPlmnList) { + toSerialize["requesterPlmnList"] = o.RequesterPlmnList + } + if !IsNil(o.RequesterSnssaiList) { + toSerialize["requesterSnssaiList"] = o.RequesterSnssaiList + } + if !IsNil(o.RequesterFqdn) { + toSerialize["requesterFqdn"] = o.RequesterFqdn + } + if !IsNil(o.RequesterSnpnList) { + toSerialize["requesterSnpnList"] = o.RequesterSnpnList + } + if !IsNil(o.TargetPlmn) { + toSerialize["targetPlmn"] = o.TargetPlmn + } + if !IsNil(o.TargetSnpn) { + toSerialize["targetSnpn"] = o.TargetSnpn + } + if !IsNil(o.TargetSnssaiList) { + toSerialize["targetSnssaiList"] = o.TargetSnssaiList + } + if !IsNil(o.TargetNsiList) { + toSerialize["targetNsiList"] = o.TargetNsiList + } + if !IsNil(o.TargetNfSetId) { + toSerialize["targetNfSetId"] = o.TargetNfSetId + } + if !IsNil(o.TargetNfServiceSetId) { + toSerialize["targetNfServiceSetId"] = o.TargetNfServiceSetId + } + if !IsNil(o.HnrfAccessTokenUri) { + toSerialize["hnrfAccessTokenUri"] = o.HnrfAccessTokenUri + } + if !IsNil(o.SourceNfInstanceId) { + toSerialize["sourceNfInstanceId"] = o.SourceNfInstanceId + } + return toSerialize, nil +} + +func (o *AccessTokenReq1) UnmarshalJSON(data []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{ + "grant_type", + "nfInstanceId", + "scope", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAccessTokenReq1 := _AccessTokenReq1{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokenReq1) + + if err != nil { + return err + } + + *o = AccessTokenReq1(varAccessTokenReq1) + + return err +} + +type NullableAccessTokenReq1 struct { + value *AccessTokenReq1 + isSet bool +} + +func (v NullableAccessTokenReq1) Get() *AccessTokenReq1 { + return v.value +} + +func (v *NullableAccessTokenReq1) Set(val *AccessTokenReq1) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokenReq1) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokenReq1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokenReq1(val *AccessTokenReq1) *NullableAccessTokenReq1 { + return &NullableAccessTokenReq1{value: val, isSet: true} +} + +func (v NullableAccessTokenReq1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokenReq1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_access_token_rsp.go b/internal/CapifSecurity/model_access_token_rsp.go new file mode 100644 index 0000000000000000000000000000000000000000..e4ea270132c417c1edfdd6cd90166df97c912d3f --- /dev/null +++ b/internal/CapifSecurity/model_access_token_rsp.go @@ -0,0 +1,252 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessTokenRsp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokenRsp{} + +// AccessTokenRsp Represents the access token response information. +type AccessTokenRsp struct { + // JWS Compact Serialized representation of JWS signed JSON object (AccessTokenClaims) + AccessToken string `json:"access_token"` + TokenType string `json:"token_type"` + // Unsigned integer identifying a period of time in units of seconds. + ExpiresIn int32 `json:"expires_in"` + Scope *string `json:"scope,omitempty"` +} + +type _AccessTokenRsp AccessTokenRsp + +// NewAccessTokenRsp instantiates a new AccessTokenRsp 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 NewAccessTokenRsp(accessToken string, tokenType string, expiresIn int32) *AccessTokenRsp { + this := AccessTokenRsp{} + this.AccessToken = accessToken + this.TokenType = tokenType + this.ExpiresIn = expiresIn + return &this +} + +// NewAccessTokenRspWithDefaults instantiates a new AccessTokenRsp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenRspWithDefaults() *AccessTokenRsp { + this := AccessTokenRsp{} + return &this +} + +// GetAccessToken returns the AccessToken field value +func (o *AccessTokenRsp) GetAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value +// and a boolean to check if the value has been set. +func (o *AccessTokenRsp) GetAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessToken, true +} + +// SetAccessToken sets field value +func (o *AccessTokenRsp) SetAccessToken(v string) { + o.AccessToken = v +} + +// GetTokenType returns the TokenType field value +func (o *AccessTokenRsp) GetTokenType() string { + if o == nil { + var ret string + return ret + } + + return o.TokenType +} + +// GetTokenTypeOk returns a tuple with the TokenType field value +// and a boolean to check if the value has been set. +func (o *AccessTokenRsp) GetTokenTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenType, true +} + +// SetTokenType sets field value +func (o *AccessTokenRsp) SetTokenType(v string) { + o.TokenType = v +} + +// GetExpiresIn returns the ExpiresIn field value +func (o *AccessTokenRsp) GetExpiresIn() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ExpiresIn +} + +// GetExpiresInOk returns a tuple with the ExpiresIn field value +// and a boolean to check if the value has been set. +func (o *AccessTokenRsp) GetExpiresInOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ExpiresIn, true +} + +// SetExpiresIn sets field value +func (o *AccessTokenRsp) SetExpiresIn(v int32) { + o.ExpiresIn = v +} + +// GetScope returns the Scope field value if set, zero value otherwise. +func (o *AccessTokenRsp) GetScope() string { + if o == nil || IsNil(o.Scope) { + var ret string + return ret + } + return *o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessTokenRsp) GetScopeOk() (*string, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *AccessTokenRsp) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given string and assigns it to the Scope field. +func (o *AccessTokenRsp) SetScope(v string) { + o.Scope = &v +} + +func (o AccessTokenRsp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokenRsp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["access_token"] = o.AccessToken + toSerialize["token_type"] = o.TokenType + toSerialize["expires_in"] = o.ExpiresIn + if !IsNil(o.Scope) { + toSerialize["scope"] = o.Scope + } + return toSerialize, nil +} + +func (o *AccessTokenRsp) UnmarshalJSON(data []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_token", + "token_type", + "expires_in", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varAccessTokenRsp := _AccessTokenRsp{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokenRsp) + + if err != nil { + return err + } + + *o = AccessTokenRsp(varAccessTokenRsp) + + return err +} + +type NullableAccessTokenRsp struct { + value *AccessTokenRsp + isSet bool +} + +func (v NullableAccessTokenRsp) Get() *AccessTokenRsp { + return v.value +} + +func (v *NullableAccessTokenRsp) Set(val *AccessTokenRsp) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokenRsp) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokenRsp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokenRsp(val *AccessTokenRsp) *NullableAccessTokenRsp { + return &NullableAccessTokenRsp{value: val, isSet: true} +} + +func (v NullableAccessTokenRsp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokenRsp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_cause.go b/internal/CapifSecurity/model_cause.go new file mode 100644 index 0000000000000000000000000000000000000000..c03251f3d1f90198c9a423c41a0a8b41adc5eea3 --- /dev/null +++ b/internal/CapifSecurity/model_cause.go @@ -0,0 +1,89 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "fmt" +) + + +// Cause Possible values are: - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason. +type Cause struct { + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *Cause) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(Cause)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *Cause) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableCause struct { + value *Cause + isSet bool +} + +func (v NullableCause) Get() *Cause { + return v.value +} + +func (v *NullableCause) Set(val *Cause) { + v.value = val + v.isSet = true +} + +func (v NullableCause) IsSet() bool { + return v.isSet +} + +func (v *NullableCause) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCause(val *Cause) *NullableCause { + return &NullableCause{value: val, isSet: true} +} + +func (v NullableCause) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCause) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_interface_description.go b/internal/CapifSecurity/model_interface_description.go new file mode 100644 index 0000000000000000000000000000000000000000..e5875e3ef412fc454a0b0fff013371c8360800f4 --- /dev/null +++ b/internal/CapifSecurity/model_interface_description.go @@ -0,0 +1,238 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" +) + +// checks if the InterfaceDescription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceDescription{} + +// InterfaceDescription Represents the description of an API's interface. +type InterfaceDescription struct { + // string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166. + Ipv4Addr *string + // string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used. + Ipv6Addr *string + // Unsigned integer with valid values between 0 and 65535. + Port *int32 + // Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface. + SecurityMethods []SecurityMethod +} + +// NewInterfaceDescription instantiates a new InterfaceDescription 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 NewInterfaceDescription() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceDescriptionWithDefaults() *InterfaceDescription { + this := InterfaceDescription{} + return &this +} + +// GetIpv4Addr returns the Ipv4Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv4Addr() string { + if o == nil || IsNil(o.Ipv4Addr) { + var ret string + return ret + } + return *o.Ipv4Addr +} + +// GetIpv4AddrOk returns a tuple with the Ipv4Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv4Addr) { + return nil, false + } + return o.Ipv4Addr, true +} + +// HasIpv4Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv4Addr() bool { + if o != nil && !IsNil(o.Ipv4Addr) { + return true + } + + return false +} + +// SetIpv4Addr gets a reference to the given string and assigns it to the Ipv4Addr field. +func (o *InterfaceDescription) SetIpv4Addr(v string) { + o.Ipv4Addr = &v +} + +// GetIpv6Addr returns the Ipv6Addr field value if set, zero value otherwise. +func (o *InterfaceDescription) GetIpv6Addr() string { + if o == nil || IsNil(o.Ipv6Addr) { + var ret string + return ret + } + return *o.Ipv6Addr +} + +// GetIpv6AddrOk returns a tuple with the Ipv6Addr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool) { + if o == nil || IsNil(o.Ipv6Addr) { + return nil, false + } + return o.Ipv6Addr, true +} + +// HasIpv6Addr returns a boolean if a field has been set. +func (o *InterfaceDescription) HasIpv6Addr() bool { + if o != nil && !IsNil(o.Ipv6Addr) { + return true + } + + return false +} + +// SetIpv6Addr gets a reference to the given string and assigns it to the Ipv6Addr field. +func (o *InterfaceDescription) SetIpv6Addr(v string) { + o.Ipv6Addr = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *InterfaceDescription) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *InterfaceDescription) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *InterfaceDescription) SetPort(v int32) { + o.Port = &v +} + +// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise. +func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod { + if o == nil || IsNil(o.SecurityMethods) { + var ret []SecurityMethod + return ret + } + return o.SecurityMethods +} + +// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDescription) GetSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil || IsNil(o.SecurityMethods) { + return nil, false + } + return o.SecurityMethods, true +} + +// HasSecurityMethods returns a boolean if a field has been set. +func (o *InterfaceDescription) HasSecurityMethods() bool { + if o != nil && !IsNil(o.SecurityMethods) { + return true + } + + return false +} + +// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field. +func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod) { + o.SecurityMethods = v +} + +func (o InterfaceDescription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceDescription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Ipv4Addr) { + toSerialize["ipv4Addr"] = o.Ipv4Addr + } + if !IsNil(o.Ipv6Addr) { + toSerialize["ipv6Addr"] = o.Ipv6Addr + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.SecurityMethods) { + toSerialize["securityMethods"] = o.SecurityMethods + } + return toSerialize, nil +} + +type NullableInterfaceDescription struct { + value *InterfaceDescription + isSet bool +} + +func (v NullableInterfaceDescription) Get() *InterfaceDescription { + return v.value +} + +func (v *NullableInterfaceDescription) Set(val *InterfaceDescription) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceDescription) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceDescription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceDescription(val *InterfaceDescription) *NullableInterfaceDescription { + return &NullableInterfaceDescription{value: val, isSet: true} +} + +func (v NullableInterfaceDescription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceDescription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_invalid_param.go b/internal/CapifSecurity/model_invalid_param.go new file mode 100644 index 0000000000000000000000000000000000000000..296042c5e4d7afc1c95227a608e030da0dda6779 --- /dev/null +++ b/internal/CapifSecurity/model_invalid_param.go @@ -0,0 +1,196 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InvalidParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvalidParam{} + +// InvalidParam Represents the description of invalid parameters, for a request rejected due to invalid parameters. +type InvalidParam struct { + // Attribute's name encoded as a JSON Pointer, or header's name. + Param string `json:"param"` + // A human-readable reason, e.g. \"must be a positive integer\". + Reason *string `json:"reason,omitempty"` +} + +type _InvalidParam InvalidParam + +// NewInvalidParam instantiates a new InvalidParam 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 NewInvalidParam(param string) *InvalidParam { + this := InvalidParam{} + this.Param = param + return &this +} + +// NewInvalidParamWithDefaults instantiates a new InvalidParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvalidParamWithDefaults() *InvalidParam { + this := InvalidParam{} + return &this +} + +// GetParam returns the Param field value +func (o *InvalidParam) GetParam() string { + if o == nil { + var ret string + return ret + } + + return o.Param +} + +// GetParamOk returns a tuple with the Param field value +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetParamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Param, true +} + +// SetParam sets field value +func (o *InvalidParam) SetParam(v string) { + o.Param = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InvalidParam) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvalidParam) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InvalidParam) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InvalidParam) SetReason(v string) { + o.Reason = &v +} + +func (o InvalidParam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvalidParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["param"] = o.Param + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *InvalidParam) UnmarshalJSON(data []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{ + "param", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varInvalidParam := _InvalidParam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInvalidParam) + + if err != nil { + return err + } + + *o = InvalidParam(varInvalidParam) + + return err +} + +type NullableInvalidParam struct { + value *InvalidParam + isSet bool +} + +func (v NullableInvalidParam) Get() *InvalidParam { + return v.value +} + +func (v *NullableInvalidParam) Set(val *InvalidParam) { + v.value = val + v.isSet = true +} + +func (v NullableInvalidParam) IsSet() bool { + return v.isSet +} + +func (v *NullableInvalidParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvalidParam(val *InvalidParam) *NullableInvalidParam { + return &NullableInvalidParam{value: val, isSet: true} +} + +func (v NullableInvalidParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvalidParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_invalid_param_1.go b/internal/CapifSecurity/model_invalid_param_1.go new file mode 100644 index 0000000000000000000000000000000000000000..587e610e7b54cd5e531feff828fbfb64449f5dde --- /dev/null +++ b/internal/CapifSecurity/model_invalid_param_1.go @@ -0,0 +1,196 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InvalidParam1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvalidParam1{} + +// InvalidParam1 It contains an invalid parameter and a related description. +type InvalidParam1 struct { + // If the invalid parameter is an attribute in a JSON body, this IE shall contain the attribute's name and shall be encoded as a JSON Pointer. If the invalid parameter is an HTTP header, this IE shall be formatted as the concatenation of the string \"header \" plus the name of such header. If the invalid parameter is a query parameter, this IE shall be formatted as the concatenation of the string \"query \" plus the name of such query parameter. If the invalid parameter is a variable part in the path of a resource URI, this IE shall contain the name of the variable, including the symbols \"{\" and \"}\" used in OpenAPI specification as the notation to represent variable path segments. + Param string `json:"param"` + // A human-readable reason, e.g. \"must be a positive integer\". In cases involving failed operations in a PATCH request, the reason string should identify the operation that failed using the operation's array index to assist in correlation of the invalid parameter with the failed operation, e.g.\" Replacement value invalid for attribute (failed operation index= 4)\" + Reason *string `json:"reason,omitempty"` +} + +type _InvalidParam1 InvalidParam1 + +// NewInvalidParam1 instantiates a new InvalidParam1 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 NewInvalidParam1(param string) *InvalidParam1 { + this := InvalidParam1{} + this.Param = param + return &this +} + +// NewInvalidParam1WithDefaults instantiates a new InvalidParam1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvalidParam1WithDefaults() *InvalidParam1 { + this := InvalidParam1{} + return &this +} + +// GetParam returns the Param field value +func (o *InvalidParam1) GetParam() string { + if o == nil { + var ret string + return ret + } + + return o.Param +} + +// GetParamOk returns a tuple with the Param field value +// and a boolean to check if the value has been set. +func (o *InvalidParam1) GetParamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Param, true +} + +// SetParam sets field value +func (o *InvalidParam1) SetParam(v string) { + o.Param = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InvalidParam1) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvalidParam1) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InvalidParam1) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InvalidParam1) SetReason(v string) { + o.Reason = &v +} + +func (o InvalidParam1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvalidParam1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["param"] = o.Param + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *InvalidParam1) UnmarshalJSON(data []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{ + "param", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varInvalidParam1 := _InvalidParam1{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInvalidParam1) + + if err != nil { + return err + } + + *o = InvalidParam1(varInvalidParam1) + + return err +} + +type NullableInvalidParam1 struct { + value *InvalidParam1 + isSet bool +} + +func (v NullableInvalidParam1) Get() *InvalidParam1 { + return v.value +} + +func (v *NullableInvalidParam1) Set(val *InvalidParam1) { + v.value = val + v.isSet = true +} + +func (v NullableInvalidParam1) IsSet() bool { + return v.isSet +} + +func (v *NullableInvalidParam1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvalidParam1(val *InvalidParam1) *NullableInvalidParam1 { + return &NullableInvalidParam1{value: val, isSet: true} +} + +func (v NullableInvalidParam1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvalidParam1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_nf_type.go b/internal/CapifSecurity/model_nf_type.go new file mode 100644 index 0000000000000000000000000000000000000000..f127d711956773998bc0fa2fc03e43b72c13c931 --- /dev/null +++ b/internal/CapifSecurity/model_nf_type.go @@ -0,0 +1,89 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "fmt" +) + + +// NFType NF types known to NRF +type NFType struct { + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *NFType) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(NFType)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *NFType) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableNFType struct { + value *NFType + isSet bool +} + +func (v NullableNFType) Get() *NFType { + return v.value +} + +func (v *NullableNFType) Set(val *NFType) { + v.value = val + v.isSet = true +} + +func (v NullableNFType) IsSet() bool { + return v.isSet +} + +func (v *NullableNFType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNFType(val *NFType) *NullableNFType { + return &NullableNFType{value: val, isSet: true} +} + +func (v NullableNFType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNFType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_plmn_id.go b/internal/CapifSecurity/model_plmn_id.go new file mode 100644 index 0000000000000000000000000000000000000000..d028ffc47105b7a73fbc519f9dbb118f37d8d2ac --- /dev/null +++ b/internal/CapifSecurity/model_plmn_id.go @@ -0,0 +1,188 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PlmnId type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlmnId{} + +// PlmnId When PlmnId needs to be converted to string (e.g. when used in maps as key), the string shall be composed of three digits \"mcc\" followed by \"-\" and two or three digits \"mnc\". +type PlmnId struct { + // Mobile Country Code part of the PLMN, comprising 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. + Mcc string `json:"mcc" validate:"regexp=^\\\\d{3}$"` + // Mobile Network Code part of the PLMN, comprising 2 or 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. + Mnc string `json:"mnc" validate:"regexp=^\\\\d{2,3}$"` +} + +type _PlmnId PlmnId + +// NewPlmnId instantiates a new PlmnId 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 NewPlmnId(mcc string, mnc string) *PlmnId { + this := PlmnId{} + this.Mcc = mcc + this.Mnc = mnc + return &this +} + +// NewPlmnIdWithDefaults instantiates a new PlmnId object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlmnIdWithDefaults() *PlmnId { + this := PlmnId{} + return &this +} + +// GetMcc returns the Mcc field value +func (o *PlmnId) GetMcc() string { + if o == nil { + var ret string + return ret + } + + return o.Mcc +} + +// GetMccOk returns a tuple with the Mcc field value +// and a boolean to check if the value has been set. +func (o *PlmnId) GetMccOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Mcc, true +} + +// SetMcc sets field value +func (o *PlmnId) SetMcc(v string) { + o.Mcc = v +} + +// GetMnc returns the Mnc field value +func (o *PlmnId) GetMnc() string { + if o == nil { + var ret string + return ret + } + + return o.Mnc +} + +// GetMncOk returns a tuple with the Mnc field value +// and a boolean to check if the value has been set. +func (o *PlmnId) GetMncOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Mnc, true +} + +// SetMnc sets field value +func (o *PlmnId) SetMnc(v string) { + o.Mnc = v +} + +func (o PlmnId) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlmnId) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["mcc"] = o.Mcc + toSerialize["mnc"] = o.Mnc + return toSerialize, nil +} + +func (o *PlmnId) UnmarshalJSON(data []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{ + "mcc", + "mnc", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPlmnId := _PlmnId{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlmnId) + + if err != nil { + return err + } + + *o = PlmnId(varPlmnId) + + return err +} + +type NullablePlmnId struct { + value *PlmnId + isSet bool +} + +func (v NullablePlmnId) Get() *PlmnId { + return v.value +} + +func (v *NullablePlmnId) Set(val *PlmnId) { + v.value = val + v.isSet = true +} + +func (v NullablePlmnId) IsSet() bool { + return v.isSet +} + +func (v *NullablePlmnId) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlmnId(val *PlmnId) *NullablePlmnId { + return &NullablePlmnId{value: val, isSet: true} +} + +func (v NullablePlmnId) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlmnId) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_plmn_id_nid.go b/internal/CapifSecurity/model_plmn_id_nid.go new file mode 100644 index 0000000000000000000000000000000000000000..4984d81f9812d71af5093d32db16d6e90cb13898 --- /dev/null +++ b/internal/CapifSecurity/model_plmn_id_nid.go @@ -0,0 +1,225 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PlmnIdNid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlmnIdNid{} + +// PlmnIdNid Contains the serving core network operator PLMN ID and, for an SNPN, the NID that together with the PLMN ID identifies the SNPN. +type PlmnIdNid struct { + // Mobile Country Code part of the PLMN, comprising 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. + Mcc string `json:"mcc" validate:"regexp=^\\\\d{3}$"` + // Mobile Network Code part of the PLMN, comprising 2 or 3 digits, as defined in clause 9.3.3.5 of 3GPP TS 38.413. + Mnc string `json:"mnc" validate:"regexp=^\\\\d{2,3}$"` + // This represents the Network Identifier, which together with a PLMN ID is used to identify an SNPN (see 3GPP TS 23.003 and 3GPP TS 23.501 clause 5.30.2.1). + Nid *string `json:"nid,omitempty" validate:"regexp=^[A-Fa-f0-9]{11}$"` +} + +type _PlmnIdNid PlmnIdNid + +// NewPlmnIdNid instantiates a new PlmnIdNid 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 NewPlmnIdNid(mcc string, mnc string) *PlmnIdNid { + this := PlmnIdNid{} + this.Mcc = mcc + this.Mnc = mnc + return &this +} + +// NewPlmnIdNidWithDefaults instantiates a new PlmnIdNid object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlmnIdNidWithDefaults() *PlmnIdNid { + this := PlmnIdNid{} + return &this +} + +// GetMcc returns the Mcc field value +func (o *PlmnIdNid) GetMcc() string { + if o == nil { + var ret string + return ret + } + + return o.Mcc +} + +// GetMccOk returns a tuple with the Mcc field value +// and a boolean to check if the value has been set. +func (o *PlmnIdNid) GetMccOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Mcc, true +} + +// SetMcc sets field value +func (o *PlmnIdNid) SetMcc(v string) { + o.Mcc = v +} + +// GetMnc returns the Mnc field value +func (o *PlmnIdNid) GetMnc() string { + if o == nil { + var ret string + return ret + } + + return o.Mnc +} + +// GetMncOk returns a tuple with the Mnc field value +// and a boolean to check if the value has been set. +func (o *PlmnIdNid) GetMncOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Mnc, true +} + +// SetMnc sets field value +func (o *PlmnIdNid) SetMnc(v string) { + o.Mnc = v +} + +// GetNid returns the Nid field value if set, zero value otherwise. +func (o *PlmnIdNid) GetNid() string { + if o == nil || IsNil(o.Nid) { + var ret string + return ret + } + return *o.Nid +} + +// GetNidOk returns a tuple with the Nid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlmnIdNid) GetNidOk() (*string, bool) { + if o == nil || IsNil(o.Nid) { + return nil, false + } + return o.Nid, true +} + +// HasNid returns a boolean if a field has been set. +func (o *PlmnIdNid) HasNid() bool { + if o != nil && !IsNil(o.Nid) { + return true + } + + return false +} + +// SetNid gets a reference to the given string and assigns it to the Nid field. +func (o *PlmnIdNid) SetNid(v string) { + o.Nid = &v +} + +func (o PlmnIdNid) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlmnIdNid) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["mcc"] = o.Mcc + toSerialize["mnc"] = o.Mnc + if !IsNil(o.Nid) { + toSerialize["nid"] = o.Nid + } + return toSerialize, nil +} + +func (o *PlmnIdNid) UnmarshalJSON(data []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{ + "mcc", + "mnc", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varPlmnIdNid := _PlmnIdNid{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlmnIdNid) + + if err != nil { + return err + } + + *o = PlmnIdNid(varPlmnIdNid) + + return err +} + +type NullablePlmnIdNid struct { + value *PlmnIdNid + isSet bool +} + +func (v NullablePlmnIdNid) Get() *PlmnIdNid { + return v.value +} + +func (v *NullablePlmnIdNid) Set(val *PlmnIdNid) { + v.value = val + v.isSet = true +} + +func (v NullablePlmnIdNid) IsSet() bool { + return v.isSet +} + +func (v *NullablePlmnIdNid) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlmnIdNid(val *PlmnIdNid) *NullablePlmnIdNid { + return &NullablePlmnIdNid{value: val, isSet: true} +} + +func (v NullablePlmnIdNid) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlmnIdNid) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_problem_details.go b/internal/CapifSecurity/model_problem_details.go new file mode 100644 index 0000000000000000000000000000000000000000..8738bc69ddbdb784e056cdcd6406424330699ff7 --- /dev/null +++ b/internal/CapifSecurity/model_problem_details.go @@ -0,0 +1,386 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" +) + +// checks if the ProblemDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProblemDetails{} + +// ProblemDetails Represents additional information and details on an error response. +type ProblemDetails struct { + // string providing an URI formatted according to IETF RFC 3986. + Type *string `json:"type,omitempty"` + // A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem. + Title *string `json:"title,omitempty"` + // The HTTP status code for this occurrence of the problem. + Status *int32 `json:"status,omitempty"` + // A human-readable explanation specific to this occurrence of the problem. + Detail *string `json:"detail,omitempty"` + // string providing an URI formatted according to IETF RFC 3986. + Instance *string `json:"instance,omitempty"` + // A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + Cause *string `json:"cause,omitempty"` + // Description of invalid parameters, for a request rejected due to invalid parameters. + InvalidParams []InvalidParam `json:"invalidParams,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty" validate:"regexp=^[A-Fa-f0-9]*$"` +} + +// NewProblemDetails instantiates a new ProblemDetails 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 NewProblemDetails() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// NewProblemDetailsWithDefaults instantiates a new ProblemDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProblemDetailsWithDefaults() *ProblemDetails { + this := ProblemDetails{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProblemDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProblemDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProblemDetails) SetType(v string) { + o.Type = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ProblemDetails) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ProblemDetails) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ProblemDetails) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ProblemDetails) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ProblemDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ProblemDetails) SetStatus(v int32) { + o.Status = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ProblemDetails) GetDetail() string { + if o == nil || IsNil(o.Detail) { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetDetailOk() (*string, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ProblemDetails) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ProblemDetails) SetDetail(v string) { + o.Detail = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ProblemDetails) GetInstance() string { + if o == nil || IsNil(o.Instance) { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInstanceOk() (*string, bool) { + if o == nil || IsNil(o.Instance) { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ProblemDetails) HasInstance() bool { + if o != nil && !IsNil(o.Instance) { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ProblemDetails) SetInstance(v string) { + o.Instance = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ProblemDetails) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ProblemDetails) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ProblemDetails) SetCause(v string) { + o.Cause = &v +} + +// GetInvalidParams returns the InvalidParams field value if set, zero value otherwise. +func (o *ProblemDetails) GetInvalidParams() []InvalidParam { + if o == nil || IsNil(o.InvalidParams) { + var ret []InvalidParam + return ret + } + return o.InvalidParams +} + +// GetInvalidParamsOk returns a tuple with the InvalidParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetInvalidParamsOk() ([]InvalidParam, bool) { + if o == nil || IsNil(o.InvalidParams) { + return nil, false + } + return o.InvalidParams, true +} + +// HasInvalidParams returns a boolean if a field has been set. +func (o *ProblemDetails) HasInvalidParams() bool { + if o != nil && !IsNil(o.InvalidParams) { + return true + } + + return false +} + +// SetInvalidParams gets a reference to the given []InvalidParam and assigns it to the InvalidParams field. +func (o *ProblemDetails) SetInvalidParams(v []InvalidParam) { + o.InvalidParams = v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ProblemDetails) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ProblemDetails) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ProblemDetails) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o ProblemDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProblemDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + if !IsNil(o.Instance) { + toSerialize["instance"] = o.Instance + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.InvalidParams) { + toSerialize["invalidParams"] = o.InvalidParams + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +type NullableProblemDetails struct { + value *ProblemDetails + isSet bool +} + +func (v NullableProblemDetails) Get() *ProblemDetails { + return v.value +} + +func (v *NullableProblemDetails) Set(val *ProblemDetails) { + v.value = val + v.isSet = true +} + +func (v NullableProblemDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableProblemDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProblemDetails(val *ProblemDetails) *NullableProblemDetails { + return &NullableProblemDetails{value: val, isSet: true} +} + +func (v NullableProblemDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProblemDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_problem_details_1.go b/internal/CapifSecurity/model_problem_details_1.go new file mode 100644 index 0000000000000000000000000000000000000000..9cd97bdf85c86ed36a50c10a813e3c650992a7ac --- /dev/null +++ b/internal/CapifSecurity/model_problem_details_1.go @@ -0,0 +1,492 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" +) + +// checks if the ProblemDetails1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProblemDetails1{} + +// ProblemDetails1 Provides additional information in an error response. +type ProblemDetails1 struct { + // String providing an URI formatted according to RFC 3986. + Type *string `json:"type,omitempty"` + Title *string `json:"title,omitempty"` + Status *int32 `json:"status,omitempty"` + // A human-readable explanation specific to this occurrence of the problem. + Detail *string `json:"detail,omitempty"` + // String providing an URI formatted according to RFC 3986. + Instance *string `json:"instance,omitempty"` + // A machine-readable application error cause specific to this occurrence of the problem. This IE should be present and provide application-related error information, if available. + Cause *string `json:"cause,omitempty"` + InvalidParams []InvalidParam1 `json:"invalidParams,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty" validate:"regexp=^[A-Fa-f0-9]*$"` + AccessTokenError *AccessTokenErr1 `json:"accessTokenError,omitempty"` + AccessTokenRequest *AccessTokenReq1 `json:"accessTokenRequest,omitempty"` + // Fully Qualified Domain Name + NrfId *string `json:"nrfId,omitempty" validate:"regexp=^([0-9A-Za-z]([-0-9A-Za-z]{0,61}[0-9A-Za-z])?\\\\.)+[A-Za-z]{2,63}\\\\.?$"` +} + +// NewProblemDetails1 instantiates a new ProblemDetails1 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 NewProblemDetails1() *ProblemDetails1 { + this := ProblemDetails1{} + return &this +} + +// NewProblemDetails1WithDefaults instantiates a new ProblemDetails1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProblemDetails1WithDefaults() *ProblemDetails1 { + this := ProblemDetails1{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProblemDetails1) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProblemDetails1) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProblemDetails1) SetType(v string) { + o.Type = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ProblemDetails1) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ProblemDetails1) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ProblemDetails1) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ProblemDetails1) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ProblemDetails1) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ProblemDetails1) SetStatus(v int32) { + o.Status = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ProblemDetails1) GetDetail() string { + if o == nil || IsNil(o.Detail) { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetDetailOk() (*string, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ProblemDetails1) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ProblemDetails1) SetDetail(v string) { + o.Detail = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ProblemDetails1) GetInstance() string { + if o == nil || IsNil(o.Instance) { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetInstanceOk() (*string, bool) { + if o == nil || IsNil(o.Instance) { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ProblemDetails1) HasInstance() bool { + if o != nil && !IsNil(o.Instance) { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ProblemDetails1) SetInstance(v string) { + o.Instance = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ProblemDetails1) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ProblemDetails1) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ProblemDetails1) SetCause(v string) { + o.Cause = &v +} + +// GetInvalidParams returns the InvalidParams field value if set, zero value otherwise. +func (o *ProblemDetails1) GetInvalidParams() []InvalidParam1 { + if o == nil || IsNil(o.InvalidParams) { + var ret []InvalidParam1 + return ret + } + return o.InvalidParams +} + +// GetInvalidParamsOk returns a tuple with the InvalidParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetInvalidParamsOk() ([]InvalidParam1, bool) { + if o == nil || IsNil(o.InvalidParams) { + return nil, false + } + return o.InvalidParams, true +} + +// HasInvalidParams returns a boolean if a field has been set. +func (o *ProblemDetails1) HasInvalidParams() bool { + if o != nil && !IsNil(o.InvalidParams) { + return true + } + + return false +} + +// SetInvalidParams gets a reference to the given []InvalidParam1 and assigns it to the InvalidParams field. +func (o *ProblemDetails1) SetInvalidParams(v []InvalidParam1) { + o.InvalidParams = v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ProblemDetails1) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ProblemDetails1) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ProblemDetails1) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +// GetAccessTokenError returns the AccessTokenError field value if set, zero value otherwise. +func (o *ProblemDetails1) GetAccessTokenError() AccessTokenErr1 { + if o == nil || IsNil(o.AccessTokenError) { + var ret AccessTokenErr1 + return ret + } + return *o.AccessTokenError +} + +// GetAccessTokenErrorOk returns a tuple with the AccessTokenError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetAccessTokenErrorOk() (*AccessTokenErr1, bool) { + if o == nil || IsNil(o.AccessTokenError) { + return nil, false + } + return o.AccessTokenError, true +} + +// HasAccessTokenError returns a boolean if a field has been set. +func (o *ProblemDetails1) HasAccessTokenError() bool { + if o != nil && !IsNil(o.AccessTokenError) { + return true + } + + return false +} + +// SetAccessTokenError gets a reference to the given AccessTokenErr1 and assigns it to the AccessTokenError field. +func (o *ProblemDetails1) SetAccessTokenError(v AccessTokenErr1) { + o.AccessTokenError = &v +} + +// GetAccessTokenRequest returns the AccessTokenRequest field value if set, zero value otherwise. +func (o *ProblemDetails1) GetAccessTokenRequest() AccessTokenReq1 { + if o == nil || IsNil(o.AccessTokenRequest) { + var ret AccessTokenReq1 + return ret + } + return *o.AccessTokenRequest +} + +// GetAccessTokenRequestOk returns a tuple with the AccessTokenRequest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetAccessTokenRequestOk() (*AccessTokenReq1, bool) { + if o == nil || IsNil(o.AccessTokenRequest) { + return nil, false + } + return o.AccessTokenRequest, true +} + +// HasAccessTokenRequest returns a boolean if a field has been set. +func (o *ProblemDetails1) HasAccessTokenRequest() bool { + if o != nil && !IsNil(o.AccessTokenRequest) { + return true + } + + return false +} + +// SetAccessTokenRequest gets a reference to the given AccessTokenReq1 and assigns it to the AccessTokenRequest field. +func (o *ProblemDetails1) SetAccessTokenRequest(v AccessTokenReq1) { + o.AccessTokenRequest = &v +} + +// GetNrfId returns the NrfId field value if set, zero value otherwise. +func (o *ProblemDetails1) GetNrfId() string { + if o == nil || IsNil(o.NrfId) { + var ret string + return ret + } + return *o.NrfId +} + +// GetNrfIdOk returns a tuple with the NrfId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProblemDetails1) GetNrfIdOk() (*string, bool) { + if o == nil || IsNil(o.NrfId) { + return nil, false + } + return o.NrfId, true +} + +// HasNrfId returns a boolean if a field has been set. +func (o *ProblemDetails1) HasNrfId() bool { + if o != nil && !IsNil(o.NrfId) { + return true + } + + return false +} + +// SetNrfId gets a reference to the given string and assigns it to the NrfId field. +func (o *ProblemDetails1) SetNrfId(v string) { + o.NrfId = &v +} + +func (o ProblemDetails1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProblemDetails1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + if !IsNil(o.Instance) { + toSerialize["instance"] = o.Instance + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.InvalidParams) { + toSerialize["invalidParams"] = o.InvalidParams + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + if !IsNil(o.AccessTokenError) { + toSerialize["accessTokenError"] = o.AccessTokenError + } + if !IsNil(o.AccessTokenRequest) { + toSerialize["accessTokenRequest"] = o.AccessTokenRequest + } + if !IsNil(o.NrfId) { + toSerialize["nrfId"] = o.NrfId + } + return toSerialize, nil +} + +type NullableProblemDetails1 struct { + value *ProblemDetails1 + isSet bool +} + +func (v NullableProblemDetails1) Get() *ProblemDetails1 { + return v.value +} + +func (v *NullableProblemDetails1) Set(val *ProblemDetails1) { + v.value = val + v.isSet = true +} + +func (v NullableProblemDetails1) IsSet() bool { + return v.isSet +} + +func (v *NullableProblemDetails1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProblemDetails1(val *ProblemDetails1) *NullableProblemDetails1 { + return &NullableProblemDetails1{value: val, isSet: true} +} + +func (v NullableProblemDetails1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProblemDetails1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_security_information.go b/internal/CapifSecurity/model_security_information.go new file mode 100644 index 0000000000000000000000000000000000000000..0b2df8f03e25b08312095175ad8eabeb55996665 --- /dev/null +++ b/internal/CapifSecurity/model_security_information.go @@ -0,0 +1,388 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SecurityInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityInformation{} + +// SecurityInformation Represents the interface details and the security method. +type SecurityInformation struct { + InterfaceDetails NullableInterfaceDescription + // Identifier of the API exposing function + AefId *string + // API identifier + ApiId *string + // Security methods preferred by the API invoker for the API interface. + PrefSecurityMethods []SecurityMethod + SelSecurityMethod *SecurityMethod + // Authentication related information + AuthenticationInfo *string + // Authorization related information + AuthorizationInfo *string +} + +type _SecurityInformation SecurityInformation + +// NewSecurityInformation instantiates a new SecurityInformation 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 NewSecurityInformation(prefSecurityMethods []SecurityMethod) *SecurityInformation { + this := SecurityInformation{} + return &this +} + +// NewSecurityInformationWithDefaults instantiates a new SecurityInformation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityInformationWithDefaults() *SecurityInformation { + this := SecurityInformation{} + return &this +} + +// GetInterfaceDetails returns the InterfaceDetails field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityInformation) GetInterfaceDetails() InterfaceDescription { + if o == nil || IsNil(o.InterfaceDetails.Get()) { + var ret InterfaceDescription + return ret + } + return *o.InterfaceDetails.Get() +} + +// GetInterfaceDetailsOk returns a tuple with the InterfaceDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityInformation) GetInterfaceDetailsOk() (*InterfaceDescription, bool) { + if o == nil { + return nil, false + } + return o.InterfaceDetails.Get(), o.InterfaceDetails.IsSet() +} + +// HasInterfaceDetails returns a boolean if a field has been set. +func (o *SecurityInformation) HasInterfaceDetails() bool { + if o != nil && o.InterfaceDetails.IsSet() { + return true + } + + return false +} + +// SetInterfaceDetails gets a reference to the given NullableInterfaceDescription and assigns it to the InterfaceDetails field. +func (o *SecurityInformation) SetInterfaceDetails(v InterfaceDescription) { + o.InterfaceDetails.Set(&v) +} +// SetInterfaceDetailsNil sets the value for InterfaceDetails to be an explicit nil +func (o *SecurityInformation) SetInterfaceDetailsNil() { + o.InterfaceDetails.Set(nil) +} + +// UnsetInterfaceDetails ensures that no value is present for InterfaceDetails, not even an explicit nil +func (o *SecurityInformation) UnsetInterfaceDetails() { + o.InterfaceDetails.Unset() +} + +// GetAefId returns the AefId field value if set, zero value otherwise. +func (o *SecurityInformation) GetAefId() string { + if o == nil || IsNil(o.AefId) { + var ret string + return ret + } + return *o.AefId +} + +// GetAefIdOk returns a tuple with the AefId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityInformation) GetAefIdOk() (*string, bool) { + if o == nil || IsNil(o.AefId) { + return nil, false + } + return o.AefId, true +} + +// HasAefId returns a boolean if a field has been set. +func (o *SecurityInformation) HasAefId() bool { + if o != nil && !IsNil(o.AefId) { + return true + } + + return false +} + +// SetAefId gets a reference to the given string and assigns it to the AefId field. +func (o *SecurityInformation) SetAefId(v string) { + o.AefId = &v +} + +// GetApiId returns the ApiId field value if set, zero value otherwise. +func (o *SecurityInformation) GetApiId() string { + if o == nil || IsNil(o.ApiId) { + var ret string + return ret + } + return *o.ApiId +} + +// GetApiIdOk returns a tuple with the ApiId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityInformation) GetApiIdOk() (*string, bool) { + if o == nil || IsNil(o.ApiId) { + return nil, false + } + return o.ApiId, true +} + +// HasApiId returns a boolean if a field has been set. +func (o *SecurityInformation) HasApiId() bool { + if o != nil && !IsNil(o.ApiId) { + return true + } + + return false +} + +// SetApiId gets a reference to the given string and assigns it to the ApiId field. +func (o *SecurityInformation) SetApiId(v string) { + o.ApiId = &v +} + +// GetPrefSecurityMethods returns the PrefSecurityMethods field value +func (o *SecurityInformation) GetPrefSecurityMethods() []SecurityMethod { + if o == nil { + var ret []SecurityMethod + return ret + } + + return o.PrefSecurityMethods +} + +// GetPrefSecurityMethodsOk returns a tuple with the PrefSecurityMethods field value +// and a boolean to check if the value has been set. +func (o *SecurityInformation) GetPrefSecurityMethodsOk() ([]SecurityMethod, bool) { + if o == nil { + return nil, false + } + return o.PrefSecurityMethods, true +} + +// SetPrefSecurityMethods sets field value +func (o *SecurityInformation) SetPrefSecurityMethods(v []SecurityMethod) { + o.PrefSecurityMethods = v +} + +// GetSelSecurityMethod returns the SelSecurityMethod field value if set, zero value otherwise. +func (o *SecurityInformation) GetSelSecurityMethod() SecurityMethod { + if o == nil || IsNil(o.SelSecurityMethod) { + var ret SecurityMethod + return ret + } + return *o.SelSecurityMethod +} + +// GetSelSecurityMethodOk returns a tuple with the SelSecurityMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityInformation) GetSelSecurityMethodOk() (*SecurityMethod, bool) { + if o == nil || IsNil(o.SelSecurityMethod) { + return nil, false + } + return o.SelSecurityMethod, true +} + +// HasSelSecurityMethod returns a boolean if a field has been set. +func (o *SecurityInformation) HasSelSecurityMethod() bool { + if o != nil && !IsNil(o.SelSecurityMethod) { + return true + } + + return false +} + +// SetSelSecurityMethod gets a reference to the given SecurityMethod and assigns it to the SelSecurityMethod field. +func (o *SecurityInformation) SetSelSecurityMethod(v SecurityMethod) { + o.SelSecurityMethod = &v +} + +// GetAuthenticationInfo returns the AuthenticationInfo field value if set, zero value otherwise. +func (o *SecurityInformation) GetAuthenticationInfo() string { + if o == nil || IsNil(o.AuthenticationInfo) { + var ret string + return ret + } + return *o.AuthenticationInfo +} + +// GetAuthenticationInfoOk returns a tuple with the AuthenticationInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityInformation) GetAuthenticationInfoOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticationInfo) { + return nil, false + } + return o.AuthenticationInfo, true +} + +// HasAuthenticationInfo returns a boolean if a field has been set. +func (o *SecurityInformation) HasAuthenticationInfo() bool { + if o != nil && !IsNil(o.AuthenticationInfo) { + return true + } + + return false +} + +// SetAuthenticationInfo gets a reference to the given string and assigns it to the AuthenticationInfo field. +func (o *SecurityInformation) SetAuthenticationInfo(v string) { + o.AuthenticationInfo = &v +} + +// GetAuthorizationInfo returns the AuthorizationInfo field value if set, zero value otherwise. +func (o *SecurityInformation) GetAuthorizationInfo() string { + if o == nil || IsNil(o.AuthorizationInfo) { + var ret string + return ret + } + return *o.AuthorizationInfo +} + +// GetAuthorizationInfoOk returns a tuple with the AuthorizationInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityInformation) GetAuthorizationInfoOk() (*string, bool) { + if o == nil || IsNil(o.AuthorizationInfo) { + return nil, false + } + return o.AuthorizationInfo, true +} + +// HasAuthorizationInfo returns a boolean if a field has been set. +func (o *SecurityInformation) HasAuthorizationInfo() bool { + if o != nil && !IsNil(o.AuthorizationInfo) { + return true + } + + return false +} + +// SetAuthorizationInfo gets a reference to the given string and assigns it to the AuthorizationInfo field. +func (o *SecurityInformation) SetAuthorizationInfo(v string) { + o.AuthorizationInfo = &v +} + +func (o SecurityInformation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.InterfaceDetails.IsSet() { + toSerialize["interfaceDetails"] = o.InterfaceDetails.Get() + } + if !IsNil(o.AefId) { + toSerialize["aefId"] = o.AefId + } + if !IsNil(o.ApiId) { + toSerialize["apiId"] = o.ApiId + } + toSerialize["prefSecurityMethods"] = o.PrefSecurityMethods + if !IsNil(o.SelSecurityMethod) { + toSerialize["selSecurityMethod"] = o.SelSecurityMethod + } + if !IsNil(o.AuthenticationInfo) { + toSerialize["authenticationInfo"] = o.AuthenticationInfo + } + if !IsNil(o.AuthorizationInfo) { + toSerialize["authorizationInfo"] = o.AuthorizationInfo + } + return toSerialize, nil +} + +func (o *SecurityInformation) UnmarshalJSON(data []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{ + "prefSecurityMethods", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varSecurityInformation := _SecurityInformation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSecurityInformation) + + if err != nil { + return err + } + + *o = SecurityInformation(varSecurityInformation) + + return err +} + +type NullableSecurityInformation struct { + value *SecurityInformation + isSet bool +} + +func (v NullableSecurityInformation) Get() *SecurityInformation { + return v.value +} + +func (v *NullableSecurityInformation) Set(val *SecurityInformation) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityInformation(val *SecurityInformation) *NullableSecurityInformation { + return &NullableSecurityInformation{value: val, isSet: true} +} + +func (v NullableSecurityInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_security_method.go b/internal/CapifSecurity/model_security_method.go new file mode 100644 index 0000000000000000000000000000000000000000..25c10dd38cbcc6cbce566dc9df849ee8ff8bcc2f --- /dev/null +++ b/internal/CapifSecurity/model_security_method.go @@ -0,0 +1,89 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "fmt" +) + + +// SecurityMethod Possible values are: - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 +type SecurityMethod struct { + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SecurityMethod) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SecurityMethod)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *SecurityMethod) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableSecurityMethod struct { + value *SecurityMethod + isSet bool +} + +func (v NullableSecurityMethod) Get() *SecurityMethod { + return v.value +} + +func (v *NullableSecurityMethod) Set(val *SecurityMethod) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityMethod(val *SecurityMethod) *NullableSecurityMethod { + return &NullableSecurityMethod{value: val, isSet: true} +} + +func (v NullableSecurityMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_security_notification.go b/internal/CapifSecurity/model_security_notification.go new file mode 100644 index 0000000000000000000000000000000000000000..dead8a87159d66786eb141bedaa05e8f383b58f5 --- /dev/null +++ b/internal/CapifSecurity/model_security_notification.go @@ -0,0 +1,253 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SecurityNotification type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityNotification{} + +// SecurityNotification Represents revoked authorization notification details. +type SecurityNotification struct { + // String identifying the API invoker assigned by the CAPIF core function. + ApiInvokerId string `json:"apiInvokerId"` + // String identifying the AEF. + AefId *string `json:"aefId,omitempty"` + // Identifier of the service API + ApiIds []string `json:"apiIds"` + Cause Cause `json:"cause"` +} + +type _SecurityNotification SecurityNotification + +// NewSecurityNotification instantiates a new SecurityNotification 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 NewSecurityNotification(apiInvokerId string, apiIds []string, cause Cause) *SecurityNotification { + this := SecurityNotification{} + this.ApiInvokerId = apiInvokerId + this.ApiIds = apiIds + this.Cause = cause + return &this +} + +// NewSecurityNotificationWithDefaults instantiates a new SecurityNotification object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityNotificationWithDefaults() *SecurityNotification { + this := SecurityNotification{} + return &this +} + +// GetApiInvokerId returns the ApiInvokerId field value +func (o *SecurityNotification) GetApiInvokerId() string { + if o == nil { + var ret string + return ret + } + + return o.ApiInvokerId +} + +// GetApiInvokerIdOk returns a tuple with the ApiInvokerId field value +// and a boolean to check if the value has been set. +func (o *SecurityNotification) GetApiInvokerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiInvokerId, true +} + +// SetApiInvokerId sets field value +func (o *SecurityNotification) SetApiInvokerId(v string) { + o.ApiInvokerId = v +} + +// GetAefId returns the AefId field value if set, zero value otherwise. +func (o *SecurityNotification) GetAefId() string { + if o == nil || IsNil(o.AefId) { + var ret string + return ret + } + return *o.AefId +} + +// GetAefIdOk returns a tuple with the AefId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityNotification) GetAefIdOk() (*string, bool) { + if o == nil || IsNil(o.AefId) { + return nil, false + } + return o.AefId, true +} + +// HasAefId returns a boolean if a field has been set. +func (o *SecurityNotification) HasAefId() bool { + if o != nil && !IsNil(o.AefId) { + return true + } + + return false +} + +// SetAefId gets a reference to the given string and assigns it to the AefId field. +func (o *SecurityNotification) SetAefId(v string) { + o.AefId = &v +} + +// GetApiIds returns the ApiIds field value +func (o *SecurityNotification) GetApiIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.ApiIds +} + +// GetApiIdsOk returns a tuple with the ApiIds field value +// and a boolean to check if the value has been set. +func (o *SecurityNotification) GetApiIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ApiIds, true +} + +// SetApiIds sets field value +func (o *SecurityNotification) SetApiIds(v []string) { + o.ApiIds = v +} + +// GetCause returns the Cause field value +func (o *SecurityNotification) GetCause() Cause { + if o == nil { + var ret Cause + return ret + } + + return o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value +// and a boolean to check if the value has been set. +func (o *SecurityNotification) GetCauseOk() (*Cause, bool) { + if o == nil { + return nil, false + } + return &o.Cause, true +} + +// SetCause sets field value +func (o *SecurityNotification) SetCause(v Cause) { + o.Cause = v +} + +func (o SecurityNotification) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityNotification) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiInvokerId"] = o.ApiInvokerId + if !IsNil(o.AefId) { + toSerialize["aefId"] = o.AefId + } + toSerialize["apiIds"] = o.ApiIds + toSerialize["cause"] = o.Cause + return toSerialize, nil +} + +func (o *SecurityNotification) UnmarshalJSON(data []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{ + "apiInvokerId", + "apiIds", + "cause", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varSecurityNotification := _SecurityNotification{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSecurityNotification) + + if err != nil { + return err + } + + *o = SecurityNotification(varSecurityNotification) + + return err +} + +type NullableSecurityNotification struct { + value *SecurityNotification + isSet bool +} + +func (v NullableSecurityNotification) Get() *SecurityNotification { + return v.value +} + +func (v *NullableSecurityNotification) Set(val *SecurityNotification) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityNotification) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityNotification) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityNotification(val *SecurityNotification) *NullableSecurityNotification { + return &NullableSecurityNotification{value: val, isSet: true} +} + +func (v NullableSecurityNotification) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityNotification) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_service_security.go b/internal/CapifSecurity/model_service_security.go new file mode 100644 index 0000000000000000000000000000000000000000..1a721f263860961cfe21d427087756b709b771a6 --- /dev/null +++ b/internal/CapifSecurity/model_service_security.go @@ -0,0 +1,297 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ServiceSecurity type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceSecurity{} + +// ServiceSecurity Represents the details of the security method for each service API interface. When included by the API invoker, it indicates the preferred method of security. When included by the CAPIF core function, it indicates the security method to be used for the service API interface. +type ServiceSecurity struct { + SecurityInfo []SecurityInformation `json:"securityInfo"` + // string providing an URI formatted according to IETF RFC 3986. + NotificationDestination string `json:"notificationDestination"` + // Set to true by API invoker to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. + RequestTestNotification *bool `json:"requestTestNotification,omitempty"` + WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,omitempty"` + // A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. + SupportedFeatures *string `json:"supportedFeatures,omitempty" validate:"regexp=^[A-Fa-f0-9]*$"` +} + +type _ServiceSecurity ServiceSecurity + +// NewServiceSecurity instantiates a new ServiceSecurity 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 NewServiceSecurity(securityInfo []SecurityInformation, notificationDestination string) *ServiceSecurity { + this := ServiceSecurity{} + this.SecurityInfo = securityInfo + this.NotificationDestination = notificationDestination + return &this +} + +// NewServiceSecurityWithDefaults instantiates a new ServiceSecurity object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceSecurityWithDefaults() *ServiceSecurity { + this := ServiceSecurity{} + return &this +} + +// GetSecurityInfo returns the SecurityInfo field value +func (o *ServiceSecurity) GetSecurityInfo() []SecurityInformation { + if o == nil { + var ret []SecurityInformation + return ret + } + + return o.SecurityInfo +} + +// GetSecurityInfoOk returns a tuple with the SecurityInfo field value +// and a boolean to check if the value has been set. +func (o *ServiceSecurity) GetSecurityInfoOk() ([]SecurityInformation, bool) { + if o == nil { + return nil, false + } + return o.SecurityInfo, true +} + +// SetSecurityInfo sets field value +func (o *ServiceSecurity) SetSecurityInfo(v []SecurityInformation) { + o.SecurityInfo = v +} + +// GetNotificationDestination returns the NotificationDestination field value +func (o *ServiceSecurity) GetNotificationDestination() string { + if o == nil { + var ret string + return ret + } + + return o.NotificationDestination +} + +// GetNotificationDestinationOk returns a tuple with the NotificationDestination field value +// and a boolean to check if the value has been set. +func (o *ServiceSecurity) GetNotificationDestinationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NotificationDestination, true +} + +// SetNotificationDestination sets field value +func (o *ServiceSecurity) SetNotificationDestination(v string) { + o.NotificationDestination = v +} + +// GetRequestTestNotification returns the RequestTestNotification field value if set, zero value otherwise. +func (o *ServiceSecurity) GetRequestTestNotification() bool { + if o == nil || IsNil(o.RequestTestNotification) { + var ret bool + return ret + } + return *o.RequestTestNotification +} + +// GetRequestTestNotificationOk returns a tuple with the RequestTestNotification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceSecurity) GetRequestTestNotificationOk() (*bool, bool) { + if o == nil || IsNil(o.RequestTestNotification) { + return nil, false + } + return o.RequestTestNotification, true +} + +// HasRequestTestNotification returns a boolean if a field has been set. +func (o *ServiceSecurity) HasRequestTestNotification() bool { + if o != nil && !IsNil(o.RequestTestNotification) { + return true + } + + return false +} + +// SetRequestTestNotification gets a reference to the given bool and assigns it to the RequestTestNotification field. +func (o *ServiceSecurity) SetRequestTestNotification(v bool) { + o.RequestTestNotification = &v +} + +// GetWebsockNotifConfig returns the WebsockNotifConfig field value if set, zero value otherwise. +func (o *ServiceSecurity) GetWebsockNotifConfig() WebsockNotifConfig { + if o == nil || IsNil(o.WebsockNotifConfig) { + var ret WebsockNotifConfig + return ret + } + return *o.WebsockNotifConfig +} + +// GetWebsockNotifConfigOk returns a tuple with the WebsockNotifConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceSecurity) GetWebsockNotifConfigOk() (*WebsockNotifConfig, bool) { + if o == nil || IsNil(o.WebsockNotifConfig) { + return nil, false + } + return o.WebsockNotifConfig, true +} + +// HasWebsockNotifConfig returns a boolean if a field has been set. +func (o *ServiceSecurity) HasWebsockNotifConfig() bool { + if o != nil && !IsNil(o.WebsockNotifConfig) { + return true + } + + return false +} + +// SetWebsockNotifConfig gets a reference to the given WebsockNotifConfig and assigns it to the WebsockNotifConfig field. +func (o *ServiceSecurity) SetWebsockNotifConfig(v WebsockNotifConfig) { + o.WebsockNotifConfig = &v +} + +// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise. +func (o *ServiceSecurity) GetSupportedFeatures() string { + if o == nil || IsNil(o.SupportedFeatures) { + var ret string + return ret + } + return *o.SupportedFeatures +} + +// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceSecurity) GetSupportedFeaturesOk() (*string, bool) { + if o == nil || IsNil(o.SupportedFeatures) { + return nil, false + } + return o.SupportedFeatures, true +} + +// HasSupportedFeatures returns a boolean if a field has been set. +func (o *ServiceSecurity) HasSupportedFeatures() bool { + if o != nil && !IsNil(o.SupportedFeatures) { + return true + } + + return false +} + +// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field. +func (o *ServiceSecurity) SetSupportedFeatures(v string) { + o.SupportedFeatures = &v +} + +func (o ServiceSecurity) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceSecurity) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["securityInfo"] = o.SecurityInfo + toSerialize["notificationDestination"] = o.NotificationDestination + if !IsNil(o.RequestTestNotification) { + toSerialize["requestTestNotification"] = o.RequestTestNotification + } + if !IsNil(o.WebsockNotifConfig) { + toSerialize["websockNotifConfig"] = o.WebsockNotifConfig + } + if !IsNil(o.SupportedFeatures) { + toSerialize["supportedFeatures"] = o.SupportedFeatures + } + return toSerialize, nil +} + +func (o *ServiceSecurity) UnmarshalJSON(data []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{ + "securityInfo", + "notificationDestination", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varServiceSecurity := _ServiceSecurity{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceSecurity) + + if err != nil { + return err + } + + *o = ServiceSecurity(varServiceSecurity) + + return err +} + +type NullableServiceSecurity struct { + value *ServiceSecurity + isSet bool +} + +func (v NullableServiceSecurity) Get() *ServiceSecurity { + return v.value +} + +func (v *NullableServiceSecurity) Set(val *ServiceSecurity) { + v.value = val + v.isSet = true +} + +func (v NullableServiceSecurity) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceSecurity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceSecurity(val *ServiceSecurity) *NullableServiceSecurity { + return &NullableServiceSecurity{value: val, isSet: true} +} + +func (v NullableServiceSecurity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceSecurity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_snssai.go b/internal/CapifSecurity/model_snssai.go new file mode 100644 index 0000000000000000000000000000000000000000..5985f102ce44505e63c4b808ea375cdff3633355 --- /dev/null +++ b/internal/CapifSecurity/model_snssai.go @@ -0,0 +1,196 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Snssai type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Snssai{} + +// Snssai When Snssai needs to be converted to string (e.g. when used in maps as key), the string shall be composed of one to three digits \"sst\" optionally followed by \"-\" and 6 hexadecimal digits \"sd\". +type Snssai struct { + // Unsigned integer, within the range 0 to 255, representing the Slice/Service Type. It indicates the expected Network Slice behaviour in terms of features and services. Values 0 to 127 correspond to the standardized SST range. Values 128 to 255 correspond to the Operator-specific range. See clause 28.4.2 of 3GPP TS 23.003. Standardized values are defined in clause 5.15.2.2 of 3GPP TS 23.501. + Sst int32 `json:"sst"` + // 3-octet string, representing the Slice Differentiator, in hexadecimal representation. Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent 4 bits. The most significant character representing the 4 most significant bits of the SD shall appear first in the string, and the character representing the 4 least significant bit of the SD shall appear last in the string. This is an optional parameter that complements the Slice/Service type(s) to allow to differentiate amongst multiple Network Slices of the same Slice/Service type. This IE shall be absent if no SD value is associated with the SST. + Sd *string `json:"sd,omitempty" validate:"regexp=^[A-Fa-f0-9]{6}$"` +} + +type _Snssai Snssai + +// NewSnssai instantiates a new Snssai 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 NewSnssai(sst int32) *Snssai { + this := Snssai{} + this.Sst = sst + return &this +} + +// NewSnssaiWithDefaults instantiates a new Snssai object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnssaiWithDefaults() *Snssai { + this := Snssai{} + return &this +} + +// GetSst returns the Sst field value +func (o *Snssai) GetSst() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Sst +} + +// GetSstOk returns a tuple with the Sst field value +// and a boolean to check if the value has been set. +func (o *Snssai) GetSstOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Sst, true +} + +// SetSst sets field value +func (o *Snssai) SetSst(v int32) { + o.Sst = v +} + +// GetSd returns the Sd field value if set, zero value otherwise. +func (o *Snssai) GetSd() string { + if o == nil || IsNil(o.Sd) { + var ret string + return ret + } + return *o.Sd +} + +// GetSdOk returns a tuple with the Sd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Snssai) GetSdOk() (*string, bool) { + if o == nil || IsNil(o.Sd) { + return nil, false + } + return o.Sd, true +} + +// HasSd returns a boolean if a field has been set. +func (o *Snssai) HasSd() bool { + if o != nil && !IsNil(o.Sd) { + return true + } + + return false +} + +// SetSd gets a reference to the given string and assigns it to the Sd field. +func (o *Snssai) SetSd(v string) { + o.Sd = &v +} + +func (o Snssai) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Snssai) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sst"] = o.Sst + if !IsNil(o.Sd) { + toSerialize["sd"] = o.Sd + } + return toSerialize, nil +} + +func (o *Snssai) UnmarshalJSON(data []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{ + "sst", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &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) + } + } + + varSnssai := _Snssai{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSnssai) + + if err != nil { + return err + } + + *o = Snssai(varSnssai) + + return err +} + +type NullableSnssai struct { + value *Snssai + isSet bool +} + +func (v NullableSnssai) Get() *Snssai { + return v.value +} + +func (v *NullableSnssai) Set(val *Snssai) { + v.value = val + v.isSet = true +} + +func (v NullableSnssai) IsSet() bool { + return v.isSet +} + +func (v *NullableSnssai) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnssai(val *Snssai) *NullableSnssai { + return &NullableSnssai{value: val, isSet: true} +} + +func (v NullableSnssai) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnssai) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/model_websock_notif_config.go b/internal/CapifSecurity/model_websock_notif_config.go new file mode 100644 index 0000000000000000000000000000000000000000..49f71fc3ed4256ac39ab355160814811ce582ecd --- /dev/null +++ b/internal/CapifSecurity/model_websock_notif_config.go @@ -0,0 +1,164 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "encoding/json" +) + +// checks if the WebsockNotifConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebsockNotifConfig{} + +// WebsockNotifConfig Represents the configuration information for the delivery of notifications over Websockets. +type WebsockNotifConfig struct { + // string formatted according to IETF RFC 3986 identifying a referenced resource. + WebsocketUri *string `json:"websocketUri,omitempty"` + // Set by the SCS/AS to indicate that the Websocket delivery is requested. + RequestWebsocketUri *bool `json:"requestWebsocketUri,omitempty"` +} + +// NewWebsockNotifConfig instantiates a new WebsockNotifConfig 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 NewWebsockNotifConfig() *WebsockNotifConfig { + this := WebsockNotifConfig{} + return &this +} + +// NewWebsockNotifConfigWithDefaults instantiates a new WebsockNotifConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWebsockNotifConfigWithDefaults() *WebsockNotifConfig { + this := WebsockNotifConfig{} + return &this +} + +// GetWebsocketUri returns the WebsocketUri field value if set, zero value otherwise. +func (o *WebsockNotifConfig) GetWebsocketUri() string { + if o == nil || IsNil(o.WebsocketUri) { + var ret string + return ret + } + return *o.WebsocketUri +} + +// GetWebsocketUriOk returns a tuple with the WebsocketUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebsockNotifConfig) GetWebsocketUriOk() (*string, bool) { + if o == nil || IsNil(o.WebsocketUri) { + return nil, false + } + return o.WebsocketUri, true +} + +// HasWebsocketUri returns a boolean if a field has been set. +func (o *WebsockNotifConfig) HasWebsocketUri() bool { + if o != nil && !IsNil(o.WebsocketUri) { + return true + } + + return false +} + +// SetWebsocketUri gets a reference to the given string and assigns it to the WebsocketUri field. +func (o *WebsockNotifConfig) SetWebsocketUri(v string) { + o.WebsocketUri = &v +} + +// GetRequestWebsocketUri returns the RequestWebsocketUri field value if set, zero value otherwise. +func (o *WebsockNotifConfig) GetRequestWebsocketUri() bool { + if o == nil || IsNil(o.RequestWebsocketUri) { + var ret bool + return ret + } + return *o.RequestWebsocketUri +} + +// GetRequestWebsocketUriOk returns a tuple with the RequestWebsocketUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebsockNotifConfig) GetRequestWebsocketUriOk() (*bool, bool) { + if o == nil || IsNil(o.RequestWebsocketUri) { + return nil, false + } + return o.RequestWebsocketUri, true +} + +// HasRequestWebsocketUri returns a boolean if a field has been set. +func (o *WebsockNotifConfig) HasRequestWebsocketUri() bool { + if o != nil && !IsNil(o.RequestWebsocketUri) { + return true + } + + return false +} + +// SetRequestWebsocketUri gets a reference to the given bool and assigns it to the RequestWebsocketUri field. +func (o *WebsockNotifConfig) SetRequestWebsocketUri(v bool) { + o.RequestWebsocketUri = &v +} + +func (o WebsockNotifConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebsockNotifConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.WebsocketUri) { + toSerialize["websocketUri"] = o.WebsocketUri + } + if !IsNil(o.RequestWebsocketUri) { + toSerialize["requestWebsocketUri"] = o.RequestWebsocketUri + } + return toSerialize, nil +} + +type NullableWebsockNotifConfig struct { + value *WebsockNotifConfig + isSet bool +} + +func (v NullableWebsockNotifConfig) Get() *WebsockNotifConfig { + return v.value +} + +func (v *NullableWebsockNotifConfig) Set(val *WebsockNotifConfig) { + v.value = val + v.isSet = true +} + +func (v NullableWebsockNotifConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableWebsockNotifConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebsockNotifConfig(val *WebsockNotifConfig) *NullableWebsockNotifConfig { + return &NullableWebsockNotifConfig{value: val, isSet: true} +} + +func (v NullableWebsockNotifConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebsockNotifConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/CapifSecurity/response.go b/internal/CapifSecurity/response.go new file mode 100644 index 0000000000000000000000000000000000000000..dadf2d22ab75f9d1d744907b07fa4a4c8fcdc058 --- /dev/null +++ b/internal/CapifSecurity/response.go @@ -0,0 +1,47 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/internal/CapifSecurity/utils.go b/internal/CapifSecurity/utils.go new file mode 100644 index 0000000000000000000000000000000000000000..85f78dfd0ddcf073097a4ff672cbd3cd16634613 --- /dev/null +++ b/internal/CapifSecurity/utils.go @@ -0,0 +1,361 @@ +/* +CAPIF_Security_API + +API for CAPIF security management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. + +API version: 1.2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package CapifSecurity + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file diff --git a/invoker_client b/invoker_client new file mode 100755 index 0000000000000000000000000000000000000000..bbd81de32c57fc45393c9bb339c240c877df579c Binary files /dev/null and b/invoker_client differ diff --git a/provider_client b/provider_client new file mode 100755 index 0000000000000000000000000000000000000000..3e98ceed6e75f735e814f33a34189121a3aca530 Binary files /dev/null and b/provider_client differ