├── .fossa.yml ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATES │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── SECURITY.md └── workflows │ ├── main.yaml │ └── semgrep.yaml ├── .gitignore ├── .openapi-generator-ignore ├── .openapi-generator ├── FILES └── VERSION ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── api_auth0_fga.go ├── client.go ├── configuration.go ├── docs ├── Any.md ├── Assertion.md ├── Auth0FgaApi.md ├── AuthErrorCode.md ├── AuthenticationErrorMessageResponse.md ├── AuthorizationModel.md ├── CheckRequest.md ├── CheckResponse.md ├── Computed.md ├── ContextualTupleKeys.md ├── Difference.md ├── ErrorCode.md ├── ExpandRequest.md ├── ExpandResponse.md ├── InternalErrorCode.md ├── InternalErrorMessageResponse.md ├── Leaf.md ├── ListObjectsRequest.md ├── ListObjectsResponse.md ├── Metadata.md ├── Node.md ├── Nodes.md ├── NotFoundErrorCode.md ├── ObjectRelation.md ├── PathUnknownErrorMessageResponse.md ├── ReadAssertionsResponse.md ├── ReadAuthorizationModelResponse.md ├── ReadAuthorizationModelsResponse.md ├── ReadChangesResponse.md ├── ReadRequest.md ├── ReadResponse.md ├── RelationMetadata.md ├── RelationReference.md ├── ResourceExhaustedErrorCode.md ├── ResourceExhaustedErrorMessageResponse.md ├── Status.md ├── Tuple.md ├── TupleChange.md ├── TupleKey.md ├── TupleKeys.md ├── TupleOperation.md ├── TupleToUserset.md ├── TypeDefinition.md ├── Users.md ├── Userset.md ├── UsersetTree.md ├── UsersetTreeDifference.md ├── UsersetTreeTupleToUserset.md ├── Usersets.md ├── ValidationErrorMessageResponse.md ├── WriteAssertionsRequest.md ├── WriteAuthorizationModelRequest.md ├── WriteAuthorizationModelResponse.md └── WriteRequest.md ├── fga_test.go ├── go.mod ├── go.sum ├── model_any.go ├── model_assertion.go ├── model_auth_error_code.go ├── model_authentication_error_message_response.go ├── model_authorization_model.go ├── model_check_request.go ├── model_check_response.go ├── model_computed.go ├── model_contextual_tuple_keys.go ├── model_difference.go ├── model_error_code.go ├── model_expand_request.go ├── model_expand_response.go ├── model_internal_error_code.go ├── model_internal_error_message_response.go ├── model_leaf.go ├── model_list_objects_request.go ├── model_list_objects_response.go ├── model_metadata.go ├── model_node.go ├── model_nodes.go ├── model_not_found_error_code.go ├── model_object_relation.go ├── model_path_unknown_error_message_response.go ├── model_read_assertions_response.go ├── model_read_authorization_model_response.go ├── model_read_authorization_models_response.go ├── model_read_changes_response.go ├── model_read_request.go ├── model_read_response.go ├── model_relation_metadata.go ├── model_relation_reference.go ├── model_resource_exhausted_error_code.go ├── model_resource_exhausted_error_message_response.go ├── model_status.go ├── model_tuple.go ├── model_tuple_change.go ├── model_tuple_key.go ├── model_tuple_keys.go ├── model_tuple_operation.go ├── model_tuple_to_userset.go ├── model_type_definition.go ├── model_users.go ├── model_userset.go ├── model_userset_tree.go ├── model_userset_tree_difference.go ├── model_userset_tree_tuple_to_userset.go ├── model_usersets.go ├── model_validation_error_message_response.go ├── model_write_assertions_request.go ├── model_write_authorization_model_request.go ├── model_write_authorization_model_response.go ├── model_write_request.go ├── oauth2 ├── LICENSE ├── ORIGINAL_AUTHORS ├── ORIGINAL_CONTRIBUTORS ├── README.md ├── clientcredentials │ ├── clientcredentials.go │ └── clientcredentials_test.go ├── internal │ ├── doc.go │ ├── token.go │ ├── token_test.go │ └── transport.go ├── oauth2.go ├── oauth2_test.go ├── token.go ├── token_test.go ├── transport.go └── transport_test.go ├── response.go └── utils.go /.fossa.yml: -------------------------------------------------------------------------------- 1 | version: 3 2 | 3 | server: https://app.fossa.com 4 | 5 | project: 6 | id: github.com/auth0-lab/fga-go-sdk 7 | name: github.com/auth0-lab/fga-go-sdk 8 | link: fga.dev 9 | url: github.com/auth0-lab/fga-go-sdk 10 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @auth0-lab/auth0-fga-dx 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATES/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report an issue 3 | about: Create a bug report about an existing issue. 4 | title: '' 5 | labels: 'bug' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Please do not report security vulnerabilities here**. See the [Responsible Disclosure Program](https://github.com/auth0-lab/fga-go-sdk/blob/main/.github/SECURITY.md). 11 | 12 | **Thank you in advance for helping us to improve this library!** Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the [Auth0 Community](https://community.auth0.com/) or [Auth0 Support](https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here. 13 | 14 | By submitting an Issue to this repository, you agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md). 15 | 16 | ### Description 17 | 18 | > Provide a clear and concise description of the issue, including what you expected to happen. 19 | 20 | ### Reproduction 21 | 22 | > Detail the steps taken to reproduce this error, what was expected, and whether this issue can be reproduced consistently or if it is intermittent. 23 | > 24 | > Where applicable, please include: 25 | > 26 | > - Code sample to reproduce the issue 27 | > - Log files (redact/remove sensitive information) 28 | > - Application settings (redact/remove sensitive information) 29 | > - Screenshots 30 | 31 | ### Environment 32 | 33 | > Please provide the following: 34 | 35 | - **Version of this library used:** 36 | - **Version of the platform or framework used, if applicable:** 37 | - **Other relevant versions (language, server software, OS, browser):** 38 | - **Other modules/plugins/libraries that might be involved:** 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATES/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest new functionality for this project. 4 | title: '' 5 | labels: 'feature' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Please do not report security vulnerabilities here**. See the [Responsible Disclosure Program](https://github.com/auth0-lab/fga-go-sdk/blob/main/.github/SECURITY.md). 11 | 12 | **Thank you in advance for helping us to improve this library!** Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the [Auth0 Community](https://community.auth0.com/) or [Auth0 Support](https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here. 13 | 14 | By submitting an Issue to this repository, you agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md). 15 | 16 | ### Describe the problem you'd like to have solved 17 | 18 | > A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 19 | 20 | ### Describe the ideal solution 21 | 22 | > A clear and concise description of what you want to happen. 23 | 24 | ## Alternatives and current workarounds 25 | 26 | > A clear and concise description of any alternatives you've considered or any workarounds that are currently in place. 27 | 28 | ### Additional context 29 | 30 | > Add any other context or screenshots about the feature request here. 31 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | We are not accepting new Pull Requests for the time being. Please raise an issue or contact us in the [Auth0Lab Discord community](https://discord.gg/8naAwJfWN6) instead. 2 | -------------------------------------------------------------------------------- /.github/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | This document outlines the Responsible Disclosure Program for Auth0 4 | open source software. 5 | 6 | ## Responsible Disclosure Policy 7 | 8 | At Auth0 we take security seriously and consider it a top priority. Since a 9 | public disclosure of a security vulnerability could put the entire Auth0 10 | community at risk, we require that potential vulnerabilities are kept 11 | confidential until they are confirmed and fixed. We appreciate your efforts in 12 | keeping Auth0 and its users safe by responsibly disclosing any security 13 | vulnerability. Rest assured we will make every effort to acknowledge your 14 | contributions. 15 | 16 | ## Reporting a vulnerability 17 | 18 | Any security related issue should be reported to Auth0 via the form at the 19 | bottom of the [Responsible Disclosure Policy 20 | page](https://auth0.com/responsible-disclosure-policy/). 21 | 22 | If individuals prefer to directly communicate with the Auth0 security team, 23 | they are invited to send an email to security@auth0.com For encrypted 24 | communication, you can download our PGP key from 25 | [here](https://cdn.auth0.com/website/assets/pages/security/resources/auth0-security-pgp-2c49276d04.asc) 26 | -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- 1 | name: Build, Test and Publish 2 | 3 | on: 4 | push: 5 | pull_request: 6 | workflow_dispatch: 7 | 8 | jobs: 9 | fossa: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | - name: Set up Go 14 | uses: actions/setup-go@v3 15 | with: 16 | go-version: 1.21 17 | - name: Build 18 | run: go build -v ./... 19 | - name: Run FOSSA scan and upload build data 20 | uses: fossas/fossa-action@main 21 | with: 22 | api-key: ${{ secrets.FOSSA_API_KEY }} 23 | branch: ${{ github.ref_name }} 24 | - name: Run FOSSA tests 25 | uses: fossas/fossa-action@main 26 | with: 27 | api-key: ${{ secrets.FOSSA_API_KEY }} 28 | run-tests: true 29 | 30 | snyk: 31 | runs-on: ubuntu-latest 32 | steps: 33 | - uses: actions/checkout@v3 34 | - name: Set up node 35 | uses: actions/setup-node@v3 36 | with: 37 | node-version: '20' 38 | 39 | - name: Run Snyk to check for vulnerabilities 40 | env: 41 | SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} 42 | run: | 43 | npm install -g snyk 44 | snyk auth $SNYK_TOKEN 45 | snyk monitor 46 | 47 | test: 48 | runs-on: ubuntu-latest 49 | steps: 50 | - uses: actions/checkout@v3 51 | 52 | - name: Set up Go 53 | uses: actions/setup-go@v3 54 | with: 55 | go-version: 1.21 56 | 57 | - name: Build 58 | run: go build -v ./... 59 | 60 | - name: Test 61 | run: go test -v ./... 62 | 63 | - name: Install govulncheck 64 | run: go install golang.org/x/vuln/cmd/govulncheck@latest 65 | 66 | - name: Run govulncheck 67 | run: govulncheck ./... 68 | 69 | create-release: 70 | runs-on: ubuntu-latest 71 | if: startsWith(github.ref, 'refs/tags/v') 72 | needs: [test, fossa, snyk] 73 | 74 | steps: 75 | - uses: actions/checkout@v3 76 | 77 | - uses: Roang-zero1/github-create-release-action@5cf058ddffa6fa04e5cda07c98570c757dc4a0e1 78 | with: 79 | version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ 80 | env: 81 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 82 | -------------------------------------------------------------------------------- /.github/workflows/semgrep.yaml: -------------------------------------------------------------------------------- 1 | name: Semgrep 2 | on: 3 | push: 4 | branches: 5 | - main 6 | jobs: 7 | semgrep: 8 | name: Scan 9 | runs-on: ubuntu-latest 10 | container: 11 | image: returntocorp/semgrep 12 | if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot') 13 | steps: 14 | - uses: actions/checkout@v3 15 | - run: semgrep ci 16 | env: 17 | SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | git_push.sh 27 | .DS_Store 28 | VERSION.txt 29 | 30 | # IDEs 31 | .idea 32 | .vscode 33 | .sublime-workspace 34 | .sublime-project 35 | 36 | .env 37 | credentials.json 38 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | api/openapi.yaml 3 | -------------------------------------------------------------------------------- /.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .fossa.yml 2 | .github/CODEOWNERS 3 | .github/ISSUE_TEMPLATES/bug_report.md 4 | .github/ISSUE_TEMPLATES/feature_request.md 5 | .github/PULL_REQUEST_TEMPLATE.md 6 | .github/SECURITY.md 7 | .github/workflows/main.yaml 8 | .github/workflows/semgrep.yaml 9 | .gitignore 10 | CHANGELOG.md 11 | CONTRIBUTING.md 12 | LICENSE 13 | README.md 14 | VERSION.txt 15 | api_auth0_fga.go 16 | client.go 17 | configuration.go 18 | docs/Any.md 19 | docs/Assertion.md 20 | docs/Auth0FgaApi.md 21 | docs/AuthErrorCode.md 22 | docs/AuthenticationErrorMessageResponse.md 23 | docs/AuthorizationModel.md 24 | docs/CheckRequest.md 25 | docs/CheckResponse.md 26 | docs/Computed.md 27 | docs/ContextualTupleKeys.md 28 | docs/Difference.md 29 | docs/ErrorCode.md 30 | docs/ExpandRequest.md 31 | docs/ExpandResponse.md 32 | docs/InternalErrorCode.md 33 | docs/InternalErrorMessageResponse.md 34 | docs/Leaf.md 35 | docs/ListObjectsRequest.md 36 | docs/ListObjectsResponse.md 37 | docs/Metadata.md 38 | docs/Node.md 39 | docs/Nodes.md 40 | docs/NotFoundErrorCode.md 41 | docs/ObjectRelation.md 42 | docs/PathUnknownErrorMessageResponse.md 43 | docs/ReadAssertionsResponse.md 44 | docs/ReadAuthorizationModelResponse.md 45 | docs/ReadAuthorizationModelsResponse.md 46 | docs/ReadChangesResponse.md 47 | docs/ReadRequest.md 48 | docs/ReadResponse.md 49 | docs/RelationMetadata.md 50 | docs/RelationReference.md 51 | docs/ResourceExhaustedErrorCode.md 52 | docs/ResourceExhaustedErrorMessageResponse.md 53 | docs/Status.md 54 | docs/Tuple.md 55 | docs/TupleChange.md 56 | docs/TupleKey.md 57 | docs/TupleKeys.md 58 | docs/TupleOperation.md 59 | docs/TupleToUserset.md 60 | docs/TypeDefinition.md 61 | docs/Users.md 62 | docs/Userset.md 63 | docs/UsersetTree.md 64 | docs/UsersetTreeDifference.md 65 | docs/UsersetTreeTupleToUserset.md 66 | docs/Usersets.md 67 | docs/ValidationErrorMessageResponse.md 68 | docs/WriteAssertionsRequest.md 69 | docs/WriteAuthorizationModelRequest.md 70 | docs/WriteAuthorizationModelResponse.md 71 | docs/WriteRequest.md 72 | fga_test.go 73 | git_push.sh 74 | go.mod 75 | go.sum 76 | model_any.go 77 | model_assertion.go 78 | model_auth_error_code.go 79 | model_authentication_error_message_response.go 80 | model_authorization_model.go 81 | model_check_request.go 82 | model_check_response.go 83 | model_computed.go 84 | model_contextual_tuple_keys.go 85 | model_difference.go 86 | model_error_code.go 87 | model_expand_request.go 88 | model_expand_response.go 89 | model_internal_error_code.go 90 | model_internal_error_message_response.go 91 | model_leaf.go 92 | model_list_objects_request.go 93 | model_list_objects_response.go 94 | model_metadata.go 95 | model_node.go 96 | model_nodes.go 97 | model_not_found_error_code.go 98 | model_object_relation.go 99 | model_path_unknown_error_message_response.go 100 | model_read_assertions_response.go 101 | model_read_authorization_model_response.go 102 | model_read_authorization_models_response.go 103 | model_read_changes_response.go 104 | model_read_request.go 105 | model_read_response.go 106 | model_relation_metadata.go 107 | model_relation_reference.go 108 | model_resource_exhausted_error_code.go 109 | model_resource_exhausted_error_message_response.go 110 | model_status.go 111 | model_tuple.go 112 | model_tuple_change.go 113 | model_tuple_key.go 114 | model_tuple_keys.go 115 | model_tuple_operation.go 116 | model_tuple_to_userset.go 117 | model_type_definition.go 118 | model_users.go 119 | model_userset.go 120 | model_userset_tree.go 121 | model_userset_tree_difference.go 122 | model_userset_tree_tuple_to_userset.go 123 | model_usersets.go 124 | model_validation_error_message_response.go 125 | model_write_assertions_request.go 126 | model_write_authorization_model_request.go 127 | model_write_authorization_model_response.go 128 | model_write_request.go 129 | oauth2/LICENSE 130 | oauth2/ORIGINAL_AUTHORS 131 | oauth2/ORIGINAL_CONTRIBUTORS 132 | oauth2/README.md 133 | oauth2/clientcredentials/clientcredentials.go 134 | oauth2/clientcredentials/clientcredentials_test.go 135 | oauth2/internal/doc.go 136 | oauth2/internal/token.go 137 | oauth2/internal/token_test.go 138 | oauth2/internal/transport.go 139 | oauth2/oauth2.go 140 | oauth2/oauth2_test.go 141 | oauth2/token.go 142 | oauth2/token_test.go 143 | oauth2/transport.go 144 | oauth2/transport_test.go 145 | response.go 146 | utils.go 147 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 6.1.0-SNAPSHOT -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Auth0 Fine Grained Authorization (FGA) projects 2 | 3 | A big welcome and thank you for considering contributing to the Auth0 Fine Grained Authorization (FGA) open source projects. It’s people like you that make it a reality for users in our community. 4 | 5 | Reading and following these guidelines will help us make the contribution process easy and effective for everyone involved. It also communicates that you agree to respect the time of the developers managing and developing these open source projects. In return, we will reciprocate that respect by addressing your issue, assessing changes, and helping you finalize your pull requests. 6 | 7 | ### Quicklinks 8 | 9 | * [Code of Conduct](#code-of-conduct) 10 | * [Getting Started](#getting-started) 11 | * [Making Changes](#making-changes) 12 | * [Opening Issues](#opening-issues) 13 | * [Submitting Pull Requests](#submitting-pull-requests) [Note: We are not accepting Pull Requests at this time!] 14 | * [Getting in Touch](#getting-in-touch) 15 | * [Have a question or problem?](#have-a-question-or-problem) 16 | * [Vulnerability Reporting](#vulnerability-reporting) 17 | 18 | ## Code of Conduct 19 | 20 | By participating and contributing to this project, you are expected to uphold our [Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md). 21 | 22 | ## Getting Started 23 | 24 | ### Making Changes 25 | 26 | When contributing to a repository, the first step is to open an issue in that repository to discuss the change you wish to make before making them. 27 | 28 | ### Opening Issues 29 | 30 | Before you submit a new issue please make sure to search all open and closed issues. It is possible your feature request/issue has already been answered. 31 | 32 | This repo includes an issue template that will walk through all the places to check before submitting your issue here. Please follow the instructions there to make sure this is not a duplicate issue and that we have everything we need to research and reproduce this problem. 33 | 34 | ### Submitting Pull Requests 35 | 36 | Pull Requests are not currently open, please [raise an issue](https://github.com/auth0-lab/fga-go-sdk/issues) or contact a team member on https://discord.gg/8naAwJfWN6 if there is a feature you'd like us to implement. 37 | 38 | ## Getting in touch 39 | 40 | ### Have a question or problem? 41 | 42 | Please do not open issues for general support or usage questions. Instead, join us over in the [support community](https://discord.gg/8naAwJfWN6). 43 | 44 | ### Vulnerability Reporting 45 | 46 | Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://github.com/auth0-lab/fga-go-sdk/blob/main/.github/SECURITY.md) details the procedure for disclosing security issues. 47 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2022 Auth0, Inc. (http://auth0.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Go SDK for Auth0 Fine Grained Authorization (FGA) 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/github.com/auth0-lab/fga-go-sdk.svg)](https://pkg.go.dev/github.com/auth0-lab/fga-go-sdk) 4 | [![Release](https://img.shields.io/github/v/release/auth0-lab/fga-go-sdk?sort=semver&color=green)](https://github.com/auth0-lab/fga-go-sdk/releases) 5 | [![License](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE) 6 | 7 | This is an autogenerated Go SDK for Auth0 Fine Grained Authorization (FGA). It provides a wrapper around the [Auth0 Fine Grained Authorization API](https://docs.fga.dev/api/service). 8 | 9 | **This SDK is considered deprecated**. 10 | 11 | ## Table of Contents 12 | 13 | - [About Auth0 Fine Grained Authorization (FGA)](#about) 14 | - [Resources](#resources) 15 | - [Contributing](#contributing) 16 | - [License](#license) 17 | 18 | ## About 19 | 20 | [Okta Fine Grained Authorization (FGA)](https://fga.dev) is designed to make it easy for application builders to model their permission layer, and to add and integrate fine-grained authorization into their applications. Okta Fine Grained Authorization (FGA)’s design is optimized for reliability and low latency at a high scale. 21 | 22 | **DEPRECATION WARNING**: This project is no longer maintained. We recommend using the [OpenFGA Go SDK](https://github.com/openfga/go-sdk) with the following configuration instead of this SDK: 23 | 24 | ```go 25 | package main 26 | 27 | import ( 28 | "os" 29 | 30 | . "github.com/openfga/go-sdk/client" 31 | "github.com/openfga/go-sdk/credentials" 32 | ) 33 | 34 | func main() { 35 | fgaClient, err := NewSdkClient(&ClientConfiguration{ 36 | ApiUrl: "https://api.us1.fga.dev", 37 | StoreId: os.Getenv("FGA_STORE_ID"), 38 | AuthorizationModelId: os.Getenv("FGA_MODEL_ID"), 39 | Credentials: &credentials.Credentials{ 40 | Method: credentials.CredentialsMethodClientCredentials, 41 | Config: &credentials.Config{ 42 | ClientCredentialsClientId: os.Getenv("FGA_CLIENT_ID"), 43 | ClientCredentialsClientSecret: os.Getenv("FGA_CLIENT_SECRET"), 44 | ClientCredentialsApiAudience: "https://api.us1.fga.dev/", 45 | ClientCredentialsApiTokenIssuer: "fga.us.auth0.com", 46 | }, 47 | }, 48 | }) 49 | 50 | if err != nil { 51 | // .. Handle error 52 | } 53 | } 54 | ``` 55 | 56 | For US1 (Production US) environment, use the following values: 57 | - API URL: `https://api.us1.fga.dev` 58 | - Credential Method: ClientCredentials 59 | - API Token Issuer: `fga.us.auth0.com` 60 | - API Audience: `https://api.us1.fga.dev/` 61 | 62 | You can get the rest of the necessary variables from the FGA Dashboard. See [here](https://docs.fga.dev/intro/dashboard#create-api-credentials). 63 | 64 | ## Resources 65 | 66 | - [Okta Fine Grained Authorization (FGA) Documentation](https://docs.fga.dev) 67 | - [Okta Fine Grained Authorization (FGA) API Documentation](https://docs.fga.dev/api/service) 68 | - [Zanzibar Academy](https://zanzibar.academy) 69 | - [Google's Zanzibar Paper (2019)](https://research.google/pubs/pub48190/) 70 | 71 | 72 | ## Contributing 73 | 74 | This repo is deprecated and no longer accepting contributions. 75 | 76 | ## Author 77 | 78 | [Okta FGA](https://github.com/auth0-lab) 79 | 80 | ## License 81 | 82 | This project is licensed under the MIT license. See the [LICENSE](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) file for more info. 83 | 84 | The code in this repo was auto generated by [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) from a template based on the [go template](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/go), licensed under the [Apache License 2.0](https://github.com/OpenAPITools/openapi-generator/blob/master/LICENSE). 85 | 86 | This repo bundles some code from the [golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2) package. You can find the code [here](./oauth2) and corresponding [BSD-3 License](./oauth2/LICENSE). 87 | 88 | -------------------------------------------------------------------------------- /docs/Any.md: -------------------------------------------------------------------------------- 1 | # Any 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Type** | Pointer to **string** | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewAny 12 | 13 | `func NewAny() *Any` 14 | 15 | NewAny instantiates a new Any object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewAnyWithDefaults 21 | 22 | `func NewAnyWithDefaults() *Any` 23 | 24 | NewAnyWithDefaults instantiates a new Any object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetType 29 | 30 | `func (o *Any) GetType() string` 31 | 32 | GetType returns the Type field if non-nil, zero value otherwise. 33 | 34 | ### GetTypeOk 35 | 36 | `func (o *Any) GetTypeOk() (*string, bool)` 37 | 38 | GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetType 42 | 43 | `func (o *Any) SetType(v string)` 44 | 45 | SetType sets Type field to given value. 46 | 47 | ### HasType 48 | 49 | `func (o *Any) HasType() bool` 50 | 51 | HasType returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/Assertion.md: -------------------------------------------------------------------------------- 1 | # Assertion 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TupleKey** | [**TupleKey**](TupleKey.md) | | 8 | **Expectation** | **bool** | | 9 | 10 | ## Methods 11 | 12 | ### NewAssertion 13 | 14 | `func NewAssertion(tupleKey TupleKey, expectation bool, ) *Assertion` 15 | 16 | NewAssertion instantiates a new Assertion object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewAssertionWithDefaults 22 | 23 | `func NewAssertionWithDefaults() *Assertion` 24 | 25 | NewAssertionWithDefaults instantiates a new Assertion object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetTupleKey 30 | 31 | `func (o *Assertion) GetTupleKey() TupleKey` 32 | 33 | GetTupleKey returns the TupleKey field if non-nil, zero value otherwise. 34 | 35 | ### GetTupleKeyOk 36 | 37 | `func (o *Assertion) GetTupleKeyOk() (*TupleKey, bool)` 38 | 39 | GetTupleKeyOk returns a tuple with the TupleKey field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetTupleKey 43 | 44 | `func (o *Assertion) SetTupleKey(v TupleKey)` 45 | 46 | SetTupleKey sets TupleKey field to given value. 47 | 48 | 49 | ### GetExpectation 50 | 51 | `func (o *Assertion) GetExpectation() bool` 52 | 53 | GetExpectation returns the Expectation field if non-nil, zero value otherwise. 54 | 55 | ### GetExpectationOk 56 | 57 | `func (o *Assertion) GetExpectationOk() (*bool, bool)` 58 | 59 | GetExpectationOk returns a tuple with the Expectation field if it's non-nil, zero value otherwise 60 | and a boolean to check if the value has been set. 61 | 62 | ### SetExpectation 63 | 64 | `func (o *Assertion) SetExpectation(v bool)` 65 | 66 | SetExpectation sets Expectation field to given value. 67 | 68 | 69 | 70 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 71 | 72 | 73 | -------------------------------------------------------------------------------- /docs/AuthErrorCode.md: -------------------------------------------------------------------------------- 1 | # AuthErrorCode 2 | 3 | ## Enum 4 | 5 | 6 | * `NO_AUTH_ERROR` (value: `"no_auth_error"`) 7 | 8 | * `AUTH_FAILURE` (value: `"auth_failure"`) 9 | 10 | * `AUTH_FAILED_INVALID_SUBJECT` (value: `"auth_failed_invalid_subject"`) 11 | 12 | * `AUTH_FAILED_INVALID_AUDIENCE` (value: `"auth_failed_invalid_audience"`) 13 | 14 | * `AUTH_FAILED_INVALID_ISSUER` (value: `"auth_failed_invalid_issuer"`) 15 | 16 | * `INVALID_CLAIMS` (value: `"invalid_claims"`) 17 | 18 | * `AUTH_FAILED_INVALID_BEARER_TOKEN` (value: `"auth_failed_invalid_bearer_token"`) 19 | 20 | * `MISSING_CUSTOMER_IN_BEARER_TOKEN` (value: `"missing_customer_in_bearer_token"`) 21 | 22 | * `MISSING_STORE_IN_BEARER_TOKEN` (value: `"missing_store_in_bearer_token"`) 23 | 24 | * `STORE_MISMATCH_IN_BEARER_TOKEN` (value: `"store_mismatch_in_bearer_token"`) 25 | 26 | * `CUSTOMER_MISMATCH_IN_BEARER_TOKEN` (value: `"customer_mismatch_in_bearer_token"`) 27 | 28 | * `BEARER_TOKEN_MISSING` (value: `"bearer_token_missing"`) 29 | 30 | * `MISSING_USER_IN_BEARER_TOKEN` (value: `"missing_user_in_bearer_token"`) 31 | 32 | * `UNAUTHENTICATED` (value: `"unauthenticated"`) 33 | 34 | * `INSUFFICIENT_PERMISSIONS` (value: `"insufficient_permissions"`) 35 | 36 | * `UNAUTHORIZED_PRINCIPAL` (value: `"unauthorized_principal"`) 37 | 38 | 39 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 40 | 41 | 42 | -------------------------------------------------------------------------------- /docs/AuthenticationErrorMessageResponse.md: -------------------------------------------------------------------------------- 1 | # AuthenticationErrorMessageResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Code** | Pointer to [**AuthErrorCode**](AuthErrorCode.md) | | [optional] [default to NO_AUTH_ERROR] 8 | **Message** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewAuthenticationErrorMessageResponse 13 | 14 | `func NewAuthenticationErrorMessageResponse() *AuthenticationErrorMessageResponse` 15 | 16 | NewAuthenticationErrorMessageResponse instantiates a new AuthenticationErrorMessageResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewAuthenticationErrorMessageResponseWithDefaults 22 | 23 | `func NewAuthenticationErrorMessageResponseWithDefaults() *AuthenticationErrorMessageResponse` 24 | 25 | NewAuthenticationErrorMessageResponseWithDefaults instantiates a new AuthenticationErrorMessageResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetCode 30 | 31 | `func (o *AuthenticationErrorMessageResponse) GetCode() AuthErrorCode` 32 | 33 | GetCode returns the Code field if non-nil, zero value otherwise. 34 | 35 | ### GetCodeOk 36 | 37 | `func (o *AuthenticationErrorMessageResponse) GetCodeOk() (*AuthErrorCode, bool)` 38 | 39 | GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetCode 43 | 44 | `func (o *AuthenticationErrorMessageResponse) SetCode(v AuthErrorCode)` 45 | 46 | SetCode sets Code field to given value. 47 | 48 | ### HasCode 49 | 50 | `func (o *AuthenticationErrorMessageResponse) HasCode() bool` 51 | 52 | HasCode returns a boolean if a field has been set. 53 | 54 | ### GetMessage 55 | 56 | `func (o *AuthenticationErrorMessageResponse) GetMessage() string` 57 | 58 | GetMessage returns the Message field if non-nil, zero value otherwise. 59 | 60 | ### GetMessageOk 61 | 62 | `func (o *AuthenticationErrorMessageResponse) GetMessageOk() (*string, bool)` 63 | 64 | GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetMessage 68 | 69 | `func (o *AuthenticationErrorMessageResponse) SetMessage(v string)` 70 | 71 | SetMessage sets Message field to given value. 72 | 73 | ### HasMessage 74 | 75 | `func (o *AuthenticationErrorMessageResponse) HasMessage() bool` 76 | 77 | HasMessage returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/AuthorizationModel.md: -------------------------------------------------------------------------------- 1 | # AuthorizationModel 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Id** | Pointer to **string** | | [optional] 8 | **SchemaVersion** | Pointer to **string** | | [optional] 9 | **TypeDefinitions** | Pointer to [**[]TypeDefinition**](TypeDefinition.md) | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewAuthorizationModel 14 | 15 | `func NewAuthorizationModel() *AuthorizationModel` 16 | 17 | NewAuthorizationModel instantiates a new AuthorizationModel object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewAuthorizationModelWithDefaults 23 | 24 | `func NewAuthorizationModelWithDefaults() *AuthorizationModel` 25 | 26 | NewAuthorizationModelWithDefaults instantiates a new AuthorizationModel object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetId 31 | 32 | `func (o *AuthorizationModel) GetId() string` 33 | 34 | GetId returns the Id field if non-nil, zero value otherwise. 35 | 36 | ### GetIdOk 37 | 38 | `func (o *AuthorizationModel) GetIdOk() (*string, bool)` 39 | 40 | GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetId 44 | 45 | `func (o *AuthorizationModel) SetId(v string)` 46 | 47 | SetId sets Id field to given value. 48 | 49 | ### HasId 50 | 51 | `func (o *AuthorizationModel) HasId() bool` 52 | 53 | HasId returns a boolean if a field has been set. 54 | 55 | ### GetSchemaVersion 56 | 57 | `func (o *AuthorizationModel) GetSchemaVersion() string` 58 | 59 | GetSchemaVersion returns the SchemaVersion field if non-nil, zero value otherwise. 60 | 61 | ### GetSchemaVersionOk 62 | 63 | `func (o *AuthorizationModel) GetSchemaVersionOk() (*string, bool)` 64 | 65 | GetSchemaVersionOk returns a tuple with the SchemaVersion field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetSchemaVersion 69 | 70 | `func (o *AuthorizationModel) SetSchemaVersion(v string)` 71 | 72 | SetSchemaVersion sets SchemaVersion field to given value. 73 | 74 | ### HasSchemaVersion 75 | 76 | `func (o *AuthorizationModel) HasSchemaVersion() bool` 77 | 78 | HasSchemaVersion returns a boolean if a field has been set. 79 | 80 | ### GetTypeDefinitions 81 | 82 | `func (o *AuthorizationModel) GetTypeDefinitions() []TypeDefinition` 83 | 84 | GetTypeDefinitions returns the TypeDefinitions field if non-nil, zero value otherwise. 85 | 86 | ### GetTypeDefinitionsOk 87 | 88 | `func (o *AuthorizationModel) GetTypeDefinitionsOk() (*[]TypeDefinition, bool)` 89 | 90 | GetTypeDefinitionsOk returns a tuple with the TypeDefinitions field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetTypeDefinitions 94 | 95 | `func (o *AuthorizationModel) SetTypeDefinitions(v []TypeDefinition)` 96 | 97 | SetTypeDefinitions sets TypeDefinitions field to given value. 98 | 99 | ### HasTypeDefinitions 100 | 101 | `func (o *AuthorizationModel) HasTypeDefinitions() bool` 102 | 103 | HasTypeDefinitions returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/CheckResponse.md: -------------------------------------------------------------------------------- 1 | # CheckResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Allowed** | Pointer to **bool** | | [optional] 8 | **Resolution** | Pointer to **string** | For internal use only. | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewCheckResponse 13 | 14 | `func NewCheckResponse() *CheckResponse` 15 | 16 | NewCheckResponse instantiates a new CheckResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewCheckResponseWithDefaults 22 | 23 | `func NewCheckResponseWithDefaults() *CheckResponse` 24 | 25 | NewCheckResponseWithDefaults instantiates a new CheckResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetAllowed 30 | 31 | `func (o *CheckResponse) GetAllowed() bool` 32 | 33 | GetAllowed returns the Allowed field if non-nil, zero value otherwise. 34 | 35 | ### GetAllowedOk 36 | 37 | `func (o *CheckResponse) GetAllowedOk() (*bool, bool)` 38 | 39 | GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetAllowed 43 | 44 | `func (o *CheckResponse) SetAllowed(v bool)` 45 | 46 | SetAllowed sets Allowed field to given value. 47 | 48 | ### HasAllowed 49 | 50 | `func (o *CheckResponse) HasAllowed() bool` 51 | 52 | HasAllowed returns a boolean if a field has been set. 53 | 54 | ### GetResolution 55 | 56 | `func (o *CheckResponse) GetResolution() string` 57 | 58 | GetResolution returns the Resolution field if non-nil, zero value otherwise. 59 | 60 | ### GetResolutionOk 61 | 62 | `func (o *CheckResponse) GetResolutionOk() (*string, bool)` 63 | 64 | GetResolutionOk returns a tuple with the Resolution field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetResolution 68 | 69 | `func (o *CheckResponse) SetResolution(v string)` 70 | 71 | SetResolution sets Resolution field to given value. 72 | 73 | ### HasResolution 74 | 75 | `func (o *CheckResponse) HasResolution() bool` 76 | 77 | HasResolution returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/Computed.md: -------------------------------------------------------------------------------- 1 | # Computed 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Userset** | Pointer to **string** | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewComputed 12 | 13 | `func NewComputed() *Computed` 14 | 15 | NewComputed instantiates a new Computed object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewComputedWithDefaults 21 | 22 | `func NewComputedWithDefaults() *Computed` 23 | 24 | NewComputedWithDefaults instantiates a new Computed object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetUserset 29 | 30 | `func (o *Computed) GetUserset() string` 31 | 32 | GetUserset returns the Userset field if non-nil, zero value otherwise. 33 | 34 | ### GetUsersetOk 35 | 36 | `func (o *Computed) GetUsersetOk() (*string, bool)` 37 | 38 | GetUsersetOk returns a tuple with the Userset field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetUserset 42 | 43 | `func (o *Computed) SetUserset(v string)` 44 | 45 | SetUserset sets Userset field to given value. 46 | 47 | ### HasUserset 48 | 49 | `func (o *Computed) HasUserset() bool` 50 | 51 | HasUserset returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/ContextualTupleKeys.md: -------------------------------------------------------------------------------- 1 | # ContextualTupleKeys 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TupleKeys** | [**[]TupleKey**](TupleKey.md) | | 8 | 9 | ## Methods 10 | 11 | ### NewContextualTupleKeys 12 | 13 | `func NewContextualTupleKeys(tupleKeys []TupleKey, ) *ContextualTupleKeys` 14 | 15 | NewContextualTupleKeys instantiates a new ContextualTupleKeys object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewContextualTupleKeysWithDefaults 21 | 22 | `func NewContextualTupleKeysWithDefaults() *ContextualTupleKeys` 23 | 24 | NewContextualTupleKeysWithDefaults instantiates a new ContextualTupleKeys object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetTupleKeys 29 | 30 | `func (o *ContextualTupleKeys) GetTupleKeys() []TupleKey` 31 | 32 | GetTupleKeys returns the TupleKeys field if non-nil, zero value otherwise. 33 | 34 | ### GetTupleKeysOk 35 | 36 | `func (o *ContextualTupleKeys) GetTupleKeysOk() (*[]TupleKey, bool)` 37 | 38 | GetTupleKeysOk returns a tuple with the TupleKeys field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetTupleKeys 42 | 43 | `func (o *ContextualTupleKeys) SetTupleKeys(v []TupleKey)` 44 | 45 | SetTupleKeys sets TupleKeys field to given value. 46 | 47 | 48 | 49 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 50 | 51 | 52 | -------------------------------------------------------------------------------- /docs/Difference.md: -------------------------------------------------------------------------------- 1 | # Difference 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Base** | [**Userset**](Userset.md) | | 8 | **Subtract** | [**Userset**](Userset.md) | | 9 | 10 | ## Methods 11 | 12 | ### NewDifference 13 | 14 | `func NewDifference(base Userset, subtract Userset, ) *Difference` 15 | 16 | NewDifference instantiates a new Difference object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewDifferenceWithDefaults 22 | 23 | `func NewDifferenceWithDefaults() *Difference` 24 | 25 | NewDifferenceWithDefaults instantiates a new Difference object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetBase 30 | 31 | `func (o *Difference) GetBase() Userset` 32 | 33 | GetBase returns the Base field if non-nil, zero value otherwise. 34 | 35 | ### GetBaseOk 36 | 37 | `func (o *Difference) GetBaseOk() (*Userset, bool)` 38 | 39 | GetBaseOk returns a tuple with the Base field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetBase 43 | 44 | `func (o *Difference) SetBase(v Userset)` 45 | 46 | SetBase sets Base field to given value. 47 | 48 | 49 | ### GetSubtract 50 | 51 | `func (o *Difference) GetSubtract() Userset` 52 | 53 | GetSubtract returns the Subtract field if non-nil, zero value otherwise. 54 | 55 | ### GetSubtractOk 56 | 57 | `func (o *Difference) GetSubtractOk() (*Userset, bool)` 58 | 59 | GetSubtractOk returns a tuple with the Subtract field if it's non-nil, zero value otherwise 60 | and a boolean to check if the value has been set. 61 | 62 | ### SetSubtract 63 | 64 | `func (o *Difference) SetSubtract(v Userset)` 65 | 66 | SetSubtract sets Subtract field to given value. 67 | 68 | 69 | 70 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 71 | 72 | 73 | -------------------------------------------------------------------------------- /docs/ErrorCode.md: -------------------------------------------------------------------------------- 1 | # ErrorCode 2 | 3 | ## Enum 4 | 5 | 6 | * `NO_ERROR` (value: `"no_error"`) 7 | 8 | * `VALIDATION_ERROR` (value: `"validation_error"`) 9 | 10 | * `AUTHORIZATION_MODEL_NOT_FOUND` (value: `"authorization_model_not_found"`) 11 | 12 | * `AUTHORIZATION_MODEL_RESOLUTION_TOO_COMPLEX` (value: `"authorization_model_resolution_too_complex"`) 13 | 14 | * `INVALID_WRITE_INPUT` (value: `"invalid_write_input"`) 15 | 16 | * `CANNOT_ALLOW_DUPLICATE_TUPLES_IN_ONE_REQUEST` (value: `"cannot_allow_duplicate_tuples_in_one_request"`) 17 | 18 | * `CANNOT_ALLOW_DUPLICATE_TYPES_IN_ONE_REQUEST` (value: `"cannot_allow_duplicate_types_in_one_request"`) 19 | 20 | * `CANNOT_ALLOW_MULTIPLE_REFERENCES_TO_ONE_RELATION` (value: `"cannot_allow_multiple_references_to_one_relation"`) 21 | 22 | * `INVALID_CONTINUATION_TOKEN` (value: `"invalid_continuation_token"`) 23 | 24 | * `INVALID_TUPLE_SET` (value: `"invalid_tuple_set"`) 25 | 26 | * `INVALID_CHECK_INPUT` (value: `"invalid_check_input"`) 27 | 28 | * `INVALID_EXPAND_INPUT` (value: `"invalid_expand_input"`) 29 | 30 | * `UNSUPPORTED_USER_SET` (value: `"unsupported_user_set"`) 31 | 32 | * `INVALID_OBJECT_FORMAT` (value: `"invalid_object_format"`) 33 | 34 | * `TOKEN_ISSUER_ALREADY_REGISTERED` (value: `"token_issuer_already_registered"`) 35 | 36 | * `TOS_AGREEMENT_ALREADY_SIGNED` (value: `"tos_agreement_already_signed"`) 37 | 38 | * `WRITE_FAILED_DUE_TO_INVALID_INPUT` (value: `"write_failed_due_to_invalid_input"`) 39 | 40 | * `AUTHORIZATION_MODEL_ASSERTIONS_NOT_FOUND` (value: `"authorization_model_assertions_not_found"`) 41 | 42 | * `LATEST_AUTHORIZATION_MODEL_NOT_FOUND` (value: `"latest_authorization_model_not_found"`) 43 | 44 | * `TYPE_NOT_FOUND` (value: `"type_not_found"`) 45 | 46 | * `RELATION_NOT_FOUND` (value: `"relation_not_found"`) 47 | 48 | * `EMPTY_RELATION_DEFINITION` (value: `"empty_relation_definition"`) 49 | 50 | * `INVALID_USER` (value: `"invalid_user"`) 51 | 52 | * `INVALID_TOKEN_ISSUER` (value: `"invalid_token_issuer"`) 53 | 54 | * `INVALID_TUPLE` (value: `"invalid_tuple"`) 55 | 56 | * `UNKNOWN_RELATION` (value: `"unknown_relation"`) 57 | 58 | * `STORE_ID_INVALID_LENGTH` (value: `"store_id_invalid_length"`) 59 | 60 | * `ISSUER_URL_INVALID_URI` (value: `"issuer_url_invalid_uri"`) 61 | 62 | * `ISSUER_URL_REQUIRED_ABSOLUTE_PATH` (value: `"issuer_url_required_absolute_path"`) 63 | 64 | * `ASSERTIONS_TOO_MANY_ITEMS` (value: `"assertions_too_many_items"`) 65 | 66 | * `ID_TOO_LONG` (value: `"id_too_long"`) 67 | 68 | * `INVALID_ENVIRONMENT` (value: `"invalid_environment"`) 69 | 70 | * `AUTHORIZATION_MODEL_ID_TOO_LONG` (value: `"authorization_model_id_too_long"`) 71 | 72 | * `TUPLE_KEY_VALUE_NOT_SPECIFIED` (value: `"tuple_key_value_not_specified"`) 73 | 74 | * `TUPLE_KEYS_TOO_MANY_OR_TOO_FEW_ITEMS` (value: `"tuple_keys_too_many_or_too_few_items"`) 75 | 76 | * `PAGE_SIZE_INVALID` (value: `"page_size_invalid"`) 77 | 78 | * `PARAM_MISSING_VALUE` (value: `"param_missing_value"`) 79 | 80 | * `DIFFERENCE_BASE_MISSING_VALUE` (value: `"difference_base_missing_value"`) 81 | 82 | * `SUBTRACT_BASE_MISSING_VALUE` (value: `"subtract_base_missing_value"`) 83 | 84 | * `OBJECT_TOO_LONG` (value: `"object_too_long"`) 85 | 86 | * `RELATION_TOO_LONG` (value: `"relation_too_long"`) 87 | 88 | * `TYPE_DEFINITIONS_TOO_FEW_ITEMS` (value: `"type_definitions_too_few_items"`) 89 | 90 | * `TYPE_INVALID_LENGTH` (value: `"type_invalid_length"`) 91 | 92 | * `TYPE_INVALID_PATTERN` (value: `"type_invalid_pattern"`) 93 | 94 | * `RELATIONS_TOO_FEW_ITEMS` (value: `"relations_too_few_items"`) 95 | 96 | * `RELATIONS_TOO_LONG` (value: `"relations_too_long"`) 97 | 98 | * `RELATIONS_INVALID_PATTERN` (value: `"relations_invalid_pattern"`) 99 | 100 | * `OBJECT_INVALID_PATTERN` (value: `"object_invalid_pattern"`) 101 | 102 | * `QUERY_STRING_TYPE_CONTINUATION_TOKEN_MISMATCH` (value: `"query_string_type_continuation_token_mismatch"`) 103 | 104 | * `EXCEEDED_ENTITY_LIMIT` (value: `"exceeded_entity_limit"`) 105 | 106 | * `INVALID_CONTEXTUAL_TUPLE` (value: `"invalid_contextual_tuple"`) 107 | 108 | * `DUPLICATE_CONTEXTUAL_TUPLE` (value: `"duplicate_contextual_tuple"`) 109 | 110 | 111 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 112 | 113 | 114 | -------------------------------------------------------------------------------- /docs/ExpandRequest.md: -------------------------------------------------------------------------------- 1 | # ExpandRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TupleKey** | [**TupleKey**](TupleKey.md) | | 8 | **AuthorizationModelId** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewExpandRequest 13 | 14 | `func NewExpandRequest(tupleKey TupleKey, ) *ExpandRequest` 15 | 16 | NewExpandRequest instantiates a new ExpandRequest object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewExpandRequestWithDefaults 22 | 23 | `func NewExpandRequestWithDefaults() *ExpandRequest` 24 | 25 | NewExpandRequestWithDefaults instantiates a new ExpandRequest object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetTupleKey 30 | 31 | `func (o *ExpandRequest) GetTupleKey() TupleKey` 32 | 33 | GetTupleKey returns the TupleKey field if non-nil, zero value otherwise. 34 | 35 | ### GetTupleKeyOk 36 | 37 | `func (o *ExpandRequest) GetTupleKeyOk() (*TupleKey, bool)` 38 | 39 | GetTupleKeyOk returns a tuple with the TupleKey field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetTupleKey 43 | 44 | `func (o *ExpandRequest) SetTupleKey(v TupleKey)` 45 | 46 | SetTupleKey sets TupleKey field to given value. 47 | 48 | 49 | ### GetAuthorizationModelId 50 | 51 | `func (o *ExpandRequest) GetAuthorizationModelId() string` 52 | 53 | GetAuthorizationModelId returns the AuthorizationModelId field if non-nil, zero value otherwise. 54 | 55 | ### GetAuthorizationModelIdOk 56 | 57 | `func (o *ExpandRequest) GetAuthorizationModelIdOk() (*string, bool)` 58 | 59 | GetAuthorizationModelIdOk returns a tuple with the AuthorizationModelId field if it's non-nil, zero value otherwise 60 | and a boolean to check if the value has been set. 61 | 62 | ### SetAuthorizationModelId 63 | 64 | `func (o *ExpandRequest) SetAuthorizationModelId(v string)` 65 | 66 | SetAuthorizationModelId sets AuthorizationModelId field to given value. 67 | 68 | ### HasAuthorizationModelId 69 | 70 | `func (o *ExpandRequest) HasAuthorizationModelId() bool` 71 | 72 | HasAuthorizationModelId returns a boolean if a field has been set. 73 | 74 | 75 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 76 | 77 | 78 | -------------------------------------------------------------------------------- /docs/ExpandResponse.md: -------------------------------------------------------------------------------- 1 | # ExpandResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Tree** | Pointer to [**UsersetTree**](UsersetTree.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewExpandResponse 12 | 13 | `func NewExpandResponse() *ExpandResponse` 14 | 15 | NewExpandResponse instantiates a new ExpandResponse object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewExpandResponseWithDefaults 21 | 22 | `func NewExpandResponseWithDefaults() *ExpandResponse` 23 | 24 | NewExpandResponseWithDefaults instantiates a new ExpandResponse object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetTree 29 | 30 | `func (o *ExpandResponse) GetTree() UsersetTree` 31 | 32 | GetTree returns the Tree field if non-nil, zero value otherwise. 33 | 34 | ### GetTreeOk 35 | 36 | `func (o *ExpandResponse) GetTreeOk() (*UsersetTree, bool)` 37 | 38 | GetTreeOk returns a tuple with the Tree field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetTree 42 | 43 | `func (o *ExpandResponse) SetTree(v UsersetTree)` 44 | 45 | SetTree sets Tree field to given value. 46 | 47 | ### HasTree 48 | 49 | `func (o *ExpandResponse) HasTree() bool` 50 | 51 | HasTree returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/InternalErrorCode.md: -------------------------------------------------------------------------------- 1 | # InternalErrorCode 2 | 3 | ## Enum 4 | 5 | 6 | * `NO_INTERNAL_ERROR` (value: `"no_internal_error"`) 7 | 8 | * `INTERNAL_ERROR` (value: `"internal_error"`) 9 | 10 | * `AUTH_INTERNAL_ERROR` (value: `"auth_internal_error"`) 11 | 12 | * `AUTH_FAILED_ERROR_FETCHING_WELL_KNOWN_JWKS` (value: `"auth_failed_error_fetching_well_known_jwks"`) 13 | 14 | * `CANCELLED` (value: `"cancelled"`) 15 | 16 | * `DEADLINE_EXCEEDED` (value: `"deadline_exceeded"`) 17 | 18 | * `ALREADY_EXISTS` (value: `"already_exists"`) 19 | 20 | * `RESOURCE_EXHAUSTED` (value: `"resource_exhausted"`) 21 | 22 | * `FAILED_PRECONDITION` (value: `"failed_precondition"`) 23 | 24 | * `ABORTED` (value: `"aborted"`) 25 | 26 | * `OUT_OF_RANGE` (value: `"out_of_range"`) 27 | 28 | * `UNAVAILABLE` (value: `"unavailable"`) 29 | 30 | * `DATA_LOSS` (value: `"data_loss"`) 31 | 32 | 33 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 34 | 35 | 36 | -------------------------------------------------------------------------------- /docs/InternalErrorMessageResponse.md: -------------------------------------------------------------------------------- 1 | # InternalErrorMessageResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Code** | Pointer to [**InternalErrorCode**](InternalErrorCode.md) | | [optional] [default to NO_INTERNAL_ERROR] 8 | **Message** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewInternalErrorMessageResponse 13 | 14 | `func NewInternalErrorMessageResponse() *InternalErrorMessageResponse` 15 | 16 | NewInternalErrorMessageResponse instantiates a new InternalErrorMessageResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewInternalErrorMessageResponseWithDefaults 22 | 23 | `func NewInternalErrorMessageResponseWithDefaults() *InternalErrorMessageResponse` 24 | 25 | NewInternalErrorMessageResponseWithDefaults instantiates a new InternalErrorMessageResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetCode 30 | 31 | `func (o *InternalErrorMessageResponse) GetCode() InternalErrorCode` 32 | 33 | GetCode returns the Code field if non-nil, zero value otherwise. 34 | 35 | ### GetCodeOk 36 | 37 | `func (o *InternalErrorMessageResponse) GetCodeOk() (*InternalErrorCode, bool)` 38 | 39 | GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetCode 43 | 44 | `func (o *InternalErrorMessageResponse) SetCode(v InternalErrorCode)` 45 | 46 | SetCode sets Code field to given value. 47 | 48 | ### HasCode 49 | 50 | `func (o *InternalErrorMessageResponse) HasCode() bool` 51 | 52 | HasCode returns a boolean if a field has been set. 53 | 54 | ### GetMessage 55 | 56 | `func (o *InternalErrorMessageResponse) GetMessage() string` 57 | 58 | GetMessage returns the Message field if non-nil, zero value otherwise. 59 | 60 | ### GetMessageOk 61 | 62 | `func (o *InternalErrorMessageResponse) GetMessageOk() (*string, bool)` 63 | 64 | GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetMessage 68 | 69 | `func (o *InternalErrorMessageResponse) SetMessage(v string)` 70 | 71 | SetMessage sets Message field to given value. 72 | 73 | ### HasMessage 74 | 75 | `func (o *InternalErrorMessageResponse) HasMessage() bool` 76 | 77 | HasMessage returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/Leaf.md: -------------------------------------------------------------------------------- 1 | # Leaf 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Users** | Pointer to [**Users**](Users.md) | | [optional] 8 | **Computed** | Pointer to [**Computed**](Computed.md) | | [optional] 9 | **TupleToUserset** | Pointer to [**UsersetTreeTupleToUserset**](UsersetTreeTupleToUserset.md) | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewLeaf 14 | 15 | `func NewLeaf() *Leaf` 16 | 17 | NewLeaf instantiates a new Leaf object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewLeafWithDefaults 23 | 24 | `func NewLeafWithDefaults() *Leaf` 25 | 26 | NewLeafWithDefaults instantiates a new Leaf object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetUsers 31 | 32 | `func (o *Leaf) GetUsers() Users` 33 | 34 | GetUsers returns the Users field if non-nil, zero value otherwise. 35 | 36 | ### GetUsersOk 37 | 38 | `func (o *Leaf) GetUsersOk() (*Users, bool)` 39 | 40 | GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetUsers 44 | 45 | `func (o *Leaf) SetUsers(v Users)` 46 | 47 | SetUsers sets Users field to given value. 48 | 49 | ### HasUsers 50 | 51 | `func (o *Leaf) HasUsers() bool` 52 | 53 | HasUsers returns a boolean if a field has been set. 54 | 55 | ### GetComputed 56 | 57 | `func (o *Leaf) GetComputed() Computed` 58 | 59 | GetComputed returns the Computed field if non-nil, zero value otherwise. 60 | 61 | ### GetComputedOk 62 | 63 | `func (o *Leaf) GetComputedOk() (*Computed, bool)` 64 | 65 | GetComputedOk returns a tuple with the Computed field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetComputed 69 | 70 | `func (o *Leaf) SetComputed(v Computed)` 71 | 72 | SetComputed sets Computed field to given value. 73 | 74 | ### HasComputed 75 | 76 | `func (o *Leaf) HasComputed() bool` 77 | 78 | HasComputed returns a boolean if a field has been set. 79 | 80 | ### GetTupleToUserset 81 | 82 | `func (o *Leaf) GetTupleToUserset() UsersetTreeTupleToUserset` 83 | 84 | GetTupleToUserset returns the TupleToUserset field if non-nil, zero value otherwise. 85 | 86 | ### GetTupleToUsersetOk 87 | 88 | `func (o *Leaf) GetTupleToUsersetOk() (*UsersetTreeTupleToUserset, bool)` 89 | 90 | GetTupleToUsersetOk returns a tuple with the TupleToUserset field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetTupleToUserset 94 | 95 | `func (o *Leaf) SetTupleToUserset(v UsersetTreeTupleToUserset)` 96 | 97 | SetTupleToUserset sets TupleToUserset field to given value. 98 | 99 | ### HasTupleToUserset 100 | 101 | `func (o *Leaf) HasTupleToUserset() bool` 102 | 103 | HasTupleToUserset returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/ListObjectsResponse.md: -------------------------------------------------------------------------------- 1 | # ListObjectsResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Objects** | Pointer to **[]string** | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewListObjectsResponse 12 | 13 | `func NewListObjectsResponse() *ListObjectsResponse` 14 | 15 | NewListObjectsResponse instantiates a new ListObjectsResponse object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewListObjectsResponseWithDefaults 21 | 22 | `func NewListObjectsResponseWithDefaults() *ListObjectsResponse` 23 | 24 | NewListObjectsResponseWithDefaults instantiates a new ListObjectsResponse object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetObjects 29 | 30 | `func (o *ListObjectsResponse) GetObjects() []string` 31 | 32 | GetObjects returns the Objects field if non-nil, zero value otherwise. 33 | 34 | ### GetObjectsOk 35 | 36 | `func (o *ListObjectsResponse) GetObjectsOk() (*[]string, bool)` 37 | 38 | GetObjectsOk returns a tuple with the Objects field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetObjects 42 | 43 | `func (o *ListObjectsResponse) SetObjects(v []string)` 44 | 45 | SetObjects sets Objects field to given value. 46 | 47 | ### HasObjects 48 | 49 | `func (o *ListObjectsResponse) HasObjects() bool` 50 | 51 | HasObjects returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/Metadata.md: -------------------------------------------------------------------------------- 1 | # Metadata 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Relations** | Pointer to [**map[string]RelationMetadata**](RelationMetadata.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewMetadata 12 | 13 | `func NewMetadata() *Metadata` 14 | 15 | NewMetadata instantiates a new Metadata object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewMetadataWithDefaults 21 | 22 | `func NewMetadataWithDefaults() *Metadata` 23 | 24 | NewMetadataWithDefaults instantiates a new Metadata object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetRelations 29 | 30 | `func (o *Metadata) GetRelations() map[string]RelationMetadata` 31 | 32 | GetRelations returns the Relations field if non-nil, zero value otherwise. 33 | 34 | ### GetRelationsOk 35 | 36 | `func (o *Metadata) GetRelationsOk() (*map[string]RelationMetadata, bool)` 37 | 38 | GetRelationsOk returns a tuple with the Relations field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetRelations 42 | 43 | `func (o *Metadata) SetRelations(v map[string]RelationMetadata)` 44 | 45 | SetRelations sets Relations field to given value. 46 | 47 | ### HasRelations 48 | 49 | `func (o *Metadata) HasRelations() bool` 50 | 51 | HasRelations returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/Nodes.md: -------------------------------------------------------------------------------- 1 | # Nodes 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Nodes** | Pointer to [**[]Node**](Node.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewNodes 12 | 13 | `func NewNodes() *Nodes` 14 | 15 | NewNodes instantiates a new Nodes object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewNodesWithDefaults 21 | 22 | `func NewNodesWithDefaults() *Nodes` 23 | 24 | NewNodesWithDefaults instantiates a new Nodes object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetNodes 29 | 30 | `func (o *Nodes) GetNodes() []Node` 31 | 32 | GetNodes returns the Nodes field if non-nil, zero value otherwise. 33 | 34 | ### GetNodesOk 35 | 36 | `func (o *Nodes) GetNodesOk() (*[]Node, bool)` 37 | 38 | GetNodesOk returns a tuple with the Nodes field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetNodes 42 | 43 | `func (o *Nodes) SetNodes(v []Node)` 44 | 45 | SetNodes sets Nodes field to given value. 46 | 47 | ### HasNodes 48 | 49 | `func (o *Nodes) HasNodes() bool` 50 | 51 | HasNodes returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/NotFoundErrorCode.md: -------------------------------------------------------------------------------- 1 | # NotFoundErrorCode 2 | 3 | ## Enum 4 | 5 | 6 | * `NO_NOT_FOUND_ERROR` (value: `"no_not_found_error"`) 7 | 8 | * `UNDEFINED_ENDPOINT` (value: `"undefined_endpoint"`) 9 | 10 | * `CUSTOMER_ID_NOT_FOUND` (value: `"customer_id_not_found"`) 11 | 12 | * `STORE_ID_NOT_FOUND` (value: `"store_id_not_found"`) 13 | 14 | * `STORE_CLIENT_ID_NOT_FOUND` (value: `"store_client_id_not_found"`) 15 | 16 | * `RESOURCE_NOT_FOUND` (value: `"resource_not_found"`) 17 | 18 | * `UNIMPLEMENTED` (value: `"unimplemented"`) 19 | 20 | 21 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/ObjectRelation.md: -------------------------------------------------------------------------------- 1 | # ObjectRelation 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Object** | Pointer to **string** | | [optional] 8 | **Relation** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewObjectRelation 13 | 14 | `func NewObjectRelation() *ObjectRelation` 15 | 16 | NewObjectRelation instantiates a new ObjectRelation object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewObjectRelationWithDefaults 22 | 23 | `func NewObjectRelationWithDefaults() *ObjectRelation` 24 | 25 | NewObjectRelationWithDefaults instantiates a new ObjectRelation object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetObject 30 | 31 | `func (o *ObjectRelation) GetObject() string` 32 | 33 | GetObject returns the Object field if non-nil, zero value otherwise. 34 | 35 | ### GetObjectOk 36 | 37 | `func (o *ObjectRelation) GetObjectOk() (*string, bool)` 38 | 39 | GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetObject 43 | 44 | `func (o *ObjectRelation) SetObject(v string)` 45 | 46 | SetObject sets Object field to given value. 47 | 48 | ### HasObject 49 | 50 | `func (o *ObjectRelation) HasObject() bool` 51 | 52 | HasObject returns a boolean if a field has been set. 53 | 54 | ### GetRelation 55 | 56 | `func (o *ObjectRelation) GetRelation() string` 57 | 58 | GetRelation returns the Relation field if non-nil, zero value otherwise. 59 | 60 | ### GetRelationOk 61 | 62 | `func (o *ObjectRelation) GetRelationOk() (*string, bool)` 63 | 64 | GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetRelation 68 | 69 | `func (o *ObjectRelation) SetRelation(v string)` 70 | 71 | SetRelation sets Relation field to given value. 72 | 73 | ### HasRelation 74 | 75 | `func (o *ObjectRelation) HasRelation() bool` 76 | 77 | HasRelation returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/PathUnknownErrorMessageResponse.md: -------------------------------------------------------------------------------- 1 | # PathUnknownErrorMessageResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Code** | Pointer to [**NotFoundErrorCode**](NotFoundErrorCode.md) | | [optional] [default to NO_NOT_FOUND_ERROR] 8 | **Message** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewPathUnknownErrorMessageResponse 13 | 14 | `func NewPathUnknownErrorMessageResponse() *PathUnknownErrorMessageResponse` 15 | 16 | NewPathUnknownErrorMessageResponse instantiates a new PathUnknownErrorMessageResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewPathUnknownErrorMessageResponseWithDefaults 22 | 23 | `func NewPathUnknownErrorMessageResponseWithDefaults() *PathUnknownErrorMessageResponse` 24 | 25 | NewPathUnknownErrorMessageResponseWithDefaults instantiates a new PathUnknownErrorMessageResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetCode 30 | 31 | `func (o *PathUnknownErrorMessageResponse) GetCode() NotFoundErrorCode` 32 | 33 | GetCode returns the Code field if non-nil, zero value otherwise. 34 | 35 | ### GetCodeOk 36 | 37 | `func (o *PathUnknownErrorMessageResponse) GetCodeOk() (*NotFoundErrorCode, bool)` 38 | 39 | GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetCode 43 | 44 | `func (o *PathUnknownErrorMessageResponse) SetCode(v NotFoundErrorCode)` 45 | 46 | SetCode sets Code field to given value. 47 | 48 | ### HasCode 49 | 50 | `func (o *PathUnknownErrorMessageResponse) HasCode() bool` 51 | 52 | HasCode returns a boolean if a field has been set. 53 | 54 | ### GetMessage 55 | 56 | `func (o *PathUnknownErrorMessageResponse) GetMessage() string` 57 | 58 | GetMessage returns the Message field if non-nil, zero value otherwise. 59 | 60 | ### GetMessageOk 61 | 62 | `func (o *PathUnknownErrorMessageResponse) GetMessageOk() (*string, bool)` 63 | 64 | GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetMessage 68 | 69 | `func (o *PathUnknownErrorMessageResponse) SetMessage(v string)` 70 | 71 | SetMessage sets Message field to given value. 72 | 73 | ### HasMessage 74 | 75 | `func (o *PathUnknownErrorMessageResponse) HasMessage() bool` 76 | 77 | HasMessage returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/ReadAssertionsResponse.md: -------------------------------------------------------------------------------- 1 | # ReadAssertionsResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **AuthorizationModelId** | Pointer to **string** | | [optional] 8 | **Assertions** | Pointer to [**[]Assertion**](Assertion.md) | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewReadAssertionsResponse 13 | 14 | `func NewReadAssertionsResponse() *ReadAssertionsResponse` 15 | 16 | NewReadAssertionsResponse instantiates a new ReadAssertionsResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewReadAssertionsResponseWithDefaults 22 | 23 | `func NewReadAssertionsResponseWithDefaults() *ReadAssertionsResponse` 24 | 25 | NewReadAssertionsResponseWithDefaults instantiates a new ReadAssertionsResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetAuthorizationModelId 30 | 31 | `func (o *ReadAssertionsResponse) GetAuthorizationModelId() string` 32 | 33 | GetAuthorizationModelId returns the AuthorizationModelId field if non-nil, zero value otherwise. 34 | 35 | ### GetAuthorizationModelIdOk 36 | 37 | `func (o *ReadAssertionsResponse) GetAuthorizationModelIdOk() (*string, bool)` 38 | 39 | GetAuthorizationModelIdOk returns a tuple with the AuthorizationModelId field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetAuthorizationModelId 43 | 44 | `func (o *ReadAssertionsResponse) SetAuthorizationModelId(v string)` 45 | 46 | SetAuthorizationModelId sets AuthorizationModelId field to given value. 47 | 48 | ### HasAuthorizationModelId 49 | 50 | `func (o *ReadAssertionsResponse) HasAuthorizationModelId() bool` 51 | 52 | HasAuthorizationModelId returns a boolean if a field has been set. 53 | 54 | ### GetAssertions 55 | 56 | `func (o *ReadAssertionsResponse) GetAssertions() []Assertion` 57 | 58 | GetAssertions returns the Assertions field if non-nil, zero value otherwise. 59 | 60 | ### GetAssertionsOk 61 | 62 | `func (o *ReadAssertionsResponse) GetAssertionsOk() (*[]Assertion, bool)` 63 | 64 | GetAssertionsOk returns a tuple with the Assertions field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetAssertions 68 | 69 | `func (o *ReadAssertionsResponse) SetAssertions(v []Assertion)` 70 | 71 | SetAssertions sets Assertions field to given value. 72 | 73 | ### HasAssertions 74 | 75 | `func (o *ReadAssertionsResponse) HasAssertions() bool` 76 | 77 | HasAssertions returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/ReadAuthorizationModelResponse.md: -------------------------------------------------------------------------------- 1 | # ReadAuthorizationModelResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **AuthorizationModel** | Pointer to [**AuthorizationModel**](AuthorizationModel.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewReadAuthorizationModelResponse 12 | 13 | `func NewReadAuthorizationModelResponse() *ReadAuthorizationModelResponse` 14 | 15 | NewReadAuthorizationModelResponse instantiates a new ReadAuthorizationModelResponse object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewReadAuthorizationModelResponseWithDefaults 21 | 22 | `func NewReadAuthorizationModelResponseWithDefaults() *ReadAuthorizationModelResponse` 23 | 24 | NewReadAuthorizationModelResponseWithDefaults instantiates a new ReadAuthorizationModelResponse object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetAuthorizationModel 29 | 30 | `func (o *ReadAuthorizationModelResponse) GetAuthorizationModel() AuthorizationModel` 31 | 32 | GetAuthorizationModel returns the AuthorizationModel field if non-nil, zero value otherwise. 33 | 34 | ### GetAuthorizationModelOk 35 | 36 | `func (o *ReadAuthorizationModelResponse) GetAuthorizationModelOk() (*AuthorizationModel, bool)` 37 | 38 | GetAuthorizationModelOk returns a tuple with the AuthorizationModel field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetAuthorizationModel 42 | 43 | `func (o *ReadAuthorizationModelResponse) SetAuthorizationModel(v AuthorizationModel)` 44 | 45 | SetAuthorizationModel sets AuthorizationModel field to given value. 46 | 47 | ### HasAuthorizationModel 48 | 49 | `func (o *ReadAuthorizationModelResponse) HasAuthorizationModel() bool` 50 | 51 | HasAuthorizationModel returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/ReadAuthorizationModelsResponse.md: -------------------------------------------------------------------------------- 1 | # ReadAuthorizationModelsResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **AuthorizationModels** | Pointer to [**[]AuthorizationModel**](AuthorizationModel.md) | | [optional] 8 | **ContinuationToken** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewReadAuthorizationModelsResponse 13 | 14 | `func NewReadAuthorizationModelsResponse() *ReadAuthorizationModelsResponse` 15 | 16 | NewReadAuthorizationModelsResponse instantiates a new ReadAuthorizationModelsResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewReadAuthorizationModelsResponseWithDefaults 22 | 23 | `func NewReadAuthorizationModelsResponseWithDefaults() *ReadAuthorizationModelsResponse` 24 | 25 | NewReadAuthorizationModelsResponseWithDefaults instantiates a new ReadAuthorizationModelsResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetAuthorizationModels 30 | 31 | `func (o *ReadAuthorizationModelsResponse) GetAuthorizationModels() []AuthorizationModel` 32 | 33 | GetAuthorizationModels returns the AuthorizationModels field if non-nil, zero value otherwise. 34 | 35 | ### GetAuthorizationModelsOk 36 | 37 | `func (o *ReadAuthorizationModelsResponse) GetAuthorizationModelsOk() (*[]AuthorizationModel, bool)` 38 | 39 | GetAuthorizationModelsOk returns a tuple with the AuthorizationModels field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetAuthorizationModels 43 | 44 | `func (o *ReadAuthorizationModelsResponse) SetAuthorizationModels(v []AuthorizationModel)` 45 | 46 | SetAuthorizationModels sets AuthorizationModels field to given value. 47 | 48 | ### HasAuthorizationModels 49 | 50 | `func (o *ReadAuthorizationModelsResponse) HasAuthorizationModels() bool` 51 | 52 | HasAuthorizationModels returns a boolean if a field has been set. 53 | 54 | ### GetContinuationToken 55 | 56 | `func (o *ReadAuthorizationModelsResponse) GetContinuationToken() string` 57 | 58 | GetContinuationToken returns the ContinuationToken field if non-nil, zero value otherwise. 59 | 60 | ### GetContinuationTokenOk 61 | 62 | `func (o *ReadAuthorizationModelsResponse) GetContinuationTokenOk() (*string, bool)` 63 | 64 | GetContinuationTokenOk returns a tuple with the ContinuationToken field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetContinuationToken 68 | 69 | `func (o *ReadAuthorizationModelsResponse) SetContinuationToken(v string)` 70 | 71 | SetContinuationToken sets ContinuationToken field to given value. 72 | 73 | ### HasContinuationToken 74 | 75 | `func (o *ReadAuthorizationModelsResponse) HasContinuationToken() bool` 76 | 77 | HasContinuationToken returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/ReadChangesResponse.md: -------------------------------------------------------------------------------- 1 | # ReadChangesResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Changes** | Pointer to [**[]TupleChange**](TupleChange.md) | | [optional] 8 | **ContinuationToken** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewReadChangesResponse 13 | 14 | `func NewReadChangesResponse() *ReadChangesResponse` 15 | 16 | NewReadChangesResponse instantiates a new ReadChangesResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewReadChangesResponseWithDefaults 22 | 23 | `func NewReadChangesResponseWithDefaults() *ReadChangesResponse` 24 | 25 | NewReadChangesResponseWithDefaults instantiates a new ReadChangesResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetChanges 30 | 31 | `func (o *ReadChangesResponse) GetChanges() []TupleChange` 32 | 33 | GetChanges returns the Changes field if non-nil, zero value otherwise. 34 | 35 | ### GetChangesOk 36 | 37 | `func (o *ReadChangesResponse) GetChangesOk() (*[]TupleChange, bool)` 38 | 39 | GetChangesOk returns a tuple with the Changes field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetChanges 43 | 44 | `func (o *ReadChangesResponse) SetChanges(v []TupleChange)` 45 | 46 | SetChanges sets Changes field to given value. 47 | 48 | ### HasChanges 49 | 50 | `func (o *ReadChangesResponse) HasChanges() bool` 51 | 52 | HasChanges returns a boolean if a field has been set. 53 | 54 | ### GetContinuationToken 55 | 56 | `func (o *ReadChangesResponse) GetContinuationToken() string` 57 | 58 | GetContinuationToken returns the ContinuationToken field if non-nil, zero value otherwise. 59 | 60 | ### GetContinuationTokenOk 61 | 62 | `func (o *ReadChangesResponse) GetContinuationTokenOk() (*string, bool)` 63 | 64 | GetContinuationTokenOk returns a tuple with the ContinuationToken field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetContinuationToken 68 | 69 | `func (o *ReadChangesResponse) SetContinuationToken(v string)` 70 | 71 | SetContinuationToken sets ContinuationToken field to given value. 72 | 73 | ### HasContinuationToken 74 | 75 | `func (o *ReadChangesResponse) HasContinuationToken() bool` 76 | 77 | HasContinuationToken returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/ReadRequest.md: -------------------------------------------------------------------------------- 1 | # ReadRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TupleKey** | Pointer to [**TupleKey**](TupleKey.md) | | [optional] 8 | **PageSize** | Pointer to **int32** | | [optional] 9 | **ContinuationToken** | Pointer to **string** | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewReadRequest 14 | 15 | `func NewReadRequest() *ReadRequest` 16 | 17 | NewReadRequest instantiates a new ReadRequest object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewReadRequestWithDefaults 23 | 24 | `func NewReadRequestWithDefaults() *ReadRequest` 25 | 26 | NewReadRequestWithDefaults instantiates a new ReadRequest object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetTupleKey 31 | 32 | `func (o *ReadRequest) GetTupleKey() TupleKey` 33 | 34 | GetTupleKey returns the TupleKey field if non-nil, zero value otherwise. 35 | 36 | ### GetTupleKeyOk 37 | 38 | `func (o *ReadRequest) GetTupleKeyOk() (*TupleKey, bool)` 39 | 40 | GetTupleKeyOk returns a tuple with the TupleKey field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetTupleKey 44 | 45 | `func (o *ReadRequest) SetTupleKey(v TupleKey)` 46 | 47 | SetTupleKey sets TupleKey field to given value. 48 | 49 | ### HasTupleKey 50 | 51 | `func (o *ReadRequest) HasTupleKey() bool` 52 | 53 | HasTupleKey returns a boolean if a field has been set. 54 | 55 | ### GetPageSize 56 | 57 | `func (o *ReadRequest) GetPageSize() int32` 58 | 59 | GetPageSize returns the PageSize field if non-nil, zero value otherwise. 60 | 61 | ### GetPageSizeOk 62 | 63 | `func (o *ReadRequest) GetPageSizeOk() (*int32, bool)` 64 | 65 | GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetPageSize 69 | 70 | `func (o *ReadRequest) SetPageSize(v int32)` 71 | 72 | SetPageSize sets PageSize field to given value. 73 | 74 | ### HasPageSize 75 | 76 | `func (o *ReadRequest) HasPageSize() bool` 77 | 78 | HasPageSize returns a boolean if a field has been set. 79 | 80 | ### GetContinuationToken 81 | 82 | `func (o *ReadRequest) GetContinuationToken() string` 83 | 84 | GetContinuationToken returns the ContinuationToken field if non-nil, zero value otherwise. 85 | 86 | ### GetContinuationTokenOk 87 | 88 | `func (o *ReadRequest) GetContinuationTokenOk() (*string, bool)` 89 | 90 | GetContinuationTokenOk returns a tuple with the ContinuationToken field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetContinuationToken 94 | 95 | `func (o *ReadRequest) SetContinuationToken(v string)` 96 | 97 | SetContinuationToken sets ContinuationToken field to given value. 98 | 99 | ### HasContinuationToken 100 | 101 | `func (o *ReadRequest) HasContinuationToken() bool` 102 | 103 | HasContinuationToken returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/ReadResponse.md: -------------------------------------------------------------------------------- 1 | # ReadResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Tuples** | Pointer to [**[]Tuple**](Tuple.md) | | [optional] 8 | **ContinuationToken** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewReadResponse 13 | 14 | `func NewReadResponse() *ReadResponse` 15 | 16 | NewReadResponse instantiates a new ReadResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewReadResponseWithDefaults 22 | 23 | `func NewReadResponseWithDefaults() *ReadResponse` 24 | 25 | NewReadResponseWithDefaults instantiates a new ReadResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetTuples 30 | 31 | `func (o *ReadResponse) GetTuples() []Tuple` 32 | 33 | GetTuples returns the Tuples field if non-nil, zero value otherwise. 34 | 35 | ### GetTuplesOk 36 | 37 | `func (o *ReadResponse) GetTuplesOk() (*[]Tuple, bool)` 38 | 39 | GetTuplesOk returns a tuple with the Tuples field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetTuples 43 | 44 | `func (o *ReadResponse) SetTuples(v []Tuple)` 45 | 46 | SetTuples sets Tuples field to given value. 47 | 48 | ### HasTuples 49 | 50 | `func (o *ReadResponse) HasTuples() bool` 51 | 52 | HasTuples returns a boolean if a field has been set. 53 | 54 | ### GetContinuationToken 55 | 56 | `func (o *ReadResponse) GetContinuationToken() string` 57 | 58 | GetContinuationToken returns the ContinuationToken field if non-nil, zero value otherwise. 59 | 60 | ### GetContinuationTokenOk 61 | 62 | `func (o *ReadResponse) GetContinuationTokenOk() (*string, bool)` 63 | 64 | GetContinuationTokenOk returns a tuple with the ContinuationToken field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetContinuationToken 68 | 69 | `func (o *ReadResponse) SetContinuationToken(v string)` 70 | 71 | SetContinuationToken sets ContinuationToken field to given value. 72 | 73 | ### HasContinuationToken 74 | 75 | `func (o *ReadResponse) HasContinuationToken() bool` 76 | 77 | HasContinuationToken returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/RelationMetadata.md: -------------------------------------------------------------------------------- 1 | # RelationMetadata 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **DirectlyRelatedUserTypes** | Pointer to [**[]RelationReference**](RelationReference.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewRelationMetadata 12 | 13 | `func NewRelationMetadata() *RelationMetadata` 14 | 15 | NewRelationMetadata instantiates a new RelationMetadata object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewRelationMetadataWithDefaults 21 | 22 | `func NewRelationMetadataWithDefaults() *RelationMetadata` 23 | 24 | NewRelationMetadataWithDefaults instantiates a new RelationMetadata object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetDirectlyRelatedUserTypes 29 | 30 | `func (o *RelationMetadata) GetDirectlyRelatedUserTypes() []RelationReference` 31 | 32 | GetDirectlyRelatedUserTypes returns the DirectlyRelatedUserTypes field if non-nil, zero value otherwise. 33 | 34 | ### GetDirectlyRelatedUserTypesOk 35 | 36 | `func (o *RelationMetadata) GetDirectlyRelatedUserTypesOk() (*[]RelationReference, bool)` 37 | 38 | GetDirectlyRelatedUserTypesOk returns a tuple with the DirectlyRelatedUserTypes field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetDirectlyRelatedUserTypes 42 | 43 | `func (o *RelationMetadata) SetDirectlyRelatedUserTypes(v []RelationReference)` 44 | 45 | SetDirectlyRelatedUserTypes sets DirectlyRelatedUserTypes field to given value. 46 | 47 | ### HasDirectlyRelatedUserTypes 48 | 49 | `func (o *RelationMetadata) HasDirectlyRelatedUserTypes() bool` 50 | 51 | HasDirectlyRelatedUserTypes returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/RelationReference.md: -------------------------------------------------------------------------------- 1 | # RelationReference 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Type** | **string** | | 8 | **Relation** | Pointer to **string** | | [optional] 9 | **Wildcard** | Pointer to **map[string]interface{}** | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewRelationReference 14 | 15 | `func NewRelationReference(type_ string, ) *RelationReference` 16 | 17 | NewRelationReference instantiates a new RelationReference object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewRelationReferenceWithDefaults 23 | 24 | `func NewRelationReferenceWithDefaults() *RelationReference` 25 | 26 | NewRelationReferenceWithDefaults instantiates a new RelationReference object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetType 31 | 32 | `func (o *RelationReference) GetType() string` 33 | 34 | GetType returns the Type field if non-nil, zero value otherwise. 35 | 36 | ### GetTypeOk 37 | 38 | `func (o *RelationReference) GetTypeOk() (*string, bool)` 39 | 40 | GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetType 44 | 45 | `func (o *RelationReference) SetType(v string)` 46 | 47 | SetType sets Type field to given value. 48 | 49 | 50 | ### GetRelation 51 | 52 | `func (o *RelationReference) GetRelation() string` 53 | 54 | GetRelation returns the Relation field if non-nil, zero value otherwise. 55 | 56 | ### GetRelationOk 57 | 58 | `func (o *RelationReference) GetRelationOk() (*string, bool)` 59 | 60 | GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise 61 | and a boolean to check if the value has been set. 62 | 63 | ### SetRelation 64 | 65 | `func (o *RelationReference) SetRelation(v string)` 66 | 67 | SetRelation sets Relation field to given value. 68 | 69 | ### HasRelation 70 | 71 | `func (o *RelationReference) HasRelation() bool` 72 | 73 | HasRelation returns a boolean if a field has been set. 74 | 75 | ### GetWildcard 76 | 77 | `func (o *RelationReference) GetWildcard() map[string]interface{}` 78 | 79 | GetWildcard returns the Wildcard field if non-nil, zero value otherwise. 80 | 81 | ### GetWildcardOk 82 | 83 | `func (o *RelationReference) GetWildcardOk() (*map[string]interface{}, bool)` 84 | 85 | GetWildcardOk returns a tuple with the Wildcard field if it's non-nil, zero value otherwise 86 | and a boolean to check if the value has been set. 87 | 88 | ### SetWildcard 89 | 90 | `func (o *RelationReference) SetWildcard(v map[string]interface{})` 91 | 92 | SetWildcard sets Wildcard field to given value. 93 | 94 | ### HasWildcard 95 | 96 | `func (o *RelationReference) HasWildcard() bool` 97 | 98 | HasWildcard returns a boolean if a field has been set. 99 | 100 | 101 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/ResourceExhaustedErrorCode.md: -------------------------------------------------------------------------------- 1 | # ResourceExhaustedErrorCode 2 | 3 | ## Enum 4 | 5 | 6 | * `NO_RESOURCE_EXHAUSTED_ERROR` (value: `"no_resource_exhausted_error"`) 7 | 8 | * `RATE_LIMIT_EXCEEDED` (value: `"rate_limit_exceeded"`) 9 | 10 | * `AUTH_RATE_LIMIT_EXCEEDED` (value: `"auth_rate_limit_exceeded"`) 11 | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ResourceExhaustedErrorMessageResponse.md: -------------------------------------------------------------------------------- 1 | # ResourceExhaustedErrorMessageResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Code** | Pointer to [**ResourceExhaustedErrorCode**](ResourceExhaustedErrorCode.md) | | [optional] [default to NO_RESOURCE_EXHAUSTED_ERROR] 8 | **Message** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewResourceExhaustedErrorMessageResponse 13 | 14 | `func NewResourceExhaustedErrorMessageResponse() *ResourceExhaustedErrorMessageResponse` 15 | 16 | NewResourceExhaustedErrorMessageResponse instantiates a new ResourceExhaustedErrorMessageResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewResourceExhaustedErrorMessageResponseWithDefaults 22 | 23 | `func NewResourceExhaustedErrorMessageResponseWithDefaults() *ResourceExhaustedErrorMessageResponse` 24 | 25 | NewResourceExhaustedErrorMessageResponseWithDefaults instantiates a new ResourceExhaustedErrorMessageResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetCode 30 | 31 | `func (o *ResourceExhaustedErrorMessageResponse) GetCode() ResourceExhaustedErrorCode` 32 | 33 | GetCode returns the Code field if non-nil, zero value otherwise. 34 | 35 | ### GetCodeOk 36 | 37 | `func (o *ResourceExhaustedErrorMessageResponse) GetCodeOk() (*ResourceExhaustedErrorCode, bool)` 38 | 39 | GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetCode 43 | 44 | `func (o *ResourceExhaustedErrorMessageResponse) SetCode(v ResourceExhaustedErrorCode)` 45 | 46 | SetCode sets Code field to given value. 47 | 48 | ### HasCode 49 | 50 | `func (o *ResourceExhaustedErrorMessageResponse) HasCode() bool` 51 | 52 | HasCode returns a boolean if a field has been set. 53 | 54 | ### GetMessage 55 | 56 | `func (o *ResourceExhaustedErrorMessageResponse) GetMessage() string` 57 | 58 | GetMessage returns the Message field if non-nil, zero value otherwise. 59 | 60 | ### GetMessageOk 61 | 62 | `func (o *ResourceExhaustedErrorMessageResponse) GetMessageOk() (*string, bool)` 63 | 64 | GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetMessage 68 | 69 | `func (o *ResourceExhaustedErrorMessageResponse) SetMessage(v string)` 70 | 71 | SetMessage sets Message field to given value. 72 | 73 | ### HasMessage 74 | 75 | `func (o *ResourceExhaustedErrorMessageResponse) HasMessage() bool` 76 | 77 | HasMessage returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/Status.md: -------------------------------------------------------------------------------- 1 | # Status 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Code** | Pointer to **int32** | | [optional] 8 | **Message** | Pointer to **string** | | [optional] 9 | **Details** | Pointer to [**[]Any**](Any.md) | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewStatus 14 | 15 | `func NewStatus() *Status` 16 | 17 | NewStatus instantiates a new Status object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewStatusWithDefaults 23 | 24 | `func NewStatusWithDefaults() *Status` 25 | 26 | NewStatusWithDefaults instantiates a new Status object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetCode 31 | 32 | `func (o *Status) GetCode() int32` 33 | 34 | GetCode returns the Code field if non-nil, zero value otherwise. 35 | 36 | ### GetCodeOk 37 | 38 | `func (o *Status) GetCodeOk() (*int32, bool)` 39 | 40 | GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetCode 44 | 45 | `func (o *Status) SetCode(v int32)` 46 | 47 | SetCode sets Code field to given value. 48 | 49 | ### HasCode 50 | 51 | `func (o *Status) HasCode() bool` 52 | 53 | HasCode returns a boolean if a field has been set. 54 | 55 | ### GetMessage 56 | 57 | `func (o *Status) GetMessage() string` 58 | 59 | GetMessage returns the Message field if non-nil, zero value otherwise. 60 | 61 | ### GetMessageOk 62 | 63 | `func (o *Status) GetMessageOk() (*string, bool)` 64 | 65 | GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetMessage 69 | 70 | `func (o *Status) SetMessage(v string)` 71 | 72 | SetMessage sets Message field to given value. 73 | 74 | ### HasMessage 75 | 76 | `func (o *Status) HasMessage() bool` 77 | 78 | HasMessage returns a boolean if a field has been set. 79 | 80 | ### GetDetails 81 | 82 | `func (o *Status) GetDetails() []Any` 83 | 84 | GetDetails returns the Details field if non-nil, zero value otherwise. 85 | 86 | ### GetDetailsOk 87 | 88 | `func (o *Status) GetDetailsOk() (*[]Any, bool)` 89 | 90 | GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetDetails 94 | 95 | `func (o *Status) SetDetails(v []Any)` 96 | 97 | SetDetails sets Details field to given value. 98 | 99 | ### HasDetails 100 | 101 | `func (o *Status) HasDetails() bool` 102 | 103 | HasDetails returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/Tuple.md: -------------------------------------------------------------------------------- 1 | # Tuple 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Key** | Pointer to [**TupleKey**](TupleKey.md) | | [optional] 8 | **Timestamp** | Pointer to **time.Time** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewTuple 13 | 14 | `func NewTuple() *Tuple` 15 | 16 | NewTuple instantiates a new Tuple object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewTupleWithDefaults 22 | 23 | `func NewTupleWithDefaults() *Tuple` 24 | 25 | NewTupleWithDefaults instantiates a new Tuple object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetKey 30 | 31 | `func (o *Tuple) GetKey() TupleKey` 32 | 33 | GetKey returns the Key field if non-nil, zero value otherwise. 34 | 35 | ### GetKeyOk 36 | 37 | `func (o *Tuple) GetKeyOk() (*TupleKey, bool)` 38 | 39 | GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetKey 43 | 44 | `func (o *Tuple) SetKey(v TupleKey)` 45 | 46 | SetKey sets Key field to given value. 47 | 48 | ### HasKey 49 | 50 | `func (o *Tuple) HasKey() bool` 51 | 52 | HasKey returns a boolean if a field has been set. 53 | 54 | ### GetTimestamp 55 | 56 | `func (o *Tuple) GetTimestamp() time.Time` 57 | 58 | GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. 59 | 60 | ### GetTimestampOk 61 | 62 | `func (o *Tuple) GetTimestampOk() (*time.Time, bool)` 63 | 64 | GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetTimestamp 68 | 69 | `func (o *Tuple) SetTimestamp(v time.Time)` 70 | 71 | SetTimestamp sets Timestamp field to given value. 72 | 73 | ### HasTimestamp 74 | 75 | `func (o *Tuple) HasTimestamp() bool` 76 | 77 | HasTimestamp returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/TupleChange.md: -------------------------------------------------------------------------------- 1 | # TupleChange 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TupleKey** | Pointer to [**TupleKey**](TupleKey.md) | | [optional] 8 | **Operation** | Pointer to [**TupleOperation**](TupleOperation.md) | | [optional] [default to WRITE] 9 | **Timestamp** | Pointer to **time.Time** | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewTupleChange 14 | 15 | `func NewTupleChange() *TupleChange` 16 | 17 | NewTupleChange instantiates a new TupleChange object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewTupleChangeWithDefaults 23 | 24 | `func NewTupleChangeWithDefaults() *TupleChange` 25 | 26 | NewTupleChangeWithDefaults instantiates a new TupleChange object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetTupleKey 31 | 32 | `func (o *TupleChange) GetTupleKey() TupleKey` 33 | 34 | GetTupleKey returns the TupleKey field if non-nil, zero value otherwise. 35 | 36 | ### GetTupleKeyOk 37 | 38 | `func (o *TupleChange) GetTupleKeyOk() (*TupleKey, bool)` 39 | 40 | GetTupleKeyOk returns a tuple with the TupleKey field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetTupleKey 44 | 45 | `func (o *TupleChange) SetTupleKey(v TupleKey)` 46 | 47 | SetTupleKey sets TupleKey field to given value. 48 | 49 | ### HasTupleKey 50 | 51 | `func (o *TupleChange) HasTupleKey() bool` 52 | 53 | HasTupleKey returns a boolean if a field has been set. 54 | 55 | ### GetOperation 56 | 57 | `func (o *TupleChange) GetOperation() TupleOperation` 58 | 59 | GetOperation returns the Operation field if non-nil, zero value otherwise. 60 | 61 | ### GetOperationOk 62 | 63 | `func (o *TupleChange) GetOperationOk() (*TupleOperation, bool)` 64 | 65 | GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetOperation 69 | 70 | `func (o *TupleChange) SetOperation(v TupleOperation)` 71 | 72 | SetOperation sets Operation field to given value. 73 | 74 | ### HasOperation 75 | 76 | `func (o *TupleChange) HasOperation() bool` 77 | 78 | HasOperation returns a boolean if a field has been set. 79 | 80 | ### GetTimestamp 81 | 82 | `func (o *TupleChange) GetTimestamp() time.Time` 83 | 84 | GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. 85 | 86 | ### GetTimestampOk 87 | 88 | `func (o *TupleChange) GetTimestampOk() (*time.Time, bool)` 89 | 90 | GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetTimestamp 94 | 95 | `func (o *TupleChange) SetTimestamp(v time.Time)` 96 | 97 | SetTimestamp sets Timestamp field to given value. 98 | 99 | ### HasTimestamp 100 | 101 | `func (o *TupleChange) HasTimestamp() bool` 102 | 103 | HasTimestamp returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/TupleKey.md: -------------------------------------------------------------------------------- 1 | # TupleKey 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Object** | Pointer to **string** | | [optional] 8 | **Relation** | Pointer to **string** | | [optional] 9 | **User** | Pointer to **string** | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewTupleKey 14 | 15 | `func NewTupleKey() *TupleKey` 16 | 17 | NewTupleKey instantiates a new TupleKey object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewTupleKeyWithDefaults 23 | 24 | `func NewTupleKeyWithDefaults() *TupleKey` 25 | 26 | NewTupleKeyWithDefaults instantiates a new TupleKey object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetObject 31 | 32 | `func (o *TupleKey) GetObject() string` 33 | 34 | GetObject returns the Object field if non-nil, zero value otherwise. 35 | 36 | ### GetObjectOk 37 | 38 | `func (o *TupleKey) GetObjectOk() (*string, bool)` 39 | 40 | GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetObject 44 | 45 | `func (o *TupleKey) SetObject(v string)` 46 | 47 | SetObject sets Object field to given value. 48 | 49 | ### HasObject 50 | 51 | `func (o *TupleKey) HasObject() bool` 52 | 53 | HasObject returns a boolean if a field has been set. 54 | 55 | ### GetRelation 56 | 57 | `func (o *TupleKey) GetRelation() string` 58 | 59 | GetRelation returns the Relation field if non-nil, zero value otherwise. 60 | 61 | ### GetRelationOk 62 | 63 | `func (o *TupleKey) GetRelationOk() (*string, bool)` 64 | 65 | GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetRelation 69 | 70 | `func (o *TupleKey) SetRelation(v string)` 71 | 72 | SetRelation sets Relation field to given value. 73 | 74 | ### HasRelation 75 | 76 | `func (o *TupleKey) HasRelation() bool` 77 | 78 | HasRelation returns a boolean if a field has been set. 79 | 80 | ### GetUser 81 | 82 | `func (o *TupleKey) GetUser() string` 83 | 84 | GetUser returns the User field if non-nil, zero value otherwise. 85 | 86 | ### GetUserOk 87 | 88 | `func (o *TupleKey) GetUserOk() (*string, bool)` 89 | 90 | GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetUser 94 | 95 | `func (o *TupleKey) SetUser(v string)` 96 | 97 | SetUser sets User field to given value. 98 | 99 | ### HasUser 100 | 101 | `func (o *TupleKey) HasUser() bool` 102 | 103 | HasUser returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/TupleKeys.md: -------------------------------------------------------------------------------- 1 | # TupleKeys 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TupleKeys** | [**[]TupleKey**](TupleKey.md) | | 8 | 9 | ## Methods 10 | 11 | ### NewTupleKeys 12 | 13 | `func NewTupleKeys(tupleKeys []TupleKey, ) *TupleKeys` 14 | 15 | NewTupleKeys instantiates a new TupleKeys object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewTupleKeysWithDefaults 21 | 22 | `func NewTupleKeysWithDefaults() *TupleKeys` 23 | 24 | NewTupleKeysWithDefaults instantiates a new TupleKeys object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetTupleKeys 29 | 30 | `func (o *TupleKeys) GetTupleKeys() []TupleKey` 31 | 32 | GetTupleKeys returns the TupleKeys field if non-nil, zero value otherwise. 33 | 34 | ### GetTupleKeysOk 35 | 36 | `func (o *TupleKeys) GetTupleKeysOk() (*[]TupleKey, bool)` 37 | 38 | GetTupleKeysOk returns a tuple with the TupleKeys field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetTupleKeys 42 | 43 | `func (o *TupleKeys) SetTupleKeys(v []TupleKey)` 44 | 45 | SetTupleKeys sets TupleKeys field to given value. 46 | 47 | 48 | 49 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 50 | 51 | 52 | -------------------------------------------------------------------------------- /docs/TupleOperation.md: -------------------------------------------------------------------------------- 1 | # TupleOperation 2 | 3 | ## Enum 4 | 5 | 6 | * `WRITE` (value: `"TUPLE_OPERATION_WRITE"`) 7 | 8 | * `DELETE` (value: `"TUPLE_OPERATION_DELETE"`) 9 | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/TupleToUserset.md: -------------------------------------------------------------------------------- 1 | # TupleToUserset 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Tupleset** | Pointer to [**ObjectRelation**](ObjectRelation.md) | | [optional] 8 | **ComputedUserset** | Pointer to [**ObjectRelation**](ObjectRelation.md) | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewTupleToUserset 13 | 14 | `func NewTupleToUserset() *TupleToUserset` 15 | 16 | NewTupleToUserset instantiates a new TupleToUserset object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewTupleToUsersetWithDefaults 22 | 23 | `func NewTupleToUsersetWithDefaults() *TupleToUserset` 24 | 25 | NewTupleToUsersetWithDefaults instantiates a new TupleToUserset object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetTupleset 30 | 31 | `func (o *TupleToUserset) GetTupleset() ObjectRelation` 32 | 33 | GetTupleset returns the Tupleset field if non-nil, zero value otherwise. 34 | 35 | ### GetTuplesetOk 36 | 37 | `func (o *TupleToUserset) GetTuplesetOk() (*ObjectRelation, bool)` 38 | 39 | GetTuplesetOk returns a tuple with the Tupleset field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetTupleset 43 | 44 | `func (o *TupleToUserset) SetTupleset(v ObjectRelation)` 45 | 46 | SetTupleset sets Tupleset field to given value. 47 | 48 | ### HasTupleset 49 | 50 | `func (o *TupleToUserset) HasTupleset() bool` 51 | 52 | HasTupleset returns a boolean if a field has been set. 53 | 54 | ### GetComputedUserset 55 | 56 | `func (o *TupleToUserset) GetComputedUserset() ObjectRelation` 57 | 58 | GetComputedUserset returns the ComputedUserset field if non-nil, zero value otherwise. 59 | 60 | ### GetComputedUsersetOk 61 | 62 | `func (o *TupleToUserset) GetComputedUsersetOk() (*ObjectRelation, bool)` 63 | 64 | GetComputedUsersetOk returns a tuple with the ComputedUserset field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetComputedUserset 68 | 69 | `func (o *TupleToUserset) SetComputedUserset(v ObjectRelation)` 70 | 71 | SetComputedUserset sets ComputedUserset field to given value. 72 | 73 | ### HasComputedUserset 74 | 75 | `func (o *TupleToUserset) HasComputedUserset() bool` 76 | 77 | HasComputedUserset returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/TypeDefinition.md: -------------------------------------------------------------------------------- 1 | # TypeDefinition 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Type** | **string** | | 8 | **Relations** | Pointer to [**map[string]Userset**](Userset.md) | | [optional] 9 | **Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewTypeDefinition 14 | 15 | `func NewTypeDefinition(type_ string, ) *TypeDefinition` 16 | 17 | NewTypeDefinition instantiates a new TypeDefinition object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewTypeDefinitionWithDefaults 23 | 24 | `func NewTypeDefinitionWithDefaults() *TypeDefinition` 25 | 26 | NewTypeDefinitionWithDefaults instantiates a new TypeDefinition object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetType 31 | 32 | `func (o *TypeDefinition) GetType() string` 33 | 34 | GetType returns the Type field if non-nil, zero value otherwise. 35 | 36 | ### GetTypeOk 37 | 38 | `func (o *TypeDefinition) GetTypeOk() (*string, bool)` 39 | 40 | GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetType 44 | 45 | `func (o *TypeDefinition) SetType(v string)` 46 | 47 | SetType sets Type field to given value. 48 | 49 | 50 | ### GetRelations 51 | 52 | `func (o *TypeDefinition) GetRelations() map[string]Userset` 53 | 54 | GetRelations returns the Relations field if non-nil, zero value otherwise. 55 | 56 | ### GetRelationsOk 57 | 58 | `func (o *TypeDefinition) GetRelationsOk() (*map[string]Userset, bool)` 59 | 60 | GetRelationsOk returns a tuple with the Relations field if it's non-nil, zero value otherwise 61 | and a boolean to check if the value has been set. 62 | 63 | ### SetRelations 64 | 65 | `func (o *TypeDefinition) SetRelations(v map[string]Userset)` 66 | 67 | SetRelations sets Relations field to given value. 68 | 69 | ### HasRelations 70 | 71 | `func (o *TypeDefinition) HasRelations() bool` 72 | 73 | HasRelations returns a boolean if a field has been set. 74 | 75 | ### GetMetadata 76 | 77 | `func (o *TypeDefinition) GetMetadata() Metadata` 78 | 79 | GetMetadata returns the Metadata field if non-nil, zero value otherwise. 80 | 81 | ### GetMetadataOk 82 | 83 | `func (o *TypeDefinition) GetMetadataOk() (*Metadata, bool)` 84 | 85 | GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise 86 | and a boolean to check if the value has been set. 87 | 88 | ### SetMetadata 89 | 90 | `func (o *TypeDefinition) SetMetadata(v Metadata)` 91 | 92 | SetMetadata sets Metadata field to given value. 93 | 94 | ### HasMetadata 95 | 96 | `func (o *TypeDefinition) HasMetadata() bool` 97 | 98 | HasMetadata returns a boolean if a field has been set. 99 | 100 | 101 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/Users.md: -------------------------------------------------------------------------------- 1 | # Users 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Users** | Pointer to **[]string** | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewUsers 12 | 13 | `func NewUsers() *Users` 14 | 15 | NewUsers instantiates a new Users object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewUsersWithDefaults 21 | 22 | `func NewUsersWithDefaults() *Users` 23 | 24 | NewUsersWithDefaults instantiates a new Users object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetUsers 29 | 30 | `func (o *Users) GetUsers() []string` 31 | 32 | GetUsers returns the Users field if non-nil, zero value otherwise. 33 | 34 | ### GetUsersOk 35 | 36 | `func (o *Users) GetUsersOk() (*[]string, bool)` 37 | 38 | GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetUsers 42 | 43 | `func (o *Users) SetUsers(v []string)` 44 | 45 | SetUsers sets Users field to given value. 46 | 47 | ### HasUsers 48 | 49 | `func (o *Users) HasUsers() bool` 50 | 51 | HasUsers returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/UsersetTree.md: -------------------------------------------------------------------------------- 1 | # UsersetTree 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Root** | Pointer to [**Node**](Node.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewUsersetTree 12 | 13 | `func NewUsersetTree() *UsersetTree` 14 | 15 | NewUsersetTree instantiates a new UsersetTree object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewUsersetTreeWithDefaults 21 | 22 | `func NewUsersetTreeWithDefaults() *UsersetTree` 23 | 24 | NewUsersetTreeWithDefaults instantiates a new UsersetTree object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetRoot 29 | 30 | `func (o *UsersetTree) GetRoot() Node` 31 | 32 | GetRoot returns the Root field if non-nil, zero value otherwise. 33 | 34 | ### GetRootOk 35 | 36 | `func (o *UsersetTree) GetRootOk() (*Node, bool)` 37 | 38 | GetRootOk returns a tuple with the Root field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetRoot 42 | 43 | `func (o *UsersetTree) SetRoot(v Node)` 44 | 45 | SetRoot sets Root field to given value. 46 | 47 | ### HasRoot 48 | 49 | `func (o *UsersetTree) HasRoot() bool` 50 | 51 | HasRoot returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/UsersetTreeDifference.md: -------------------------------------------------------------------------------- 1 | # UsersetTreeDifference 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Base** | Pointer to [**Node**](Node.md) | | [optional] 8 | **Subtract** | Pointer to [**Node**](Node.md) | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewUsersetTreeDifference 13 | 14 | `func NewUsersetTreeDifference() *UsersetTreeDifference` 15 | 16 | NewUsersetTreeDifference instantiates a new UsersetTreeDifference object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewUsersetTreeDifferenceWithDefaults 22 | 23 | `func NewUsersetTreeDifferenceWithDefaults() *UsersetTreeDifference` 24 | 25 | NewUsersetTreeDifferenceWithDefaults instantiates a new UsersetTreeDifference object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetBase 30 | 31 | `func (o *UsersetTreeDifference) GetBase() Node` 32 | 33 | GetBase returns the Base field if non-nil, zero value otherwise. 34 | 35 | ### GetBaseOk 36 | 37 | `func (o *UsersetTreeDifference) GetBaseOk() (*Node, bool)` 38 | 39 | GetBaseOk returns a tuple with the Base field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetBase 43 | 44 | `func (o *UsersetTreeDifference) SetBase(v Node)` 45 | 46 | SetBase sets Base field to given value. 47 | 48 | ### HasBase 49 | 50 | `func (o *UsersetTreeDifference) HasBase() bool` 51 | 52 | HasBase returns a boolean if a field has been set. 53 | 54 | ### GetSubtract 55 | 56 | `func (o *UsersetTreeDifference) GetSubtract() Node` 57 | 58 | GetSubtract returns the Subtract field if non-nil, zero value otherwise. 59 | 60 | ### GetSubtractOk 61 | 62 | `func (o *UsersetTreeDifference) GetSubtractOk() (*Node, bool)` 63 | 64 | GetSubtractOk returns a tuple with the Subtract field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetSubtract 68 | 69 | `func (o *UsersetTreeDifference) SetSubtract(v Node)` 70 | 71 | SetSubtract sets Subtract field to given value. 72 | 73 | ### HasSubtract 74 | 75 | `func (o *UsersetTreeDifference) HasSubtract() bool` 76 | 77 | HasSubtract returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/UsersetTreeTupleToUserset.md: -------------------------------------------------------------------------------- 1 | # UsersetTreeTupleToUserset 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Tupleset** | Pointer to **string** | | [optional] 8 | **Computed** | Pointer to [**[]Computed**](Computed.md) | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewUsersetTreeTupleToUserset 13 | 14 | `func NewUsersetTreeTupleToUserset() *UsersetTreeTupleToUserset` 15 | 16 | NewUsersetTreeTupleToUserset instantiates a new UsersetTreeTupleToUserset object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewUsersetTreeTupleToUsersetWithDefaults 22 | 23 | `func NewUsersetTreeTupleToUsersetWithDefaults() *UsersetTreeTupleToUserset` 24 | 25 | NewUsersetTreeTupleToUsersetWithDefaults instantiates a new UsersetTreeTupleToUserset object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetTupleset 30 | 31 | `func (o *UsersetTreeTupleToUserset) GetTupleset() string` 32 | 33 | GetTupleset returns the Tupleset field if non-nil, zero value otherwise. 34 | 35 | ### GetTuplesetOk 36 | 37 | `func (o *UsersetTreeTupleToUserset) GetTuplesetOk() (*string, bool)` 38 | 39 | GetTuplesetOk returns a tuple with the Tupleset field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetTupleset 43 | 44 | `func (o *UsersetTreeTupleToUserset) SetTupleset(v string)` 45 | 46 | SetTupleset sets Tupleset field to given value. 47 | 48 | ### HasTupleset 49 | 50 | `func (o *UsersetTreeTupleToUserset) HasTupleset() bool` 51 | 52 | HasTupleset returns a boolean if a field has been set. 53 | 54 | ### GetComputed 55 | 56 | `func (o *UsersetTreeTupleToUserset) GetComputed() []Computed` 57 | 58 | GetComputed returns the Computed field if non-nil, zero value otherwise. 59 | 60 | ### GetComputedOk 61 | 62 | `func (o *UsersetTreeTupleToUserset) GetComputedOk() (*[]Computed, bool)` 63 | 64 | GetComputedOk returns a tuple with the Computed field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetComputed 68 | 69 | `func (o *UsersetTreeTupleToUserset) SetComputed(v []Computed)` 70 | 71 | SetComputed sets Computed field to given value. 72 | 73 | ### HasComputed 74 | 75 | `func (o *UsersetTreeTupleToUserset) HasComputed() bool` 76 | 77 | HasComputed returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/Usersets.md: -------------------------------------------------------------------------------- 1 | # Usersets 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Child** | Pointer to [**[]Userset**](Userset.md) | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewUsersets 12 | 13 | `func NewUsersets() *Usersets` 14 | 15 | NewUsersets instantiates a new Usersets object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewUsersetsWithDefaults 21 | 22 | `func NewUsersetsWithDefaults() *Usersets` 23 | 24 | NewUsersetsWithDefaults instantiates a new Usersets object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetChild 29 | 30 | `func (o *Usersets) GetChild() []Userset` 31 | 32 | GetChild returns the Child field if non-nil, zero value otherwise. 33 | 34 | ### GetChildOk 35 | 36 | `func (o *Usersets) GetChildOk() (*[]Userset, bool)` 37 | 38 | GetChildOk returns a tuple with the Child field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetChild 42 | 43 | `func (o *Usersets) SetChild(v []Userset)` 44 | 45 | SetChild sets Child field to given value. 46 | 47 | ### HasChild 48 | 49 | `func (o *Usersets) HasChild() bool` 50 | 51 | HasChild returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/ValidationErrorMessageResponse.md: -------------------------------------------------------------------------------- 1 | # ValidationErrorMessageResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Code** | Pointer to [**ErrorCode**](ErrorCode.md) | | [optional] [default to NO_ERROR] 8 | **Message** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewValidationErrorMessageResponse 13 | 14 | `func NewValidationErrorMessageResponse() *ValidationErrorMessageResponse` 15 | 16 | NewValidationErrorMessageResponse instantiates a new ValidationErrorMessageResponse object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewValidationErrorMessageResponseWithDefaults 22 | 23 | `func NewValidationErrorMessageResponseWithDefaults() *ValidationErrorMessageResponse` 24 | 25 | NewValidationErrorMessageResponseWithDefaults instantiates a new ValidationErrorMessageResponse object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetCode 30 | 31 | `func (o *ValidationErrorMessageResponse) GetCode() ErrorCode` 32 | 33 | GetCode returns the Code field if non-nil, zero value otherwise. 34 | 35 | ### GetCodeOk 36 | 37 | `func (o *ValidationErrorMessageResponse) GetCodeOk() (*ErrorCode, bool)` 38 | 39 | GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetCode 43 | 44 | `func (o *ValidationErrorMessageResponse) SetCode(v ErrorCode)` 45 | 46 | SetCode sets Code field to given value. 47 | 48 | ### HasCode 49 | 50 | `func (o *ValidationErrorMessageResponse) HasCode() bool` 51 | 52 | HasCode returns a boolean if a field has been set. 53 | 54 | ### GetMessage 55 | 56 | `func (o *ValidationErrorMessageResponse) GetMessage() string` 57 | 58 | GetMessage returns the Message field if non-nil, zero value otherwise. 59 | 60 | ### GetMessageOk 61 | 62 | `func (o *ValidationErrorMessageResponse) GetMessageOk() (*string, bool)` 63 | 64 | GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise 65 | and a boolean to check if the value has been set. 66 | 67 | ### SetMessage 68 | 69 | `func (o *ValidationErrorMessageResponse) SetMessage(v string)` 70 | 71 | SetMessage sets Message field to given value. 72 | 73 | ### HasMessage 74 | 75 | `func (o *ValidationErrorMessageResponse) HasMessage() bool` 76 | 77 | HasMessage returns a boolean if a field has been set. 78 | 79 | 80 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/WriteAssertionsRequest.md: -------------------------------------------------------------------------------- 1 | # WriteAssertionsRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Assertions** | [**[]Assertion**](Assertion.md) | | 8 | 9 | ## Methods 10 | 11 | ### NewWriteAssertionsRequest 12 | 13 | `func NewWriteAssertionsRequest(assertions []Assertion, ) *WriteAssertionsRequest` 14 | 15 | NewWriteAssertionsRequest instantiates a new WriteAssertionsRequest object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewWriteAssertionsRequestWithDefaults 21 | 22 | `func NewWriteAssertionsRequestWithDefaults() *WriteAssertionsRequest` 23 | 24 | NewWriteAssertionsRequestWithDefaults instantiates a new WriteAssertionsRequest object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetAssertions 29 | 30 | `func (o *WriteAssertionsRequest) GetAssertions() []Assertion` 31 | 32 | GetAssertions returns the Assertions field if non-nil, zero value otherwise. 33 | 34 | ### GetAssertionsOk 35 | 36 | `func (o *WriteAssertionsRequest) GetAssertionsOk() (*[]Assertion, bool)` 37 | 38 | GetAssertionsOk returns a tuple with the Assertions field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetAssertions 42 | 43 | `func (o *WriteAssertionsRequest) SetAssertions(v []Assertion)` 44 | 45 | SetAssertions sets Assertions field to given value. 46 | 47 | 48 | 49 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 50 | 51 | 52 | -------------------------------------------------------------------------------- /docs/WriteAuthorizationModelRequest.md: -------------------------------------------------------------------------------- 1 | # WriteAuthorizationModelRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **TypeDefinitions** | [**[]TypeDefinition**](TypeDefinition.md) | | 8 | **SchemaVersion** | Pointer to **string** | | [optional] 9 | 10 | ## Methods 11 | 12 | ### NewWriteAuthorizationModelRequest 13 | 14 | `func NewWriteAuthorizationModelRequest(typeDefinitions []TypeDefinition, ) *WriteAuthorizationModelRequest` 15 | 16 | NewWriteAuthorizationModelRequest instantiates a new WriteAuthorizationModelRequest object 17 | This constructor will assign default values to properties that have it defined, 18 | and makes sure properties required by API are set, but the set of arguments 19 | will change when the set of required properties is changed 20 | 21 | ### NewWriteAuthorizationModelRequestWithDefaults 22 | 23 | `func NewWriteAuthorizationModelRequestWithDefaults() *WriteAuthorizationModelRequest` 24 | 25 | NewWriteAuthorizationModelRequestWithDefaults instantiates a new WriteAuthorizationModelRequest object 26 | This constructor will only assign default values to properties that have it defined, 27 | but it doesn't guarantee that properties required by API are set 28 | 29 | ### GetTypeDefinitions 30 | 31 | `func (o *WriteAuthorizationModelRequest) GetTypeDefinitions() []TypeDefinition` 32 | 33 | GetTypeDefinitions returns the TypeDefinitions field if non-nil, zero value otherwise. 34 | 35 | ### GetTypeDefinitionsOk 36 | 37 | `func (o *WriteAuthorizationModelRequest) GetTypeDefinitionsOk() (*[]TypeDefinition, bool)` 38 | 39 | GetTypeDefinitionsOk returns a tuple with the TypeDefinitions field if it's non-nil, zero value otherwise 40 | and a boolean to check if the value has been set. 41 | 42 | ### SetTypeDefinitions 43 | 44 | `func (o *WriteAuthorizationModelRequest) SetTypeDefinitions(v []TypeDefinition)` 45 | 46 | SetTypeDefinitions sets TypeDefinitions field to given value. 47 | 48 | 49 | ### GetSchemaVersion 50 | 51 | `func (o *WriteAuthorizationModelRequest) GetSchemaVersion() string` 52 | 53 | GetSchemaVersion returns the SchemaVersion field if non-nil, zero value otherwise. 54 | 55 | ### GetSchemaVersionOk 56 | 57 | `func (o *WriteAuthorizationModelRequest) GetSchemaVersionOk() (*string, bool)` 58 | 59 | GetSchemaVersionOk returns a tuple with the SchemaVersion field if it's non-nil, zero value otherwise 60 | and a boolean to check if the value has been set. 61 | 62 | ### SetSchemaVersion 63 | 64 | `func (o *WriteAuthorizationModelRequest) SetSchemaVersion(v string)` 65 | 66 | SetSchemaVersion sets SchemaVersion field to given value. 67 | 68 | ### HasSchemaVersion 69 | 70 | `func (o *WriteAuthorizationModelRequest) HasSchemaVersion() bool` 71 | 72 | HasSchemaVersion returns a boolean if a field has been set. 73 | 74 | 75 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 76 | 77 | 78 | -------------------------------------------------------------------------------- /docs/WriteAuthorizationModelResponse.md: -------------------------------------------------------------------------------- 1 | # WriteAuthorizationModelResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **AuthorizationModelId** | Pointer to **string** | | [optional] 8 | 9 | ## Methods 10 | 11 | ### NewWriteAuthorizationModelResponse 12 | 13 | `func NewWriteAuthorizationModelResponse() *WriteAuthorizationModelResponse` 14 | 15 | NewWriteAuthorizationModelResponse instantiates a new WriteAuthorizationModelResponse object 16 | This constructor will assign default values to properties that have it defined, 17 | and makes sure properties required by API are set, but the set of arguments 18 | will change when the set of required properties is changed 19 | 20 | ### NewWriteAuthorizationModelResponseWithDefaults 21 | 22 | `func NewWriteAuthorizationModelResponseWithDefaults() *WriteAuthorizationModelResponse` 23 | 24 | NewWriteAuthorizationModelResponseWithDefaults instantiates a new WriteAuthorizationModelResponse object 25 | This constructor will only assign default values to properties that have it defined, 26 | but it doesn't guarantee that properties required by API are set 27 | 28 | ### GetAuthorizationModelId 29 | 30 | `func (o *WriteAuthorizationModelResponse) GetAuthorizationModelId() string` 31 | 32 | GetAuthorizationModelId returns the AuthorizationModelId field if non-nil, zero value otherwise. 33 | 34 | ### GetAuthorizationModelIdOk 35 | 36 | `func (o *WriteAuthorizationModelResponse) GetAuthorizationModelIdOk() (*string, bool)` 37 | 38 | GetAuthorizationModelIdOk returns a tuple with the AuthorizationModelId field if it's non-nil, zero value otherwise 39 | and a boolean to check if the value has been set. 40 | 41 | ### SetAuthorizationModelId 42 | 43 | `func (o *WriteAuthorizationModelResponse) SetAuthorizationModelId(v string)` 44 | 45 | SetAuthorizationModelId sets AuthorizationModelId field to given value. 46 | 47 | ### HasAuthorizationModelId 48 | 49 | `func (o *WriteAuthorizationModelResponse) HasAuthorizationModelId() bool` 50 | 51 | HasAuthorizationModelId returns a boolean if a field has been set. 52 | 53 | 54 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 55 | 56 | 57 | -------------------------------------------------------------------------------- /docs/WriteRequest.md: -------------------------------------------------------------------------------- 1 | # WriteRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Writes** | Pointer to [**TupleKeys**](TupleKeys.md) | | [optional] 8 | **Deletes** | Pointer to [**TupleKeys**](TupleKeys.md) | | [optional] 9 | **AuthorizationModelId** | Pointer to **string** | | [optional] 10 | 11 | ## Methods 12 | 13 | ### NewWriteRequest 14 | 15 | `func NewWriteRequest() *WriteRequest` 16 | 17 | NewWriteRequest instantiates a new WriteRequest object 18 | This constructor will assign default values to properties that have it defined, 19 | and makes sure properties required by API are set, but the set of arguments 20 | will change when the set of required properties is changed 21 | 22 | ### NewWriteRequestWithDefaults 23 | 24 | `func NewWriteRequestWithDefaults() *WriteRequest` 25 | 26 | NewWriteRequestWithDefaults instantiates a new WriteRequest object 27 | This constructor will only assign default values to properties that have it defined, 28 | but it doesn't guarantee that properties required by API are set 29 | 30 | ### GetWrites 31 | 32 | `func (o *WriteRequest) GetWrites() TupleKeys` 33 | 34 | GetWrites returns the Writes field if non-nil, zero value otherwise. 35 | 36 | ### GetWritesOk 37 | 38 | `func (o *WriteRequest) GetWritesOk() (*TupleKeys, bool)` 39 | 40 | GetWritesOk returns a tuple with the Writes field if it's non-nil, zero value otherwise 41 | and a boolean to check if the value has been set. 42 | 43 | ### SetWrites 44 | 45 | `func (o *WriteRequest) SetWrites(v TupleKeys)` 46 | 47 | SetWrites sets Writes field to given value. 48 | 49 | ### HasWrites 50 | 51 | `func (o *WriteRequest) HasWrites() bool` 52 | 53 | HasWrites returns a boolean if a field has been set. 54 | 55 | ### GetDeletes 56 | 57 | `func (o *WriteRequest) GetDeletes() TupleKeys` 58 | 59 | GetDeletes returns the Deletes field if non-nil, zero value otherwise. 60 | 61 | ### GetDeletesOk 62 | 63 | `func (o *WriteRequest) GetDeletesOk() (*TupleKeys, bool)` 64 | 65 | GetDeletesOk returns a tuple with the Deletes field if it's non-nil, zero value otherwise 66 | and a boolean to check if the value has been set. 67 | 68 | ### SetDeletes 69 | 70 | `func (o *WriteRequest) SetDeletes(v TupleKeys)` 71 | 72 | SetDeletes sets Deletes field to given value. 73 | 74 | ### HasDeletes 75 | 76 | `func (o *WriteRequest) HasDeletes() bool` 77 | 78 | HasDeletes returns a boolean if a field has been set. 79 | 80 | ### GetAuthorizationModelId 81 | 82 | `func (o *WriteRequest) GetAuthorizationModelId() string` 83 | 84 | GetAuthorizationModelId returns the AuthorizationModelId field if non-nil, zero value otherwise. 85 | 86 | ### GetAuthorizationModelIdOk 87 | 88 | `func (o *WriteRequest) GetAuthorizationModelIdOk() (*string, bool)` 89 | 90 | GetAuthorizationModelIdOk returns a tuple with the AuthorizationModelId field if it's non-nil, zero value otherwise 91 | and a boolean to check if the value has been set. 92 | 93 | ### SetAuthorizationModelId 94 | 95 | `func (o *WriteRequest) SetAuthorizationModelId(v string)` 96 | 97 | SetAuthorizationModelId sets AuthorizationModelId field to given value. 98 | 99 | ### HasAuthorizationModelId 100 | 101 | `func (o *WriteRequest) HasAuthorizationModelId() bool` 102 | 103 | HasAuthorizationModelId returns a boolean if a field has been set. 104 | 105 | 106 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 107 | 108 | 109 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/auth0-lab/fga-go-sdk 2 | 3 | go 1.21 4 | 5 | require github.com/jarcoal/httpmock v1.2.0 6 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/jarcoal/httpmock v1.2.0 h1:gSvTxxFR/MEMfsGrvRbdfpRUMBStovlSRLw0Ep1bwwc= 4 | github.com/jarcoal/httpmock v1.2.0/go.mod h1:oCoTsnAz4+UoOUIf5lJOWV2QQIW5UoeUI6aM2YnWAZk= 5 | github.com/maxatome/go-testdeep v1.11.0 h1:Tgh5efyCYyJFGUYiT0qxBSIDeXw0F5zSoatlou685kk= 6 | github.com/maxatome/go-testdeep v1.11.0/go.mod h1:011SgQ6efzZYAen6fDn4BqQ+lUR72ysdyKe7Dyogw70= 7 | -------------------------------------------------------------------------------- /model_any.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Any struct for Any 20 | type Any struct { 21 | Type *string `json:"@type,omitempty"` 22 | } 23 | 24 | // NewAny instantiates a new Any object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewAny() *Any { 29 | this := Any{} 30 | return &this 31 | } 32 | 33 | // NewAnyWithDefaults instantiates a new Any object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewAnyWithDefaults() *Any { 37 | this := Any{} 38 | return &this 39 | } 40 | 41 | // GetType returns the Type field value if set, zero value otherwise. 42 | func (o *Any) GetType() string { 43 | if o == nil || o.Type == nil { 44 | var ret string 45 | return ret 46 | } 47 | return *o.Type 48 | } 49 | 50 | // GetTypeOk returns a tuple with the Type field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *Any) GetTypeOk() (*string, bool) { 53 | if o == nil || o.Type == nil { 54 | return nil, false 55 | } 56 | return o.Type, true 57 | } 58 | 59 | // HasType returns a boolean if a field has been set. 60 | func (o *Any) HasType() bool { 61 | if o != nil && o.Type != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetType gets a reference to the given string and assigns it to the Type field. 69 | func (o *Any) SetType(v string) { 70 | o.Type = &v 71 | } 72 | 73 | func (o Any) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Type != nil { 76 | toSerialize["@type"] = o.Type 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableAny struct { 82 | value *Any 83 | isSet bool 84 | } 85 | 86 | func (v NullableAny) Get() *Any { 87 | return v.value 88 | } 89 | 90 | func (v *NullableAny) Set(val *Any) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableAny) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableAny) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableAny(val *Any) *NullableAny { 105 | return &NullableAny{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableAny) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableAny) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_assertion.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Assertion struct for Assertion 20 | type Assertion struct { 21 | TupleKey TupleKey `json:"tuple_key"` 22 | Expectation bool `json:"expectation"` 23 | } 24 | 25 | // NewAssertion instantiates a new Assertion object 26 | // This constructor will assign default values to properties that have it defined, 27 | // and makes sure properties required by API are set, but the set of arguments 28 | // will change when the set of required properties is changed 29 | func NewAssertion(tupleKey TupleKey, expectation bool) *Assertion { 30 | this := Assertion{} 31 | this.TupleKey = tupleKey 32 | this.Expectation = expectation 33 | return &this 34 | } 35 | 36 | // NewAssertionWithDefaults instantiates a new Assertion object 37 | // This constructor will only assign default values to properties that have it defined, 38 | // but it doesn't guarantee that properties required by API are set 39 | func NewAssertionWithDefaults() *Assertion { 40 | this := Assertion{} 41 | return &this 42 | } 43 | 44 | // GetTupleKey returns the TupleKey field value 45 | func (o *Assertion) GetTupleKey() TupleKey { 46 | if o == nil { 47 | var ret TupleKey 48 | return ret 49 | } 50 | 51 | return o.TupleKey 52 | } 53 | 54 | // GetTupleKeyOk returns a tuple with the TupleKey field value 55 | // and a boolean to check if the value has been set. 56 | func (o *Assertion) GetTupleKeyOk() (*TupleKey, bool) { 57 | if o == nil { 58 | return nil, false 59 | } 60 | return &o.TupleKey, true 61 | } 62 | 63 | // SetTupleKey sets field value 64 | func (o *Assertion) SetTupleKey(v TupleKey) { 65 | o.TupleKey = v 66 | } 67 | 68 | // GetExpectation returns the Expectation field value 69 | func (o *Assertion) GetExpectation() bool { 70 | if o == nil { 71 | var ret bool 72 | return ret 73 | } 74 | 75 | return o.Expectation 76 | } 77 | 78 | // GetExpectationOk returns a tuple with the Expectation field value 79 | // and a boolean to check if the value has been set. 80 | func (o *Assertion) GetExpectationOk() (*bool, bool) { 81 | if o == nil { 82 | return nil, false 83 | } 84 | return &o.Expectation, true 85 | } 86 | 87 | // SetExpectation sets field value 88 | func (o *Assertion) SetExpectation(v bool) { 89 | o.Expectation = v 90 | } 91 | 92 | func (o Assertion) MarshalJSON() ([]byte, error) { 93 | toSerialize := map[string]interface{}{} 94 | if true { 95 | toSerialize["tuple_key"] = o.TupleKey 96 | } 97 | if true { 98 | toSerialize["expectation"] = o.Expectation 99 | } 100 | return json.Marshal(toSerialize) 101 | } 102 | 103 | type NullableAssertion struct { 104 | value *Assertion 105 | isSet bool 106 | } 107 | 108 | func (v NullableAssertion) Get() *Assertion { 109 | return v.value 110 | } 111 | 112 | func (v *NullableAssertion) Set(val *Assertion) { 113 | v.value = val 114 | v.isSet = true 115 | } 116 | 117 | func (v NullableAssertion) IsSet() bool { 118 | return v.isSet 119 | } 120 | 121 | func (v *NullableAssertion) Unset() { 122 | v.value = nil 123 | v.isSet = false 124 | } 125 | 126 | func NewNullableAssertion(val *Assertion) *NullableAssertion { 127 | return &NullableAssertion{value: val, isSet: true} 128 | } 129 | 130 | func (v NullableAssertion) MarshalJSON() ([]byte, error) { 131 | return json.Marshal(v.value) 132 | } 133 | 134 | func (v *NullableAssertion) UnmarshalJSON(src []byte) error { 135 | v.isSet = true 136 | return json.Unmarshal(src, &v.value) 137 | } 138 | -------------------------------------------------------------------------------- /model_computed.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Computed struct for Computed 20 | type Computed struct { 21 | Userset *string `json:"userset,omitempty"` 22 | } 23 | 24 | // NewComputed instantiates a new Computed object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewComputed() *Computed { 29 | this := Computed{} 30 | return &this 31 | } 32 | 33 | // NewComputedWithDefaults instantiates a new Computed object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewComputedWithDefaults() *Computed { 37 | this := Computed{} 38 | return &this 39 | } 40 | 41 | // GetUserset returns the Userset field value if set, zero value otherwise. 42 | func (o *Computed) GetUserset() string { 43 | if o == nil || o.Userset == nil { 44 | var ret string 45 | return ret 46 | } 47 | return *o.Userset 48 | } 49 | 50 | // GetUsersetOk returns a tuple with the Userset field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *Computed) GetUsersetOk() (*string, bool) { 53 | if o == nil || o.Userset == nil { 54 | return nil, false 55 | } 56 | return o.Userset, true 57 | } 58 | 59 | // HasUserset returns a boolean if a field has been set. 60 | func (o *Computed) HasUserset() bool { 61 | if o != nil && o.Userset != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetUserset gets a reference to the given string and assigns it to the Userset field. 69 | func (o *Computed) SetUserset(v string) { 70 | o.Userset = &v 71 | } 72 | 73 | func (o Computed) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Userset != nil { 76 | toSerialize["userset"] = o.Userset 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableComputed struct { 82 | value *Computed 83 | isSet bool 84 | } 85 | 86 | func (v NullableComputed) Get() *Computed { 87 | return v.value 88 | } 89 | 90 | func (v *NullableComputed) Set(val *Computed) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableComputed) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableComputed) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableComputed(val *Computed) *NullableComputed { 105 | return &NullableComputed{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableComputed) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableComputed) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_contextual_tuple_keys.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // ContextualTupleKeys struct for ContextualTupleKeys 20 | type ContextualTupleKeys struct { 21 | TupleKeys []TupleKey `json:"tuple_keys"` 22 | } 23 | 24 | // NewContextualTupleKeys instantiates a new ContextualTupleKeys object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewContextualTupleKeys(tupleKeys []TupleKey) *ContextualTupleKeys { 29 | this := ContextualTupleKeys{} 30 | this.TupleKeys = tupleKeys 31 | return &this 32 | } 33 | 34 | // NewContextualTupleKeysWithDefaults instantiates a new ContextualTupleKeys object 35 | // This constructor will only assign default values to properties that have it defined, 36 | // but it doesn't guarantee that properties required by API are set 37 | func NewContextualTupleKeysWithDefaults() *ContextualTupleKeys { 38 | this := ContextualTupleKeys{} 39 | return &this 40 | } 41 | 42 | // GetTupleKeys returns the TupleKeys field value 43 | func (o *ContextualTupleKeys) GetTupleKeys() []TupleKey { 44 | if o == nil { 45 | var ret []TupleKey 46 | return ret 47 | } 48 | 49 | return o.TupleKeys 50 | } 51 | 52 | // GetTupleKeysOk returns a tuple with the TupleKeys field value 53 | // and a boolean to check if the value has been set. 54 | func (o *ContextualTupleKeys) GetTupleKeysOk() (*[]TupleKey, bool) { 55 | if o == nil { 56 | return nil, false 57 | } 58 | return &o.TupleKeys, true 59 | } 60 | 61 | // SetTupleKeys sets field value 62 | func (o *ContextualTupleKeys) SetTupleKeys(v []TupleKey) { 63 | o.TupleKeys = v 64 | } 65 | 66 | func (o ContextualTupleKeys) MarshalJSON() ([]byte, error) { 67 | toSerialize := map[string]interface{}{} 68 | if true { 69 | toSerialize["tuple_keys"] = o.TupleKeys 70 | } 71 | return json.Marshal(toSerialize) 72 | } 73 | 74 | type NullableContextualTupleKeys struct { 75 | value *ContextualTupleKeys 76 | isSet bool 77 | } 78 | 79 | func (v NullableContextualTupleKeys) Get() *ContextualTupleKeys { 80 | return v.value 81 | } 82 | 83 | func (v *NullableContextualTupleKeys) Set(val *ContextualTupleKeys) { 84 | v.value = val 85 | v.isSet = true 86 | } 87 | 88 | func (v NullableContextualTupleKeys) IsSet() bool { 89 | return v.isSet 90 | } 91 | 92 | func (v *NullableContextualTupleKeys) Unset() { 93 | v.value = nil 94 | v.isSet = false 95 | } 96 | 97 | func NewNullableContextualTupleKeys(val *ContextualTupleKeys) *NullableContextualTupleKeys { 98 | return &NullableContextualTupleKeys{value: val, isSet: true} 99 | } 100 | 101 | func (v NullableContextualTupleKeys) MarshalJSON() ([]byte, error) { 102 | return json.Marshal(v.value) 103 | } 104 | 105 | func (v *NullableContextualTupleKeys) UnmarshalJSON(src []byte) error { 106 | v.isSet = true 107 | return json.Unmarshal(src, &v.value) 108 | } 109 | -------------------------------------------------------------------------------- /model_difference.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Difference struct for Difference 20 | type Difference struct { 21 | Base Userset `json:"base"` 22 | Subtract Userset `json:"subtract"` 23 | } 24 | 25 | // NewDifference instantiates a new Difference object 26 | // This constructor will assign default values to properties that have it defined, 27 | // and makes sure properties required by API are set, but the set of arguments 28 | // will change when the set of required properties is changed 29 | func NewDifference(base Userset, subtract Userset) *Difference { 30 | this := Difference{} 31 | this.Base = base 32 | this.Subtract = subtract 33 | return &this 34 | } 35 | 36 | // NewDifferenceWithDefaults instantiates a new Difference object 37 | // This constructor will only assign default values to properties that have it defined, 38 | // but it doesn't guarantee that properties required by API are set 39 | func NewDifferenceWithDefaults() *Difference { 40 | this := Difference{} 41 | return &this 42 | } 43 | 44 | // GetBase returns the Base field value 45 | func (o *Difference) GetBase() Userset { 46 | if o == nil { 47 | var ret Userset 48 | return ret 49 | } 50 | 51 | return o.Base 52 | } 53 | 54 | // GetBaseOk returns a tuple with the Base field value 55 | // and a boolean to check if the value has been set. 56 | func (o *Difference) GetBaseOk() (*Userset, bool) { 57 | if o == nil { 58 | return nil, false 59 | } 60 | return &o.Base, true 61 | } 62 | 63 | // SetBase sets field value 64 | func (o *Difference) SetBase(v Userset) { 65 | o.Base = v 66 | } 67 | 68 | // GetSubtract returns the Subtract field value 69 | func (o *Difference) GetSubtract() Userset { 70 | if o == nil { 71 | var ret Userset 72 | return ret 73 | } 74 | 75 | return o.Subtract 76 | } 77 | 78 | // GetSubtractOk returns a tuple with the Subtract field value 79 | // and a boolean to check if the value has been set. 80 | func (o *Difference) GetSubtractOk() (*Userset, bool) { 81 | if o == nil { 82 | return nil, false 83 | } 84 | return &o.Subtract, true 85 | } 86 | 87 | // SetSubtract sets field value 88 | func (o *Difference) SetSubtract(v Userset) { 89 | o.Subtract = v 90 | } 91 | 92 | func (o Difference) MarshalJSON() ([]byte, error) { 93 | toSerialize := map[string]interface{}{} 94 | if true { 95 | toSerialize["base"] = o.Base 96 | } 97 | if true { 98 | toSerialize["subtract"] = o.Subtract 99 | } 100 | return json.Marshal(toSerialize) 101 | } 102 | 103 | type NullableDifference struct { 104 | value *Difference 105 | isSet bool 106 | } 107 | 108 | func (v NullableDifference) Get() *Difference { 109 | return v.value 110 | } 111 | 112 | func (v *NullableDifference) Set(val *Difference) { 113 | v.value = val 114 | v.isSet = true 115 | } 116 | 117 | func (v NullableDifference) IsSet() bool { 118 | return v.isSet 119 | } 120 | 121 | func (v *NullableDifference) Unset() { 122 | v.value = nil 123 | v.isSet = false 124 | } 125 | 126 | func NewNullableDifference(val *Difference) *NullableDifference { 127 | return &NullableDifference{value: val, isSet: true} 128 | } 129 | 130 | func (v NullableDifference) MarshalJSON() ([]byte, error) { 131 | return json.Marshal(v.value) 132 | } 133 | 134 | func (v *NullableDifference) UnmarshalJSON(src []byte) error { 135 | v.isSet = true 136 | return json.Unmarshal(src, &v.value) 137 | } 138 | -------------------------------------------------------------------------------- /model_expand_response.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // ExpandResponse struct for ExpandResponse 20 | type ExpandResponse struct { 21 | Tree *UsersetTree `json:"tree,omitempty"` 22 | } 23 | 24 | // NewExpandResponse instantiates a new ExpandResponse object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewExpandResponse() *ExpandResponse { 29 | this := ExpandResponse{} 30 | return &this 31 | } 32 | 33 | // NewExpandResponseWithDefaults instantiates a new ExpandResponse object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewExpandResponseWithDefaults() *ExpandResponse { 37 | this := ExpandResponse{} 38 | return &this 39 | } 40 | 41 | // GetTree returns the Tree field value if set, zero value otherwise. 42 | func (o *ExpandResponse) GetTree() UsersetTree { 43 | if o == nil || o.Tree == nil { 44 | var ret UsersetTree 45 | return ret 46 | } 47 | return *o.Tree 48 | } 49 | 50 | // GetTreeOk returns a tuple with the Tree field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *ExpandResponse) GetTreeOk() (*UsersetTree, bool) { 53 | if o == nil || o.Tree == nil { 54 | return nil, false 55 | } 56 | return o.Tree, true 57 | } 58 | 59 | // HasTree returns a boolean if a field has been set. 60 | func (o *ExpandResponse) HasTree() bool { 61 | if o != nil && o.Tree != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetTree gets a reference to the given UsersetTree and assigns it to the Tree field. 69 | func (o *ExpandResponse) SetTree(v UsersetTree) { 70 | o.Tree = &v 71 | } 72 | 73 | func (o ExpandResponse) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Tree != nil { 76 | toSerialize["tree"] = o.Tree 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableExpandResponse struct { 82 | value *ExpandResponse 83 | isSet bool 84 | } 85 | 86 | func (v NullableExpandResponse) Get() *ExpandResponse { 87 | return v.value 88 | } 89 | 90 | func (v *NullableExpandResponse) Set(val *ExpandResponse) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableExpandResponse) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableExpandResponse) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableExpandResponse(val *ExpandResponse) *NullableExpandResponse { 105 | return &NullableExpandResponse{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableExpandResponse) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableExpandResponse) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_list_objects_response.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // ListObjectsResponse struct for ListObjectsResponse 20 | type ListObjectsResponse struct { 21 | Objects *[]string `json:"objects,omitempty"` 22 | } 23 | 24 | // NewListObjectsResponse instantiates a new ListObjectsResponse object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewListObjectsResponse() *ListObjectsResponse { 29 | this := ListObjectsResponse{} 30 | return &this 31 | } 32 | 33 | // NewListObjectsResponseWithDefaults instantiates a new ListObjectsResponse object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewListObjectsResponseWithDefaults() *ListObjectsResponse { 37 | this := ListObjectsResponse{} 38 | return &this 39 | } 40 | 41 | // GetObjects returns the Objects field value if set, zero value otherwise. 42 | func (o *ListObjectsResponse) GetObjects() []string { 43 | if o == nil || o.Objects == nil { 44 | var ret []string 45 | return ret 46 | } 47 | return *o.Objects 48 | } 49 | 50 | // GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *ListObjectsResponse) GetObjectsOk() (*[]string, bool) { 53 | if o == nil || o.Objects == nil { 54 | return nil, false 55 | } 56 | return o.Objects, true 57 | } 58 | 59 | // HasObjects returns a boolean if a field has been set. 60 | func (o *ListObjectsResponse) HasObjects() bool { 61 | if o != nil && o.Objects != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetObjects gets a reference to the given []string and assigns it to the Objects field. 69 | func (o *ListObjectsResponse) SetObjects(v []string) { 70 | o.Objects = &v 71 | } 72 | 73 | func (o ListObjectsResponse) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Objects != nil { 76 | toSerialize["objects"] = o.Objects 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableListObjectsResponse struct { 82 | value *ListObjectsResponse 83 | isSet bool 84 | } 85 | 86 | func (v NullableListObjectsResponse) Get() *ListObjectsResponse { 87 | return v.value 88 | } 89 | 90 | func (v *NullableListObjectsResponse) Set(val *ListObjectsResponse) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableListObjectsResponse) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableListObjectsResponse) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableListObjectsResponse(val *ListObjectsResponse) *NullableListObjectsResponse { 105 | return &NullableListObjectsResponse{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableListObjectsResponse) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableListObjectsResponse) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_metadata.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Metadata struct for Metadata 20 | type Metadata struct { 21 | Relations *map[string]RelationMetadata `json:"relations,omitempty"` 22 | } 23 | 24 | // NewMetadata instantiates a new Metadata object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewMetadata() *Metadata { 29 | this := Metadata{} 30 | return &this 31 | } 32 | 33 | // NewMetadataWithDefaults instantiates a new Metadata object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewMetadataWithDefaults() *Metadata { 37 | this := Metadata{} 38 | return &this 39 | } 40 | 41 | // GetRelations returns the Relations field value if set, zero value otherwise. 42 | func (o *Metadata) GetRelations() map[string]RelationMetadata { 43 | if o == nil || o.Relations == nil { 44 | var ret map[string]RelationMetadata 45 | return ret 46 | } 47 | return *o.Relations 48 | } 49 | 50 | // GetRelationsOk returns a tuple with the Relations field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *Metadata) GetRelationsOk() (*map[string]RelationMetadata, bool) { 53 | if o == nil || o.Relations == nil { 54 | return nil, false 55 | } 56 | return o.Relations, true 57 | } 58 | 59 | // HasRelations returns a boolean if a field has been set. 60 | func (o *Metadata) HasRelations() bool { 61 | if o != nil && o.Relations != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetRelations gets a reference to the given map[string]RelationMetadata and assigns it to the Relations field. 69 | func (o *Metadata) SetRelations(v map[string]RelationMetadata) { 70 | o.Relations = &v 71 | } 72 | 73 | func (o Metadata) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Relations != nil { 76 | toSerialize["relations"] = o.Relations 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableMetadata struct { 82 | value *Metadata 83 | isSet bool 84 | } 85 | 86 | func (v NullableMetadata) Get() *Metadata { 87 | return v.value 88 | } 89 | 90 | func (v *NullableMetadata) Set(val *Metadata) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableMetadata) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableMetadata) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableMetadata(val *Metadata) *NullableMetadata { 105 | return &NullableMetadata{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableMetadata) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableMetadata) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_nodes.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Nodes struct for Nodes 20 | type Nodes struct { 21 | Nodes *[]Node `json:"nodes,omitempty"` 22 | } 23 | 24 | // NewNodes instantiates a new Nodes object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewNodes() *Nodes { 29 | this := Nodes{} 30 | return &this 31 | } 32 | 33 | // NewNodesWithDefaults instantiates a new Nodes object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewNodesWithDefaults() *Nodes { 37 | this := Nodes{} 38 | return &this 39 | } 40 | 41 | // GetNodes returns the Nodes field value if set, zero value otherwise. 42 | func (o *Nodes) GetNodes() []Node { 43 | if o == nil || o.Nodes == nil { 44 | var ret []Node 45 | return ret 46 | } 47 | return *o.Nodes 48 | } 49 | 50 | // GetNodesOk returns a tuple with the Nodes field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *Nodes) GetNodesOk() (*[]Node, bool) { 53 | if o == nil || o.Nodes == nil { 54 | return nil, false 55 | } 56 | return o.Nodes, true 57 | } 58 | 59 | // HasNodes returns a boolean if a field has been set. 60 | func (o *Nodes) HasNodes() bool { 61 | if o != nil && o.Nodes != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetNodes gets a reference to the given []Node and assigns it to the Nodes field. 69 | func (o *Nodes) SetNodes(v []Node) { 70 | o.Nodes = &v 71 | } 72 | 73 | func (o Nodes) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Nodes != nil { 76 | toSerialize["nodes"] = o.Nodes 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableNodes struct { 82 | value *Nodes 83 | isSet bool 84 | } 85 | 86 | func (v NullableNodes) Get() *Nodes { 87 | return v.value 88 | } 89 | 90 | func (v *NullableNodes) Set(val *Nodes) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableNodes) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableNodes) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableNodes(val *Nodes) *NullableNodes { 105 | return &NullableNodes{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableNodes) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableNodes) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_not_found_error_code.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | "fmt" 18 | ) 19 | 20 | // NotFoundErrorCode - no_not_found_error: no error - undefined_endpoint: undefined endpoint. - customer_id_not_found: customer ID is not found. - store_id_not_found: store ID not found - store_client_id_not_found: store client ID not found. - resource_not_found: generic not found. - unimplemented: method is unimplemented 21 | type NotFoundErrorCode string 22 | 23 | // List of NotFoundErrorCode 24 | const ( 25 | NO_NOT_FOUND_ERROR NotFoundErrorCode = "no_not_found_error" 26 | UNDEFINED_ENDPOINT NotFoundErrorCode = "undefined_endpoint" 27 | CUSTOMER_ID_NOT_FOUND NotFoundErrorCode = "customer_id_not_found" 28 | STORE_ID_NOT_FOUND NotFoundErrorCode = "store_id_not_found" 29 | STORE_CLIENT_ID_NOT_FOUND NotFoundErrorCode = "store_client_id_not_found" 30 | RESOURCE_NOT_FOUND NotFoundErrorCode = "resource_not_found" 31 | UNIMPLEMENTED NotFoundErrorCode = "unimplemented" 32 | ) 33 | 34 | var allowedNotFoundErrorCodeEnumValues = []NotFoundErrorCode{ 35 | "no_not_found_error", 36 | "undefined_endpoint", 37 | "customer_id_not_found", 38 | "store_id_not_found", 39 | "store_client_id_not_found", 40 | "resource_not_found", 41 | "unimplemented", 42 | } 43 | 44 | func (v *NotFoundErrorCode) UnmarshalJSON(src []byte) error { 45 | var value string 46 | err := json.Unmarshal(src, &value) 47 | if err != nil { 48 | return err 49 | } 50 | enumTypeValue := NotFoundErrorCode(value) 51 | for _, existing := range allowedNotFoundErrorCodeEnumValues { 52 | if existing == enumTypeValue { 53 | *v = enumTypeValue 54 | return nil 55 | } 56 | } 57 | 58 | return fmt.Errorf("%+v is not a valid NotFoundErrorCode", value) 59 | } 60 | 61 | // NewNotFoundErrorCodeFromValue returns a pointer to a valid NotFoundErrorCode 62 | // for the value passed as argument, or an error if the value passed is not allowed by the enum 63 | func NewNotFoundErrorCodeFromValue(v string) (*NotFoundErrorCode, error) { 64 | ev := NotFoundErrorCode(v) 65 | if ev.IsValid() { 66 | return &ev, nil 67 | } else { 68 | return nil, fmt.Errorf("invalid value '%v' for NotFoundErrorCode: valid values are %v", v, allowedNotFoundErrorCodeEnumValues) 69 | } 70 | } 71 | 72 | // IsValid return true if the value is valid for the enum, false otherwise 73 | func (v NotFoundErrorCode) IsValid() bool { 74 | for _, existing := range allowedNotFoundErrorCodeEnumValues { 75 | if existing == v { 76 | return true 77 | } 78 | } 79 | return false 80 | } 81 | 82 | // Ptr returns reference to NotFoundErrorCode value 83 | func (v NotFoundErrorCode) Ptr() *NotFoundErrorCode { 84 | return &v 85 | } 86 | 87 | type NullableNotFoundErrorCode struct { 88 | value *NotFoundErrorCode 89 | isSet bool 90 | } 91 | 92 | func (v NullableNotFoundErrorCode) Get() *NotFoundErrorCode { 93 | return v.value 94 | } 95 | 96 | func (v *NullableNotFoundErrorCode) Set(val *NotFoundErrorCode) { 97 | v.value = val 98 | v.isSet = true 99 | } 100 | 101 | func (v NullableNotFoundErrorCode) IsSet() bool { 102 | return v.isSet 103 | } 104 | 105 | func (v *NullableNotFoundErrorCode) Unset() { 106 | v.value = nil 107 | v.isSet = false 108 | } 109 | 110 | func NewNullableNotFoundErrorCode(val *NotFoundErrorCode) *NullableNotFoundErrorCode { 111 | return &NullableNotFoundErrorCode{value: val, isSet: true} 112 | } 113 | 114 | func (v NullableNotFoundErrorCode) MarshalJSON() ([]byte, error) { 115 | return json.Marshal(v.value) 116 | } 117 | 118 | func (v *NullableNotFoundErrorCode) UnmarshalJSON(src []byte) error { 119 | v.isSet = true 120 | return json.Unmarshal(src, &v.value) 121 | } 122 | -------------------------------------------------------------------------------- /model_relation_metadata.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // RelationMetadata struct for RelationMetadata 20 | type RelationMetadata struct { 21 | DirectlyRelatedUserTypes *[]RelationReference `json:"directly_related_user_types,omitempty"` 22 | } 23 | 24 | // NewRelationMetadata instantiates a new RelationMetadata object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewRelationMetadata() *RelationMetadata { 29 | this := RelationMetadata{} 30 | return &this 31 | } 32 | 33 | // NewRelationMetadataWithDefaults instantiates a new RelationMetadata object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewRelationMetadataWithDefaults() *RelationMetadata { 37 | this := RelationMetadata{} 38 | return &this 39 | } 40 | 41 | // GetDirectlyRelatedUserTypes returns the DirectlyRelatedUserTypes field value if set, zero value otherwise. 42 | func (o *RelationMetadata) GetDirectlyRelatedUserTypes() []RelationReference { 43 | if o == nil || o.DirectlyRelatedUserTypes == nil { 44 | var ret []RelationReference 45 | return ret 46 | } 47 | return *o.DirectlyRelatedUserTypes 48 | } 49 | 50 | // GetDirectlyRelatedUserTypesOk returns a tuple with the DirectlyRelatedUserTypes field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *RelationMetadata) GetDirectlyRelatedUserTypesOk() (*[]RelationReference, bool) { 53 | if o == nil || o.DirectlyRelatedUserTypes == nil { 54 | return nil, false 55 | } 56 | return o.DirectlyRelatedUserTypes, true 57 | } 58 | 59 | // HasDirectlyRelatedUserTypes returns a boolean if a field has been set. 60 | func (o *RelationMetadata) HasDirectlyRelatedUserTypes() bool { 61 | if o != nil && o.DirectlyRelatedUserTypes != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetDirectlyRelatedUserTypes gets a reference to the given []RelationReference and assigns it to the DirectlyRelatedUserTypes field. 69 | func (o *RelationMetadata) SetDirectlyRelatedUserTypes(v []RelationReference) { 70 | o.DirectlyRelatedUserTypes = &v 71 | } 72 | 73 | func (o RelationMetadata) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.DirectlyRelatedUserTypes != nil { 76 | toSerialize["directly_related_user_types"] = o.DirectlyRelatedUserTypes 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableRelationMetadata struct { 82 | value *RelationMetadata 83 | isSet bool 84 | } 85 | 86 | func (v NullableRelationMetadata) Get() *RelationMetadata { 87 | return v.value 88 | } 89 | 90 | func (v *NullableRelationMetadata) Set(val *RelationMetadata) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableRelationMetadata) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableRelationMetadata) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableRelationMetadata(val *RelationMetadata) *NullableRelationMetadata { 105 | return &NullableRelationMetadata{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableRelationMetadata) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableRelationMetadata) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_resource_exhausted_error_code.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | "fmt" 18 | ) 19 | 20 | // ResourceExhaustedErrorCode - no_resource_exhausted_error: no error - rate_limit_exceeded: operation failed due to exceeding rate limit. - auth_rate_limit_exceeded: rate limit error during authentication. 21 | type ResourceExhaustedErrorCode string 22 | 23 | // List of ResourceExhaustedErrorCode 24 | const ( 25 | NO_RESOURCE_EXHAUSTED_ERROR ResourceExhaustedErrorCode = "no_resource_exhausted_error" 26 | RATE_LIMIT_EXCEEDED ResourceExhaustedErrorCode = "rate_limit_exceeded" 27 | AUTH_RATE_LIMIT_EXCEEDED ResourceExhaustedErrorCode = "auth_rate_limit_exceeded" 28 | ) 29 | 30 | var allowedResourceExhaustedErrorCodeEnumValues = []ResourceExhaustedErrorCode{ 31 | "no_resource_exhausted_error", 32 | "rate_limit_exceeded", 33 | "auth_rate_limit_exceeded", 34 | } 35 | 36 | func (v *ResourceExhaustedErrorCode) UnmarshalJSON(src []byte) error { 37 | var value string 38 | err := json.Unmarshal(src, &value) 39 | if err != nil { 40 | return err 41 | } 42 | enumTypeValue := ResourceExhaustedErrorCode(value) 43 | for _, existing := range allowedResourceExhaustedErrorCodeEnumValues { 44 | if existing == enumTypeValue { 45 | *v = enumTypeValue 46 | return nil 47 | } 48 | } 49 | 50 | return fmt.Errorf("%+v is not a valid ResourceExhaustedErrorCode", value) 51 | } 52 | 53 | // NewResourceExhaustedErrorCodeFromValue returns a pointer to a valid ResourceExhaustedErrorCode 54 | // for the value passed as argument, or an error if the value passed is not allowed by the enum 55 | func NewResourceExhaustedErrorCodeFromValue(v string) (*ResourceExhaustedErrorCode, error) { 56 | ev := ResourceExhaustedErrorCode(v) 57 | if ev.IsValid() { 58 | return &ev, nil 59 | } else { 60 | return nil, fmt.Errorf("invalid value '%v' for ResourceExhaustedErrorCode: valid values are %v", v, allowedResourceExhaustedErrorCodeEnumValues) 61 | } 62 | } 63 | 64 | // IsValid return true if the value is valid for the enum, false otherwise 65 | func (v ResourceExhaustedErrorCode) IsValid() bool { 66 | for _, existing := range allowedResourceExhaustedErrorCodeEnumValues { 67 | if existing == v { 68 | return true 69 | } 70 | } 71 | return false 72 | } 73 | 74 | // Ptr returns reference to ResourceExhaustedErrorCode value 75 | func (v ResourceExhaustedErrorCode) Ptr() *ResourceExhaustedErrorCode { 76 | return &v 77 | } 78 | 79 | type NullableResourceExhaustedErrorCode struct { 80 | value *ResourceExhaustedErrorCode 81 | isSet bool 82 | } 83 | 84 | func (v NullableResourceExhaustedErrorCode) Get() *ResourceExhaustedErrorCode { 85 | return v.value 86 | } 87 | 88 | func (v *NullableResourceExhaustedErrorCode) Set(val *ResourceExhaustedErrorCode) { 89 | v.value = val 90 | v.isSet = true 91 | } 92 | 93 | func (v NullableResourceExhaustedErrorCode) IsSet() bool { 94 | return v.isSet 95 | } 96 | 97 | func (v *NullableResourceExhaustedErrorCode) Unset() { 98 | v.value = nil 99 | v.isSet = false 100 | } 101 | 102 | func NewNullableResourceExhaustedErrorCode(val *ResourceExhaustedErrorCode) *NullableResourceExhaustedErrorCode { 103 | return &NullableResourceExhaustedErrorCode{value: val, isSet: true} 104 | } 105 | 106 | func (v NullableResourceExhaustedErrorCode) MarshalJSON() ([]byte, error) { 107 | return json.Marshal(v.value) 108 | } 109 | 110 | func (v *NullableResourceExhaustedErrorCode) UnmarshalJSON(src []byte) error { 111 | v.isSet = true 112 | return json.Unmarshal(src, &v.value) 113 | } 114 | -------------------------------------------------------------------------------- /model_tuple.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | "time" 18 | ) 19 | 20 | // Tuple struct for Tuple 21 | type Tuple struct { 22 | Key *TupleKey `json:"key,omitempty"` 23 | Timestamp *time.Time `json:"timestamp,omitempty"` 24 | } 25 | 26 | // NewTuple instantiates a new Tuple object 27 | // This constructor will assign default values to properties that have it defined, 28 | // and makes sure properties required by API are set, but the set of arguments 29 | // will change when the set of required properties is changed 30 | func NewTuple() *Tuple { 31 | this := Tuple{} 32 | return &this 33 | } 34 | 35 | // NewTupleWithDefaults instantiates a new Tuple object 36 | // This constructor will only assign default values to properties that have it defined, 37 | // but it doesn't guarantee that properties required by API are set 38 | func NewTupleWithDefaults() *Tuple { 39 | this := Tuple{} 40 | return &this 41 | } 42 | 43 | // GetKey returns the Key field value if set, zero value otherwise. 44 | func (o *Tuple) GetKey() TupleKey { 45 | if o == nil || o.Key == nil { 46 | var ret TupleKey 47 | return ret 48 | } 49 | return *o.Key 50 | } 51 | 52 | // GetKeyOk returns a tuple with the Key field value if set, nil otherwise 53 | // and a boolean to check if the value has been set. 54 | func (o *Tuple) GetKeyOk() (*TupleKey, bool) { 55 | if o == nil || o.Key == nil { 56 | return nil, false 57 | } 58 | return o.Key, true 59 | } 60 | 61 | // HasKey returns a boolean if a field has been set. 62 | func (o *Tuple) HasKey() bool { 63 | if o != nil && o.Key != nil { 64 | return true 65 | } 66 | 67 | return false 68 | } 69 | 70 | // SetKey gets a reference to the given TupleKey and assigns it to the Key field. 71 | func (o *Tuple) SetKey(v TupleKey) { 72 | o.Key = &v 73 | } 74 | 75 | // GetTimestamp returns the Timestamp field value if set, zero value otherwise. 76 | func (o *Tuple) GetTimestamp() time.Time { 77 | if o == nil || o.Timestamp == nil { 78 | var ret time.Time 79 | return ret 80 | } 81 | return *o.Timestamp 82 | } 83 | 84 | // GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise 85 | // and a boolean to check if the value has been set. 86 | func (o *Tuple) GetTimestampOk() (*time.Time, bool) { 87 | if o == nil || o.Timestamp == nil { 88 | return nil, false 89 | } 90 | return o.Timestamp, true 91 | } 92 | 93 | // HasTimestamp returns a boolean if a field has been set. 94 | func (o *Tuple) HasTimestamp() bool { 95 | if o != nil && o.Timestamp != nil { 96 | return true 97 | } 98 | 99 | return false 100 | } 101 | 102 | // SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. 103 | func (o *Tuple) SetTimestamp(v time.Time) { 104 | o.Timestamp = &v 105 | } 106 | 107 | func (o Tuple) MarshalJSON() ([]byte, error) { 108 | toSerialize := map[string]interface{}{} 109 | if o.Key != nil { 110 | toSerialize["key"] = o.Key 111 | } 112 | if o.Timestamp != nil { 113 | toSerialize["timestamp"] = o.Timestamp 114 | } 115 | return json.Marshal(toSerialize) 116 | } 117 | 118 | type NullableTuple struct { 119 | value *Tuple 120 | isSet bool 121 | } 122 | 123 | func (v NullableTuple) Get() *Tuple { 124 | return v.value 125 | } 126 | 127 | func (v *NullableTuple) Set(val *Tuple) { 128 | v.value = val 129 | v.isSet = true 130 | } 131 | 132 | func (v NullableTuple) IsSet() bool { 133 | return v.isSet 134 | } 135 | 136 | func (v *NullableTuple) Unset() { 137 | v.value = nil 138 | v.isSet = false 139 | } 140 | 141 | func NewNullableTuple(val *Tuple) *NullableTuple { 142 | return &NullableTuple{value: val, isSet: true} 143 | } 144 | 145 | func (v NullableTuple) MarshalJSON() ([]byte, error) { 146 | return json.Marshal(v.value) 147 | } 148 | 149 | func (v *NullableTuple) UnmarshalJSON(src []byte) error { 150 | v.isSet = true 151 | return json.Unmarshal(src, &v.value) 152 | } 153 | -------------------------------------------------------------------------------- /model_tuple_keys.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // TupleKeys struct for TupleKeys 20 | type TupleKeys struct { 21 | TupleKeys []TupleKey `json:"tuple_keys"` 22 | } 23 | 24 | // NewTupleKeys instantiates a new TupleKeys object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewTupleKeys(tupleKeys []TupleKey) *TupleKeys { 29 | this := TupleKeys{} 30 | this.TupleKeys = tupleKeys 31 | return &this 32 | } 33 | 34 | // NewTupleKeysWithDefaults instantiates a new TupleKeys object 35 | // This constructor will only assign default values to properties that have it defined, 36 | // but it doesn't guarantee that properties required by API are set 37 | func NewTupleKeysWithDefaults() *TupleKeys { 38 | this := TupleKeys{} 39 | return &this 40 | } 41 | 42 | // GetTupleKeys returns the TupleKeys field value 43 | func (o *TupleKeys) GetTupleKeys() []TupleKey { 44 | if o == nil { 45 | var ret []TupleKey 46 | return ret 47 | } 48 | 49 | return o.TupleKeys 50 | } 51 | 52 | // GetTupleKeysOk returns a tuple with the TupleKeys field value 53 | // and a boolean to check if the value has been set. 54 | func (o *TupleKeys) GetTupleKeysOk() (*[]TupleKey, bool) { 55 | if o == nil { 56 | return nil, false 57 | } 58 | return &o.TupleKeys, true 59 | } 60 | 61 | // SetTupleKeys sets field value 62 | func (o *TupleKeys) SetTupleKeys(v []TupleKey) { 63 | o.TupleKeys = v 64 | } 65 | 66 | func (o TupleKeys) MarshalJSON() ([]byte, error) { 67 | toSerialize := map[string]interface{}{} 68 | if true { 69 | toSerialize["tuple_keys"] = o.TupleKeys 70 | } 71 | return json.Marshal(toSerialize) 72 | } 73 | 74 | type NullableTupleKeys struct { 75 | value *TupleKeys 76 | isSet bool 77 | } 78 | 79 | func (v NullableTupleKeys) Get() *TupleKeys { 80 | return v.value 81 | } 82 | 83 | func (v *NullableTupleKeys) Set(val *TupleKeys) { 84 | v.value = val 85 | v.isSet = true 86 | } 87 | 88 | func (v NullableTupleKeys) IsSet() bool { 89 | return v.isSet 90 | } 91 | 92 | func (v *NullableTupleKeys) Unset() { 93 | v.value = nil 94 | v.isSet = false 95 | } 96 | 97 | func NewNullableTupleKeys(val *TupleKeys) *NullableTupleKeys { 98 | return &NullableTupleKeys{value: val, isSet: true} 99 | } 100 | 101 | func (v NullableTupleKeys) MarshalJSON() ([]byte, error) { 102 | return json.Marshal(v.value) 103 | } 104 | 105 | func (v *NullableTupleKeys) UnmarshalJSON(src []byte) error { 106 | v.isSet = true 107 | return json.Unmarshal(src, &v.value) 108 | } 109 | -------------------------------------------------------------------------------- /model_tuple_operation.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | "fmt" 18 | ) 19 | 20 | // TupleOperation the model 'TupleOperation' 21 | type TupleOperation string 22 | 23 | // List of TupleOperation 24 | const ( 25 | WRITE TupleOperation = "TUPLE_OPERATION_WRITE" 26 | DELETE TupleOperation = "TUPLE_OPERATION_DELETE" 27 | ) 28 | 29 | var allowedTupleOperationEnumValues = []TupleOperation{ 30 | "TUPLE_OPERATION_WRITE", 31 | "TUPLE_OPERATION_DELETE", 32 | } 33 | 34 | func (v *TupleOperation) UnmarshalJSON(src []byte) error { 35 | var value string 36 | err := json.Unmarshal(src, &value) 37 | if err != nil { 38 | return err 39 | } 40 | enumTypeValue := TupleOperation(value) 41 | for _, existing := range allowedTupleOperationEnumValues { 42 | if existing == enumTypeValue { 43 | *v = enumTypeValue 44 | return nil 45 | } 46 | } 47 | 48 | return fmt.Errorf("%+v is not a valid TupleOperation", value) 49 | } 50 | 51 | // NewTupleOperationFromValue returns a pointer to a valid TupleOperation 52 | // for the value passed as argument, or an error if the value passed is not allowed by the enum 53 | func NewTupleOperationFromValue(v string) (*TupleOperation, error) { 54 | ev := TupleOperation(v) 55 | if ev.IsValid() { 56 | return &ev, nil 57 | } else { 58 | return nil, fmt.Errorf("invalid value '%v' for TupleOperation: valid values are %v", v, allowedTupleOperationEnumValues) 59 | } 60 | } 61 | 62 | // IsValid return true if the value is valid for the enum, false otherwise 63 | func (v TupleOperation) IsValid() bool { 64 | for _, existing := range allowedTupleOperationEnumValues { 65 | if existing == v { 66 | return true 67 | } 68 | } 69 | return false 70 | } 71 | 72 | // Ptr returns reference to TupleOperation value 73 | func (v TupleOperation) Ptr() *TupleOperation { 74 | return &v 75 | } 76 | 77 | type NullableTupleOperation struct { 78 | value *TupleOperation 79 | isSet bool 80 | } 81 | 82 | func (v NullableTupleOperation) Get() *TupleOperation { 83 | return v.value 84 | } 85 | 86 | func (v *NullableTupleOperation) Set(val *TupleOperation) { 87 | v.value = val 88 | v.isSet = true 89 | } 90 | 91 | func (v NullableTupleOperation) IsSet() bool { 92 | return v.isSet 93 | } 94 | 95 | func (v *NullableTupleOperation) Unset() { 96 | v.value = nil 97 | v.isSet = false 98 | } 99 | 100 | func NewNullableTupleOperation(val *TupleOperation) *NullableTupleOperation { 101 | return &NullableTupleOperation{value: val, isSet: true} 102 | } 103 | 104 | func (v NullableTupleOperation) MarshalJSON() ([]byte, error) { 105 | return json.Marshal(v.value) 106 | } 107 | 108 | func (v *NullableTupleOperation) UnmarshalJSON(src []byte) error { 109 | v.isSet = true 110 | return json.Unmarshal(src, &v.value) 111 | } 112 | -------------------------------------------------------------------------------- /model_users.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Users struct for Users 20 | type Users struct { 21 | Users *[]string `json:"users,omitempty"` 22 | } 23 | 24 | // NewUsers instantiates a new Users object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewUsers() *Users { 29 | this := Users{} 30 | return &this 31 | } 32 | 33 | // NewUsersWithDefaults instantiates a new Users object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewUsersWithDefaults() *Users { 37 | this := Users{} 38 | return &this 39 | } 40 | 41 | // GetUsers returns the Users field value if set, zero value otherwise. 42 | func (o *Users) GetUsers() []string { 43 | if o == nil || o.Users == nil { 44 | var ret []string 45 | return ret 46 | } 47 | return *o.Users 48 | } 49 | 50 | // GetUsersOk returns a tuple with the Users field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *Users) GetUsersOk() (*[]string, bool) { 53 | if o == nil || o.Users == nil { 54 | return nil, false 55 | } 56 | return o.Users, true 57 | } 58 | 59 | // HasUsers returns a boolean if a field has been set. 60 | func (o *Users) HasUsers() bool { 61 | if o != nil && o.Users != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetUsers gets a reference to the given []string and assigns it to the Users field. 69 | func (o *Users) SetUsers(v []string) { 70 | o.Users = &v 71 | } 72 | 73 | func (o Users) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Users != nil { 76 | toSerialize["users"] = o.Users 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableUsers struct { 82 | value *Users 83 | isSet bool 84 | } 85 | 86 | func (v NullableUsers) Get() *Users { 87 | return v.value 88 | } 89 | 90 | func (v *NullableUsers) Set(val *Users) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableUsers) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableUsers) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableUsers(val *Users) *NullableUsers { 105 | return &NullableUsers{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableUsers) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableUsers) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_userset_tree.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // UsersetTree A UsersetTree contains the result of an Expansion. 20 | type UsersetTree struct { 21 | Root *Node `json:"root,omitempty"` 22 | } 23 | 24 | // NewUsersetTree instantiates a new UsersetTree object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewUsersetTree() *UsersetTree { 29 | this := UsersetTree{} 30 | return &this 31 | } 32 | 33 | // NewUsersetTreeWithDefaults instantiates a new UsersetTree object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewUsersetTreeWithDefaults() *UsersetTree { 37 | this := UsersetTree{} 38 | return &this 39 | } 40 | 41 | // GetRoot returns the Root field value if set, zero value otherwise. 42 | func (o *UsersetTree) GetRoot() Node { 43 | if o == nil || o.Root == nil { 44 | var ret Node 45 | return ret 46 | } 47 | return *o.Root 48 | } 49 | 50 | // GetRootOk returns a tuple with the Root field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *UsersetTree) GetRootOk() (*Node, bool) { 53 | if o == nil || o.Root == nil { 54 | return nil, false 55 | } 56 | return o.Root, true 57 | } 58 | 59 | // HasRoot returns a boolean if a field has been set. 60 | func (o *UsersetTree) HasRoot() bool { 61 | if o != nil && o.Root != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetRoot gets a reference to the given Node and assigns it to the Root field. 69 | func (o *UsersetTree) SetRoot(v Node) { 70 | o.Root = &v 71 | } 72 | 73 | func (o UsersetTree) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Root != nil { 76 | toSerialize["root"] = o.Root 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableUsersetTree struct { 82 | value *UsersetTree 83 | isSet bool 84 | } 85 | 86 | func (v NullableUsersetTree) Get() *UsersetTree { 87 | return v.value 88 | } 89 | 90 | func (v *NullableUsersetTree) Set(val *UsersetTree) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableUsersetTree) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableUsersetTree) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableUsersetTree(val *UsersetTree) *NullableUsersetTree { 105 | return &NullableUsersetTree{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableUsersetTree) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableUsersetTree) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_usersets.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // Usersets struct for Usersets 20 | type Usersets struct { 21 | Child *[]Userset `json:"child,omitempty"` 22 | } 23 | 24 | // NewUsersets instantiates a new Usersets object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewUsersets() *Usersets { 29 | this := Usersets{} 30 | return &this 31 | } 32 | 33 | // NewUsersetsWithDefaults instantiates a new Usersets object 34 | // This constructor will only assign default values to properties that have it defined, 35 | // but it doesn't guarantee that properties required by API are set 36 | func NewUsersetsWithDefaults() *Usersets { 37 | this := Usersets{} 38 | return &this 39 | } 40 | 41 | // GetChild returns the Child field value if set, zero value otherwise. 42 | func (o *Usersets) GetChild() []Userset { 43 | if o == nil || o.Child == nil { 44 | var ret []Userset 45 | return ret 46 | } 47 | return *o.Child 48 | } 49 | 50 | // GetChildOk returns a tuple with the Child field value if set, nil otherwise 51 | // and a boolean to check if the value has been set. 52 | func (o *Usersets) GetChildOk() (*[]Userset, bool) { 53 | if o == nil || o.Child == nil { 54 | return nil, false 55 | } 56 | return o.Child, true 57 | } 58 | 59 | // HasChild returns a boolean if a field has been set. 60 | func (o *Usersets) HasChild() bool { 61 | if o != nil && o.Child != nil { 62 | return true 63 | } 64 | 65 | return false 66 | } 67 | 68 | // SetChild gets a reference to the given []Userset and assigns it to the Child field. 69 | func (o *Usersets) SetChild(v []Userset) { 70 | o.Child = &v 71 | } 72 | 73 | func (o Usersets) MarshalJSON() ([]byte, error) { 74 | toSerialize := map[string]interface{}{} 75 | if o.Child != nil { 76 | toSerialize["child"] = o.Child 77 | } 78 | return json.Marshal(toSerialize) 79 | } 80 | 81 | type NullableUsersets struct { 82 | value *Usersets 83 | isSet bool 84 | } 85 | 86 | func (v NullableUsersets) Get() *Usersets { 87 | return v.value 88 | } 89 | 90 | func (v *NullableUsersets) Set(val *Usersets) { 91 | v.value = val 92 | v.isSet = true 93 | } 94 | 95 | func (v NullableUsersets) IsSet() bool { 96 | return v.isSet 97 | } 98 | 99 | func (v *NullableUsersets) Unset() { 100 | v.value = nil 101 | v.isSet = false 102 | } 103 | 104 | func NewNullableUsersets(val *Usersets) *NullableUsersets { 105 | return &NullableUsersets{value: val, isSet: true} 106 | } 107 | 108 | func (v NullableUsersets) MarshalJSON() ([]byte, error) { 109 | return json.Marshal(v.value) 110 | } 111 | 112 | func (v *NullableUsersets) UnmarshalJSON(src []byte) error { 113 | v.isSet = true 114 | return json.Unmarshal(src, &v.value) 115 | } 116 | -------------------------------------------------------------------------------- /model_write_assertions_request.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "encoding/json" 17 | ) 18 | 19 | // WriteAssertionsRequest struct for WriteAssertionsRequest 20 | type WriteAssertionsRequest struct { 21 | Assertions []Assertion `json:"assertions"` 22 | } 23 | 24 | // NewWriteAssertionsRequest instantiates a new WriteAssertionsRequest object 25 | // This constructor will assign default values to properties that have it defined, 26 | // and makes sure properties required by API are set, but the set of arguments 27 | // will change when the set of required properties is changed 28 | func NewWriteAssertionsRequest(assertions []Assertion) *WriteAssertionsRequest { 29 | this := WriteAssertionsRequest{} 30 | this.Assertions = assertions 31 | return &this 32 | } 33 | 34 | // NewWriteAssertionsRequestWithDefaults instantiates a new WriteAssertionsRequest object 35 | // This constructor will only assign default values to properties that have it defined, 36 | // but it doesn't guarantee that properties required by API are set 37 | func NewWriteAssertionsRequestWithDefaults() *WriteAssertionsRequest { 38 | this := WriteAssertionsRequest{} 39 | return &this 40 | } 41 | 42 | // GetAssertions returns the Assertions field value 43 | func (o *WriteAssertionsRequest) GetAssertions() []Assertion { 44 | if o == nil { 45 | var ret []Assertion 46 | return ret 47 | } 48 | 49 | return o.Assertions 50 | } 51 | 52 | // GetAssertionsOk returns a tuple with the Assertions field value 53 | // and a boolean to check if the value has been set. 54 | func (o *WriteAssertionsRequest) GetAssertionsOk() (*[]Assertion, bool) { 55 | if o == nil { 56 | return nil, false 57 | } 58 | return &o.Assertions, true 59 | } 60 | 61 | // SetAssertions sets field value 62 | func (o *WriteAssertionsRequest) SetAssertions(v []Assertion) { 63 | o.Assertions = v 64 | } 65 | 66 | func (o WriteAssertionsRequest) MarshalJSON() ([]byte, error) { 67 | toSerialize := map[string]interface{}{} 68 | if true { 69 | toSerialize["assertions"] = o.Assertions 70 | } 71 | return json.Marshal(toSerialize) 72 | } 73 | 74 | type NullableWriteAssertionsRequest struct { 75 | value *WriteAssertionsRequest 76 | isSet bool 77 | } 78 | 79 | func (v NullableWriteAssertionsRequest) Get() *WriteAssertionsRequest { 80 | return v.value 81 | } 82 | 83 | func (v *NullableWriteAssertionsRequest) Set(val *WriteAssertionsRequest) { 84 | v.value = val 85 | v.isSet = true 86 | } 87 | 88 | func (v NullableWriteAssertionsRequest) IsSet() bool { 89 | return v.isSet 90 | } 91 | 92 | func (v *NullableWriteAssertionsRequest) Unset() { 93 | v.value = nil 94 | v.isSet = false 95 | } 96 | 97 | func NewNullableWriteAssertionsRequest(val *WriteAssertionsRequest) *NullableWriteAssertionsRequest { 98 | return &NullableWriteAssertionsRequest{value: val, isSet: true} 99 | } 100 | 101 | func (v NullableWriteAssertionsRequest) MarshalJSON() ([]byte, error) { 102 | return json.Marshal(v.value) 103 | } 104 | 105 | func (v *NullableWriteAssertionsRequest) UnmarshalJSON(src []byte) error { 106 | v.isSet = true 107 | return json.Unmarshal(src, &v.value) 108 | } 109 | -------------------------------------------------------------------------------- /oauth2/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 The Go Authors. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following disclaimer 11 | in the documentation and/or other materials provided with the 12 | distribution. 13 | * Neither the name of Google Inc. nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /oauth2/ORIGINAL_AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /oauth2/ORIGINAL_CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /oauth2/README.md: -------------------------------------------------------------------------------- 1 | This oauth2 folder contains a oauth2 package with a partial client OAuth2 implementation. 2 | 3 | It has been copied over from the original for our use. A lot of the original code and dependencies have been deleted, and the rest reshuffled. 4 | 5 | Original Project: Go OAuth2 - [pkg.go.dev/golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2) 6 | * Commit hash at the time of cloning [d3ed0bb246c8d3c75b63937d9a5eecff9c74d7fe](https://github.com/golang/oauth2/blob/d3ed0bb246c8d3c75b63937d9a5eecff9c74d7fe/) 7 | * Original Project's Repo on GitHub: [golang/oauth2](https://github.com/golang/oauth2/) 8 | * Original Project's Repo on Google Open Source: https://cs.opensource.google/go/x/oauth2 9 | * License: [BSD 3-Clause](https://github.com/golang/oauth2/blob/d3ed0bb246c8d3c75b63937d9a5eecff9c74d7fe/LICENSE) - [Local copy](./LICENSE) 10 | 11 | Note: The original authors are not aware of this fork, and do not endorse it in any way. 12 | -------------------------------------------------------------------------------- /oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package internal contains support packages for oauth2 package. 6 | package internal 7 | -------------------------------------------------------------------------------- /oauth2/internal/token_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | import ( 8 | "context" 9 | "fmt" 10 | "io" 11 | "math" 12 | "net/http" 13 | "net/http/httptest" 14 | "net/url" 15 | "testing" 16 | ) 17 | 18 | func TestRetrieveToken_InParams(t *testing.T) { 19 | ResetAuthCache() 20 | const clientID = "client-id" 21 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 22 | if got, want := r.FormValue("client_id"), clientID; got != want { 23 | t.Errorf("client_id = %q; want %q", got, want) 24 | } 25 | if got, want := r.FormValue("client_secret"), ""; got != want { 26 | t.Errorf("client_secret = %q; want empty", got) 27 | } 28 | w.Header().Set("Content-Type", "application/json") 29 | io.WriteString(w, `{"access_token": "ACCESS_TOKEN", "token_type": "bearer"}`) 30 | })) 31 | defer ts.Close() 32 | _, err := RetrieveToken(context.Background(), clientID, "", ts.URL, url.Values{}, AuthStyleInParams) 33 | if err != nil { 34 | t.Errorf("RetrieveToken = %v; want no error", err) 35 | } 36 | } 37 | 38 | func TestRetrieveTokenWithContexts(t *testing.T) { 39 | ResetAuthCache() 40 | const clientID = "client-id" 41 | 42 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 43 | w.Header().Set("Content-Type", "application/json") 44 | io.WriteString(w, `{"access_token": "ACCESS_TOKEN", "token_type": "bearer"}`) 45 | })) 46 | defer ts.Close() 47 | 48 | _, err := RetrieveToken(context.Background(), clientID, "", ts.URL, url.Values{}, AuthStyleUnknown) 49 | if err != nil { 50 | t.Errorf("RetrieveToken (with background context) = %v; want no error", err) 51 | } 52 | 53 | retrieved := make(chan struct{}) 54 | cancellingts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 55 | <-retrieved 56 | })) 57 | defer cancellingts.Close() 58 | 59 | ctx, cancel := context.WithCancel(context.Background()) 60 | cancel() 61 | _, err = RetrieveToken(ctx, clientID, "", cancellingts.URL, url.Values{}, AuthStyleUnknown) 62 | close(retrieved) 63 | if err == nil { 64 | t.Errorf("RetrieveToken (with cancelled context) = nil; want error") 65 | } 66 | } 67 | 68 | func TestExpiresInUpperBound(t *testing.T) { 69 | var e expirationTime 70 | if err := e.UnmarshalJSON([]byte(fmt.Sprint(int64(math.MaxInt32) + 1))); err != nil { 71 | t.Fatal(err) 72 | } 73 | const want = math.MaxInt32 74 | if e != want { 75 | t.Errorf("expiration time = %v; want %v", e, want) 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /oauth2/internal/transport.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | import ( 8 | "context" 9 | "net/http" 10 | ) 11 | 12 | // HTTPClient is the context key to use with golang.org/x/net/context's 13 | // WithValue function to associate an *http.Client value with a context. 14 | var HTTPClient ContextKey 15 | 16 | // ContextKey is just an empty struct. It exists so HTTPClient can be 17 | // an immutable public variable with a unique type. It's immutable 18 | // because nobody else can create a ContextKey, being unexported. 19 | type ContextKey struct{} 20 | 21 | var appengineClientHook func(context.Context) *http.Client 22 | 23 | func ContextClient(ctx context.Context) *http.Client { 24 | if ctx != nil { 25 | if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok { 26 | return hc 27 | } 28 | } 29 | if appengineClientHook != nil { 30 | return appengineClientHook(ctx) 31 | } 32 | return http.DefaultClient 33 | } 34 | -------------------------------------------------------------------------------- /oauth2/token_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package oauth2 6 | 7 | import ( 8 | "testing" 9 | "time" 10 | ) 11 | 12 | func TestTokenExtra(t *testing.T) { 13 | type testCase struct { 14 | key string 15 | val interface{} 16 | want interface{} 17 | } 18 | const key = "extra-key" 19 | cases := []testCase{ 20 | {key: key, val: "abc", want: "abc"}, 21 | {key: key, val: 123, want: 123}, 22 | {key: key, val: "", want: ""}, 23 | {key: "other-key", val: "def", want: nil}, 24 | } 25 | for _, tc := range cases { 26 | extra := make(map[string]interface{}) 27 | extra[tc.key] = tc.val 28 | tok := &Token{raw: extra} 29 | if got, want := tok.Extra(key), tc.want; got != want { 30 | t.Errorf("Extra(%q) = %q; want %q", key, got, want) 31 | } 32 | } 33 | } 34 | 35 | func TestTokenExpiry(t *testing.T) { 36 | now := time.Now() 37 | timeNow = func() time.Time { return now } 38 | defer func() { timeNow = time.Now }() 39 | 40 | cases := []struct { 41 | name string 42 | tok *Token 43 | want bool 44 | }{ 45 | {name: "12 seconds", tok: &Token{Expiry: now.Add(12 * time.Second)}, want: false}, 46 | {name: "10 seconds", tok: &Token{Expiry: now.Add(expiryDelta)}, want: false}, 47 | {name: "10 seconds-1ns", tok: &Token{Expiry: now.Add(expiryDelta - 1*time.Nanosecond)}, want: true}, 48 | {name: "-1 hour", tok: &Token{Expiry: now.Add(-1 * time.Hour)}, want: true}, 49 | } 50 | for _, tc := range cases { 51 | if got, want := tc.tok.expired(), tc.want; got != want { 52 | t.Errorf("expired (%q) = %v; want %v", tc.name, got, want) 53 | } 54 | } 55 | } 56 | 57 | func TestTokenTypeMethod(t *testing.T) { 58 | cases := []struct { 59 | name string 60 | tok *Token 61 | want string 62 | }{ 63 | {name: "bearer-mixed_case", tok: &Token{TokenType: "beAREr"}, want: "Bearer"}, 64 | {name: "default-bearer", tok: &Token{}, want: "Bearer"}, 65 | {name: "basic", tok: &Token{TokenType: "basic"}, want: "Basic"}, 66 | {name: "basic-capitalized", tok: &Token{TokenType: "Basic"}, want: "Basic"}, 67 | {name: "mac", tok: &Token{TokenType: "mac"}, want: "MAC"}, 68 | {name: "mac-caps", tok: &Token{TokenType: "MAC"}, want: "MAC"}, 69 | {name: "mac-mixed_case", tok: &Token{TokenType: "mAc"}, want: "MAC"}, 70 | } 71 | for _, tc := range cases { 72 | if got, want := tc.tok.Type(), tc.want; got != want { 73 | t.Errorf("TokenType(%q) = %v; want %v", tc.name, got, want) 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /oauth2/transport.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package oauth2 6 | 7 | import ( 8 | "errors" 9 | "net/http" 10 | ) 11 | 12 | // Transport is an http.RoundTripper that makes OAuth 2.0 HTTP requests, 13 | // wrapping a base RoundTripper and adding an Authorization header 14 | // with a token from the supplied Sources. 15 | // 16 | // Transport is a low-level mechanism. Most code will use the 17 | // higher-level Config.Client method instead. 18 | type Transport struct { 19 | // Source supplies the token to add to outgoing requests' 20 | // Authorization headers. 21 | Source TokenSource 22 | 23 | // Base is the base RoundTripper used to make HTTP requests. 24 | // If nil, http.DefaultTransport is used. 25 | Base http.RoundTripper 26 | } 27 | 28 | // RoundTrip authorizes and authenticates the request with an 29 | // access token from Transport's Source. 30 | func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { 31 | reqBodyClosed := false 32 | if req.Body != nil { 33 | defer func() { 34 | if !reqBodyClosed { 35 | req.Body.Close() 36 | } 37 | }() 38 | } 39 | 40 | if t.Source == nil { 41 | return nil, errors.New("oauth2: Transport's Source is nil") 42 | } 43 | token, err := t.Source.Token() 44 | if err != nil { 45 | return nil, err 46 | } 47 | 48 | req2 := cloneRequest(req) // per RoundTripper contract 49 | token.SetAuthHeader(req2) 50 | 51 | // req.Body is assumed to be closed by the base RoundTripper. 52 | reqBodyClosed = true 53 | return t.base().RoundTrip(req2) 54 | } 55 | 56 | func (t *Transport) base() http.RoundTripper { 57 | if t.Base != nil { 58 | return t.Base 59 | } 60 | return http.DefaultTransport 61 | } 62 | 63 | // cloneRequest returns a clone of the provided *http.Request. 64 | // The clone is a shallow copy of the struct and its Header map. 65 | func cloneRequest(r *http.Request) *http.Request { 66 | // shallow copy of the struct 67 | r2 := new(http.Request) 68 | *r2 = *r 69 | // deep copy of the Header 70 | r2.Header = make(http.Header, len(r.Header)) 71 | for k, s := range r.Header { 72 | r2.Header[k] = append([]string(nil), s...) 73 | } 74 | return r2 75 | } 76 | -------------------------------------------------------------------------------- /response.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Go SDK for Auth0 Fine Grained Authorization (FGA) 3 | * 4 | * API version: 0.1 5 | * Website: 6 | * Documentation: 7 | * Support: 8 | * License: [MIT](https://github.com/auth0-lab/fga-go-sdk/blob/main/LICENSE) 9 | * 10 | * NOTE: This file was auto generated by [OpenAPI Generator](https://openapi-generator.tech). DO NOT EDIT. 11 | */ 12 | 13 | package auth0fga 14 | 15 | import ( 16 | "net/http" 17 | ) 18 | 19 | // APIResponse stores the API response returned by the server. 20 | type APIResponse struct { 21 | *http.Response `json:"-"` 22 | Message string `json:"message,omitempty"` 23 | // Operation is the name of the OpenAPI operation. 24 | Operation string `json:"operation,omitempty"` 25 | // RequestURL is the request URL. This value is always available, even if the 26 | // embedded *http.Response is nil. 27 | RequestURL string `json:"url,omitempty"` 28 | // Method is the HTTP method used for the request. This value is always 29 | // available, even if the embedded *http.Response is nil. 30 | Method string `json:"method,omitempty"` 31 | // Payload holds the contents of the response body (which may be nil or empty). 32 | // This is provided here as the raw response.Body() reader will have already 33 | // been drained. 34 | Payload []byte `json:"-"` 35 | } 36 | 37 | // NewAPIResponse returns a new APIResponse object. 38 | func NewAPIResponse(r *http.Response) *APIResponse { 39 | 40 | response := &APIResponse{Response: r} 41 | return response 42 | } 43 | 44 | // NewAPIResponseWithError returns a new APIResponse object with the provided error message. 45 | func NewAPIResponseWithError(errorMessage string) *APIResponse { 46 | 47 | response := &APIResponse{Message: errorMessage} 48 | return response 49 | } 50 | --------------------------------------------------------------------------------