From 09e5e88e9cd116e1eaf30e781707f750733ee560 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Tue, 17 Jan 2023 17:43:20 -0500 Subject: [PATCH] release: v0.2.1 - upgrade `golang.org/x/net` dependency --- CHANGELOG.md | 6 ++++++ README.md | 2 +- api_open_fga.go | 6 ++++-- configuration.go | 2 +- docs/OpenFgaApi.md | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ebbf02..96b0608 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v0.2.1 + +### [0.2.1](https://github.com/openfga/go-sdk/compare/v0.2.0...v0.2.1) (2023-01-17) + +- chore(deps): upgrade `golang.org/x/net` dependency + ## v0.2.0 ### [0.2.0](https://github.com/openfga/go-sdk/compare/v0.1.1...v0.2.0) (2022-12-14) diff --git a/README.md b/README.md index b203903..1c8a705 100755 --- a/README.md +++ b/README.md @@ -466,7 +466,7 @@ Class | Method | HTTP request | Description *OpenFgaApi* | [**DeleteStore**](docs/OpenFgaApi.md#deletestore) | **Delete** /stores/{store_id} | Delete a store *OpenFgaApi* | [**Expand**](docs/OpenFgaApi.md#expand) | **Post** /stores/{store_id}/expand | Expand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship *OpenFgaApi* | [**GetStore**](docs/OpenFgaApi.md#getstore) | **Get** /stores/{store_id} | Get a store -*OpenFgaApi* | [**ListObjects**](docs/OpenFgaApi.md#listobjects) | **Post** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with +*OpenFgaApi* | [**ListObjects**](docs/OpenFgaApi.md#listobjects) | **Post** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all objects of the given type that the user has a relation with *OpenFgaApi* | [**ListStores**](docs/OpenFgaApi.md#liststores) | **Get** /stores | List all stores *OpenFgaApi* | [**Read**](docs/OpenFgaApi.md#read) | **Post** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules *OpenFgaApi* | [**ReadAssertions**](docs/OpenFgaApi.md#readassertions) | **Get** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID diff --git a/api_open_fga.go b/api_open_fga.go index 482a05a..6c3199e 100755 --- a/api_open_fga.go +++ b/api_open_fga.go @@ -181,10 +181,11 @@ type OpenFgaApi interface { GetStoreExecute(r ApiGetStoreRequest) (GetStoreResponse, *_nethttp.Response, error) /* - * ListObjects [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with + * ListObjects [EXPERIMENTAL] Get all objects of the given type that the user has a relation with * The ListObjects API returns a list of all the objects of the given type that the user has a relation with. To achieve this, both the store tuples and the authorization model are used. An `authorization_model_id` may be specified in the body. If it is, it will be used to decide the underlying implementation used. If it is not specified, the latest authorization model ID will be used. You may also specify `contextual_tuples` that will be treated as regular tuples. + The response will contain the related objects in an array in the "objects" field of the response and they will be strings in the object format `:` (e.g. "document:roadmap") * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiListObjectsRequest @@ -1971,11 +1972,12 @@ func (r ApiListObjectsRequest) Execute() (ListObjectsResponse, *_nethttp.Respons } /* - - ListObjects [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with + - ListObjects [EXPERIMENTAL] Get all objects of the given type that the user has a relation with - The ListObjects API returns a list of all the objects of the given type that the user has a relation with. To achieve this, both the store tuples and the authorization model are used. An `authorization_model_id` may be specified in the body. If it is, it will be used to decide the underlying implementation used. If it is not specified, the latest authorization model ID will be used. You may also specify `contextual_tuples` that will be treated as regular tuples. +The response will contain the related objects in an array in the "objects" field of the response and they will be strings in the object format `:` (e.g. "document:roadmap") - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListObjectsRequest diff --git a/configuration.go b/configuration.go index 2dc3b1f..732acea 100755 --- a/configuration.go +++ b/configuration.go @@ -19,7 +19,7 @@ import ( "github.com/openfga/go-sdk/credentials" ) -var SdkVersion = "0.2.0" +var SdkVersion = "0.2.1" // RetryParams configures configuration for retry in case of HTTP too many request type RetryParams struct { diff --git a/docs/OpenFgaApi.md b/docs/OpenFgaApi.md index 73108e0..e923525 100755 --- a/docs/OpenFgaApi.md +++ b/docs/OpenFgaApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description [**DeleteStore**](OpenFgaApi.md#DeleteStore) | **Delete** /stores/{store_id} | Delete a store [**Expand**](OpenFgaApi.md#Expand) | **Post** /stores/{store_id}/expand | Expand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship [**GetStore**](OpenFgaApi.md#GetStore) | **Get** /stores/{store_id} | Get a store -[**ListObjects**](OpenFgaApi.md#ListObjects) | **Post** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with +[**ListObjects**](OpenFgaApi.md#ListObjects) | **Post** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all objects of the given type that the user has a relation with [**ListStores**](OpenFgaApi.md#ListStores) | **Get** /stores | List all stores [**Read**](OpenFgaApi.md#Read) | **Post** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules [**ReadAssertions**](OpenFgaApi.md#ReadAssertions) | **Get** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID @@ -486,7 +486,7 @@ No authorization required > ListObjectsResponse ListObjects(ctx).Body(body).Execute() -[EXPERIMENTAL] Get all object ids of the given type that the user has a relation with +[EXPERIMENTAL] Get all objects of the given type that the user has a relation with diff --git a/go.mod b/go.mod index 6fbad0f..0f45d5e 100755 --- a/go.mod +++ b/go.mod @@ -4,5 +4,5 @@ go 1.19 require ( github.com/jarcoal/httpmock v1.2.0 - golang.org/x/net v0.4.0 + golang.org/x/net v0.5.0 ) diff --git a/go.sum b/go.sum index d6f8367..d12214e 100755 --- a/go.sum +++ b/go.sum @@ -2,5 +2,5 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/jarcoal/httpmock v1.2.0 h1:gSvTxxFR/MEMfsGrvRbdfpRUMBStovlSRLw0Ep1bwwc= github.com/jarcoal/httpmock v1.2.0/go.mod h1:oCoTsnAz4+UoOUIf5lJOWV2QQIW5UoeUI6aM2YnWAZk= github.com/maxatome/go-testdeep v1.11.0 h1:Tgh5efyCYyJFGUYiT0qxBSIDeXw0F5zSoatlou685kk= -golang.org/x/net v0.4.0 h1:Q5QPcMlvfxFTAPV0+07Xz/MpK9NTXu2VDUuy0FeMfaU= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=