diff --git a/docs/Argument.md b/docs/Argument.md index 9904eb7..3c05b81 100644 --- a/docs/Argument.md +++ b/docs/Argument.md @@ -9,7 +9,6 @@ Argument defines the type of argument in a Call. It can be either a ComputedAttr | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**computedAttribute** | [**ComputedAttribute**](ComputedAttribute.md) | | [optional] | -|**contextAttribute** | [**ContextAttribute**](ContextAttribute.md) | | [optional] | diff --git a/docs/AttributeType.md b/docs/AttributeType.md index 6d07ea1..183cef7 100644 --- a/docs/AttributeType.md +++ b/docs/AttributeType.md @@ -5,23 +5,21 @@ ## Enum -* `ATTRIBUTE_TYPE_UNSPECIFIED` (value: `"ATTRIBUTE_TYPE_UNSPECIFIED"`) +* `BOOLEAN` (value: `"ATTRIBUTE_TYPE_BOOLEAN"`) -* `ATTRIBUTE_TYPE_BOOLEAN` (value: `"ATTRIBUTE_TYPE_BOOLEAN"`) +* `BOOLEAN_ARRAY` (value: `"ATTRIBUTE_TYPE_BOOLEAN_ARRAY"`) -* `ATTRIBUTE_TYPE_BOOLEAN_ARRAY` (value: `"ATTRIBUTE_TYPE_BOOLEAN_ARRAY"`) +* `STRING` (value: `"ATTRIBUTE_TYPE_STRING"`) -* `ATTRIBUTE_TYPE_STRING` (value: `"ATTRIBUTE_TYPE_STRING"`) +* `STRING_ARRAY` (value: `"ATTRIBUTE_TYPE_STRING_ARRAY"`) -* `ATTRIBUTE_TYPE_STRING_ARRAY` (value: `"ATTRIBUTE_TYPE_STRING_ARRAY"`) +* `INTEGER` (value: `"ATTRIBUTE_TYPE_INTEGER"`) -* `ATTRIBUTE_TYPE_INTEGER` (value: `"ATTRIBUTE_TYPE_INTEGER"`) +* `INTEGER_ARRAY` (value: `"ATTRIBUTE_TYPE_INTEGER_ARRAY"`) -* `ATTRIBUTE_TYPE_INTEGER_ARRAY` (value: `"ATTRIBUTE_TYPE_INTEGER_ARRAY"`) +* `DOUBLE` (value: `"ATTRIBUTE_TYPE_DOUBLE"`) -* `ATTRIBUTE_TYPE_DOUBLE` (value: `"ATTRIBUTE_TYPE_DOUBLE"`) - -* `ATTRIBUTE_TYPE_DOUBLE_ARRAY` (value: `"ATTRIBUTE_TYPE_DOUBLE_ARRAY"`) +* `DOUBLE_ARRAY` (value: `"ATTRIBUTE_TYPE_DOUBLE_ARRAY"`) diff --git a/docs/PermissionCheckBody.md b/docs/CheckBody.md similarity index 97% rename from docs/PermissionCheckBody.md rename to docs/CheckBody.md index d36eff9..bcdf303 100644 --- a/docs/PermissionCheckBody.md +++ b/docs/CheckBody.md @@ -1,6 +1,6 @@ -# PermissionCheckBody +# CheckBody PermissionCheckRequest is the request message for the Check method in the Permission service. diff --git a/docs/CheckResult.md b/docs/CheckResult.md index 62f7b11..f8ffba8 100644 --- a/docs/CheckResult.md +++ b/docs/CheckResult.md @@ -5,11 +5,9 @@ ## Enum -* `CHECK_RESULT_UNSPECIFIED` (value: `"CHECK_RESULT_UNSPECIFIED"`) +* `ALLOWED` (value: `"CHECK_RESULT_ALLOWED"`) -* `CHECK_RESULT_ALLOWED` (value: `"CHECK_RESULT_ALLOWED"`) - -* `CHECK_RESULT_DENIED` (value: `"CHECK_RESULT_DENIED"`) +* `DENIED` (value: `"CHECK_RESULT_DENIED"`) diff --git a/docs/CheckedExpr.md b/docs/CheckedExpr.md index cb9810c..d8c7708 100644 --- a/docs/CheckedExpr.md +++ b/docs/CheckedExpr.md @@ -12,7 +12,7 @@ A CEL expression which has been successfully type checked. |**typeMap** | [**Map<String, V1alpha1Type>**](V1alpha1Type.md) | A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space. | [optional] | |**sourceInfo** | [**SourceInfo**](SourceInfo.md) | | [optional] | |**exprVersion** | **String** | The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation. | [optional] | -|**expr** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | +|**expr** | [**Expr**](Expr.md) | | [optional] | diff --git a/docs/Comprehension.md b/docs/Comprehension.md index b3cf206..525f57a 100644 --- a/docs/Comprehension.md +++ b/docs/Comprehension.md @@ -9,12 +9,12 @@ A comprehension expression applied to a list or map. Comprehensions are not par | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**iterVar** | **String** | The name of the iteration variable. | [optional] | -|**iterRange** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | +|**iterRange** | [**Expr**](Expr.md) | | [optional] | |**accuVar** | **String** | The name of the variable used for accumulation of the result. | [optional] | -|**accuInit** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | -|**loopCondition** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | -|**loopStep** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | -|**result** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | +|**accuInit** | [**Expr**](Expr.md) | | [optional] | +|**loopCondition** | [**Expr**](Expr.md) | | [optional] | +|**loopStep** | [**Expr**](Expr.md) | | [optional] | +|**result** | [**Expr**](Expr.md) | | [optional] | diff --git a/docs/ContextAttribute.md b/docs/ContextAttribute.md deleted file mode 100644 index 72d158b..0000000 --- a/docs/ContextAttribute.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ContextAttribute - -ContextAttribute defines a context attribute which includes its name. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | - - - diff --git a/docs/CreateList.md b/docs/CreateList.md index 6c42ca3..8d0f40b 100644 --- a/docs/CreateList.md +++ b/docs/CreateList.md @@ -8,7 +8,7 @@ A list creation expression. Lists may either be homogenous, e.g. `[1, 2, 3]`, o | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**elements** | **List<Object>** | The elements part of the list. | [optional] | +|**elements** | [**List<Expr>**](Expr.md) | The elements part of the list. | [optional] | |**optionalIndices** | **List<Integer>** | The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result. | [optional] | diff --git a/docs/DataChangeOperation.md b/docs/DataChangeOperation.md index 2b90707..77e247e 100644 --- a/docs/DataChangeOperation.md +++ b/docs/DataChangeOperation.md @@ -5,11 +5,9 @@ ## Enum -* `OPERATION_UNSPECIFIED` (value: `"OPERATION_UNSPECIFIED"`) +* `CREATE` (value: `"OPERATION_CREATE"`) -* `OPERATION_CREATE` (value: `"OPERATION_CREATE"`) - -* `OPERATION_DELETE` (value: `"OPERATION_DELETE"`) +* `DELETE` (value: `"OPERATION_DELETE"`) diff --git a/docs/EntityDefinitionReference.md b/docs/EntityDefinitionReference.md index 8f84262..c2ef7f5 100644 --- a/docs/EntityDefinitionReference.md +++ b/docs/EntityDefinitionReference.md @@ -5,13 +5,11 @@ ## Enum -* `REFERENCE_UNSPECIFIED` (value: `"REFERENCE_UNSPECIFIED"`) +* `RELATION` (value: `"REFERENCE_RELATION"`) -* `REFERENCE_RELATION` (value: `"REFERENCE_RELATION"`) +* `PERMISSION` (value: `"REFERENCE_PERMISSION"`) -* `REFERENCE_PERMISSION` (value: `"REFERENCE_PERMISSION"`) - -* `REFERENCE_ATTRIBUTE` (value: `"REFERENCE_ATTRIBUTE"`) +* `ATTRIBUTE` (value: `"REFERENCE_ATTRIBUTE"`) diff --git a/docs/Entry.md b/docs/Entry.md index d26d87c..b8dc286 100644 --- a/docs/Entry.md +++ b/docs/Entry.md @@ -10,8 +10,8 @@ Represents an entry. |------------ | ------------- | ------------- | -------------| |**id** | **String** | Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node. | [optional] | |**fieldKey** | **String** | The field key for a message creator statement. | [optional] | -|**mapKey** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | -|**value** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | +|**mapKey** | [**Expr**](Expr.md) | | [optional] | +|**value** | [**Expr**](Expr.md) | | [optional] | |**optionalEntry** | **Boolean** | Whether the key-value pair is optional. | [optional] | diff --git a/docs/ExpandTreeNode.md b/docs/ExpandTreeNode.md index 69b953c..3b0a586 100644 --- a/docs/ExpandTreeNode.md +++ b/docs/ExpandTreeNode.md @@ -9,7 +9,7 @@ ExpandTreeNode represents a node in an expansion tree with a specific operation | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**operation** | **ExpandTreeNodeOperation** | | [optional] | -|**children** | **List<Object>** | | [optional] | +|**children** | [**List<V1Expand>**](V1Expand.md) | | [optional] | diff --git a/docs/ExpandTreeNodeOperation.md b/docs/ExpandTreeNodeOperation.md index 59283f4..4951bfc 100644 --- a/docs/ExpandTreeNodeOperation.md +++ b/docs/ExpandTreeNodeOperation.md @@ -5,13 +5,11 @@ ## Enum -* `OPERATION_UNSPECIFIED` (value: `"OPERATION_UNSPECIFIED"`) +* `UNION` (value: `"OPERATION_UNION"`) -* `OPERATION_UNION` (value: `"OPERATION_UNION"`) +* `INTERSECTION` (value: `"OPERATION_INTERSECTION"`) -* `OPERATION_INTERSECTION` (value: `"OPERATION_INTERSECTION"`) - -* `OPERATION_EXCLUSION` (value: `"OPERATION_EXCLUSION"`) +* `EXCLUSION` (value: `"OPERATION_EXCLUSION"`) diff --git a/docs/Expr.md b/docs/Expr.md new file mode 100644 index 0000000..a03a5ae --- /dev/null +++ b/docs/Expr.md @@ -0,0 +1,21 @@ + + +# Expr + +An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree. | [optional] | +|**constExpr** | [**Constant**](Constant.md) | | [optional] | +|**identExpr** | [**Ident**](Ident.md) | | [optional] | +|**selectExpr** | [**Select**](Select.md) | | [optional] | +|**callExpr** | [**ExprCall**](ExprCall.md) | | [optional] | +|**listExpr** | [**CreateList**](CreateList.md) | | [optional] | +|**structExpr** | [**CreateStruct**](CreateStruct.md) | | [optional] | +|**comprehensionExpr** | [**Comprehension**](Comprehension.md) | | [optional] | + + + diff --git a/docs/ExprCall.md b/docs/ExprCall.md index 1755408..1398305 100644 --- a/docs/ExprCall.md +++ b/docs/ExprCall.md @@ -8,9 +8,9 @@ A call expression, including calls to predefined functions and operators. For e | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**target** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | +|**target** | [**Expr**](Expr.md) | | [optional] | |**function** | **String** | Required. The name of the function or method being called. | [optional] | -|**args** | **List<Object>** | The arguments. | [optional] | +|**args** | [**List<Expr>**](Expr.md) | The arguments. | [optional] | diff --git a/docs/HealthApi.md b/docs/HealthApi.md deleted file mode 100644 index b3ccd24..0000000 --- a/docs/HealthApi.md +++ /dev/null @@ -1,134 +0,0 @@ -# HealthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**healthCheck**](HealthApi.md#healthCheck) | **GET** /healthz | health api | -| [**healthCheckWithHttpInfo**](HealthApi.md#healthCheckWithHttpInfo) | **GET** /healthz | health api | - - - -## healthCheck - -> HealthResponse healthCheck() - -health api - -### Example - -```java -// Import classes: -import co.permify.sdk.client.ApiClient; -import co.permify.sdk.client.ApiException; -import co.permify.sdk.client.Configuration; -import co.permify.sdk.client.models.*; -import co.permify.sdk.api.HealthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - HealthApi apiInstance = new HealthApi(defaultClient); - try { - HealthResponse result = apiInstance.healthCheck(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling HealthApi#healthCheck"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HealthResponse**](HealthResponse.md) - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A successful response. | - | -| **0** | An unexpected error response. | - | - -## healthCheckWithHttpInfo - -> ApiResponse healthCheck healthCheckWithHttpInfo() - -health api - -### Example - -```java -// Import classes: -import co.permify.sdk.client.ApiClient; -import co.permify.sdk.client.ApiException; -import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; -import co.permify.sdk.client.models.*; -import co.permify.sdk.api.HealthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - HealthApi apiInstance = new HealthApi(defaultClient); - try { - ApiResponse response = apiInstance.healthCheckWithHttpInfo(); - System.out.println("Status code: " + response.getStatusCode()); - System.out.println("Response headers: " + response.getHeaders()); - System.out.println("Response body: " + response.getData()); - } catch (ApiException e) { - System.err.println("Exception when calling HealthApi#healthCheck"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -ApiResponse<[**HealthResponse**](HealthResponse.md)> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A successful response. | - | -| **0** | An unexpected error response. | - | - diff --git a/docs/HealthResponse.md b/docs/HealthResponse.md deleted file mode 100644 index 680d68f..0000000 --- a/docs/HealthResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# HealthResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | | [optional] | - - - diff --git a/docs/LookupEntityBody.md b/docs/LookupEntityBody.md index cccb584..b5ed4a2 100644 --- a/docs/LookupEntityBody.md +++ b/docs/LookupEntityBody.md @@ -13,7 +13,8 @@ PermissionLookupEntityRequest is the request message for the LookupEntity method |**permission** | **String** | Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. | [optional] | |**subject** | [**Subject**](Subject.md) | | [optional] | |**context** | [**Context**](Context.md) | | [optional] | -|**pageSize** | **Long** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional] | +|**scope** | [**Map<String, StringArrayValue>**](StringArrayValue.md) | Scope: A map that associates entity types with lists of identifiers. Each entry helps filter requests by specifying which entities are relevant to the operation. | [optional] | +|**pageSize** | **Long** | page_size is the number of entities to be returned in the response. The value should be between 1 and 100. | [optional] | |**continuousToken** | **String** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional] | diff --git a/docs/LookupEntityStreamBody.md b/docs/LookupEntityStreamBody.md index ec2c218..6a37667 100644 --- a/docs/LookupEntityStreamBody.md +++ b/docs/LookupEntityStreamBody.md @@ -13,7 +13,8 @@ PermissionLookupEntityRequest is the request message for the LookupEntity method |**permission** | **String** | Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. | [optional] | |**subject** | [**Subject**](Subject.md) | | [optional] | |**context** | [**Context**](Context.md) | | [optional] | -|**pageSize** | **Long** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional] | +|**scope** | [**Map<String, StringArrayValue>**](StringArrayValue.md) | Scope: A map that associates entity types with lists of identifiers. Each entry helps filter requests by specifying which entities are relevant to the operation. | [optional] | +|**pageSize** | **Long** | page_size is the number of entities to be returned in the response. The value should be between 1 and 100. | [optional] | |**continuousToken** | **String** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional] | diff --git a/docs/LookupSubjectBody.md b/docs/LookupSubjectBody.md index 05cebc8..c39ca1f 100644 --- a/docs/LookupSubjectBody.md +++ b/docs/LookupSubjectBody.md @@ -13,7 +13,8 @@ PermissionLookupSubjectRequest is the request message for the LookupSubject meth |**permission** | **String** | Permission to be checked, can be a permission or relation. Required, and must match the pattern \"^([a-zA-Z][a-zA-Z0-9_]{1,62}[a-zA-Z0-9])$\", max 64 bytes. | [optional] | |**subjectReference** | [**RelationReference**](RelationReference.md) | | [optional] | |**context** | [**Context**](Context.md) | | [optional] | -|**pageSize** | **Long** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional] | +|**arguments** | [**List<Argument>**](Argument.md) | Additional arguments associated with this request. | [optional] | +|**pageSize** | **Long** | page_size is the number of subjects to be returned in the response. The value should be between 1 and 100. | [optional] | |**continuousToken** | **String** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional] | diff --git a/docs/NullValue.md b/docs/NullValue.md deleted file mode 100644 index cfb0af1..0000000 --- a/docs/NullValue.md +++ /dev/null @@ -1,11 +0,0 @@ - - -# NullValue - -## Enum - - -* `NULL_VALUE` (value: `"NULL_VALUE"`) - - - diff --git a/docs/PermissionApi.md b/docs/PermissionApi.md index 41bf35a..d9551a4 100644 --- a/docs/PermissionApi.md +++ b/docs/PermissionApi.md @@ -42,7 +42,7 @@ public class Example { PermissionApi apiInstance = new PermissionApi(defaultClient); String tenantId = "tenantId_example"; // String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant t1 for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. - PermissionCheckBody body = new PermissionCheckBody(); // PermissionCheckBody | + CheckBody body = new CheckBody(); // CheckBody | try { PermissionCheckResponse result = apiInstance.permissionsCheck(tenantId, body); System.out.println(result); @@ -63,7 +63,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. | | -| **body** | [**PermissionCheckBody**](PermissionCheckBody.md)| | | +| **body** | [**CheckBody**](CheckBody.md)| | | ### Return type @@ -109,7 +109,7 @@ public class Example { PermissionApi apiInstance = new PermissionApi(defaultClient); String tenantId = "tenantId_example"; // String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant t1 for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. - PermissionCheckBody body = new PermissionCheckBody(); // PermissionCheckBody | + CheckBody body = new CheckBody(); // CheckBody | try { ApiResponse response = apiInstance.permissionsCheckWithHttpInfo(tenantId, body); System.out.println("Status code: " + response.getStatusCode()); @@ -132,7 +132,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. | | -| **body** | [**PermissionCheckBody**](PermissionCheckBody.md)| | | +| **body** | [**CheckBody**](CheckBody.md)| | | ### Return type diff --git a/docs/PermissionExpandResponse.md b/docs/PermissionExpandResponse.md index f45abb5..b44e70a 100644 --- a/docs/PermissionExpandResponse.md +++ b/docs/PermissionExpandResponse.md @@ -8,7 +8,7 @@ PermissionExpandResponse is the response message for the Expand method in the Pe | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**tree** | **Object** | Expand is used to define a hierarchical structure for permissions. It has an entity, permission, and arguments. The node can be either another hierarchical structure or a set of subjects. | [optional] | +|**tree** | [**V1Expand**](V1Expand.md) | | [optional] | diff --git a/docs/PrimitiveType.md b/docs/PrimitiveType.md index e9a4add..0ae623b 100644 --- a/docs/PrimitiveType.md +++ b/docs/PrimitiveType.md @@ -5,8 +5,6 @@ ## Enum -* `PRIMITIVE_TYPE_UNSPECIFIED` (value: `"PRIMITIVE_TYPE_UNSPECIFIED"`) - * `BOOL` (value: `"BOOL"`) * `INT64` (value: `"INT64"`) diff --git a/docs/RewriteOperation.md b/docs/RewriteOperation.md index 7776b1e..b1889e1 100644 --- a/docs/RewriteOperation.md +++ b/docs/RewriteOperation.md @@ -5,13 +5,11 @@ ## Enum -* `OPERATION_UNSPECIFIED` (value: `"OPERATION_UNSPECIFIED"`) +* `UNION` (value: `"OPERATION_UNION"`) -* `OPERATION_UNION` (value: `"OPERATION_UNION"`) +* `INTERSECTION` (value: `"OPERATION_INTERSECTION"`) -* `OPERATION_INTERSECTION` (value: `"OPERATION_INTERSECTION"`) - -* `OPERATION_EXCLUSION` (value: `"OPERATION_EXCLUSION"`) +* `EXCLUSION` (value: `"OPERATION_EXCLUSION"`) diff --git a/docs/SchemaDefinitionReference.md b/docs/SchemaDefinitionReference.md index c9b1d38..15a9aca 100644 --- a/docs/SchemaDefinitionReference.md +++ b/docs/SchemaDefinitionReference.md @@ -5,11 +5,9 @@ ## Enum -* `REFERENCE_UNSPECIFIED` (value: `"REFERENCE_UNSPECIFIED"`) +* `ENTITY` (value: `"REFERENCE_ENTITY"`) -* `REFERENCE_ENTITY` (value: `"REFERENCE_ENTITY"`) - -* `REFERENCE_RULE` (value: `"REFERENCE_RULE"`) +* `RULE` (value: `"REFERENCE_RULE"`) diff --git a/docs/SchemaListBody.md b/docs/SchemaListBody.md index 48adabe..d441395 100644 --- a/docs/SchemaListBody.md +++ b/docs/SchemaListBody.md @@ -8,7 +8,7 @@ SchemaListRequest is the request message for the List method in the Schema servi | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**pageSize** | **Long** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional] | +|**pageSize** | **Long** | page_size is the number of schemas to be returned in the response. The value should be between 1 and 100. | [optional] | |**continuousToken** | **String** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional] | diff --git a/docs/Select.md b/docs/Select.md index b09a58f..fdee275 100644 --- a/docs/Select.md +++ b/docs/Select.md @@ -8,7 +8,7 @@ A field selection expression. e.g. `request.auth`. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**operand** | **Object** | An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. | [optional] | +|**operand** | [**Expr**](Expr.md) | | [optional] | |**field** | **String** | Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`. | [optional] | |**testOnly** | **Boolean** | Whether the select is to be interpreted as a field presence test. This results from the macro `has(request.auth)`. | [optional] | diff --git a/docs/SourceInfo.md b/docs/SourceInfo.md index 75a1dc7..1441340 100644 --- a/docs/SourceInfo.md +++ b/docs/SourceInfo.md @@ -12,7 +12,7 @@ Source information collected at parse time. |**location** | **String** | The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`. | [optional] | |**lineOffsets** | **List<Integer>** | Monotonically increasing list of code point offsets where newlines `\\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derivd from `id_positions[id] - line_offsets[i]`. | [optional] | |**positions** | **Map<String, Integer>** | A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source. | [optional] | -|**macroCalls** | **Map<String, Object>** | A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced. | [optional] | +|**macroCalls** | [**Map<String, Expr>**](Expr.md) | A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced. | [optional] | diff --git a/docs/StringArrayValue.md b/docs/StringArrayValue.md new file mode 100644 index 0000000..81e0fa0 --- /dev/null +++ b/docs/StringArrayValue.md @@ -0,0 +1,14 @@ + + +# StringArrayValue + +Wrapper for an array of strings. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **List<String>** | The array of strings. | [optional] | + + + diff --git a/docs/V1Expand.md b/docs/V1Expand.md new file mode 100644 index 0000000..32a6153 --- /dev/null +++ b/docs/V1Expand.md @@ -0,0 +1,18 @@ + + +# V1Expand + +Expand is used to define a hierarchical structure for permissions. It has an entity, permission, and arguments. The node can be either another hierarchical structure or a set of subjects. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**entity** | [**Entity**](Entity.md) | | [optional] | +|**permission** | **String** | permission is the permission applied to the entity. | [optional] | +|**arguments** | [**List<Argument>**](Argument.md) | arguments are the additional information or context used to evaluate permissions. | [optional] | +|**expand** | [**ExpandTreeNode**](ExpandTreeNode.md) | | [optional] | +|**leaf** | [**ExpandLeaf**](ExpandLeaf.md) | | [optional] | + + + diff --git a/docs/WellKnownType.md b/docs/WellKnownType.md index 4a6d9cf..482407b 100644 --- a/docs/WellKnownType.md +++ b/docs/WellKnownType.md @@ -5,8 +5,6 @@ ## Enum -* `WELL_KNOWN_TYPE_UNSPECIFIED` (value: `"WELL_KNOWN_TYPE_UNSPECIFIED"`) - * `ANY` (value: `"ANY"`) * `TIMESTAMP` (value: `"TIMESTAMP"`) diff --git a/generator/openapi.json b/generator/openapi.json index fa4d469..3a13ab2 100644 --- a/generator/openapi.json +++ b/generator/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Permify API", "description": "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.", - "version": "v1.0.0", + "version": "v1.4.2", "contact": { "name": "API Support", "url": "https://github.com/Permify/permify/issues", @@ -3534,4 +3534,4 @@ "in": "header" } } -} +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 935c700..372cbd4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ permify-java jar Permify Java - 1.0.3 + 1.4.2 https://github.com/Permify/permify-java Java SDK for Permify - Authorization as a Service diff --git a/src/main/java/co/permify/sdk/api/BundleApi.java b/src/main/java/co/permify/sdk/api/BundleApi.java index d83234d..84831b0 100644 --- a/src/main/java/co/permify/sdk/api/BundleApi.java +++ b/src/main/java/co/permify/sdk/api/BundleApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,6 @@ import co.permify.sdk.client.ApiClient; import co.permify.sdk.client.ApiException; import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; import co.permify.sdk.client.Pair; import co.permify.sdk.model.BundleDeleteBody; @@ -51,7 +50,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -62,7 +61,7 @@ public class BundleApi { private final Consumer> memberVarAsyncResponseInterceptor; public BundleApi() { - this(Configuration.getDefaultApiClient()); + this(new ApiClient()); } public BundleApi(ApiClient apiClient) { @@ -96,7 +95,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return BundleDeleteResponse * @throws ApiException if fails to make API call */ - public BundleDeleteResponse bundleDelete(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleDeleteBody body) throws ApiException { + public BundleDeleteResponse bundleDelete(String tenantId, BundleDeleteBody body) throws ApiException { ApiResponse localVarResponse = bundleDeleteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -109,7 +108,7 @@ public BundleDeleteResponse bundleDelete(@jakarta.annotation.Nonnull String tena * @return ApiResponse<BundleDeleteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse bundleDeleteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleDeleteBody body) throws ApiException { + public ApiResponse bundleDeleteWithHttpInfo(String tenantId, BundleDeleteBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = bundleDeleteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -122,21 +121,10 @@ public ApiResponse bundleDeleteWithHttpInfo(@jakarta.annot if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("bundleDelete", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -149,7 +137,7 @@ public ApiResponse bundleDeleteWithHttpInfo(@jakarta.annot } } - private HttpRequest.Builder bundleDeleteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleDeleteBody body) throws ApiException { + private HttpRequest.Builder bundleDeleteRequestBuilder(String tenantId, BundleDeleteBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling bundleDelete"); @@ -183,7 +171,6 @@ private HttpRequest.Builder bundleDeleteRequestBuilder(@jakarta.annotation.Nonnu } return localVarRequestBuilder; } - /** * read bundle * @@ -192,7 +179,7 @@ private HttpRequest.Builder bundleDeleteRequestBuilder(@jakarta.annotation.Nonnu * @return BundleReadResponse * @throws ApiException if fails to make API call */ - public BundleReadResponse bundleRead(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleReadBody body) throws ApiException { + public BundleReadResponse bundleRead(String tenantId, BundleReadBody body) throws ApiException { ApiResponse localVarResponse = bundleReadWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -205,7 +192,7 @@ public BundleReadResponse bundleRead(@jakarta.annotation.Nonnull String tenantId * @return ApiResponse<BundleReadResponse> * @throws ApiException if fails to make API call */ - public ApiResponse bundleReadWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleReadBody body) throws ApiException { + public ApiResponse bundleReadWithHttpInfo(String tenantId, BundleReadBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = bundleReadRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -218,21 +205,10 @@ public ApiResponse bundleReadWithHttpInfo(@jakarta.annotatio if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("bundleRead", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -245,7 +221,7 @@ public ApiResponse bundleReadWithHttpInfo(@jakarta.annotatio } } - private HttpRequest.Builder bundleReadRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleReadBody body) throws ApiException { + private HttpRequest.Builder bundleReadRequestBuilder(String tenantId, BundleReadBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling bundleRead"); @@ -279,7 +255,6 @@ private HttpRequest.Builder bundleReadRequestBuilder(@jakarta.annotation.Nonnull } return localVarRequestBuilder; } - /** * write bundle * @@ -288,7 +263,7 @@ private HttpRequest.Builder bundleReadRequestBuilder(@jakarta.annotation.Nonnull * @return BundleWriteResponse * @throws ApiException if fails to make API call */ - public BundleWriteResponse bundleWrite(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleWriteBody body) throws ApiException { + public BundleWriteResponse bundleWrite(String tenantId, BundleWriteBody body) throws ApiException { ApiResponse localVarResponse = bundleWriteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -301,7 +276,7 @@ public BundleWriteResponse bundleWrite(@jakarta.annotation.Nonnull String tenant * @return ApiResponse<BundleWriteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse bundleWriteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleWriteBody body) throws ApiException { + public ApiResponse bundleWriteWithHttpInfo(String tenantId, BundleWriteBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = bundleWriteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -314,21 +289,10 @@ public ApiResponse bundleWriteWithHttpInfo(@jakarta.annotat if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("bundleWrite", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -341,7 +305,7 @@ public ApiResponse bundleWriteWithHttpInfo(@jakarta.annotat } } - private HttpRequest.Builder bundleWriteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull BundleWriteBody body) throws ApiException { + private HttpRequest.Builder bundleWriteRequestBuilder(String tenantId, BundleWriteBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling bundleWrite"); @@ -375,5 +339,4 @@ private HttpRequest.Builder bundleWriteRequestBuilder(@jakarta.annotation.Nonnul } return localVarRequestBuilder; } - } diff --git a/src/main/java/co/permify/sdk/api/DataApi.java b/src/main/java/co/permify/sdk/api/DataApi.java index bf1eefe..caaf672 100644 --- a/src/main/java/co/permify/sdk/api/DataApi.java +++ b/src/main/java/co/permify/sdk/api/DataApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,6 @@ import co.permify.sdk.client.ApiClient; import co.permify.sdk.client.ApiException; import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; import co.permify.sdk.client.Pair; import co.permify.sdk.model.AttributeReadResponse; @@ -59,7 +58,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -70,7 +69,7 @@ public class DataApi { private final Consumer> memberVarAsyncResponseInterceptor; public DataApi() { - this(Configuration.getDefaultApiClient()); + this(new ApiClient()); } public DataApi(ApiClient apiClient) { @@ -104,7 +103,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return BundleRunResponse * @throws ApiException if fails to make API call */ - public BundleRunResponse bundleRun(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull RunBundleBody body) throws ApiException { + public BundleRunResponse bundleRun(String tenantId, RunBundleBody body) throws ApiException { ApiResponse localVarResponse = bundleRunWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -117,7 +116,7 @@ public BundleRunResponse bundleRun(@jakarta.annotation.Nonnull String tenantId, * @return ApiResponse<BundleRunResponse> * @throws ApiException if fails to make API call */ - public ApiResponse bundleRunWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull RunBundleBody body) throws ApiException { + public ApiResponse bundleRunWithHttpInfo(String tenantId, RunBundleBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = bundleRunRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -130,21 +129,10 @@ public ApiResponse bundleRunWithHttpInfo(@jakarta.annotation. if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("bundleRun", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -157,7 +145,7 @@ public ApiResponse bundleRunWithHttpInfo(@jakarta.annotation. } } - private HttpRequest.Builder bundleRunRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull RunBundleBody body) throws ApiException { + private HttpRequest.Builder bundleRunRequestBuilder(String tenantId, RunBundleBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling bundleRun"); @@ -191,7 +179,6 @@ private HttpRequest.Builder bundleRunRequestBuilder(@jakarta.annotation.Nonnull } return localVarRequestBuilder; } - /** * read attributes * @@ -200,7 +187,7 @@ private HttpRequest.Builder bundleRunRequestBuilder(@jakarta.annotation.Nonnull * @return AttributeReadResponse * @throws ApiException if fails to make API call */ - public AttributeReadResponse dataAttributesRead(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull ReadAttributesBody body) throws ApiException { + public AttributeReadResponse dataAttributesRead(String tenantId, ReadAttributesBody body) throws ApiException { ApiResponse localVarResponse = dataAttributesReadWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -213,7 +200,7 @@ public AttributeReadResponse dataAttributesRead(@jakarta.annotation.Nonnull Stri * @return ApiResponse<AttributeReadResponse> * @throws ApiException if fails to make API call */ - public ApiResponse dataAttributesReadWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull ReadAttributesBody body) throws ApiException { + public ApiResponse dataAttributesReadWithHttpInfo(String tenantId, ReadAttributesBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = dataAttributesReadRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -226,21 +213,10 @@ public ApiResponse dataAttributesReadWithHttpInfo(@jakart if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("dataAttributesRead", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -253,7 +229,7 @@ public ApiResponse dataAttributesReadWithHttpInfo(@jakart } } - private HttpRequest.Builder dataAttributesReadRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull ReadAttributesBody body) throws ApiException { + private HttpRequest.Builder dataAttributesReadRequestBuilder(String tenantId, ReadAttributesBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling dataAttributesRead"); @@ -287,7 +263,6 @@ private HttpRequest.Builder dataAttributesReadRequestBuilder(@jakarta.annotation } return localVarRequestBuilder; } - /** * delete data * @@ -296,7 +271,7 @@ private HttpRequest.Builder dataAttributesReadRequestBuilder(@jakarta.annotation * @return DataDeleteResponse * @throws ApiException if fails to make API call */ - public DataDeleteResponse dataDelete(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DataDeleteBody body) throws ApiException { + public DataDeleteResponse dataDelete(String tenantId, DataDeleteBody body) throws ApiException { ApiResponse localVarResponse = dataDeleteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -309,7 +284,7 @@ public DataDeleteResponse dataDelete(@jakarta.annotation.Nonnull String tenantId * @return ApiResponse<DataDeleteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse dataDeleteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DataDeleteBody body) throws ApiException { + public ApiResponse dataDeleteWithHttpInfo(String tenantId, DataDeleteBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = dataDeleteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -322,21 +297,10 @@ public ApiResponse dataDeleteWithHttpInfo(@jakarta.annotatio if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("dataDelete", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -349,7 +313,7 @@ public ApiResponse dataDeleteWithHttpInfo(@jakarta.annotatio } } - private HttpRequest.Builder dataDeleteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DataDeleteBody body) throws ApiException { + private HttpRequest.Builder dataDeleteRequestBuilder(String tenantId, DataDeleteBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling dataDelete"); @@ -383,7 +347,6 @@ private HttpRequest.Builder dataDeleteRequestBuilder(@jakarta.annotation.Nonnull } return localVarRequestBuilder; } - /** * read relationships * @@ -392,7 +355,7 @@ private HttpRequest.Builder dataDeleteRequestBuilder(@jakarta.annotation.Nonnull * @return RelationshipReadResponse * @throws ApiException if fails to make API call */ - public RelationshipReadResponse dataRelationshipsRead(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull ReadRelationshipsBody body) throws ApiException { + public RelationshipReadResponse dataRelationshipsRead(String tenantId, ReadRelationshipsBody body) throws ApiException { ApiResponse localVarResponse = dataRelationshipsReadWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -405,7 +368,7 @@ public RelationshipReadResponse dataRelationshipsRead(@jakarta.annotation.Nonnul * @return ApiResponse<RelationshipReadResponse> * @throws ApiException if fails to make API call */ - public ApiResponse dataRelationshipsReadWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull ReadRelationshipsBody body) throws ApiException { + public ApiResponse dataRelationshipsReadWithHttpInfo(String tenantId, ReadRelationshipsBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = dataRelationshipsReadRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -418,21 +381,10 @@ public ApiResponse dataRelationshipsReadWithHttpInfo(@ if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("dataRelationshipsRead", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -445,7 +397,7 @@ public ApiResponse dataRelationshipsReadWithHttpInfo(@ } } - private HttpRequest.Builder dataRelationshipsReadRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull ReadRelationshipsBody body) throws ApiException { + private HttpRequest.Builder dataRelationshipsReadRequestBuilder(String tenantId, ReadRelationshipsBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling dataRelationshipsRead"); @@ -479,7 +431,6 @@ private HttpRequest.Builder dataRelationshipsReadRequestBuilder(@jakarta.annotat } return localVarRequestBuilder; } - /** * write data * @@ -488,7 +439,7 @@ private HttpRequest.Builder dataRelationshipsReadRequestBuilder(@jakarta.annotat * @return DataWriteResponse * @throws ApiException if fails to make API call */ - public DataWriteResponse dataWrite(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DataWriteBody body) throws ApiException { + public DataWriteResponse dataWrite(String tenantId, DataWriteBody body) throws ApiException { ApiResponse localVarResponse = dataWriteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -501,7 +452,7 @@ public DataWriteResponse dataWrite(@jakarta.annotation.Nonnull String tenantId, * @return ApiResponse<DataWriteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse dataWriteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DataWriteBody body) throws ApiException { + public ApiResponse dataWriteWithHttpInfo(String tenantId, DataWriteBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = dataWriteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -514,21 +465,10 @@ public ApiResponse dataWriteWithHttpInfo(@jakarta.annotation. if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("dataWrite", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -541,7 +481,7 @@ public ApiResponse dataWriteWithHttpInfo(@jakarta.annotation. } } - private HttpRequest.Builder dataWriteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DataWriteBody body) throws ApiException { + private HttpRequest.Builder dataWriteRequestBuilder(String tenantId, DataWriteBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling dataWrite"); @@ -575,7 +515,6 @@ private HttpRequest.Builder dataWriteRequestBuilder(@jakarta.annotation.Nonnull } return localVarRequestBuilder; } - /** * delete relationships * @@ -584,7 +523,7 @@ private HttpRequest.Builder dataWriteRequestBuilder(@jakarta.annotation.Nonnull * @return RelationshipDeleteResponse * @throws ApiException if fails to make API call */ - public RelationshipDeleteResponse relationshipsDelete(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DeleteRelationshipsBody body) throws ApiException { + public RelationshipDeleteResponse relationshipsDelete(String tenantId, DeleteRelationshipsBody body) throws ApiException { ApiResponse localVarResponse = relationshipsDeleteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -597,7 +536,7 @@ public RelationshipDeleteResponse relationshipsDelete(@jakarta.annotation.Nonnul * @return ApiResponse<RelationshipDeleteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse relationshipsDeleteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DeleteRelationshipsBody body) throws ApiException { + public ApiResponse relationshipsDeleteWithHttpInfo(String tenantId, DeleteRelationshipsBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = relationshipsDeleteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -610,21 +549,10 @@ public ApiResponse relationshipsDeleteWithHttpInfo(@ if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("relationshipsDelete", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -637,7 +565,7 @@ public ApiResponse relationshipsDeleteWithHttpInfo(@ } } - private HttpRequest.Builder relationshipsDeleteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull DeleteRelationshipsBody body) throws ApiException { + private HttpRequest.Builder relationshipsDeleteRequestBuilder(String tenantId, DeleteRelationshipsBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling relationshipsDelete"); @@ -671,7 +599,6 @@ private HttpRequest.Builder relationshipsDeleteRequestBuilder(@jakarta.annotatio } return localVarRequestBuilder; } - /** * write relationships * @@ -680,7 +607,7 @@ private HttpRequest.Builder relationshipsDeleteRequestBuilder(@jakarta.annotatio * @return RelationshipWriteResponse * @throws ApiException if fails to make API call */ - public RelationshipWriteResponse relationshipsWrite(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull WriteRelationshipsBody body) throws ApiException { + public RelationshipWriteResponse relationshipsWrite(String tenantId, WriteRelationshipsBody body) throws ApiException { ApiResponse localVarResponse = relationshipsWriteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -693,7 +620,7 @@ public RelationshipWriteResponse relationshipsWrite(@jakarta.annotation.Nonnull * @return ApiResponse<RelationshipWriteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse relationshipsWriteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull WriteRelationshipsBody body) throws ApiException { + public ApiResponse relationshipsWriteWithHttpInfo(String tenantId, WriteRelationshipsBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = relationshipsWriteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -706,21 +633,10 @@ public ApiResponse relationshipsWriteWithHttpInfo(@ja if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("relationshipsWrite", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -733,7 +649,7 @@ public ApiResponse relationshipsWriteWithHttpInfo(@ja } } - private HttpRequest.Builder relationshipsWriteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull WriteRelationshipsBody body) throws ApiException { + private HttpRequest.Builder relationshipsWriteRequestBuilder(String tenantId, WriteRelationshipsBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling relationshipsWrite"); @@ -767,5 +683,4 @@ private HttpRequest.Builder relationshipsWriteRequestBuilder(@jakarta.annotation } return localVarRequestBuilder; } - } diff --git a/src/main/java/co/permify/sdk/api/HealthApi.java b/src/main/java/co/permify/sdk/api/HealthApi.java deleted file mode 100644 index 79b8498..0000000 --- a/src/main/java/co/permify/sdk/api/HealthApi.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package co.permify.sdk.api; - -import co.permify.sdk.client.ApiClient; -import co.permify.sdk.client.ApiException; -import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; -import co.permify.sdk.client.Pair; - -import co.permify.sdk.model.HealthResponse; -import co.permify.sdk.model.Status; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; - -import java.io.InputStream; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.IOException; -import java.io.OutputStream; -import java.net.http.HttpRequest; -import java.nio.channels.Channels; -import java.nio.channels.Pipe; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; - -import java.util.ArrayList; -import java.util.StringJoiner; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.function.Consumer; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class HealthApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public HealthApi() { - this(Configuration.getDefaultApiClient()); - } - - public HealthApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - protected ApiException getApiException(String operationId, HttpResponse response) throws IOException { - String body = response.body() == null ? null : new String(response.body().readAllBytes()); - String message = formatExceptionMessage(operationId, response.statusCode(), body); - return new ApiException(response.statusCode(), message, response.headers(), body); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * health api - * - * @return HealthResponse - * @throws ApiException if fails to make API call - */ - public HealthResponse healthCheck() throws ApiException { - ApiResponse localVarResponse = healthCheckWithHttpInfo(); - return localVarResponse.getData(); - } - - /** - * health api - * - * @return ApiResponse<HealthResponse> - * @throws ApiException if fails to make API call - */ - public ApiResponse healthCheckWithHttpInfo() throws ApiException { - HttpRequest.Builder localVarRequestBuilder = healthCheckRequestBuilder(); - try { - HttpResponse localVarResponse = memberVarHttpClient.send( - localVarRequestBuilder.build(), - HttpResponse.BodyHandlers.ofInputStream()); - if (memberVarResponseInterceptor != null) { - memberVarResponseInterceptor.accept(localVarResponse); - } - try { - if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("healthCheck", localVarResponse); - } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) - ); - } finally { - } - } catch (IOException e) { - throw new ApiException(e); - } - catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new ApiException(e); - } - } - - private HttpRequest.Builder healthCheckRequestBuilder() throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/healthz"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - -} diff --git a/src/main/java/co/permify/sdk/api/PermissionApi.java b/src/main/java/co/permify/sdk/api/PermissionApi.java index 4848593..fb2e0f3 100644 --- a/src/main/java/co/permify/sdk/api/PermissionApi.java +++ b/src/main/java/co/permify/sdk/api/PermissionApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,13 +15,12 @@ import co.permify.sdk.client.ApiClient; import co.permify.sdk.client.ApiException; import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; import co.permify.sdk.client.Pair; +import co.permify.sdk.model.CheckBody; import co.permify.sdk.model.LookupEntityBody; import co.permify.sdk.model.LookupEntityStreamBody; import co.permify.sdk.model.LookupSubjectBody; -import co.permify.sdk.model.PermissionCheckBody; import co.permify.sdk.model.PermissionCheckResponse; import co.permify.sdk.model.PermissionExpandBody; import co.permify.sdk.model.PermissionExpandResponse; @@ -57,7 +56,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -68,7 +67,7 @@ public class PermissionApi { private final Consumer> memberVarAsyncResponseInterceptor; public PermissionApi() { - this(Configuration.getDefaultApiClient()); + this(new ApiClient()); } public PermissionApi(ApiClient apiClient) { @@ -102,7 +101,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return PermissionCheckResponse * @throws ApiException if fails to make API call */ - public PermissionCheckResponse permissionsCheck(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PermissionCheckBody body) throws ApiException { + public PermissionCheckResponse permissionsCheck(String tenantId, CheckBody body) throws ApiException { ApiResponse localVarResponse = permissionsCheckWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -115,7 +114,7 @@ public PermissionCheckResponse permissionsCheck(@jakarta.annotation.Nonnull Stri * @return ApiResponse<PermissionCheckResponse> * @throws ApiException if fails to make API call */ - public ApiResponse permissionsCheckWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PermissionCheckBody body) throws ApiException { + public ApiResponse permissionsCheckWithHttpInfo(String tenantId, CheckBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = permissionsCheckRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -128,21 +127,10 @@ public ApiResponse permissionsCheckWithHttpInfo(@jakart if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("permissionsCheck", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -155,7 +143,7 @@ public ApiResponse permissionsCheckWithHttpInfo(@jakart } } - private HttpRequest.Builder permissionsCheckRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PermissionCheckBody body) throws ApiException { + private HttpRequest.Builder permissionsCheckRequestBuilder(String tenantId, CheckBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsCheck"); @@ -189,7 +177,6 @@ private HttpRequest.Builder permissionsCheckRequestBuilder(@jakarta.annotation.N } return localVarRequestBuilder; } - /** * expand api * @@ -198,7 +185,7 @@ private HttpRequest.Builder permissionsCheckRequestBuilder(@jakarta.annotation.N * @return PermissionExpandResponse * @throws ApiException if fails to make API call */ - public PermissionExpandResponse permissionsExpand(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PermissionExpandBody body) throws ApiException { + public PermissionExpandResponse permissionsExpand(String tenantId, PermissionExpandBody body) throws ApiException { ApiResponse localVarResponse = permissionsExpandWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -211,7 +198,7 @@ public PermissionExpandResponse permissionsExpand(@jakarta.annotation.Nonnull St * @return ApiResponse<PermissionExpandResponse> * @throws ApiException if fails to make API call */ - public ApiResponse permissionsExpandWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PermissionExpandBody body) throws ApiException { + public ApiResponse permissionsExpandWithHttpInfo(String tenantId, PermissionExpandBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = permissionsExpandRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -224,21 +211,10 @@ public ApiResponse permissionsExpandWithHttpInfo(@jaka if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("permissionsExpand", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -251,7 +227,7 @@ public ApiResponse permissionsExpandWithHttpInfo(@jaka } } - private HttpRequest.Builder permissionsExpandRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PermissionExpandBody body) throws ApiException { + private HttpRequest.Builder permissionsExpandRequestBuilder(String tenantId, PermissionExpandBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsExpand"); @@ -285,7 +261,6 @@ private HttpRequest.Builder permissionsExpandRequestBuilder(@jakarta.annotation. } return localVarRequestBuilder; } - /** * lookup entity * @@ -294,7 +269,7 @@ private HttpRequest.Builder permissionsExpandRequestBuilder(@jakarta.annotation. * @return PermissionLookupEntityResponse * @throws ApiException if fails to make API call */ - public PermissionLookupEntityResponse permissionsLookupEntity(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupEntityBody body) throws ApiException { + public PermissionLookupEntityResponse permissionsLookupEntity(String tenantId, LookupEntityBody body) throws ApiException { ApiResponse localVarResponse = permissionsLookupEntityWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -307,7 +282,7 @@ public PermissionLookupEntityResponse permissionsLookupEntity(@jakarta.annotatio * @return ApiResponse<PermissionLookupEntityResponse> * @throws ApiException if fails to make API call */ - public ApiResponse permissionsLookupEntityWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupEntityBody body) throws ApiException { + public ApiResponse permissionsLookupEntityWithHttpInfo(String tenantId, LookupEntityBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = permissionsLookupEntityRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -320,21 +295,10 @@ public ApiResponse permissionsLookupEntityWithHt if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("permissionsLookupEntity", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -347,7 +311,7 @@ public ApiResponse permissionsLookupEntityWithHt } } - private HttpRequest.Builder permissionsLookupEntityRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupEntityBody body) throws ApiException { + private HttpRequest.Builder permissionsLookupEntityRequestBuilder(String tenantId, LookupEntityBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsLookupEntity"); @@ -381,7 +345,6 @@ private HttpRequest.Builder permissionsLookupEntityRequestBuilder(@jakarta.annot } return localVarRequestBuilder; } - /** * lookup entity stream * @@ -390,7 +353,7 @@ private HttpRequest.Builder permissionsLookupEntityRequestBuilder(@jakarta.annot * @return StreamResultOfPermissionLookupEntityStreamResponse * @throws ApiException if fails to make API call */ - public StreamResultOfPermissionLookupEntityStreamResponse permissionsLookupEntityStream(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupEntityStreamBody body) throws ApiException { + public StreamResultOfPermissionLookupEntityStreamResponse permissionsLookupEntityStream(String tenantId, LookupEntityStreamBody body) throws ApiException { ApiResponse localVarResponse = permissionsLookupEntityStreamWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -403,7 +366,7 @@ public StreamResultOfPermissionLookupEntityStreamResponse permissionsLookupEntit * @return ApiResponse<StreamResultOfPermissionLookupEntityStreamResponse> * @throws ApiException if fails to make API call */ - public ApiResponse permissionsLookupEntityStreamWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupEntityStreamBody body) throws ApiException { + public ApiResponse permissionsLookupEntityStreamWithHttpInfo(String tenantId, LookupEntityStreamBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = permissionsLookupEntityStreamRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -416,21 +379,10 @@ public ApiResponse permissio if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("permissionsLookupEntityStream", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -443,7 +395,7 @@ public ApiResponse permissio } } - private HttpRequest.Builder permissionsLookupEntityStreamRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupEntityStreamBody body) throws ApiException { + private HttpRequest.Builder permissionsLookupEntityStreamRequestBuilder(String tenantId, LookupEntityStreamBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsLookupEntityStream"); @@ -477,7 +429,6 @@ private HttpRequest.Builder permissionsLookupEntityStreamRequestBuilder(@jakarta } return localVarRequestBuilder; } - /** * lookup-subject * @@ -486,7 +437,7 @@ private HttpRequest.Builder permissionsLookupEntityStreamRequestBuilder(@jakarta * @return PermissionLookupSubjectResponse * @throws ApiException if fails to make API call */ - public PermissionLookupSubjectResponse permissionsLookupSubject(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupSubjectBody body) throws ApiException { + public PermissionLookupSubjectResponse permissionsLookupSubject(String tenantId, LookupSubjectBody body) throws ApiException { ApiResponse localVarResponse = permissionsLookupSubjectWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -499,7 +450,7 @@ public PermissionLookupSubjectResponse permissionsLookupSubject(@jakarta.annotat * @return ApiResponse<PermissionLookupSubjectResponse> * @throws ApiException if fails to make API call */ - public ApiResponse permissionsLookupSubjectWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupSubjectBody body) throws ApiException { + public ApiResponse permissionsLookupSubjectWithHttpInfo(String tenantId, LookupSubjectBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = permissionsLookupSubjectRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -512,21 +463,10 @@ public ApiResponse permissionsLookupSubjectWith if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("permissionsLookupSubject", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -539,7 +479,7 @@ public ApiResponse permissionsLookupSubjectWith } } - private HttpRequest.Builder permissionsLookupSubjectRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull LookupSubjectBody body) throws ApiException { + private HttpRequest.Builder permissionsLookupSubjectRequestBuilder(String tenantId, LookupSubjectBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsLookupSubject"); @@ -573,7 +513,6 @@ private HttpRequest.Builder permissionsLookupSubjectRequestBuilder(@jakarta.anno } return localVarRequestBuilder; } - /** * subject permission * @@ -582,7 +521,7 @@ private HttpRequest.Builder permissionsLookupSubjectRequestBuilder(@jakarta.anno * @return PermissionSubjectPermissionResponse * @throws ApiException if fails to make API call */ - public PermissionSubjectPermissionResponse permissionsSubjectPermission(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SubjectPermissionBody body) throws ApiException { + public PermissionSubjectPermissionResponse permissionsSubjectPermission(String tenantId, SubjectPermissionBody body) throws ApiException { ApiResponse localVarResponse = permissionsSubjectPermissionWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -595,7 +534,7 @@ public PermissionSubjectPermissionResponse permissionsSubjectPermission(@jakarta * @return ApiResponse<PermissionSubjectPermissionResponse> * @throws ApiException if fails to make API call */ - public ApiResponse permissionsSubjectPermissionWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SubjectPermissionBody body) throws ApiException { + public ApiResponse permissionsSubjectPermissionWithHttpInfo(String tenantId, SubjectPermissionBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = permissionsSubjectPermissionRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -608,21 +547,10 @@ public ApiResponse permissionsSubjectPermis if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("permissionsSubjectPermission", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -635,7 +563,7 @@ public ApiResponse permissionsSubjectPermis } } - private HttpRequest.Builder permissionsSubjectPermissionRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SubjectPermissionBody body) throws ApiException { + private HttpRequest.Builder permissionsSubjectPermissionRequestBuilder(String tenantId, SubjectPermissionBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsSubjectPermission"); @@ -669,5 +597,4 @@ private HttpRequest.Builder permissionsSubjectPermissionRequestBuilder(@jakarta. } return localVarRequestBuilder; } - } diff --git a/src/main/java/co/permify/sdk/api/SchemaApi.java b/src/main/java/co/permify/sdk/api/SchemaApi.java index 85402d0..a23aaa2 100644 --- a/src/main/java/co/permify/sdk/api/SchemaApi.java +++ b/src/main/java/co/permify/sdk/api/SchemaApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,6 @@ import co.permify.sdk.client.ApiClient; import co.permify.sdk.client.ApiException; import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; import co.permify.sdk.client.Pair; import co.permify.sdk.model.PartialWriteBody; @@ -53,7 +52,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -64,7 +63,7 @@ public class SchemaApi { private final Consumer> memberVarAsyncResponseInterceptor; public SchemaApi() { - this(Configuration.getDefaultApiClient()); + this(new ApiClient()); } public SchemaApi(ApiClient apiClient) { @@ -98,7 +97,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return SchemaListResponse * @throws ApiException if fails to make API call */ - public SchemaListResponse schemasList(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaListBody body) throws ApiException { + public SchemaListResponse schemasList(String tenantId, SchemaListBody body) throws ApiException { ApiResponse localVarResponse = schemasListWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -111,7 +110,7 @@ public SchemaListResponse schemasList(@jakarta.annotation.Nonnull String tenantI * @return ApiResponse<SchemaListResponse> * @throws ApiException if fails to make API call */ - public ApiResponse schemasListWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaListBody body) throws ApiException { + public ApiResponse schemasListWithHttpInfo(String tenantId, SchemaListBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = schemasListRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -124,21 +123,10 @@ public ApiResponse schemasListWithHttpInfo(@jakarta.annotati if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("schemasList", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -151,7 +139,7 @@ public ApiResponse schemasListWithHttpInfo(@jakarta.annotati } } - private HttpRequest.Builder schemasListRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaListBody body) throws ApiException { + private HttpRequest.Builder schemasListRequestBuilder(String tenantId, SchemaListBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling schemasList"); @@ -185,7 +173,6 @@ private HttpRequest.Builder schemasListRequestBuilder(@jakarta.annotation.Nonnul } return localVarRequestBuilder; } - /** * partially update your authorization model * @@ -194,7 +181,7 @@ private HttpRequest.Builder schemasListRequestBuilder(@jakarta.annotation.Nonnul * @return SchemaPartialWriteResponse * @throws ApiException if fails to make API call */ - public SchemaPartialWriteResponse schemasPartialWrite(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PartialWriteBody body) throws ApiException { + public SchemaPartialWriteResponse schemasPartialWrite(String tenantId, PartialWriteBody body) throws ApiException { ApiResponse localVarResponse = schemasPartialWriteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -207,7 +194,7 @@ public SchemaPartialWriteResponse schemasPartialWrite(@jakarta.annotation.Nonnul * @return ApiResponse<SchemaPartialWriteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse schemasPartialWriteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PartialWriteBody body) throws ApiException { + public ApiResponse schemasPartialWriteWithHttpInfo(String tenantId, PartialWriteBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = schemasPartialWriteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -220,21 +207,10 @@ public ApiResponse schemasPartialWriteWithHttpInfo(@ if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("schemasPartialWrite", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -247,7 +223,7 @@ public ApiResponse schemasPartialWriteWithHttpInfo(@ } } - private HttpRequest.Builder schemasPartialWriteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull PartialWriteBody body) throws ApiException { + private HttpRequest.Builder schemasPartialWriteRequestBuilder(String tenantId, PartialWriteBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling schemasPartialWrite"); @@ -281,7 +257,6 @@ private HttpRequest.Builder schemasPartialWriteRequestBuilder(@jakarta.annotatio } return localVarRequestBuilder; } - /** * read schema * @@ -290,7 +265,7 @@ private HttpRequest.Builder schemasPartialWriteRequestBuilder(@jakarta.annotatio * @return SchemaReadResponse * @throws ApiException if fails to make API call */ - public SchemaReadResponse schemasRead(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaReadBody body) throws ApiException { + public SchemaReadResponse schemasRead(String tenantId, SchemaReadBody body) throws ApiException { ApiResponse localVarResponse = schemasReadWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -303,7 +278,7 @@ public SchemaReadResponse schemasRead(@jakarta.annotation.Nonnull String tenantI * @return ApiResponse<SchemaReadResponse> * @throws ApiException if fails to make API call */ - public ApiResponse schemasReadWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaReadBody body) throws ApiException { + public ApiResponse schemasReadWithHttpInfo(String tenantId, SchemaReadBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = schemasReadRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -316,21 +291,10 @@ public ApiResponse schemasReadWithHttpInfo(@jakarta.annotati if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("schemasRead", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -343,7 +307,7 @@ public ApiResponse schemasReadWithHttpInfo(@jakarta.annotati } } - private HttpRequest.Builder schemasReadRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaReadBody body) throws ApiException { + private HttpRequest.Builder schemasReadRequestBuilder(String tenantId, SchemaReadBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling schemasRead"); @@ -377,7 +341,6 @@ private HttpRequest.Builder schemasReadRequestBuilder(@jakarta.annotation.Nonnul } return localVarRequestBuilder; } - /** * write schema * @@ -386,7 +349,7 @@ private HttpRequest.Builder schemasReadRequestBuilder(@jakarta.annotation.Nonnul * @return SchemaWriteResponse * @throws ApiException if fails to make API call */ - public SchemaWriteResponse schemasWrite(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaWriteBody body) throws ApiException { + public SchemaWriteResponse schemasWrite(String tenantId, SchemaWriteBody body) throws ApiException { ApiResponse localVarResponse = schemasWriteWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -399,7 +362,7 @@ public SchemaWriteResponse schemasWrite(@jakarta.annotation.Nonnull String tenan * @return ApiResponse<SchemaWriteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse schemasWriteWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaWriteBody body) throws ApiException { + public ApiResponse schemasWriteWithHttpInfo(String tenantId, SchemaWriteBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = schemasWriteRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -412,21 +375,10 @@ public ApiResponse schemasWriteWithHttpInfo(@jakarta.annota if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("schemasWrite", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -439,7 +391,7 @@ public ApiResponse schemasWriteWithHttpInfo(@jakarta.annota } } - private HttpRequest.Builder schemasWriteRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull SchemaWriteBody body) throws ApiException { + private HttpRequest.Builder schemasWriteRequestBuilder(String tenantId, SchemaWriteBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling schemasWrite"); @@ -473,5 +425,4 @@ private HttpRequest.Builder schemasWriteRequestBuilder(@jakarta.annotation.Nonnu } return localVarRequestBuilder; } - } diff --git a/src/main/java/co/permify/sdk/api/TenancyApi.java b/src/main/java/co/permify/sdk/api/TenancyApi.java index 0c67907..10e4a2e 100644 --- a/src/main/java/co/permify/sdk/api/TenancyApi.java +++ b/src/main/java/co/permify/sdk/api/TenancyApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,6 @@ import co.permify.sdk.client.ApiClient; import co.permify.sdk.client.ApiException; import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; import co.permify.sdk.client.Pair; import co.permify.sdk.model.Status; @@ -50,7 +49,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TenancyApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -61,7 +60,7 @@ public class TenancyApi { private final Consumer> memberVarAsyncResponseInterceptor; public TenancyApi() { - this(Configuration.getDefaultApiClient()); + this(new ApiClient()); } public TenancyApi(ApiClient apiClient) { @@ -94,7 +93,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return TenantCreateResponse * @throws ApiException if fails to make API call */ - public TenantCreateResponse tenantsCreate(@jakarta.annotation.Nonnull TenantCreateRequest body) throws ApiException { + public TenantCreateResponse tenantsCreate(TenantCreateRequest body) throws ApiException { ApiResponse localVarResponse = tenantsCreateWithHttpInfo(body); return localVarResponse.getData(); } @@ -106,7 +105,7 @@ public TenantCreateResponse tenantsCreate(@jakarta.annotation.Nonnull TenantCrea * @return ApiResponse<TenantCreateResponse> * @throws ApiException if fails to make API call */ - public ApiResponse tenantsCreateWithHttpInfo(@jakarta.annotation.Nonnull TenantCreateRequest body) throws ApiException { + public ApiResponse tenantsCreateWithHttpInfo(TenantCreateRequest body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = tenantsCreateRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -119,21 +118,10 @@ public ApiResponse tenantsCreateWithHttpInfo(@jakarta.anno if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("tenantsCreate", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -146,7 +134,7 @@ public ApiResponse tenantsCreateWithHttpInfo(@jakarta.anno } } - private HttpRequest.Builder tenantsCreateRequestBuilder(@jakarta.annotation.Nonnull TenantCreateRequest body) throws ApiException { + private HttpRequest.Builder tenantsCreateRequestBuilder(TenantCreateRequest body) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling tenantsCreate"); @@ -175,7 +163,6 @@ private HttpRequest.Builder tenantsCreateRequestBuilder(@jakarta.annotation.Nonn } return localVarRequestBuilder; } - /** * delete tenant * @@ -183,7 +170,7 @@ private HttpRequest.Builder tenantsCreateRequestBuilder(@jakarta.annotation.Nonn * @return TenantDeleteResponse * @throws ApiException if fails to make API call */ - public TenantDeleteResponse tenantsDelete(@jakarta.annotation.Nonnull String id) throws ApiException { + public TenantDeleteResponse tenantsDelete(String id) throws ApiException { ApiResponse localVarResponse = tenantsDeleteWithHttpInfo(id); return localVarResponse.getData(); } @@ -195,7 +182,7 @@ public TenantDeleteResponse tenantsDelete(@jakarta.annotation.Nonnull String id) * @return ApiResponse<TenantDeleteResponse> * @throws ApiException if fails to make API call */ - public ApiResponse tenantsDeleteWithHttpInfo(@jakarta.annotation.Nonnull String id) throws ApiException { + public ApiResponse tenantsDeleteWithHttpInfo(String id) throws ApiException { HttpRequest.Builder localVarRequestBuilder = tenantsDeleteRequestBuilder(id); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -208,21 +195,10 @@ public ApiResponse tenantsDeleteWithHttpInfo(@jakarta.anno if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("tenantsDelete", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -235,7 +211,7 @@ public ApiResponse tenantsDeleteWithHttpInfo(@jakarta.anno } } - private HttpRequest.Builder tenantsDeleteRequestBuilder(@jakarta.annotation.Nonnull String id) throws ApiException { + private HttpRequest.Builder tenantsDeleteRequestBuilder(String id) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling tenantsDelete"); @@ -259,7 +235,6 @@ private HttpRequest.Builder tenantsDeleteRequestBuilder(@jakarta.annotation.Nonn } return localVarRequestBuilder; } - /** * list tenants * @@ -267,7 +242,7 @@ private HttpRequest.Builder tenantsDeleteRequestBuilder(@jakarta.annotation.Nonn * @return TenantListResponse * @throws ApiException if fails to make API call */ - public TenantListResponse tenantsList(@jakarta.annotation.Nonnull TenantListRequest body) throws ApiException { + public TenantListResponse tenantsList(TenantListRequest body) throws ApiException { ApiResponse localVarResponse = tenantsListWithHttpInfo(body); return localVarResponse.getData(); } @@ -279,7 +254,7 @@ public TenantListResponse tenantsList(@jakarta.annotation.Nonnull TenantListRequ * @return ApiResponse<TenantListResponse> * @throws ApiException if fails to make API call */ - public ApiResponse tenantsListWithHttpInfo(@jakarta.annotation.Nonnull TenantListRequest body) throws ApiException { + public ApiResponse tenantsListWithHttpInfo(TenantListRequest body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = tenantsListRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -292,21 +267,10 @@ public ApiResponse tenantsListWithHttpInfo(@jakarta.annotati if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("tenantsList", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -319,7 +283,7 @@ public ApiResponse tenantsListWithHttpInfo(@jakarta.annotati } } - private HttpRequest.Builder tenantsListRequestBuilder(@jakarta.annotation.Nonnull TenantListRequest body) throws ApiException { + private HttpRequest.Builder tenantsListRequestBuilder(TenantListRequest body) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling tenantsList"); @@ -348,5 +312,4 @@ private HttpRequest.Builder tenantsListRequestBuilder(@jakarta.annotation.Nonnul } return localVarRequestBuilder; } - } diff --git a/src/main/java/co/permify/sdk/api/WatchApi.java b/src/main/java/co/permify/sdk/api/WatchApi.java index 2e75be5..b8a5c80 100644 --- a/src/main/java/co/permify/sdk/api/WatchApi.java +++ b/src/main/java/co/permify/sdk/api/WatchApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,6 @@ import co.permify.sdk.client.ApiClient; import co.permify.sdk.client.ApiException; import co.permify.sdk.client.ApiResponse; -import co.permify.sdk.client.Configuration; import co.permify.sdk.client.Pair; import co.permify.sdk.model.Status; @@ -47,7 +46,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class WatchApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -58,7 +57,7 @@ public class WatchApi { private final Consumer> memberVarAsyncResponseInterceptor; public WatchApi() { - this(Configuration.getDefaultApiClient()); + this(new ApiClient()); } public WatchApi(ApiClient apiClient) { @@ -92,7 +91,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return StreamResultOfWatchResponse * @throws ApiException if fails to make API call */ - public StreamResultOfWatchResponse watchWatch(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull WatchBody body) throws ApiException { + public StreamResultOfWatchResponse watchWatch(String tenantId, WatchBody body) throws ApiException { ApiResponse localVarResponse = watchWatchWithHttpInfo(tenantId, body); return localVarResponse.getData(); } @@ -105,7 +104,7 @@ public StreamResultOfWatchResponse watchWatch(@jakarta.annotation.Nonnull String * @return ApiResponse<StreamResultOfWatchResponse> * @throws ApiException if fails to make API call */ - public ApiResponse watchWatchWithHttpInfo(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull WatchBody body) throws ApiException { + public ApiResponse watchWatchWithHttpInfo(String tenantId, WatchBody body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = watchWatchRequestBuilder(tenantId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -118,21 +117,10 @@ public ApiResponse watchWatchWithHttpInfo(@jakarta. if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("watchWatch", localVarResponse); } - if (localVarResponse.body() == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - String responseBody = new String(localVarResponse.body().readAllBytes()); - localVarResponse.body().close(); - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -145,7 +133,7 @@ public ApiResponse watchWatchWithHttpInfo(@jakarta. } } - private HttpRequest.Builder watchWatchRequestBuilder(@jakarta.annotation.Nonnull String tenantId, @jakarta.annotation.Nonnull WatchBody body) throws ApiException { + private HttpRequest.Builder watchWatchRequestBuilder(String tenantId, WatchBody body) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException(400, "Missing the required parameter 'tenantId' when calling watchWatch"); @@ -179,5 +167,4 @@ private HttpRequest.Builder watchWatchRequestBuilder(@jakarta.annotation.Nonnull } return localVarRequestBuilder; } - } diff --git a/src/main/java/co/permify/sdk/client/ApiClient.java b/src/main/java/co/permify/sdk/client/ApiClient.java index 4298157..34e6458 100644 --- a/src/main/java/co/permify/sdk/client/ApiClient.java +++ b/src/main/java/co/permify/sdk/client/ApiClient.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,22 +51,22 @@ *

The setter methods of this class return the current object to facilitate * a fluent style of configuration.

*/ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ApiClient { - protected HttpClient.Builder builder; - protected ObjectMapper mapper; - protected String scheme; - protected String host; - protected int port; - protected String basePath; - protected Consumer interceptor; - protected Consumer> responseInterceptor; - protected Consumer> asyncResponseInterceptor; - protected Duration readTimeout; - protected Duration connectTimeout; - - public static String valueToString(Object value) { + private HttpClient.Builder builder; + private ObjectMapper mapper; + private String scheme; + private String host; + private int port; + private String basePath; + private Consumer interceptor; + private Consumer> responseInterceptor; + private Consumer> asyncResponseInterceptor; + private Duration readTimeout; + private Duration connectTimeout; + + private static String valueToString(Object value) { if (value == null) { return ""; } @@ -192,7 +192,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri asyncResponseInterceptor = null; } - public static ObjectMapper createDefaultObjectMapper() { + protected ObjectMapper createDefaultObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -203,7 +203,6 @@ public static ObjectMapper createDefaultObjectMapper() { mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); mapper.registerModule(new JavaTimeModule()); mapper.registerModule(new JsonNullableModule()); - mapper.registerModule(new RFC3339JavaTimeModule()); return mapper; } @@ -211,11 +210,11 @@ protected String getDefaultBaseUri() { return "http://localhost"; } - public static HttpClient.Builder createDefaultHttpClientBuilder() { + protected HttpClient.Builder createDefaultHttpClientBuilder() { return HttpClient.newBuilder(); } - public final void updateBaseUri(String baseUri) { + public void updateBaseUri(String baseUri) { URI uri = URI.create(baseUri); scheme = uri.getScheme(); host = uri.getHost(); diff --git a/src/main/java/co/permify/sdk/client/ApiException.java b/src/main/java/co/permify/sdk/client/ApiException.java index b483f6d..6ed0a91 100644 --- a/src/main/java/co/permify/sdk/client/ApiException.java +++ b/src/main/java/co/permify/sdk/client/ApiException.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,10 +15,8 @@ import java.net.http.HttpHeaders; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ApiException extends Exception { - private static final long serialVersionUID = 1L; - private int code = 0; private HttpHeaders responseHeaders = null; private String responseBody = null; diff --git a/src/main/java/co/permify/sdk/client/ApiResponse.java b/src/main/java/co/permify/sdk/client/ApiResponse.java index 49b6389..2aebb47 100644 --- a/src/main/java/co/permify/sdk/client/ApiResponse.java +++ b/src/main/java/co/permify/sdk/client/ApiResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,7 +21,6 @@ * * @param The type of data that is deserialized from response body */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class ApiResponse { final private int statusCode; final private Map> headers; diff --git a/src/main/java/co/permify/sdk/client/Configuration.java b/src/main/java/co/permify/sdk/client/Configuration.java index 969440f..f2c6bc6 100644 --- a/src/main/java/co/permify/sdk/client/Configuration.java +++ b/src/main/java/co/permify/sdk/client/Configuration.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,51 +13,29 @@ package co.permify.sdk.client; -import java.util.Objects; -import java.util.concurrent.atomic.AtomicReference; -import java.util.function.Supplier; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "v1.0.3"; - - private static final AtomicReference defaultApiClient = new AtomicReference<>(); - private static volatile Supplier apiClientFactory = ApiClient::new; - - /** - * Get the default API client, which would be used when creating API instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - ApiClient client = defaultApiClient.get(); - if (client == null) { - client = defaultApiClient.updateAndGet(val -> { - if (val != null) { // changed by another thread - return val; - } - return apiClientFactory.get(); - }); + public static final String VERSION = "v1.4.2"; + + private static ApiClient defaultApiClient = new ApiClient(); + + /** + * Get the default API client, which would be used when creating API + * instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + return defaultApiClient; } - return client; - } - /** - * Set the default API client, which would be used when creating API instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient.set(apiClient); - } - - /** - * set the callback used to create new ApiClient objects - */ - public static void setApiClientFactory(Supplier factory) { - apiClientFactory = Objects.requireNonNull(factory); - } - - private Configuration() { - } -} \ No newline at end of file + /** + * Set the default API client, which would be used when creating API + * instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient = apiClient; + } +} diff --git a/src/main/java/co/permify/sdk/client/JSON.java b/src/main/java/co/permify/sdk/client/JSON.java index 3efb20d..f86dce8 100644 --- a/src/main/java/co/permify/sdk/client/JSON.java +++ b/src/main/java/co/permify/sdk/client/JSON.java @@ -1,21 +1,7 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package co.permify.sdk.client; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import co.permify.sdk.model.*; @@ -26,22 +12,21 @@ import java.util.Map; import java.util.Set; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class JSON { private ObjectMapper mapper; public JSON() { - mapper = JsonMapper.builder() - .serializationInclusion(JsonInclude.Include.NON_NULL) - .disable(MapperFeature.ALLOW_COERCION_OF_SCALARS) - .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) - .enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE) - .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) - .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) - .enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING) - .defaultDateFormat(new RFC3339DateFormat()) - .addModule(new JavaTimeModule()) - .build(); + mapper = new ObjectMapper(); + mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); + mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); + mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); + mapper.setDateFormat(new RFC3339DateFormat()); + mapper.registerModule(new JavaTimeModule()); JsonNullableModule jnm = new JsonNullableModule(); mapper.registerModule(jnm); } @@ -82,7 +67,6 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { /** * Helper class to register the discriminator mappings. */ - @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; diff --git a/src/main/java/co/permify/sdk/client/Pair.java b/src/main/java/co/permify/sdk/client/Pair.java index f2e158a..e3f17b9 100644 --- a/src/main/java/co/permify/sdk/client/Pair.java +++ b/src/main/java/co/permify/sdk/client/Pair.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package co.permify.sdk.client; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java b/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java index ad564ce..c5983e2 100644 --- a/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java +++ b/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,6 @@ import java.util.GregorianCalendar; import java.util.TimeZone; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class RFC3339DateFormat extends DateFormat { private static final long serialVersionUID = 1L; private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); @@ -55,4 +54,4 @@ public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fie public Object clone() { return super.clone(); } -} +} \ No newline at end of file diff --git a/src/main/java/co/permify/sdk/client/RFC3339InstantDeserializer.java b/src/main/java/co/permify/sdk/client/RFC3339InstantDeserializer.java deleted file mode 100644 index 166193e..0000000 --- a/src/main/java/co/permify/sdk/client/RFC3339InstantDeserializer.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package co.permify.sdk.client; - -import java.io.IOException; -import java.time.Instant; -import java.time.OffsetDateTime; -import java.time.ZoneId; -import java.time.ZonedDateTime; -import java.time.format.DateTimeFormatter; -import java.time.temporal.Temporal; -import java.time.temporal.TemporalAccessor; -import java.util.function.BiFunction; -import java.util.function.Function; - -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature; -import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class RFC3339InstantDeserializer extends InstantDeserializer { - private static final long serialVersionUID = 1L; - private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault(); - private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS - = JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault(); - - public static final RFC3339InstantDeserializer INSTANT = new RFC3339InstantDeserializer<>( - Instant.class, DateTimeFormatter.ISO_INSTANT, - Instant::from, - a -> Instant.ofEpochMilli( a.value ), - a -> Instant.ofEpochSecond( a.integer, a.fraction ), - null, - true, // yes, replace zero offset with Z - DEFAULT_NORMALIZE_ZONE_ID, - DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS - ); - - public static final RFC3339InstantDeserializer OFFSET_DATE_TIME = new RFC3339InstantDeserializer<>( - OffsetDateTime.class, DateTimeFormatter.ISO_OFFSET_DATE_TIME, - OffsetDateTime::from, - a -> OffsetDateTime.ofInstant( Instant.ofEpochMilli( a.value ), a.zoneId ), - a -> OffsetDateTime.ofInstant( Instant.ofEpochSecond( a.integer, a.fraction ), a.zoneId ), - (d, z) -> ( d.isEqual( OffsetDateTime.MIN ) || d.isEqual( OffsetDateTime.MAX ) ? - d : - d.withOffsetSameInstant( z.getRules().getOffset( d.toLocalDateTime() ) ) ), - true, // yes, replace zero offset with Z - DEFAULT_NORMALIZE_ZONE_ID, - DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS - ); - - public static final RFC3339InstantDeserializer ZONED_DATE_TIME = new RFC3339InstantDeserializer<>( - ZonedDateTime.class, DateTimeFormatter.ISO_ZONED_DATE_TIME, - ZonedDateTime::from, - a -> ZonedDateTime.ofInstant( Instant.ofEpochMilli( a.value ), a.zoneId ), - a -> ZonedDateTime.ofInstant( Instant.ofEpochSecond( a.integer, a.fraction ), a.zoneId ), - ZonedDateTime::withZoneSameInstant, - false, // keep zero offset and Z separate since zones explicitly supported - DEFAULT_NORMALIZE_ZONE_ID, - DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS - ); - - protected RFC3339InstantDeserializer( - Class supportedType, - DateTimeFormatter formatter, - Function parsedToValue, - Function fromMilliseconds, - Function fromNanoseconds, - BiFunction adjust, - boolean replaceZeroOffsetAsZ, - boolean normalizeZoneId, - boolean readNumericStringsAsTimestamp) { - super( - supportedType, - formatter, - parsedToValue, - fromMilliseconds, - fromNanoseconds, - adjust, - replaceZeroOffsetAsZ, - normalizeZoneId, - readNumericStringsAsTimestamp - ); - } - - @Override - protected T _fromString(JsonParser p, DeserializationContext ctxt, String string0) throws IOException { - return super._fromString(p, ctxt, string0.replace( ' ', 'T' )); - } -} \ No newline at end of file diff --git a/src/main/java/co/permify/sdk/client/RFC3339JavaTimeModule.java b/src/main/java/co/permify/sdk/client/RFC3339JavaTimeModule.java deleted file mode 100644 index 1a850b1..0000000 --- a/src/main/java/co/permify/sdk/client/RFC3339JavaTimeModule.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package co.permify.sdk.client; - -import java.time.Instant; -import java.time.OffsetDateTime; -import java.time.ZonedDateTime; - -import com.fasterxml.jackson.databind.module.SimpleModule; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class RFC3339JavaTimeModule extends SimpleModule { - private static final long serialVersionUID = 1L; - - public RFC3339JavaTimeModule() { - super("RFC3339JavaTimeModule"); - - addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT); - addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME); - addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME); - } -} diff --git a/src/main/java/co/permify/sdk/client/ServerConfiguration.java b/src/main/java/co/permify/sdk/client/ServerConfiguration.java index 846da50..fe24822 100644 --- a/src/main/java/co/permify/sdk/client/ServerConfiguration.java +++ b/src/main/java/co/permify/sdk/client/ServerConfiguration.java @@ -1,16 +1,3 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package co.permify.sdk.client; import java.util.Map; @@ -18,7 +5,6 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/co/permify/sdk/client/ServerVariable.java b/src/main/java/co/permify/sdk/client/ServerVariable.java index d573837..948b2df 100644 --- a/src/main/java/co/permify/sdk/client/ServerVariable.java +++ b/src/main/java/co/permify/sdk/client/ServerVariable.java @@ -1,16 +1,3 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package co.permify.sdk.client; import java.util.HashSet; @@ -18,7 +5,6 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java b/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java index 5eeda5f..89ffee5 100644 --- a/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/co/permify/sdk/model/AbstractType.java b/src/main/java/co/permify/sdk/model/AbstractType.java index 1f7ea44..d8ab638 100644 --- a/src/main/java/co/permify/sdk/model/AbstractType.java +++ b/src/main/java/co/permify/sdk/model/AbstractType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Application defined abstract type. */ @@ -39,31 +38,30 @@ AbstractType.JSON_PROPERTY_NAME, AbstractType.JSON_PROPERTY_PARAMETER_TYPES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AbstractType { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_PARAMETER_TYPES = "parameterTypes"; - @jakarta.annotation.Nullable - private List parameterTypes = new ArrayList<>(); + private List parameterTypes; public AbstractType() { } - public AbstractType name(@jakarta.annotation.Nullable String name) { + public AbstractType name(String name) { this.name = name; return this; } - /** + /** * The fully qualified name of this abstract type. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -71,12 +69,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public AbstractType parameterTypes(@jakarta.annotation.Nullable List parameterTypes) { + public AbstractType parameterTypes(List parameterTypes) { this.parameterTypes = parameterTypes; return this; } @@ -89,13 +87,14 @@ public AbstractType addParameterTypesItem(V1alpha1Type parameterTypesItem) { return this; } - /** + /** * Parameter types for this abstract type. * @return parameterTypes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PARAMETER_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getParameterTypes() { return parameterTypes; } @@ -103,7 +102,7 @@ public List getParameterTypes() { @JsonProperty(JSON_PROPERTY_PARAMETER_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParameterTypes(@jakarta.annotation.Nullable List parameterTypes) { + public void setParameterTypes(List parameterTypes) { this.parameterTypes = parameterTypes; } @@ -184,7 +183,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `parameterTypes` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/Any.java b/src/main/java/co/permify/sdk/model/Any.java index 594a2f8..f86a556 100644 --- a/src/main/java/co/permify/sdk/model/Any.java +++ b/src/main/java/co/permify/sdk/model/Any.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,34 +34,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } // or ... if (any.isSameTypeAs(Foo.getDefaultInstance())) { foo = any.unpack(Foo.getDefaultInstance()); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) if err != nil { ... } ... foo := &pb.Foo{} if err := any.UnmarshalTo(foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": <string>, \"lastName\": <string> } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } */ @JsonPropertyOrder({ Any.JSON_PROPERTY_AT_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Any extends HashMap { public static final String JSON_PROPERTY_AT_TYPE = "@type"; - @jakarta.annotation.Nullable private String atType; public Any() { } - public Any atType(@jakarta.annotation.Nullable String atType) { + public Any atType(String atType) { this.atType = atType; return this; } - /** + /** * A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. * @return atType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAtType() { return atType; } @@ -69,7 +68,7 @@ public String getAtType() { @JsonProperty(JSON_PROPERTY_AT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAtType(@jakarta.annotation.Nullable String atType) { + public void setAtType(String atType) { this.atType = atType; } @@ -195,7 +194,7 @@ public String toUrlQueryString(String prefix) { // add `@type` to the URL query string if (getAtType() != null) { - joiner.add(String.format("%s@type%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAtType())))); + joiner.add(String.format("%s@type%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAtType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Argument.java b/src/main/java/co/permify/sdk/model/Argument.java index 47c803e..7c83e63 100644 --- a/src/main/java/co/permify/sdk/model/Argument.java +++ b/src/main/java/co/permify/sdk/model/Argument.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,6 @@ import java.util.Map; import java.util.HashMap; import co.permify.sdk.model.ComputedAttribute; -import co.permify.sdk.model.ContextAttribute; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -30,39 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Argument defines the type of argument in a Call. It can be either a ComputedAttribute or a ContextAttribute. */ @JsonPropertyOrder({ - Argument.JSON_PROPERTY_COMPUTED_ATTRIBUTE, - Argument.JSON_PROPERTY_CONTEXT_ATTRIBUTE + Argument.JSON_PROPERTY_COMPUTED_ATTRIBUTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Argument { public static final String JSON_PROPERTY_COMPUTED_ATTRIBUTE = "computedAttribute"; - @jakarta.annotation.Nullable private ComputedAttribute computedAttribute; - public static final String JSON_PROPERTY_CONTEXT_ATTRIBUTE = "contextAttribute"; - @jakarta.annotation.Nullable - private ContextAttribute contextAttribute; - public Argument() { } - public Argument computedAttribute(@jakarta.annotation.Nullable ComputedAttribute computedAttribute) { + public Argument computedAttribute(ComputedAttribute computedAttribute) { this.computedAttribute = computedAttribute; return this; } - /** + /** * Get computedAttribute * @return computedAttribute - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPUTED_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ComputedAttribute getComputedAttribute() { return computedAttribute; } @@ -70,35 +63,11 @@ public ComputedAttribute getComputedAttribute() { @JsonProperty(JSON_PROPERTY_COMPUTED_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComputedAttribute(@jakarta.annotation.Nullable ComputedAttribute computedAttribute) { + public void setComputedAttribute(ComputedAttribute computedAttribute) { this.computedAttribute = computedAttribute; } - public Argument contextAttribute(@jakarta.annotation.Nullable ContextAttribute contextAttribute) { - this.contextAttribute = contextAttribute; - return this; - } - - /** - * Get contextAttribute - * @return contextAttribute - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONTEXT_ATTRIBUTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ContextAttribute getContextAttribute() { - return contextAttribute; - } - - - @JsonProperty(JSON_PROPERTY_CONTEXT_ATTRIBUTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContextAttribute(@jakarta.annotation.Nullable ContextAttribute contextAttribute) { - this.contextAttribute = contextAttribute; - } - - /** * Return true if this Argument object is equal to o. */ @@ -111,13 +80,12 @@ public boolean equals(Object o) { return false; } Argument argument = (Argument) o; - return Objects.equals(this.computedAttribute, argument.computedAttribute) && - Objects.equals(this.contextAttribute, argument.contextAttribute); + return Objects.equals(this.computedAttribute, argument.computedAttribute); } @Override public int hashCode() { - return Objects.hash(computedAttribute, contextAttribute); + return Objects.hash(computedAttribute); } @Override @@ -125,7 +93,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Argument {\n"); sb.append(" computedAttribute: ").append(toIndentedString(computedAttribute)).append("\n"); - sb.append(" contextAttribute: ").append(toIndentedString(contextAttribute)).append("\n"); sb.append("}"); return sb.toString(); } @@ -178,11 +145,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getComputedAttribute().toUrlQueryString(prefix + "computedAttribute" + suffix)); } - // add `contextAttribute` to the URL query string - if (getContextAttribute() != null) { - joiner.add(getContextAttribute().toUrlQueryString(prefix + "contextAttribute" + suffix)); - } - return joiner.toString(); } } diff --git a/src/main/java/co/permify/sdk/model/Attribute.java b/src/main/java/co/permify/sdk/model/Attribute.java index 7e6e00f..81d4368 100644 --- a/src/main/java/co/permify/sdk/model/Attribute.java +++ b/src/main/java/co/permify/sdk/model/Attribute.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Attribute represents an attribute of an entity with a specific type and value. */ @@ -39,35 +38,33 @@ Attribute.JSON_PROPERTY_ATTRIBUTE, Attribute.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Attribute { public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private Entity entity; public static final String JSON_PROPERTY_ATTRIBUTE = "attribute"; - @jakarta.annotation.Nullable private String attribute; public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nullable private Any value; public Attribute() { } - public Attribute entity(@jakarta.annotation.Nullable Entity entity) { + public Attribute entity(Entity entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Entity getEntity() { return entity; } @@ -75,23 +72,24 @@ public Entity getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable Entity entity) { + public void setEntity(Entity entity) { this.entity = entity; } - public Attribute attribute(@jakarta.annotation.Nullable String attribute) { + public Attribute attribute(String attribute) { this.attribute = attribute; return this; } - /** + /** * Get attribute * @return attribute - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttribute() { return attribute; } @@ -99,23 +97,24 @@ public String getAttribute() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttribute(@jakarta.annotation.Nullable String attribute) { + public void setAttribute(String attribute) { this.attribute = attribute; } - public Attribute value(@jakarta.annotation.Nullable Any value) { + public Attribute value(Any value) { this.value = value; return this; } - /** + /** * Get value * @return value - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Any getValue() { return value; } @@ -123,7 +122,7 @@ public Any getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(@jakarta.annotation.Nullable Any value) { + public void setValue(Any value) { this.value = value; } @@ -211,12 +210,12 @@ public String toUrlQueryString(String prefix) { // add `attribute` to the URL query string if (getAttribute() != null) { - joiner.add(String.format("%sattribute%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAttribute())))); + joiner.add(String.format("%sattribute%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAttribute()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `value` to the URL query string if (getValue() != null) { - joiner.add(String.format("%svalue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getValue())))); + joiner.add(String.format("%svalue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/AttributeDefinition.java b/src/main/java/co/permify/sdk/model/AttributeDefinition.java index cfd0b73..b5be00e 100644 --- a/src/main/java/co/permify/sdk/model/AttributeDefinition.java +++ b/src/main/java/co/permify/sdk/model/AttributeDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The AttributeDefinition message provides detailed information about a specific attribute. */ @@ -37,31 +36,30 @@ AttributeDefinition.JSON_PROPERTY_NAME, AttributeDefinition.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AttributeDefinition { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private AttributeType type = AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED; + private AttributeType type; public AttributeDefinition() { } - public AttributeDefinition name(@jakarta.annotation.Nullable String name) { + public AttributeDefinition name(String name) { this.name = name; return this; } - /** + /** * The name of the attribute, which follows a specific string pattern and has a maximum byte size. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -69,23 +67,24 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public AttributeDefinition type(@jakarta.annotation.Nullable AttributeType type) { + public AttributeDefinition type(AttributeType type) { this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AttributeType getType() { return type; } @@ -93,7 +92,7 @@ public AttributeType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable AttributeType type) { + public void setType(AttributeType type) { this.type = type; } @@ -174,12 +173,12 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/AttributeFilter.java b/src/main/java/co/permify/sdk/model/AttributeFilter.java index a02c399..fbec768 100644 --- a/src/main/java/co/permify/sdk/model/AttributeFilter.java +++ b/src/main/java/co/permify/sdk/model/AttributeFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * AttributeFilter is used to filter attributes based on the entity and attribute names. */ @@ -39,31 +38,30 @@ AttributeFilter.JSON_PROPERTY_ENTITY, AttributeFilter.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AttributeFilter { public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private EntityFilter entity; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - @jakarta.annotation.Nullable - private List attributes = new ArrayList<>(); + private List attributes; public AttributeFilter() { } - public AttributeFilter entity(@jakarta.annotation.Nullable EntityFilter entity) { + public AttributeFilter entity(EntityFilter entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EntityFilter getEntity() { return entity; } @@ -71,12 +69,12 @@ public EntityFilter getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable EntityFilter entity) { + public void setEntity(EntityFilter entity) { this.entity = entity; } - public AttributeFilter attributes(@jakarta.annotation.Nullable List attributes) { + public AttributeFilter attributes(List attributes) { this.attributes = attributes; return this; } @@ -89,13 +87,14 @@ public AttributeFilter addAttributesItem(String attributesItem) { return this; } - /** + /** * Get attributes * @return attributes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAttributes() { return attributes; } @@ -103,7 +102,7 @@ public List getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(@jakarta.annotation.Nullable List attributes) { + public void setAttributes(List attributes) { this.attributes = attributes; } @@ -192,7 +191,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAttributes().size(); i++) { joiner.add(String.format("%sattributes%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getAttributes().get(i))))); + URLEncoder.encode(String.valueOf(getAttributes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java b/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java index a801a6e..35baefd 100644 --- a/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * AttributeReadRequestMetadata defines the structure for the metadata of an attribute read request. It includes the snap_token associated with a particular state of the database. */ @JsonPropertyOrder({ AttributeReadRequestMetadata.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AttributeReadRequestMetadata { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public AttributeReadRequestMetadata() { } - public AttributeReadRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public AttributeReadRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/AttributeReadResponse.java b/src/main/java/co/permify/sdk/model/AttributeReadResponse.java index 70edf39..ce12de4 100644 --- a/src/main/java/co/permify/sdk/model/AttributeReadResponse.java +++ b/src/main/java/co/permify/sdk/model/AttributeReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * AttributeReadResponse defines the structure of the response to an attribute read request. It includes the attributes retrieved and a continuous token for handling result pagination. */ @@ -39,20 +38,18 @@ AttributeReadResponse.JSON_PROPERTY_ATTRIBUTES, AttributeReadResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AttributeReadResponse { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - @jakarta.annotation.Nullable - private List attributes = new ArrayList<>(); + private List attributes; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public AttributeReadResponse() { } - public AttributeReadResponse attributes(@jakarta.annotation.Nullable List attributes) { + public AttributeReadResponse attributes(List attributes) { this.attributes = attributes; return this; } @@ -65,13 +62,14 @@ public AttributeReadResponse addAttributesItem(Attribute attributesItem) { return this; } - /** + /** * attributes is a list of the attributes retrieved in the read operation. * @return attributes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAttributes() { return attributes; } @@ -79,23 +77,24 @@ public List getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(@jakarta.annotation.Nullable List attributes) { + public void setAttributes(List attributes) { this.attributes = attributes; } - public AttributeReadResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public AttributeReadResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is used in the case of paginated reads to retrieve the next page of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -103,7 +102,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -194,7 +193,7 @@ public String toUrlQueryString(String prefix) { // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/AttributeType.java b/src/main/java/co/permify/sdk/model/AttributeType.java index f4bf9be..e314ddd 100644 --- a/src/main/java/co/permify/sdk/model/AttributeType.java +++ b/src/main/java/co/permify/sdk/model/AttributeType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,27 +26,25 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Enumerates the types of attribute. - ATTRIBUTE_TYPE_UNSPECIFIED: Not specified attribute type. This is the default value. - ATTRIBUTE_TYPE_BOOLEAN: A boolean attribute type. - ATTRIBUTE_TYPE_BOOLEAN_ARRAY: A boolean array attribute type. - ATTRIBUTE_TYPE_STRING: A string attribute type. - ATTRIBUTE_TYPE_STRING_ARRAY: A string array attribute type. - ATTRIBUTE_TYPE_INTEGER: An integer attribute type. - ATTRIBUTE_TYPE_INTEGER_ARRAY: An integer array attribute type. - ATTRIBUTE_TYPE_DOUBLE: A double attribute type. - ATTRIBUTE_TYPE_DOUBLE_ARRAY: A double array attribute type. + * Enumerates the types of attribute. - ATTRIBUTE_TYPE_BOOLEAN: A boolean attribute type. - ATTRIBUTE_TYPE_BOOLEAN_ARRAY: A boolean array attribute type. - ATTRIBUTE_TYPE_STRING: A string attribute type. - ATTRIBUTE_TYPE_STRING_ARRAY: A string array attribute type. - ATTRIBUTE_TYPE_INTEGER: An integer attribute type. - ATTRIBUTE_TYPE_INTEGER_ARRAY: An integer array attribute type. - ATTRIBUTE_TYPE_DOUBLE: A double attribute type. - ATTRIBUTE_TYPE_DOUBLE_ARRAY: A double array attribute type. */ public enum AttributeType { - ATTRIBUTE_TYPE_UNSPECIFIED("ATTRIBUTE_TYPE_UNSPECIFIED"), + BOOLEAN("ATTRIBUTE_TYPE_BOOLEAN"), - ATTRIBUTE_TYPE_BOOLEAN("ATTRIBUTE_TYPE_BOOLEAN"), + BOOLEAN_ARRAY("ATTRIBUTE_TYPE_BOOLEAN_ARRAY"), - ATTRIBUTE_TYPE_BOOLEAN_ARRAY("ATTRIBUTE_TYPE_BOOLEAN_ARRAY"), + STRING("ATTRIBUTE_TYPE_STRING"), - ATTRIBUTE_TYPE_STRING("ATTRIBUTE_TYPE_STRING"), + STRING_ARRAY("ATTRIBUTE_TYPE_STRING_ARRAY"), - ATTRIBUTE_TYPE_STRING_ARRAY("ATTRIBUTE_TYPE_STRING_ARRAY"), + INTEGER("ATTRIBUTE_TYPE_INTEGER"), - ATTRIBUTE_TYPE_INTEGER("ATTRIBUTE_TYPE_INTEGER"), + INTEGER_ARRAY("ATTRIBUTE_TYPE_INTEGER_ARRAY"), - ATTRIBUTE_TYPE_INTEGER_ARRAY("ATTRIBUTE_TYPE_INTEGER_ARRAY"), + DOUBLE("ATTRIBUTE_TYPE_DOUBLE"), - ATTRIBUTE_TYPE_DOUBLE("ATTRIBUTE_TYPE_DOUBLE"), - - ATTRIBUTE_TYPE_DOUBLE_ARRAY("ATTRIBUTE_TYPE_DOUBLE_ARRAY"); + DOUBLE_ARRAY("ATTRIBUTE_TYPE_DOUBLE_ARRAY"); private String value; diff --git a/src/main/java/co/permify/sdk/model/BundleDeleteBody.java b/src/main/java/co/permify/sdk/model/BundleDeleteBody.java index 68deeed..34140cd 100644 --- a/src/main/java/co/permify/sdk/model/BundleDeleteBody.java +++ b/src/main/java/co/permify/sdk/model/BundleDeleteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleDeleteRequest is used to request the deletion of a bundle. It contains the tenant_id to specify the tenant and the name of the bundle to be deleted. */ @JsonPropertyOrder({ BundleDeleteBody.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleDeleteBody { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public BundleDeleteBody() { } - public BundleDeleteBody name(@jakarta.annotation.Nullable String name) { + public BundleDeleteBody name(String name) { this.name = name; return this; } - /** + /** * Name of the bundle to be deleted. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -63,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java b/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java index 2f44806..daa9933 100644 --- a/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleDeleteResponse */ @JsonPropertyOrder({ BundleDeleteResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleDeleteResponse { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public BundleDeleteResponse() { } - public BundleDeleteResponse name(@jakarta.annotation.Nullable String name) { + public BundleDeleteResponse name(String name) { this.name = name; return this; } - /** + /** * Get name * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -63,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/BundleReadBody.java b/src/main/java/co/permify/sdk/model/BundleReadBody.java index 7a4e6c7..13b78e5 100644 --- a/src/main/java/co/permify/sdk/model/BundleReadBody.java +++ b/src/main/java/co/permify/sdk/model/BundleReadBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleReadBody */ @JsonPropertyOrder({ BundleReadBody.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleReadBody { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public BundleReadBody() { } - public BundleReadBody name(@jakarta.annotation.Nullable String name) { + public BundleReadBody name(String name) { this.name = name; return this; } - /** + /** * Get name * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -63,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/BundleReadResponse.java b/src/main/java/co/permify/sdk/model/BundleReadResponse.java index 6a7447e..7366f8a 100644 --- a/src/main/java/co/permify/sdk/model/BundleReadResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleReadResponse */ @JsonPropertyOrder({ BundleReadResponse.JSON_PROPERTY_BUNDLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleReadResponse { public static final String JSON_PROPERTY_BUNDLE = "bundle"; - @jakarta.annotation.Nullable private DataBundle bundle; public BundleReadResponse() { } - public BundleReadResponse bundle(@jakarta.annotation.Nullable DataBundle bundle) { + public BundleReadResponse bundle(DataBundle bundle) { this.bundle = bundle; return this; } - /** + /** * Get bundle * @return bundle - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUNDLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataBundle getBundle() { return bundle; } @@ -64,7 +63,7 @@ public DataBundle getBundle() { @JsonProperty(JSON_PROPERTY_BUNDLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBundle(@jakarta.annotation.Nullable DataBundle bundle) { + public void setBundle(DataBundle bundle) { this.bundle = bundle; } diff --git a/src/main/java/co/permify/sdk/model/BundleRunResponse.java b/src/main/java/co/permify/sdk/model/BundleRunResponse.java index 275643c..374a21d 100644 --- a/src/main/java/co/permify/sdk/model/BundleRunResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleRunResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleRunResponse is the response for a BundleRunRequest. It includes a snap_token, which may be used for tracking the execution or its results. */ @JsonPropertyOrder({ BundleRunResponse.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleRunResponse { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public BundleRunResponse() { } - public BundleRunResponse snapToken(@jakarta.annotation.Nullable String snapToken) { + public BundleRunResponse snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/BundleWriteBody.java b/src/main/java/co/permify/sdk/model/BundleWriteBody.java index bc67c42..c237883 100644 --- a/src/main/java/co/permify/sdk/model/BundleWriteBody.java +++ b/src/main/java/co/permify/sdk/model/BundleWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,23 +31,21 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleWriteRequest is used to request the writing of a bundle. It contains the tenant_id to identify the tenant and the Bundles object. */ @JsonPropertyOrder({ BundleWriteBody.JSON_PROPERTY_BUNDLES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleWriteBody { public static final String JSON_PROPERTY_BUNDLES = "bundles"; - @jakarta.annotation.Nullable - private List bundles = new ArrayList<>(); + private List bundles; public BundleWriteBody() { } - public BundleWriteBody bundles(@jakarta.annotation.Nullable List bundles) { + public BundleWriteBody bundles(List bundles) { this.bundles = bundles; return this; } @@ -60,13 +58,14 @@ public BundleWriteBody addBundlesItem(DataBundle bundlesItem) { return this; } - /** + /** * Contains the bundle data to be written. * @return bundles - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUNDLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getBundles() { return bundles; } @@ -74,7 +73,7 @@ public List getBundles() { @JsonProperty(JSON_PROPERTY_BUNDLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBundles(@jakarta.annotation.Nullable List bundles) { + public void setBundles(List bundles) { this.bundles = bundles; } diff --git a/src/main/java/co/permify/sdk/model/BundleWriteResponse.java b/src/main/java/co/permify/sdk/model/BundleWriteResponse.java index 5fbef81..5994a9a 100644 --- a/src/main/java/co/permify/sdk/model/BundleWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,23 +30,21 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleWriteResponse is the response for a BundleWriteRequest. It includes a name which could be used as an identifier or acknowledgment. */ @JsonPropertyOrder({ BundleWriteResponse.JSON_PROPERTY_NAMES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BundleWriteResponse { public static final String JSON_PROPERTY_NAMES = "names"; - @jakarta.annotation.Nullable - private List names = new ArrayList<>(); + private List names; public BundleWriteResponse() { } - public BundleWriteResponse names(@jakarta.annotation.Nullable List names) { + public BundleWriteResponse names(List names) { this.names = names; return this; } @@ -59,13 +57,14 @@ public BundleWriteResponse addNamesItem(String namesItem) { return this; } - /** + /** * Identifier or acknowledgment of the written bundle. * @return names - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNames() { return names; } @@ -73,7 +72,7 @@ public List getNames() { @JsonProperty(JSON_PROPERTY_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNames(@jakarta.annotation.Nullable List names) { + public void setNames(List names) { this.names = names; } @@ -155,7 +154,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getNames().size(); i++) { joiner.add(String.format("%snames%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getNames().get(i))))); + URLEncoder.encode(String.valueOf(getNames().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckBody.java b/src/main/java/co/permify/sdk/model/CheckBody.java similarity index 75% rename from src/main/java/co/permify/sdk/model/PermissionCheckBody.java rename to src/main/java/co/permify/sdk/model/CheckBody.java index 56f1d16..a4b9094 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckBody.java +++ b/src/main/java/co/permify/sdk/model/CheckBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,59 +35,53 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionCheckRequest is the request message for the Check method in the Permission service. */ @JsonPropertyOrder({ - PermissionCheckBody.JSON_PROPERTY_METADATA, - PermissionCheckBody.JSON_PROPERTY_ENTITY, - PermissionCheckBody.JSON_PROPERTY_PERMISSION, - PermissionCheckBody.JSON_PROPERTY_SUBJECT, - PermissionCheckBody.JSON_PROPERTY_CONTEXT, - PermissionCheckBody.JSON_PROPERTY_ARGUMENTS + CheckBody.JSON_PROPERTY_METADATA, + CheckBody.JSON_PROPERTY_ENTITY, + CheckBody.JSON_PROPERTY_PERMISSION, + CheckBody.JSON_PROPERTY_SUBJECT, + CheckBody.JSON_PROPERTY_CONTEXT, + CheckBody.JSON_PROPERTY_ARGUMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class PermissionCheckBody { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CheckBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionCheckRequestMetadata metadata; public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private Entity entity; public static final String JSON_PROPERTY_PERMISSION = "permission"; - @jakarta.annotation.Nullable private String permission; public static final String JSON_PROPERTY_SUBJECT = "subject"; - @jakarta.annotation.Nullable private Subject subject; public static final String JSON_PROPERTY_CONTEXT = "context"; - @jakarta.annotation.Nullable private Context context; public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; - @jakarta.annotation.Nullable - private List arguments = new ArrayList<>(); + private List arguments; - public PermissionCheckBody() { + public CheckBody() { } - public PermissionCheckBody metadata(@jakarta.annotation.Nullable PermissionCheckRequestMetadata metadata) { + public CheckBody metadata(PermissionCheckRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionCheckRequestMetadata getMetadata() { return metadata; } @@ -95,23 +89,24 @@ public PermissionCheckRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionCheckRequestMetadata metadata) { + public void setMetadata(PermissionCheckRequestMetadata metadata) { this.metadata = metadata; } - public PermissionCheckBody entity(@jakarta.annotation.Nullable Entity entity) { + public CheckBody entity(Entity entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Entity getEntity() { return entity; } @@ -119,23 +114,24 @@ public Entity getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable Entity entity) { + public void setEntity(Entity entity) { this.entity = entity; } - public PermissionCheckBody permission(@jakarta.annotation.Nullable String permission) { + public CheckBody permission(String permission) { this.permission = permission; return this; } - /** + /** * The action the user wants to perform on the resource * @return permission - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPermission() { return permission; } @@ -143,23 +139,24 @@ public String getPermission() { @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPermission(@jakarta.annotation.Nullable String permission) { + public void setPermission(String permission) { this.permission = permission; } - public PermissionCheckBody subject(@jakarta.annotation.Nullable Subject subject) { + public CheckBody subject(Subject subject) { this.subject = subject; return this; } - /** + /** * Get subject * @return subject - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Subject getSubject() { return subject; } @@ -167,23 +164,24 @@ public Subject getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(@jakarta.annotation.Nullable Subject subject) { + public void setSubject(Subject subject) { this.subject = subject; } - public PermissionCheckBody context(@jakarta.annotation.Nullable Context context) { + public CheckBody context(Context context) { this.context = context; return this; } - /** + /** * Get context * @return context - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Context getContext() { return context; } @@ -191,17 +189,17 @@ public Context getContext() { @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContext(@jakarta.annotation.Nullable Context context) { + public void setContext(Context context) { this.context = context; } - public PermissionCheckBody arguments(@jakarta.annotation.Nullable List arguments) { + public CheckBody arguments(List arguments) { this.arguments = arguments; return this; } - public PermissionCheckBody addArgumentsItem(Argument argumentsItem) { + public CheckBody addArgumentsItem(Argument argumentsItem) { if (this.arguments == null) { this.arguments = new ArrayList<>(); } @@ -209,13 +207,14 @@ public PermissionCheckBody addArgumentsItem(Argument argumentsItem) { return this; } - /** + /** * Additional arguments associated with this request. * @return arguments - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArguments() { return arguments; } @@ -223,13 +222,13 @@ public List getArguments() { @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArguments(@jakarta.annotation.Nullable List arguments) { + public void setArguments(List arguments) { this.arguments = arguments; } /** - * Return true if this Permission.CheckBody object is equal to o. + * Return true if this CheckBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -239,13 +238,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PermissionCheckBody permissionCheckBody = (PermissionCheckBody) o; - return Objects.equals(this.metadata, permissionCheckBody.metadata) && - Objects.equals(this.entity, permissionCheckBody.entity) && - Objects.equals(this.permission, permissionCheckBody.permission) && - Objects.equals(this.subject, permissionCheckBody.subject) && - Objects.equals(this.context, permissionCheckBody.context) && - Objects.equals(this.arguments, permissionCheckBody.arguments); + CheckBody checkBody = (CheckBody) o; + return Objects.equals(this.metadata, checkBody.metadata) && + Objects.equals(this.entity, checkBody.entity) && + Objects.equals(this.permission, checkBody.permission) && + Objects.equals(this.subject, checkBody.subject) && + Objects.equals(this.context, checkBody.context) && + Objects.equals(this.arguments, checkBody.arguments); } @Override @@ -256,7 +255,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PermissionCheckBody {\n"); + sb.append("class CheckBody {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" entity: ").append(toIndentedString(entity)).append("\n"); sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); @@ -322,7 +321,7 @@ public String toUrlQueryString(String prefix) { // add `permission` to the URL query string if (getPermission() != null) { - joiner.add(String.format("%spermission%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPermission())))); + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subject` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/CheckResult.java b/src/main/java/co/permify/sdk/model/CheckResult.java index 5c09043..ab5ab29 100644 --- a/src/main/java/co/permify/sdk/model/CheckResult.java +++ b/src/main/java/co/permify/sdk/model/CheckResult.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,15 +26,13 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Enumerates results of a check operation. - CHECK_RESULT_UNSPECIFIED: Not specified check result. This is the default value. - CHECK_RESULT_ALLOWED: Represents a successful check (the check allowed the operation). - CHECK_RESULT_DENIED: Represents a failed check (the check denied the operation). + * Enumerates results of a check operation. - CHECK_RESULT_ALLOWED: Represents a successful check (the check allowed the operation). - CHECK_RESULT_DENIED: Represents a failed check (the check denied the operation). */ public enum CheckResult { - CHECK_RESULT_UNSPECIFIED("CHECK_RESULT_UNSPECIFIED"), + ALLOWED("CHECK_RESULT_ALLOWED"), - CHECK_RESULT_ALLOWED("CHECK_RESULT_ALLOWED"), - - CHECK_RESULT_DENIED("CHECK_RESULT_DENIED"); + DENIED("CHECK_RESULT_DENIED"); private String value; diff --git a/src/main/java/co/permify/sdk/model/CheckedExpr.java b/src/main/java/co/permify/sdk/model/CheckedExpr.java index 8782a75..6264cdd 100644 --- a/src/main/java/co/permify/sdk/model/CheckedExpr.java +++ b/src/main/java/co/permify/sdk/model/CheckedExpr.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import co.permify.sdk.model.SourceInfo; import co.permify.sdk.model.V1alpha1Reference; import co.permify.sdk.model.V1alpha1Type; @@ -33,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * A CEL expression which has been successfully type checked. */ @@ -44,32 +44,27 @@ CheckedExpr.JSON_PROPERTY_EXPR_VERSION, CheckedExpr.JSON_PROPERTY_EXPR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CheckedExpr { public static final String JSON_PROPERTY_REFERENCE_MAP = "referenceMap"; - @jakarta.annotation.Nullable private Map referenceMap = new HashMap<>(); public static final String JSON_PROPERTY_TYPE_MAP = "typeMap"; - @jakarta.annotation.Nullable private Map typeMap = new HashMap<>(); public static final String JSON_PROPERTY_SOURCE_INFO = "sourceInfo"; - @jakarta.annotation.Nullable private SourceInfo sourceInfo; public static final String JSON_PROPERTY_EXPR_VERSION = "exprVersion"; - @jakarta.annotation.Nullable private String exprVersion; public static final String JSON_PROPERTY_EXPR = "expr"; - @jakarta.annotation.Nullable - private Object expr; + private Expr expr; public CheckedExpr() { } - public CheckedExpr referenceMap(@jakarta.annotation.Nullable Map referenceMap) { + public CheckedExpr referenceMap(Map referenceMap) { this.referenceMap = referenceMap; return this; } @@ -82,13 +77,14 @@ public CheckedExpr putReferenceMapItem(String key, V1alpha1Reference referenceMa return this; } - /** + /** * A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message. * @return referenceMap - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REFERENCE_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getReferenceMap() { return referenceMap; } @@ -96,12 +92,12 @@ public Map getReferenceMap() { @JsonProperty(JSON_PROPERTY_REFERENCE_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReferenceMap(@jakarta.annotation.Nullable Map referenceMap) { + public void setReferenceMap(Map referenceMap) { this.referenceMap = referenceMap; } - public CheckedExpr typeMap(@jakarta.annotation.Nullable Map typeMap) { + public CheckedExpr typeMap(Map typeMap) { this.typeMap = typeMap; return this; } @@ -114,13 +110,14 @@ public CheckedExpr putTypeMapItem(String key, V1alpha1Type typeMapItem) { return this; } - /** + /** * A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space. * @return typeMap - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTypeMap() { return typeMap; } @@ -128,23 +125,24 @@ public Map getTypeMap() { @JsonProperty(JSON_PROPERTY_TYPE_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTypeMap(@jakarta.annotation.Nullable Map typeMap) { + public void setTypeMap(Map typeMap) { this.typeMap = typeMap; } - public CheckedExpr sourceInfo(@jakarta.annotation.Nullable SourceInfo sourceInfo) { + public CheckedExpr sourceInfo(SourceInfo sourceInfo) { this.sourceInfo = sourceInfo; return this; } - /** + /** * Get sourceInfo * @return sourceInfo - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SourceInfo getSourceInfo() { return sourceInfo; } @@ -152,23 +150,24 @@ public SourceInfo getSourceInfo() { @JsonProperty(JSON_PROPERTY_SOURCE_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceInfo(@jakarta.annotation.Nullable SourceInfo sourceInfo) { + public void setSourceInfo(SourceInfo sourceInfo) { this.sourceInfo = sourceInfo; } - public CheckedExpr exprVersion(@jakarta.annotation.Nullable String exprVersion) { + public CheckedExpr exprVersion(String exprVersion) { this.exprVersion = exprVersion; return this; } - /** + /** * The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation. * @return exprVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPR_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getExprVersion() { return exprVersion; } @@ -176,31 +175,32 @@ public String getExprVersion() { @JsonProperty(JSON_PROPERTY_EXPR_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExprVersion(@jakarta.annotation.Nullable String exprVersion) { + public void setExprVersion(String exprVersion) { this.exprVersion = exprVersion; } - public CheckedExpr expr(@jakarta.annotation.Nullable Object expr) { + public CheckedExpr expr(Expr expr) { this.expr = expr; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get expr * @return expr - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getExpr() { + + public Expr getExpr() { return expr; } @JsonProperty(JSON_PROPERTY_EXPR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpr(@jakarta.annotation.Nullable Object expr) { + public void setExpr(Expr expr) { this.expr = expr; } @@ -312,12 +312,12 @@ public String toUrlQueryString(String prefix) { // add `exprVersion` to the URL query string if (getExprVersion() != null) { - joiner.add(String.format("%sexprVersion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getExprVersion())))); + joiner.add(String.format("%sexprVersion%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExprVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expr` to the URL query string if (getExpr() != null) { - joiner.add(String.format("%sexpr%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getExpr())))); + joiner.add(getExpr().toUrlQueryString(prefix + "expr" + suffix)); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Child.java b/src/main/java/co/permify/sdk/model/Child.java index b324f9d..88eca4e 100644 --- a/src/main/java/co/permify/sdk/model/Child.java +++ b/src/main/java/co/permify/sdk/model/Child.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Child represents a node in the permission tree. */ @@ -38,31 +37,30 @@ Child.JSON_PROPERTY_LEAF, Child.JSON_PROPERTY_REWRITE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Child { public static final String JSON_PROPERTY_LEAF = "leaf"; - @jakarta.annotation.Nullable private Leaf leaf; public static final String JSON_PROPERTY_REWRITE = "rewrite"; - @jakarta.annotation.Nullable private Rewrite rewrite; public Child() { } - public Child leaf(@jakarta.annotation.Nullable Leaf leaf) { + public Child leaf(Leaf leaf) { this.leaf = leaf; return this; } - /** + /** * Get leaf * @return leaf - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LEAF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Leaf getLeaf() { return leaf; } @@ -70,23 +68,24 @@ public Leaf getLeaf() { @JsonProperty(JSON_PROPERTY_LEAF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLeaf(@jakarta.annotation.Nullable Leaf leaf) { + public void setLeaf(Leaf leaf) { this.leaf = leaf; } - public Child rewrite(@jakarta.annotation.Nullable Rewrite rewrite) { + public Child rewrite(Rewrite rewrite) { this.rewrite = rewrite; return this; } - /** + /** * Get rewrite * @return rewrite - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REWRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Rewrite getRewrite() { return rewrite; } @@ -94,7 +93,7 @@ public Rewrite getRewrite() { @JsonProperty(JSON_PROPERTY_REWRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewrite(@jakarta.annotation.Nullable Rewrite rewrite) { + public void setRewrite(Rewrite rewrite) { this.rewrite = rewrite; } diff --git a/src/main/java/co/permify/sdk/model/Comprehension.java b/src/main/java/co/permify/sdk/model/Comprehension.java index d7924fa..1979ec4 100644 --- a/src/main/java/co/permify/sdk/model/Comprehension.java +++ b/src/main/java/co/permify/sdk/model/Comprehension.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -28,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * A comprehension expression applied to a list or map. Comprehensions are not part of the core syntax, but enabled with macros. A macro matches a specific call signature within a parsed AST and replaces the call with an alternate AST block. Macro expansion happens at parse time. The following macros are supported within CEL: Aggregate type macros may be applied to all elements in a list or all keys in a map: * `all`, `exists`, `exists_one` - test a predicate expression against the inputs and return `true` if the predicate is satisfied for all, any, or only one value `list.all(x, x < 10)`. * `filter` - test a predicate expression against the inputs and return the subset of elements which satisfy the predicate: `payments.filter(p, p > 1000)`. * `map` - apply an expression to all elements in the input and return the output aggregate type: `[1, 2, 3].map(i, i * i)`. The `has(m.x)` macro tests whether the property `x` is present in struct `m`. The semantics of this macro depend on the type of `m`. For proto2 messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the macro tests whether the property is set to its default. For map and struct types, the macro tests whether the property `x` is defined on `m`. */ @@ -41,51 +41,45 @@ Comprehension.JSON_PROPERTY_LOOP_STEP, Comprehension.JSON_PROPERTY_RESULT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Comprehension { public static final String JSON_PROPERTY_ITER_VAR = "iterVar"; - @jakarta.annotation.Nullable private String iterVar; public static final String JSON_PROPERTY_ITER_RANGE = "iterRange"; - @jakarta.annotation.Nullable - private Object iterRange; + private Expr iterRange; public static final String JSON_PROPERTY_ACCU_VAR = "accuVar"; - @jakarta.annotation.Nullable private String accuVar; public static final String JSON_PROPERTY_ACCU_INIT = "accuInit"; - @jakarta.annotation.Nullable - private Object accuInit; + private Expr accuInit; public static final String JSON_PROPERTY_LOOP_CONDITION = "loopCondition"; - @jakarta.annotation.Nullable - private Object loopCondition; + private Expr loopCondition; public static final String JSON_PROPERTY_LOOP_STEP = "loopStep"; - @jakarta.annotation.Nullable - private Object loopStep; + private Expr loopStep; public static final String JSON_PROPERTY_RESULT = "result"; - @jakarta.annotation.Nullable - private Object result; + private Expr result; public Comprehension() { } - public Comprehension iterVar(@jakarta.annotation.Nullable String iterVar) { + public Comprehension iterVar(String iterVar) { this.iterVar = iterVar; return this; } - /** + /** * The name of the iteration variable. * @return iterVar - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ITER_VAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIterVar() { return iterVar; } @@ -93,47 +87,49 @@ public String getIterVar() { @JsonProperty(JSON_PROPERTY_ITER_VAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIterVar(@jakarta.annotation.Nullable String iterVar) { + public void setIterVar(String iterVar) { this.iterVar = iterVar; } - public Comprehension iterRange(@jakarta.annotation.Nullable Object iterRange) { + public Comprehension iterRange(Expr iterRange) { this.iterRange = iterRange; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get iterRange * @return iterRange - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ITER_RANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getIterRange() { + + public Expr getIterRange() { return iterRange; } @JsonProperty(JSON_PROPERTY_ITER_RANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIterRange(@jakarta.annotation.Nullable Object iterRange) { + public void setIterRange(Expr iterRange) { this.iterRange = iterRange; } - public Comprehension accuVar(@jakarta.annotation.Nullable String accuVar) { + public Comprehension accuVar(String accuVar) { this.accuVar = accuVar; return this; } - /** + /** * The name of the variable used for accumulation of the result. * @return accuVar - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCU_VAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccuVar() { return accuVar; } @@ -141,103 +137,107 @@ public String getAccuVar() { @JsonProperty(JSON_PROPERTY_ACCU_VAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccuVar(@jakarta.annotation.Nullable String accuVar) { + public void setAccuVar(String accuVar) { this.accuVar = accuVar; } - public Comprehension accuInit(@jakarta.annotation.Nullable Object accuInit) { + public Comprehension accuInit(Expr accuInit) { this.accuInit = accuInit; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get accuInit * @return accuInit - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCU_INIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getAccuInit() { + + public Expr getAccuInit() { return accuInit; } @JsonProperty(JSON_PROPERTY_ACCU_INIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccuInit(@jakarta.annotation.Nullable Object accuInit) { + public void setAccuInit(Expr accuInit) { this.accuInit = accuInit; } - public Comprehension loopCondition(@jakarta.annotation.Nullable Object loopCondition) { + public Comprehension loopCondition(Expr loopCondition) { this.loopCondition = loopCondition; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get loopCondition * @return loopCondition - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOOP_CONDITION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getLoopCondition() { + + public Expr getLoopCondition() { return loopCondition; } @JsonProperty(JSON_PROPERTY_LOOP_CONDITION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLoopCondition(@jakarta.annotation.Nullable Object loopCondition) { + public void setLoopCondition(Expr loopCondition) { this.loopCondition = loopCondition; } - public Comprehension loopStep(@jakarta.annotation.Nullable Object loopStep) { + public Comprehension loopStep(Expr loopStep) { this.loopStep = loopStep; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get loopStep * @return loopStep - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOOP_STEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getLoopStep() { + + public Expr getLoopStep() { return loopStep; } @JsonProperty(JSON_PROPERTY_LOOP_STEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLoopStep(@jakarta.annotation.Nullable Object loopStep) { + public void setLoopStep(Expr loopStep) { this.loopStep = loopStep; } - public Comprehension result(@jakarta.annotation.Nullable Object result) { + public Comprehension result(Expr result) { this.result = result; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get result * @return result - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getResult() { + + public Expr getResult() { return result; } @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResult(@jakarta.annotation.Nullable Object result) { + public void setResult(Expr result) { this.result = result; } @@ -328,37 +328,37 @@ public String toUrlQueryString(String prefix) { // add `iterVar` to the URL query string if (getIterVar() != null) { - joiner.add(String.format("%siterVar%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIterVar())))); + joiner.add(String.format("%siterVar%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIterVar()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `iterRange` to the URL query string if (getIterRange() != null) { - joiner.add(String.format("%siterRange%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIterRange())))); + joiner.add(getIterRange().toUrlQueryString(prefix + "iterRange" + suffix)); } // add `accuVar` to the URL query string if (getAccuVar() != null) { - joiner.add(String.format("%saccuVar%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAccuVar())))); + joiner.add(String.format("%saccuVar%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccuVar()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accuInit` to the URL query string if (getAccuInit() != null) { - joiner.add(String.format("%saccuInit%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAccuInit())))); + joiner.add(getAccuInit().toUrlQueryString(prefix + "accuInit" + suffix)); } // add `loopCondition` to the URL query string if (getLoopCondition() != null) { - joiner.add(String.format("%sloopCondition%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLoopCondition())))); + joiner.add(getLoopCondition().toUrlQueryString(prefix + "loopCondition" + suffix)); } // add `loopStep` to the URL query string if (getLoopStep() != null) { - joiner.add(String.format("%sloopStep%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLoopStep())))); + joiner.add(getLoopStep().toUrlQueryString(prefix + "loopStep" + suffix)); } // add `result` to the URL query string if (getResult() != null) { - joiner.add(String.format("%sresult%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getResult())))); + joiner.add(getResult().toUrlQueryString(prefix + "result" + suffix)); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/ComputedAttribute.java b/src/main/java/co/permify/sdk/model/ComputedAttribute.java index c377349..5c0ca31 100644 --- a/src/main/java/co/permify/sdk/model/ComputedAttribute.java +++ b/src/main/java/co/permify/sdk/model/ComputedAttribute.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * ComputedAttribute defines a computed attribute which includes its name. */ @JsonPropertyOrder({ ComputedAttribute.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ComputedAttribute { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public ComputedAttribute() { } - public ComputedAttribute name(@jakarta.annotation.Nullable String name) { + public ComputedAttribute name(String name) { this.name = name; return this; } - /** + /** * Get name * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -63,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/ComputedUserSet.java b/src/main/java/co/permify/sdk/model/ComputedUserSet.java index 4ef0cbf..d65ed7e 100644 --- a/src/main/java/co/permify/sdk/model/ComputedUserSet.java +++ b/src/main/java/co/permify/sdk/model/ComputedUserSet.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * ComputedUserSet defines a set of computed users which includes the relation name. */ @JsonPropertyOrder({ ComputedUserSet.JSON_PROPERTY_RELATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ComputedUserSet { public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public ComputedUserSet() { } - public ComputedUserSet relation(@jakarta.annotation.Nullable String relation) { + public ComputedUserSet relation(String relation) { this.relation = relation; return this; } - /** + /** * Get relation * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -63,7 +62,7 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Constant.java b/src/main/java/co/permify/sdk/model/Constant.java index c2086a3..d690bfe 100644 --- a/src/main/java/co/permify/sdk/model/Constant.java +++ b/src/main/java/co/permify/sdk/model/Constant.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Represents a primitive literal. Named 'Constant' here for backwards compatibility. This is similar as the primitives supported in the well-known type `google.protobuf.Value`, but richer so it can represent CEL's full range of primitives. Lists and structs are not included as constants as these aggregate types may contain [Expr][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant. Examples of literals include: `\"hello\"`, `b'bytes'`, `1u`, `4.2`, `-2`, `true`, `null`. */ @@ -44,59 +43,51 @@ Constant.JSON_PROPERTY_DURATION_VALUE, Constant.JSON_PROPERTY_TIMESTAMP_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Constant { public static final String JSON_PROPERTY_NULL_VALUE = "nullValue"; - @jakarta.annotation.Nullable private String nullValue; public static final String JSON_PROPERTY_BOOL_VALUE = "boolValue"; - @jakarta.annotation.Nullable private Boolean boolValue; public static final String JSON_PROPERTY_INT64_VALUE = "int64Value"; - @jakarta.annotation.Nullable private String int64Value; public static final String JSON_PROPERTY_UINT64_VALUE = "uint64Value"; - @jakarta.annotation.Nullable private String uint64Value; public static final String JSON_PROPERTY_DOUBLE_VALUE = "doubleValue"; - @jakarta.annotation.Nullable private Double doubleValue; public static final String JSON_PROPERTY_STRING_VALUE = "stringValue"; - @jakarta.annotation.Nullable private String stringValue; public static final String JSON_PROPERTY_BYTES_VALUE = "bytesValue"; - @jakarta.annotation.Nullable private byte[] bytesValue; public static final String JSON_PROPERTY_DURATION_VALUE = "durationValue"; - @jakarta.annotation.Nullable private String durationValue; public static final String JSON_PROPERTY_TIMESTAMP_VALUE = "timestampValue"; - @jakarta.annotation.Nullable private OffsetDateTime timestampValue; public Constant() { } - public Constant nullValue(@jakarta.annotation.Nullable String nullValue) { + public Constant nullValue(String nullValue) { this.nullValue = nullValue; return this; } - /** + /** * null value. * @return nullValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NULL_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNullValue() { return nullValue; } @@ -104,23 +95,24 @@ public String getNullValue() { @JsonProperty(JSON_PROPERTY_NULL_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNullValue(@jakarta.annotation.Nullable String nullValue) { + public void setNullValue(String nullValue) { this.nullValue = nullValue; } - public Constant boolValue(@jakarta.annotation.Nullable Boolean boolValue) { + public Constant boolValue(Boolean boolValue) { this.boolValue = boolValue; return this; } - /** + /** * boolean value. * @return boolValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BOOL_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getBoolValue() { return boolValue; } @@ -128,23 +120,24 @@ public Boolean getBoolValue() { @JsonProperty(JSON_PROPERTY_BOOL_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBoolValue(@jakarta.annotation.Nullable Boolean boolValue) { + public void setBoolValue(Boolean boolValue) { this.boolValue = boolValue; } - public Constant int64Value(@jakarta.annotation.Nullable String int64Value) { + public Constant int64Value(String int64Value) { this.int64Value = int64Value; return this; } - /** + /** * int64 value. * @return int64Value - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInt64Value() { return int64Value; } @@ -152,23 +145,24 @@ public String getInt64Value() { @JsonProperty(JSON_PROPERTY_INT64_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64Value(@jakarta.annotation.Nullable String int64Value) { + public void setInt64Value(String int64Value) { this.int64Value = int64Value; } - public Constant uint64Value(@jakarta.annotation.Nullable String uint64Value) { + public Constant uint64Value(String uint64Value) { this.uint64Value = uint64Value; return this; } - /** + /** * uint64 value. * @return uint64Value - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UINT64_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUint64Value() { return uint64Value; } @@ -176,23 +170,24 @@ public String getUint64Value() { @JsonProperty(JSON_PROPERTY_UINT64_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUint64Value(@jakarta.annotation.Nullable String uint64Value) { + public void setUint64Value(String uint64Value) { this.uint64Value = uint64Value; } - public Constant doubleValue(@jakarta.annotation.Nullable Double doubleValue) { + public Constant doubleValue(Double doubleValue) { this.doubleValue = doubleValue; return this; } - /** + /** * double value. * @return doubleValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDoubleValue() { return doubleValue; } @@ -200,23 +195,24 @@ public Double getDoubleValue() { @JsonProperty(JSON_PROPERTY_DOUBLE_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDoubleValue(@jakarta.annotation.Nullable Double doubleValue) { + public void setDoubleValue(Double doubleValue) { this.doubleValue = doubleValue; } - public Constant stringValue(@jakarta.annotation.Nullable String stringValue) { + public Constant stringValue(String stringValue) { this.stringValue = stringValue; return this; } - /** + /** * string value. * @return stringValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStringValue() { return stringValue; } @@ -224,23 +220,24 @@ public String getStringValue() { @JsonProperty(JSON_PROPERTY_STRING_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStringValue(@jakarta.annotation.Nullable String stringValue) { + public void setStringValue(String stringValue) { this.stringValue = stringValue; } - public Constant bytesValue(@jakarta.annotation.Nullable byte[] bytesValue) { + public Constant bytesValue(byte[] bytesValue) { this.bytesValue = bytesValue; return this; } - /** + /** * bytes value. * @return bytesValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BYTES_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public byte[] getBytesValue() { return bytesValue; } @@ -248,23 +245,24 @@ public byte[] getBytesValue() { @JsonProperty(JSON_PROPERTY_BYTES_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBytesValue(@jakarta.annotation.Nullable byte[] bytesValue) { + public void setBytesValue(byte[] bytesValue) { this.bytesValue = bytesValue; } - public Constant durationValue(@jakarta.annotation.Nullable String durationValue) { + public Constant durationValue(String durationValue) { this.durationValue = durationValue; return this; } - /** + /** * protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type. * @return durationValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DURATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDurationValue() { return durationValue; } @@ -272,23 +270,24 @@ public String getDurationValue() { @JsonProperty(JSON_PROPERTY_DURATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDurationValue(@jakarta.annotation.Nullable String durationValue) { + public void setDurationValue(String durationValue) { this.durationValue = durationValue; } - public Constant timestampValue(@jakarta.annotation.Nullable OffsetDateTime timestampValue) { + public Constant timestampValue(OffsetDateTime timestampValue) { this.timestampValue = timestampValue; return this; } - /** + /** * protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type. * @return timestampValue - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TIMESTAMP_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getTimestampValue() { return timestampValue; } @@ -296,7 +295,7 @@ public OffsetDateTime getTimestampValue() { @JsonProperty(JSON_PROPERTY_TIMESTAMP_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestampValue(@jakarta.annotation.Nullable OffsetDateTime timestampValue) { + public void setTimestampValue(OffsetDateTime timestampValue) { this.timestampValue = timestampValue; } @@ -391,47 +390,47 @@ public String toUrlQueryString(String prefix) { // add `nullValue` to the URL query string if (getNullValue() != null) { - joiner.add(String.format("%snullValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getNullValue())))); + joiner.add(String.format("%snullValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNullValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `boolValue` to the URL query string if (getBoolValue() != null) { - joiner.add(String.format("%sboolValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getBoolValue())))); + joiner.add(String.format("%sboolValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBoolValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `int64Value` to the URL query string if (getInt64Value() != null) { - joiner.add(String.format("%sint64Value%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getInt64Value())))); + joiner.add(String.format("%sint64Value%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInt64Value()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `uint64Value` to the URL query string if (getUint64Value() != null) { - joiner.add(String.format("%suint64Value%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getUint64Value())))); + joiner.add(String.format("%suint64Value%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUint64Value()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `doubleValue` to the URL query string if (getDoubleValue() != null) { - joiner.add(String.format("%sdoubleValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDoubleValue())))); + joiner.add(String.format("%sdoubleValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDoubleValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stringValue` to the URL query string if (getStringValue() != null) { - joiner.add(String.format("%sstringValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getStringValue())))); + joiner.add(String.format("%sstringValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStringValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bytesValue` to the URL query string if (getBytesValue() != null) { - joiner.add(String.format("%sbytesValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getBytesValue())))); + joiner.add(String.format("%sbytesValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBytesValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `durationValue` to the URL query string if (getDurationValue() != null) { - joiner.add(String.format("%sdurationValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDurationValue())))); + joiner.add(String.format("%sdurationValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDurationValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `timestampValue` to the URL query string if (getTimestampValue() != null) { - joiner.add(String.format("%stimestampValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTimestampValue())))); + joiner.add(String.format("%stimestampValue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTimestampValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Context.java b/src/main/java/co/permify/sdk/model/Context.java index 450bf7f..8b7b2a1 100644 --- a/src/main/java/co/permify/sdk/model/Context.java +++ b/src/main/java/co/permify/sdk/model/Context.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Context encapsulates the information related to a single operation, including the tuples involved and the associated attributes. */ @@ -41,24 +40,21 @@ Context.JSON_PROPERTY_ATTRIBUTES, Context.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Context { public static final String JSON_PROPERTY_TUPLES = "tuples"; - @jakarta.annotation.Nullable - private List tuples = new ArrayList<>(); + private List tuples; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - @jakarta.annotation.Nullable - private List attributes = new ArrayList<>(); + private List attributes; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Object data; public Context() { } - public Context tuples(@jakarta.annotation.Nullable List tuples) { + public Context tuples(List tuples) { this.tuples = tuples; return this; } @@ -71,13 +67,14 @@ public Context addTuplesItem(Tuple tuplesItem) { return this; } - /** + /** * A repeated field of tuples involved in the operation. * @return tuples - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTuples() { return tuples; } @@ -85,12 +82,12 @@ public List getTuples() { @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTuples(@jakarta.annotation.Nullable List tuples) { + public void setTuples(List tuples) { this.tuples = tuples; } - public Context attributes(@jakarta.annotation.Nullable List attributes) { + public Context attributes(List attributes) { this.attributes = attributes; return this; } @@ -103,13 +100,14 @@ public Context addAttributesItem(Attribute attributesItem) { return this; } - /** + /** * A repeated field of attributes associated with the operation. * @return attributes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAttributes() { return attributes; } @@ -117,23 +115,24 @@ public List getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(@jakarta.annotation.Nullable List attributes) { + public void setAttributes(List attributes) { this.attributes = attributes; } - public Context data(@jakarta.annotation.Nullable Object data) { + public Context data(Object data) { this.data = data; return this; } - /** + /** * Additional data associated with the context. * @return data - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getData() { return data; } @@ -141,7 +140,7 @@ public Object getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(@jakarta.annotation.Nullable Object data) { + public void setData(Object data) { this.data = data; } @@ -244,7 +243,7 @@ public String toUrlQueryString(String prefix) { // add `data` to the URL query string if (getData() != null) { - joiner.add(String.format("%sdata%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getData())))); + joiner.add(String.format("%sdata%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getData()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/CreateList.java b/src/main/java/co/permify/sdk/model/CreateList.java index 5a05ebe..5deaecd 100644 --- a/src/main/java/co/permify/sdk/model/CreateList.java +++ b/src/main/java/co/permify/sdk/model/CreateList.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -30,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * A list creation expression. Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. `dyn([1, 'hello', 2.0])` */ @@ -38,25 +38,23 @@ CreateList.JSON_PROPERTY_ELEMENTS, CreateList.JSON_PROPERTY_OPTIONAL_INDICES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CreateList { public static final String JSON_PROPERTY_ELEMENTS = "elements"; - @jakarta.annotation.Nullable - private List elements = new ArrayList<>(); + private List elements; public static final String JSON_PROPERTY_OPTIONAL_INDICES = "optionalIndices"; - @jakarta.annotation.Nullable - private List optionalIndices = new ArrayList<>(); + private List optionalIndices; public CreateList() { } - public CreateList elements(@jakarta.annotation.Nullable List elements) { + public CreateList elements(List elements) { this.elements = elements; return this; } - public CreateList addElementsItem(Object elementsItem) { + public CreateList addElementsItem(Expr elementsItem) { if (this.elements == null) { this.elements = new ArrayList<>(); } @@ -64,26 +62,27 @@ public CreateList addElementsItem(Object elementsItem) { return this; } - /** + /** * The elements part of the list. * @return elements - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ELEMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getElements() { + + public List getElements() { return elements; } @JsonProperty(JSON_PROPERTY_ELEMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setElements(@jakarta.annotation.Nullable List elements) { + public void setElements(List elements) { this.elements = elements; } - public CreateList optionalIndices(@jakarta.annotation.Nullable List optionalIndices) { + public CreateList optionalIndices(List optionalIndices) { this.optionalIndices = optionalIndices; return this; } @@ -96,13 +95,14 @@ public CreateList addOptionalIndicesItem(Integer optionalIndicesItem) { return this; } - /** + /** * The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result. * @return optionalIndices - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONAL_INDICES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getOptionalIndices() { return optionalIndices; } @@ -110,7 +110,7 @@ public List getOptionalIndices() { @JsonProperty(JSON_PROPERTY_OPTIONAL_INDICES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalIndices(@jakarta.annotation.Nullable List optionalIndices) { + public void setOptionalIndices(List optionalIndices) { this.optionalIndices = optionalIndices; } @@ -192,9 +192,10 @@ public String toUrlQueryString(String prefix) { // add `elements` to the URL query string if (getElements() != null) { for (int i = 0; i < getElements().size(); i++) { - joiner.add(String.format("%selements%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getElements().get(i))))); + if (getElements().get(i) != null) { + joiner.add(getElements().get(i).toUrlQueryString(String.format("%selements%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } } } @@ -203,7 +204,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getOptionalIndices().size(); i++) { joiner.add(String.format("%soptionalIndices%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getOptionalIndices().get(i))))); + URLEncoder.encode(String.valueOf(getOptionalIndices().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/CreateStruct.java b/src/main/java/co/permify/sdk/model/CreateStruct.java index 3378113..112df6d 100644 --- a/src/main/java/co/permify/sdk/model/CreateStruct.java +++ b/src/main/java/co/permify/sdk/model/CreateStruct.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * A map or message creation expression. Maps are constructed as `{'key_name': 'value'}`. Message construction is similar, but prefixed with a type name and composed of field ids: `types.MyType{field_id: 'value'}`. */ @@ -39,31 +38,30 @@ CreateStruct.JSON_PROPERTY_MESSAGE_NAME, CreateStruct.JSON_PROPERTY_ENTRIES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CreateStruct { public static final String JSON_PROPERTY_MESSAGE_NAME = "messageName"; - @jakarta.annotation.Nullable private String messageName; public static final String JSON_PROPERTY_ENTRIES = "entries"; - @jakarta.annotation.Nullable - private List entries = new ArrayList<>(); + private List entries; public CreateStruct() { } - public CreateStruct messageName(@jakarta.annotation.Nullable String messageName) { + public CreateStruct messageName(String messageName) { this.messageName = messageName; return this; } - /** + /** * The type name of the message to be created, empty when creating map literals. * @return messageName - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessageName() { return messageName; } @@ -71,12 +69,12 @@ public String getMessageName() { @JsonProperty(JSON_PROPERTY_MESSAGE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessageName(@jakarta.annotation.Nullable String messageName) { + public void setMessageName(String messageName) { this.messageName = messageName; } - public CreateStruct entries(@jakarta.annotation.Nullable List entries) { + public CreateStruct entries(List entries) { this.entries = entries; return this; } @@ -89,13 +87,14 @@ public CreateStruct addEntriesItem(Entry entriesItem) { return this; } - /** + /** * The entries in the creation expression. * @return entries - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getEntries() { return entries; } @@ -103,7 +102,7 @@ public List getEntries() { @JsonProperty(JSON_PROPERTY_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntries(@jakarta.annotation.Nullable List entries) { + public void setEntries(List entries) { this.entries = entries; } @@ -184,7 +183,7 @@ public String toUrlQueryString(String prefix) { // add `messageName` to the URL query string if (getMessageName() != null) { - joiner.add(String.format("%smessageName%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMessageName())))); + joiner.add(String.format("%smessageName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMessageName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `entries` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/DataBundle.java b/src/main/java/co/permify/sdk/model/DataBundle.java index 1498637..c0f667b 100644 --- a/src/main/java/co/permify/sdk/model/DataBundle.java +++ b/src/main/java/co/permify/sdk/model/DataBundle.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataBundle is a message representing a bundle of data, which includes a name, a list of arguments, and a series of operations. */ @@ -40,35 +39,33 @@ DataBundle.JSON_PROPERTY_ARGUMENTS, DataBundle.JSON_PROPERTY_OPERATIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataBundle { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; - @jakarta.annotation.Nullable - private List arguments = new ArrayList<>(); + private List arguments; public static final String JSON_PROPERTY_OPERATIONS = "operations"; - @jakarta.annotation.Nullable - private List operations = new ArrayList<>(); + private List operations; public DataBundle() { } - public DataBundle name(@jakarta.annotation.Nullable String name) { + public DataBundle name(String name) { this.name = name; return this; } - /** + /** * 'name' is a simple string field representing the name of the DataBundle. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -76,12 +73,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public DataBundle arguments(@jakarta.annotation.Nullable List arguments) { + public DataBundle arguments(List arguments) { this.arguments = arguments; return this; } @@ -94,13 +91,14 @@ public DataBundle addArgumentsItem(String argumentsItem) { return this; } - /** + /** * 'arguments' is a repeated field, which means it can contain multiple strings. These are used to store a list of arguments related to the DataBundle. * @return arguments - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArguments() { return arguments; } @@ -108,12 +106,12 @@ public List getArguments() { @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArguments(@jakarta.annotation.Nullable List arguments) { + public void setArguments(List arguments) { this.arguments = arguments; } - public DataBundle operations(@jakarta.annotation.Nullable List operations) { + public DataBundle operations(List operations) { this.operations = operations; return this; } @@ -126,13 +124,14 @@ public DataBundle addOperationsItem(V1Operation operationsItem) { return this; } - /** + /** * 'operations' is a repeated field containing multiple Operation messages. Each Operation represents a specific action or set of actions to be performed. * @return operations - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getOperations() { return operations; } @@ -140,7 +139,7 @@ public List getOperations() { @JsonProperty(JSON_PROPERTY_OPERATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperations(@jakarta.annotation.Nullable List operations) { + public void setOperations(List operations) { this.operations = operations; } @@ -223,7 +222,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `arguments` to the URL query string @@ -231,7 +230,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getArguments().size(); i++) { joiner.add(String.format("%sarguments%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getArguments().get(i))))); + URLEncoder.encode(String.valueOf(getArguments().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/DataChange.java b/src/main/java/co/permify/sdk/model/DataChange.java index 08237a9..5628971 100644 --- a/src/main/java/co/permify/sdk/model/DataChange.java +++ b/src/main/java/co/permify/sdk/model/DataChange.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataChange represents a single change in data, with an operation type and the actual change which could be a tuple or an attribute. */ @@ -40,35 +39,33 @@ DataChange.JSON_PROPERTY_TUPLE, DataChange.JSON_PROPERTY_ATTRIBUTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataChange { public static final String JSON_PROPERTY_OPERATION = "operation"; - @jakarta.annotation.Nullable - private DataChangeOperation operation = DataChangeOperation.OPERATION_UNSPECIFIED; + private DataChangeOperation operation; public static final String JSON_PROPERTY_TUPLE = "tuple"; - @jakarta.annotation.Nullable private Tuple tuple; public static final String JSON_PROPERTY_ATTRIBUTE = "attribute"; - @jakarta.annotation.Nullable private Attribute attribute; public DataChange() { } - public DataChange operation(@jakarta.annotation.Nullable DataChangeOperation operation) { + public DataChange operation(DataChangeOperation operation) { this.operation = operation; return this; } - /** + /** * Get operation * @return operation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataChangeOperation getOperation() { return operation; } @@ -76,23 +73,24 @@ public DataChangeOperation getOperation() { @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperation(@jakarta.annotation.Nullable DataChangeOperation operation) { + public void setOperation(DataChangeOperation operation) { this.operation = operation; } - public DataChange tuple(@jakarta.annotation.Nullable Tuple tuple) { + public DataChange tuple(Tuple tuple) { this.tuple = tuple; return this; } - /** + /** * Get tuple * @return tuple - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Tuple getTuple() { return tuple; } @@ -100,23 +98,24 @@ public Tuple getTuple() { @JsonProperty(JSON_PROPERTY_TUPLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTuple(@jakarta.annotation.Nullable Tuple tuple) { + public void setTuple(Tuple tuple) { this.tuple = tuple; } - public DataChange attribute(@jakarta.annotation.Nullable Attribute attribute) { + public DataChange attribute(Attribute attribute) { this.attribute = attribute; return this; } - /** + /** * Get attribute * @return attribute - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Attribute getAttribute() { return attribute; } @@ -124,7 +123,7 @@ public Attribute getAttribute() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttribute(@jakarta.annotation.Nullable Attribute attribute) { + public void setAttribute(Attribute attribute) { this.attribute = attribute; } @@ -207,7 +206,7 @@ public String toUrlQueryString(String prefix) { // add `operation` to the URL query string if (getOperation() != null) { - joiner.add(String.format("%soperation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOperation())))); + joiner.add(String.format("%soperation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOperation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tuple` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/DataChangeOperation.java b/src/main/java/co/permify/sdk/model/DataChangeOperation.java index 280b4fd..b8cea76 100644 --- a/src/main/java/co/permify/sdk/model/DataChangeOperation.java +++ b/src/main/java/co/permify/sdk/model/DataChangeOperation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,15 +26,13 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * - OPERATION_UNSPECIFIED: Default operation, not specified. - OPERATION_CREATE: Creation operation. - OPERATION_DELETE: Deletion operation. + * - OPERATION_CREATE: Creation operation. - OPERATION_DELETE: Deletion operation. */ public enum DataChangeOperation { - OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), + CREATE("OPERATION_CREATE"), - OPERATION_CREATE("OPERATION_CREATE"), - - OPERATION_DELETE("OPERATION_DELETE"); + DELETE("OPERATION_DELETE"); private String value; diff --git a/src/main/java/co/permify/sdk/model/DataChanges.java b/src/main/java/co/permify/sdk/model/DataChanges.java index 32d89c0..87f8da6 100644 --- a/src/main/java/co/permify/sdk/model/DataChanges.java +++ b/src/main/java/co/permify/sdk/model/DataChanges.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataChanges represent changes in data with a snap token and a list of data change objects. */ @@ -39,31 +38,30 @@ DataChanges.JSON_PROPERTY_SNAP_TOKEN, DataChanges.JSON_PROPERTY_DATA_CHANGES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataChanges { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public static final String JSON_PROPERTY_DATA_CHANGES = "data_changes"; - @jakarta.annotation.Nullable - private List dataChanges = new ArrayList<>(); + private List dataChanges; public DataChanges() { } - public DataChanges snapToken(@jakarta.annotation.Nullable String snapToken) { + public DataChanges snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snapshot token. * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -71,12 +69,12 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } - public DataChanges dataChanges(@jakarta.annotation.Nullable List dataChanges) { + public DataChanges dataChanges(List dataChanges) { this.dataChanges = dataChanges; return this; } @@ -89,13 +87,14 @@ public DataChanges addDataChangesItem(DataChange dataChangesItem) { return this; } - /** + /** * The list of data changes. * @return dataChanges - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA_CHANGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getDataChanges() { return dataChanges; } @@ -103,7 +102,7 @@ public List getDataChanges() { @JsonProperty(JSON_PROPERTY_DATA_CHANGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDataChanges(@jakarta.annotation.Nullable List dataChanges) { + public void setDataChanges(List dataChanges) { this.dataChanges = dataChanges; } @@ -184,7 +183,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `data_changes` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/DataDeleteBody.java b/src/main/java/co/permify/sdk/model/DataDeleteBody.java index e6ca412..568053b 100644 --- a/src/main/java/co/permify/sdk/model/DataDeleteBody.java +++ b/src/main/java/co/permify/sdk/model/DataDeleteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataDeleteRequest defines the structure of a request to delete data. It includes the tenant_id and filters for selecting tuples and attributes to be deleted. */ @@ -38,31 +37,30 @@ DataDeleteBody.JSON_PROPERTY_TUPLE_FILTER, DataDeleteBody.JSON_PROPERTY_ATTRIBUTE_FILTER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataDeleteBody { public static final String JSON_PROPERTY_TUPLE_FILTER = "tuple_filter"; - @jakarta.annotation.Nullable private TupleFilter tupleFilter; public static final String JSON_PROPERTY_ATTRIBUTE_FILTER = "attribute_filter"; - @jakarta.annotation.Nullable private AttributeFilter attributeFilter; public DataDeleteBody() { } - public DataDeleteBody tupleFilter(@jakarta.annotation.Nullable TupleFilter tupleFilter) { + public DataDeleteBody tupleFilter(TupleFilter tupleFilter) { this.tupleFilter = tupleFilter; return this; } - /** + /** * Get tupleFilter * @return tupleFilter - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLE_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TupleFilter getTupleFilter() { return tupleFilter; } @@ -70,23 +68,24 @@ public TupleFilter getTupleFilter() { @JsonProperty(JSON_PROPERTY_TUPLE_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTupleFilter(@jakarta.annotation.Nullable TupleFilter tupleFilter) { + public void setTupleFilter(TupleFilter tupleFilter) { this.tupleFilter = tupleFilter; } - public DataDeleteBody attributeFilter(@jakarta.annotation.Nullable AttributeFilter attributeFilter) { + public DataDeleteBody attributeFilter(AttributeFilter attributeFilter) { this.attributeFilter = attributeFilter; return this; } - /** + /** * Get attributeFilter * @return attributeFilter - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AttributeFilter getAttributeFilter() { return attributeFilter; } @@ -94,7 +93,7 @@ public AttributeFilter getAttributeFilter() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeFilter(@jakarta.annotation.Nullable AttributeFilter attributeFilter) { + public void setAttributeFilter(AttributeFilter attributeFilter) { this.attributeFilter = attributeFilter; } diff --git a/src/main/java/co/permify/sdk/model/DataDeleteResponse.java b/src/main/java/co/permify/sdk/model/DataDeleteResponse.java index 04bd7d3..e7915c4 100644 --- a/src/main/java/co/permify/sdk/model/DataDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/DataDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataDeleteResponse defines the structure of the response to a data delete request. It includes a snap_token representing the state of the database after the deletion. */ @JsonPropertyOrder({ DataDeleteResponse.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataDeleteResponse { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public DataDeleteResponse() { } - public DataDeleteResponse snapToken(@jakarta.annotation.Nullable String snapToken) { + public DataDeleteResponse snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/DataWriteBody.java b/src/main/java/co/permify/sdk/model/DataWriteBody.java index 1182f58..b597696 100644 --- a/src/main/java/co/permify/sdk/model/DataWriteBody.java +++ b/src/main/java/co/permify/sdk/model/DataWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataWriteRequest defines the structure of a request for writing data. It contains the necessary information such as tenant_id, metadata, tuples and attributes for the write operation. */ @@ -42,35 +41,33 @@ DataWriteBody.JSON_PROPERTY_TUPLES, DataWriteBody.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataWriteBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private DataWriteRequestMetadata metadata; public static final String JSON_PROPERTY_TUPLES = "tuples"; - @jakarta.annotation.Nullable - private List tuples = new ArrayList<>(); + private List tuples; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - @jakarta.annotation.Nullable - private List attributes = new ArrayList<>(); + private List attributes; public DataWriteBody() { } - public DataWriteBody metadata(@jakarta.annotation.Nullable DataWriteRequestMetadata metadata) { + public DataWriteBody metadata(DataWriteRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataWriteRequestMetadata getMetadata() { return metadata; } @@ -78,12 +75,12 @@ public DataWriteRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable DataWriteRequestMetadata metadata) { + public void setMetadata(DataWriteRequestMetadata metadata) { this.metadata = metadata; } - public DataWriteBody tuples(@jakarta.annotation.Nullable List tuples) { + public DataWriteBody tuples(List tuples) { this.tuples = tuples; return this; } @@ -96,13 +93,14 @@ public DataWriteBody addTuplesItem(Tuple tuplesItem) { return this; } - /** + /** * tuples contains the list of tuples (entity-relation-entity triples) that need to be written. * @return tuples - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTuples() { return tuples; } @@ -110,12 +108,12 @@ public List getTuples() { @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTuples(@jakarta.annotation.Nullable List tuples) { + public void setTuples(List tuples) { this.tuples = tuples; } - public DataWriteBody attributes(@jakarta.annotation.Nullable List attributes) { + public DataWriteBody attributes(List attributes) { this.attributes = attributes; return this; } @@ -128,13 +126,14 @@ public DataWriteBody addAttributesItem(Attribute attributesItem) { return this; } - /** + /** * attributes contains the list of attributes (entity-attribute-value triples) that need to be written. * @return attributes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAttributes() { return attributes; } @@ -142,7 +141,7 @@ public List getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(@jakarta.annotation.Nullable List attributes) { + public void setAttributes(List attributes) { this.attributes = attributes; } diff --git a/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java b/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java index acb1eca..e8b42fb 100644 --- a/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataWriteRequestMetadata defines the structure of metadata for a write request. It includes the schema version of the data to be written. */ @JsonPropertyOrder({ DataWriteRequestMetadata.JSON_PROPERTY_SCHEMA_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataWriteRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public DataWriteRequestMetadata() { } - public DataWriteRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public DataWriteRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * schema_version represents the version of the schema for the data being written. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -63,7 +62,7 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/DataWriteResponse.java b/src/main/java/co/permify/sdk/model/DataWriteResponse.java index 34500a2..7ee79f2 100644 --- a/src/main/java/co/permify/sdk/model/DataWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/DataWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DataWriteResponse defines the structure of the response after writing data. It contains the snap_token generated after the write operation. */ @JsonPropertyOrder({ DataWriteResponse.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DataWriteResponse { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public DataWriteResponse() { } - public DataWriteResponse snapToken(@jakarta.annotation.Nullable String snapToken) { + public DataWriteResponse snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens). * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java b/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java index 1222a1c..94a142d 100644 --- a/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java +++ b/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * DeleteRelationshipsBody */ @JsonPropertyOrder({ DeleteRelationshipsBody.JSON_PROPERTY_FILTER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DeleteRelationshipsBody { public static final String JSON_PROPERTY_FILTER = "filter"; - @jakarta.annotation.Nullable private TupleFilter filter; public DeleteRelationshipsBody() { } - public DeleteRelationshipsBody filter(@jakarta.annotation.Nullable TupleFilter filter) { + public DeleteRelationshipsBody filter(TupleFilter filter) { this.filter = filter; return this; } - /** + /** * Get filter * @return filter - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TupleFilter getFilter() { return filter; } @@ -64,7 +63,7 @@ public TupleFilter getFilter() { @JsonProperty(JSON_PROPERTY_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilter(@jakarta.annotation.Nullable TupleFilter filter) { + public void setFilter(TupleFilter filter) { this.filter = filter; } diff --git a/src/main/java/co/permify/sdk/model/Entity.java b/src/main/java/co/permify/sdk/model/Entity.java index d378859..3f7da4f 100644 --- a/src/main/java/co/permify/sdk/model/Entity.java +++ b/src/main/java/co/permify/sdk/model/Entity.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Entity represents an entity with a type and an identifier. */ @@ -36,31 +35,30 @@ Entity.JSON_PROPERTY_TYPE, Entity.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Entity { public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; public Entity() { } - public Entity type(@jakarta.annotation.Nullable String type) { + public Entity type(String type) { this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } @@ -68,23 +66,24 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(String type) { this.type = type; } - public Entity id(@jakarta.annotation.Nullable String id) { + public Entity id(String id) { this.id = id; return this; } - /** + /** * Get id * @return id - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { return id; } @@ -92,7 +91,7 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { + public void setId(String id) { this.id = id; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/EntityDefinition.java b/src/main/java/co/permify/sdk/model/EntityDefinition.java index 2b816b8..9fe3f15 100644 --- a/src/main/java/co/permify/sdk/model/EntityDefinition.java +++ b/src/main/java/co/permify/sdk/model/EntityDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The EntityDefinition message provides detailed information about a specific entity. */ @@ -45,43 +44,39 @@ EntityDefinition.JSON_PROPERTY_ATTRIBUTES, EntityDefinition.JSON_PROPERTY_REFERENCES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class EntityDefinition { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_RELATIONS = "relations"; - @jakarta.annotation.Nullable private Map relations = new HashMap<>(); public static final String JSON_PROPERTY_PERMISSIONS = "permissions"; - @jakarta.annotation.Nullable private Map permissions = new HashMap<>(); public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - @jakarta.annotation.Nullable private Map attributes = new HashMap<>(); public static final String JSON_PROPERTY_REFERENCES = "references"; - @jakarta.annotation.Nullable private Map references = new HashMap<>(); public EntityDefinition() { } - public EntityDefinition name(@jakarta.annotation.Nullable String name) { + public EntityDefinition name(String name) { this.name = name; return this; } - /** + /** * The name of the entity, which follows a specific string pattern and has a maximum byte size. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -89,12 +84,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public EntityDefinition relations(@jakarta.annotation.Nullable Map relations) { + public EntityDefinition relations(Map relations) { this.relations = relations; return this; } @@ -107,13 +102,14 @@ public EntityDefinition putRelationsItem(String key, RelationDefinition relation return this; } - /** + /** * Map of relation definitions within this entity. The key is the relation name, and the value is the RelationDefinition. * @return relations - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getRelations() { return relations; } @@ -121,12 +117,12 @@ public Map getRelations() { @JsonProperty(JSON_PROPERTY_RELATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelations(@jakarta.annotation.Nullable Map relations) { + public void setRelations(Map relations) { this.relations = relations; } - public EntityDefinition permissions(@jakarta.annotation.Nullable Map permissions) { + public EntityDefinition permissions(Map permissions) { this.permissions = permissions; return this; } @@ -139,13 +135,14 @@ public EntityDefinition putPermissionsItem(String key, PermissionDefinition perm return this; } - /** + /** * Map of permission definitions within this entity. The key is the permission name, and the value is the PermissionDefinition. * @return permissions - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getPermissions() { return permissions; } @@ -153,12 +150,12 @@ public Map getPermissions() { @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPermissions(@jakarta.annotation.Nullable Map permissions) { + public void setPermissions(Map permissions) { this.permissions = permissions; } - public EntityDefinition attributes(@jakarta.annotation.Nullable Map attributes) { + public EntityDefinition attributes(Map attributes) { this.attributes = attributes; return this; } @@ -171,13 +168,14 @@ public EntityDefinition putAttributesItem(String key, AttributeDefinition attrib return this; } - /** + /** * Map of attribute definitions within this entity. The key is the attribute name, and the value is the AttributeDefinition. * @return attributes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getAttributes() { return attributes; } @@ -185,12 +183,12 @@ public Map getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(@jakarta.annotation.Nullable Map attributes) { + public void setAttributes(Map attributes) { this.attributes = attributes; } - public EntityDefinition references(@jakarta.annotation.Nullable Map references) { + public EntityDefinition references(Map references) { this.references = references; return this; } @@ -203,13 +201,14 @@ public EntityDefinition putReferencesItem(String key, EntityDefinitionReference return this; } - /** + /** * Map of references indicating whether a string pertains to a relation, permission, or attribute. * @return references - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getReferences() { return references; } @@ -217,7 +216,7 @@ public Map getReferences() { @JsonProperty(JSON_PROPERTY_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReferences(@jakarta.annotation.Nullable Map references) { + public void setReferences(Map references) { this.references = references; } @@ -304,7 +303,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relations` to the URL query string @@ -342,7 +341,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getReferences().keySet()) { joiner.add(String.format("%sreferences%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getReferences().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getReferences().get(_key))))); + getReferences().get(_key), URLEncoder.encode(String.valueOf(getReferences().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java b/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java index f90c738..c70ea2c 100644 --- a/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java +++ b/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,17 +26,15 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * The Reference enum specifies whether a name pertains to a relation, permission, or attribute. - REFERENCE_UNSPECIFIED: Default, unspecified reference. - REFERENCE_RELATION: Indicates that the name refers to a relation. - REFERENCE_PERMISSION: Indicates that the name refers to a permission. - REFERENCE_ATTRIBUTE: Indicates that the name refers to an attribute. + * The Reference enum specifies whether a name pertains to a relation, permission, or attribute. - REFERENCE_RELATION: Indicates that the name refers to a relation. - REFERENCE_PERMISSION: Indicates that the name refers to a permission. - REFERENCE_ATTRIBUTE: Indicates that the name refers to an attribute. */ public enum EntityDefinitionReference { - REFERENCE_UNSPECIFIED("REFERENCE_UNSPECIFIED"), + RELATION("REFERENCE_RELATION"), - REFERENCE_RELATION("REFERENCE_RELATION"), + PERMISSION("REFERENCE_PERMISSION"), - REFERENCE_PERMISSION("REFERENCE_PERMISSION"), - - REFERENCE_ATTRIBUTE("REFERENCE_ATTRIBUTE"); + ATTRIBUTE("REFERENCE_ATTRIBUTE"); private String value; diff --git a/src/main/java/co/permify/sdk/model/EntityFilter.java b/src/main/java/co/permify/sdk/model/EntityFilter.java index c04dff5..4c183a3 100644 --- a/src/main/java/co/permify/sdk/model/EntityFilter.java +++ b/src/main/java/co/permify/sdk/model/EntityFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * EntityFilter is used to filter entities based on the type and ids. */ @@ -38,31 +37,30 @@ EntityFilter.JSON_PROPERTY_TYPE, EntityFilter.JSON_PROPERTY_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class EntityFilter { public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_IDS = "ids"; - @jakarta.annotation.Nullable - private List ids = new ArrayList<>(); + private List ids; public EntityFilter() { } - public EntityFilter type(@jakarta.annotation.Nullable String type) { + public EntityFilter type(String type) { this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } @@ -70,12 +68,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(String type) { this.type = type; } - public EntityFilter ids(@jakarta.annotation.Nullable List ids) { + public EntityFilter ids(List ids) { this.ids = ids; return this; } @@ -88,13 +86,14 @@ public EntityFilter addIdsItem(String idsItem) { return this; } - /** + /** * Get ids * @return ids - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getIds() { return ids; } @@ -102,7 +101,7 @@ public List getIds() { @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds(@jakarta.annotation.Nullable List ids) { + public void setIds(List ids) { this.ids = ids; } @@ -183,7 +182,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ids` to the URL query string @@ -191,7 +190,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getIds().size(); i++) { joiner.add(String.format("%sids%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i))))); + URLEncoder.encode(String.valueOf(getIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/Entry.java b/src/main/java/co/permify/sdk/model/Entry.java index 6e0165b..9d6fdcb 100644 --- a/src/main/java/co/permify/sdk/model/Entry.java +++ b/src/main/java/co/permify/sdk/model/Entry.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -28,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Represents an entry. */ @@ -39,43 +39,39 @@ Entry.JSON_PROPERTY_VALUE, Entry.JSON_PROPERTY_OPTIONAL_ENTRY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Entry { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_FIELD_KEY = "fieldKey"; - @jakarta.annotation.Nullable private String fieldKey; public static final String JSON_PROPERTY_MAP_KEY = "mapKey"; - @jakarta.annotation.Nullable - private Object mapKey; + private Expr mapKey; public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nullable - private Object value; + private Expr value; public static final String JSON_PROPERTY_OPTIONAL_ENTRY = "optionalEntry"; - @jakarta.annotation.Nullable private Boolean optionalEntry; public Entry() { } - public Entry id(@jakarta.annotation.Nullable String id) { + public Entry id(String id) { this.id = id; return this; } - /** + /** * Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node. * @return id - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { return id; } @@ -83,23 +79,24 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { + public void setId(String id) { this.id = id; } - public Entry fieldKey(@jakarta.annotation.Nullable String fieldKey) { + public Entry fieldKey(String fieldKey) { this.fieldKey = fieldKey; return this; } - /** + /** * The field key for a message creator statement. * @return fieldKey - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFieldKey() { return fieldKey; } @@ -107,71 +104,74 @@ public String getFieldKey() { @JsonProperty(JSON_PROPERTY_FIELD_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldKey(@jakarta.annotation.Nullable String fieldKey) { + public void setFieldKey(String fieldKey) { this.fieldKey = fieldKey; } - public Entry mapKey(@jakarta.annotation.Nullable Object mapKey) { + public Entry mapKey(Expr mapKey) { this.mapKey = mapKey; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get mapKey * @return mapKey - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMapKey() { + + public Expr getMapKey() { return mapKey; } @JsonProperty(JSON_PROPERTY_MAP_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapKey(@jakarta.annotation.Nullable Object mapKey) { + public void setMapKey(Expr mapKey) { this.mapKey = mapKey; } - public Entry value(@jakarta.annotation.Nullable Object value) { + public Entry value(Expr value) { this.value = value; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get value * @return value - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getValue() { + + public Expr getValue() { return value; } @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(@jakarta.annotation.Nullable Object value) { + public void setValue(Expr value) { this.value = value; } - public Entry optionalEntry(@jakarta.annotation.Nullable Boolean optionalEntry) { + public Entry optionalEntry(Boolean optionalEntry) { this.optionalEntry = optionalEntry; return this; } - /** + /** * Whether the key-value pair is optional. * @return optionalEntry - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONAL_ENTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getOptionalEntry() { return optionalEntry; } @@ -179,7 +179,7 @@ public Boolean getOptionalEntry() { @JsonProperty(JSON_PROPERTY_OPTIONAL_ENTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalEntry(@jakarta.annotation.Nullable Boolean optionalEntry) { + public void setOptionalEntry(Boolean optionalEntry) { this.optionalEntry = optionalEntry; } @@ -266,27 +266,27 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fieldKey` to the URL query string if (getFieldKey() != null) { - joiner.add(String.format("%sfieldKey%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getFieldKey())))); + joiner.add(String.format("%sfieldKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFieldKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `mapKey` to the URL query string if (getMapKey() != null) { - joiner.add(String.format("%smapKey%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMapKey())))); + joiner.add(getMapKey().toUrlQueryString(prefix + "mapKey" + suffix)); } // add `value` to the URL query string if (getValue() != null) { - joiner.add(String.format("%svalue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getValue())))); + joiner.add(getValue().toUrlQueryString(prefix + "value" + suffix)); } // add `optionalEntry` to the URL query string if (getOptionalEntry() != null) { - joiner.add(String.format("%soptionalEntry%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOptionalEntry())))); + joiner.add(String.format("%soptionalEntry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOptionalEntry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/ExpandLeaf.java b/src/main/java/co/permify/sdk/model/ExpandLeaf.java index 38442ff..4a4c1eb 100644 --- a/src/main/java/co/permify/sdk/model/ExpandLeaf.java +++ b/src/main/java/co/permify/sdk/model/ExpandLeaf.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * ExpandLeaf is the leaf node of an Expand tree and can be either a set of Subjects or a set of Values. */ @@ -40,35 +39,33 @@ ExpandLeaf.JSON_PROPERTY_VALUES, ExpandLeaf.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ExpandLeaf { public static final String JSON_PROPERTY_SUBJECTS = "subjects"; - @jakarta.annotation.Nullable private Subjects subjects; public static final String JSON_PROPERTY_VALUES = "values"; - @jakarta.annotation.Nullable private Values values; public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nullable private Any value; public ExpandLeaf() { } - public ExpandLeaf subjects(@jakarta.annotation.Nullable Subjects subjects) { + public ExpandLeaf subjects(Subjects subjects) { this.subjects = subjects; return this; } - /** + /** * Get subjects * @return subjects - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Subjects getSubjects() { return subjects; } @@ -76,23 +73,24 @@ public Subjects getSubjects() { @JsonProperty(JSON_PROPERTY_SUBJECTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubjects(@jakarta.annotation.Nullable Subjects subjects) { + public void setSubjects(Subjects subjects) { this.subjects = subjects; } - public ExpandLeaf values(@jakarta.annotation.Nullable Values values) { + public ExpandLeaf values(Values values) { this.values = values; return this; } - /** + /** * Get values * @return values - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Values getValues() { return values; } @@ -100,23 +98,24 @@ public Values getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(@jakarta.annotation.Nullable Values values) { + public void setValues(Values values) { this.values = values; } - public ExpandLeaf value(@jakarta.annotation.Nullable Any value) { + public ExpandLeaf value(Any value) { this.value = value; return this; } - /** + /** * Get value * @return value - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Any getValue() { return value; } @@ -124,7 +123,7 @@ public Any getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(@jakarta.annotation.Nullable Any value) { + public void setValue(Any value) { this.value = value; } @@ -217,7 +216,7 @@ public String toUrlQueryString(String prefix) { // add `value` to the URL query string if (getValue() != null) { - joiner.add(String.format("%svalue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getValue())))); + joiner.add(String.format("%svalue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/ExpandTreeNode.java b/src/main/java/co/permify/sdk/model/ExpandTreeNode.java index 4be6814..a262dff 100644 --- a/src/main/java/co/permify/sdk/model/ExpandTreeNode.java +++ b/src/main/java/co/permify/sdk/model/ExpandTreeNode.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import java.util.Map; import java.util.HashMap; import co.permify.sdk.model.ExpandTreeNodeOperation; +import co.permify.sdk.model.V1Expand; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -31,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * ExpandTreeNode represents a node in an expansion tree with a specific operation and its children. */ @@ -39,31 +39,30 @@ ExpandTreeNode.JSON_PROPERTY_OPERATION, ExpandTreeNode.JSON_PROPERTY_CHILDREN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ExpandTreeNode { public static final String JSON_PROPERTY_OPERATION = "operation"; - @jakarta.annotation.Nullable - private ExpandTreeNodeOperation operation = ExpandTreeNodeOperation.OPERATION_UNSPECIFIED; + private ExpandTreeNodeOperation operation; public static final String JSON_PROPERTY_CHILDREN = "children"; - @jakarta.annotation.Nullable - private List children = new ArrayList<>(); + private List children; public ExpandTreeNode() { } - public ExpandTreeNode operation(@jakarta.annotation.Nullable ExpandTreeNodeOperation operation) { + public ExpandTreeNode operation(ExpandTreeNodeOperation operation) { this.operation = operation; return this; } - /** + /** * Get operation * @return operation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ExpandTreeNodeOperation getOperation() { return operation; } @@ -71,17 +70,17 @@ public ExpandTreeNodeOperation getOperation() { @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperation(@jakarta.annotation.Nullable ExpandTreeNodeOperation operation) { + public void setOperation(ExpandTreeNodeOperation operation) { this.operation = operation; } - public ExpandTreeNode children(@jakarta.annotation.Nullable List children) { + public ExpandTreeNode children(List children) { this.children = children; return this; } - public ExpandTreeNode addChildrenItem(Object childrenItem) { + public ExpandTreeNode addChildrenItem(V1Expand childrenItem) { if (this.children == null) { this.children = new ArrayList<>(); } @@ -89,21 +88,22 @@ public ExpandTreeNode addChildrenItem(Object childrenItem) { return this; } - /** + /** * Get children * @return children - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHILDREN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getChildren() { + + public List getChildren() { return children; } @JsonProperty(JSON_PROPERTY_CHILDREN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChildren(@jakarta.annotation.Nullable List children) { + public void setChildren(List children) { this.children = children; } @@ -184,15 +184,16 @@ public String toUrlQueryString(String prefix) { // add `operation` to the URL query string if (getOperation() != null) { - joiner.add(String.format("%soperation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOperation())))); + joiner.add(String.format("%soperation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOperation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `children` to the URL query string if (getChildren() != null) { for (int i = 0; i < getChildren().size(); i++) { - joiner.add(String.format("%schildren%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getChildren().get(i))))); + if (getChildren().get(i) != null) { + joiner.add(getChildren().get(i).toUrlQueryString(String.format("%schildren%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } } } diff --git a/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java b/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java index 97912f1..87ed6b3 100644 --- a/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java +++ b/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,13 +30,11 @@ */ public enum ExpandTreeNodeOperation { - OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), + UNION("OPERATION_UNION"), - OPERATION_UNION("OPERATION_UNION"), + INTERSECTION("OPERATION_INTERSECTION"), - OPERATION_INTERSECTION("OPERATION_INTERSECTION"), - - OPERATION_EXCLUSION("OPERATION_EXCLUSION"); + EXCLUSION("OPERATION_EXCLUSION"); private String value; diff --git a/src/main/java/co/permify/sdk/model/Expr.java b/src/main/java/co/permify/sdk/model/Expr.java new file mode 100644 index 0000000..24c331d --- /dev/null +++ b/src/main/java/co/permify/sdk/model/Expr.java @@ -0,0 +1,409 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.4.2 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import co.permify.sdk.model.Comprehension; +import co.permify.sdk.model.Constant; +import co.permify.sdk.model.CreateList; +import co.permify.sdk.model.CreateStruct; +import co.permify.sdk.model.ExprCall; +import co.permify.sdk.model.Ident; +import co.permify.sdk.model.Select; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + */ +@JsonPropertyOrder({ + Expr.JSON_PROPERTY_ID, + Expr.JSON_PROPERTY_CONST_EXPR, + Expr.JSON_PROPERTY_IDENT_EXPR, + Expr.JSON_PROPERTY_SELECT_EXPR, + Expr.JSON_PROPERTY_CALL_EXPR, + Expr.JSON_PROPERTY_LIST_EXPR, + Expr.JSON_PROPERTY_STRUCT_EXPR, + Expr.JSON_PROPERTY_COMPREHENSION_EXPR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Expr { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_CONST_EXPR = "constExpr"; + private Constant constExpr; + + public static final String JSON_PROPERTY_IDENT_EXPR = "identExpr"; + private Ident identExpr; + + public static final String JSON_PROPERTY_SELECT_EXPR = "selectExpr"; + private Select selectExpr; + + public static final String JSON_PROPERTY_CALL_EXPR = "callExpr"; + private ExprCall callExpr; + + public static final String JSON_PROPERTY_LIST_EXPR = "listExpr"; + private CreateList listExpr; + + public static final String JSON_PROPERTY_STRUCT_EXPR = "structExpr"; + private CreateStruct structExpr; + + public static final String JSON_PROPERTY_COMPREHENSION_EXPR = "comprehensionExpr"; + private Comprehension comprehensionExpr; + + public Expr() { + } + + public Expr id(String id) { + this.id = id; + return this; + } + + /** + * Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree. + * @return id + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public Expr constExpr(Constant constExpr) { + this.constExpr = constExpr; + return this; + } + + /** + * Get constExpr + * @return constExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONST_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Constant getConstExpr() { + return constExpr; + } + + + @JsonProperty(JSON_PROPERTY_CONST_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConstExpr(Constant constExpr) { + this.constExpr = constExpr; + } + + + public Expr identExpr(Ident identExpr) { + this.identExpr = identExpr; + return this; + } + + /** + * Get identExpr + * @return identExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENT_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Ident getIdentExpr() { + return identExpr; + } + + + @JsonProperty(JSON_PROPERTY_IDENT_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentExpr(Ident identExpr) { + this.identExpr = identExpr; + } + + + public Expr selectExpr(Select selectExpr) { + this.selectExpr = selectExpr; + return this; + } + + /** + * Get selectExpr + * @return selectExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SELECT_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Select getSelectExpr() { + return selectExpr; + } + + + @JsonProperty(JSON_PROPERTY_SELECT_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSelectExpr(Select selectExpr) { + this.selectExpr = selectExpr; + } + + + public Expr callExpr(ExprCall callExpr) { + this.callExpr = callExpr; + return this; + } + + /** + * Get callExpr + * @return callExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CALL_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ExprCall getCallExpr() { + return callExpr; + } + + + @JsonProperty(JSON_PROPERTY_CALL_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCallExpr(ExprCall callExpr) { + this.callExpr = callExpr; + } + + + public Expr listExpr(CreateList listExpr) { + this.listExpr = listExpr; + return this; + } + + /** + * Get listExpr + * @return listExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LIST_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CreateList getListExpr() { + return listExpr; + } + + + @JsonProperty(JSON_PROPERTY_LIST_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setListExpr(CreateList listExpr) { + this.listExpr = listExpr; + } + + + public Expr structExpr(CreateStruct structExpr) { + this.structExpr = structExpr; + return this; + } + + /** + * Get structExpr + * @return structExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STRUCT_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CreateStruct getStructExpr() { + return structExpr; + } + + + @JsonProperty(JSON_PROPERTY_STRUCT_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStructExpr(CreateStruct structExpr) { + this.structExpr = structExpr; + } + + + public Expr comprehensionExpr(Comprehension comprehensionExpr) { + this.comprehensionExpr = comprehensionExpr; + return this; + } + + /** + * Get comprehensionExpr + * @return comprehensionExpr + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COMPREHENSION_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Comprehension getComprehensionExpr() { + return comprehensionExpr; + } + + + @JsonProperty(JSON_PROPERTY_COMPREHENSION_EXPR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComprehensionExpr(Comprehension comprehensionExpr) { + this.comprehensionExpr = comprehensionExpr; + } + + + /** + * Return true if this Expr object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Expr expr = (Expr) o; + return Objects.equals(this.id, expr.id) && + Objects.equals(this.constExpr, expr.constExpr) && + Objects.equals(this.identExpr, expr.identExpr) && + Objects.equals(this.selectExpr, expr.selectExpr) && + Objects.equals(this.callExpr, expr.callExpr) && + Objects.equals(this.listExpr, expr.listExpr) && + Objects.equals(this.structExpr, expr.structExpr) && + Objects.equals(this.comprehensionExpr, expr.comprehensionExpr); + } + + @Override + public int hashCode() { + return Objects.hash(id, constExpr, identExpr, selectExpr, callExpr, listExpr, structExpr, comprehensionExpr); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Expr {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" constExpr: ").append(toIndentedString(constExpr)).append("\n"); + sb.append(" identExpr: ").append(toIndentedString(identExpr)).append("\n"); + sb.append(" selectExpr: ").append(toIndentedString(selectExpr)).append("\n"); + sb.append(" callExpr: ").append(toIndentedString(callExpr)).append("\n"); + sb.append(" listExpr: ").append(toIndentedString(listExpr)).append("\n"); + sb.append(" structExpr: ").append(toIndentedString(structExpr)).append("\n"); + sb.append(" comprehensionExpr: ").append(toIndentedString(comprehensionExpr)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `constExpr` to the URL query string + if (getConstExpr() != null) { + joiner.add(getConstExpr().toUrlQueryString(prefix + "constExpr" + suffix)); + } + + // add `identExpr` to the URL query string + if (getIdentExpr() != null) { + joiner.add(getIdentExpr().toUrlQueryString(prefix + "identExpr" + suffix)); + } + + // add `selectExpr` to the URL query string + if (getSelectExpr() != null) { + joiner.add(getSelectExpr().toUrlQueryString(prefix + "selectExpr" + suffix)); + } + + // add `callExpr` to the URL query string + if (getCallExpr() != null) { + joiner.add(getCallExpr().toUrlQueryString(prefix + "callExpr" + suffix)); + } + + // add `listExpr` to the URL query string + if (getListExpr() != null) { + joiner.add(getListExpr().toUrlQueryString(prefix + "listExpr" + suffix)); + } + + // add `structExpr` to the URL query string + if (getStructExpr() != null) { + joiner.add(getStructExpr().toUrlQueryString(prefix + "structExpr" + suffix)); + } + + // add `comprehensionExpr` to the URL query string + if (getComprehensionExpr() != null) { + joiner.add(getComprehensionExpr().toUrlQueryString(prefix + "comprehensionExpr" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/ExprCall.java b/src/main/java/co/permify/sdk/model/ExprCall.java index b25de5c..7e8b8f6 100644 --- a/src/main/java/co/permify/sdk/model/ExprCall.java +++ b/src/main/java/co/permify/sdk/model/ExprCall.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -30,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * A call expression, including calls to predefined functions and operators. For example, `value == 10`, `size(map_value)`. */ @@ -39,59 +39,58 @@ ExprCall.JSON_PROPERTY_FUNCTION, ExprCall.JSON_PROPERTY_ARGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ExprCall { public static final String JSON_PROPERTY_TARGET = "target"; - @jakarta.annotation.Nullable - private Object target; + private Expr target; public static final String JSON_PROPERTY_FUNCTION = "function"; - @jakarta.annotation.Nullable private String function; public static final String JSON_PROPERTY_ARGS = "args"; - @jakarta.annotation.Nullable - private List args = new ArrayList<>(); + private List args; public ExprCall() { } - public ExprCall target(@jakarta.annotation.Nullable Object target) { + public ExprCall target(Expr target) { this.target = target; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get target * @return target - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getTarget() { + + public Expr getTarget() { return target; } @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTarget(@jakarta.annotation.Nullable Object target) { + public void setTarget(Expr target) { this.target = target; } - public ExprCall function(@jakarta.annotation.Nullable String function) { + public ExprCall function(String function) { this.function = function; return this; } - /** + /** * Required. The name of the function or method being called. * @return function - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FUNCTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFunction() { return function; } @@ -99,17 +98,17 @@ public String getFunction() { @JsonProperty(JSON_PROPERTY_FUNCTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFunction(@jakarta.annotation.Nullable String function) { + public void setFunction(String function) { this.function = function; } - public ExprCall args(@jakarta.annotation.Nullable List args) { + public ExprCall args(List args) { this.args = args; return this; } - public ExprCall addArgsItem(Object argsItem) { + public ExprCall addArgsItem(Expr argsItem) { if (this.args == null) { this.args = new ArrayList<>(); } @@ -117,21 +116,22 @@ public ExprCall addArgsItem(Object argsItem) { return this; } - /** + /** * The arguments. * @return args - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getArgs() { + + public List getArgs() { return args; } @JsonProperty(JSON_PROPERTY_ARGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArgs(@jakarta.annotation.Nullable List args) { + public void setArgs(List args) { this.args = args; } @@ -214,20 +214,21 @@ public String toUrlQueryString(String prefix) { // add `target` to the URL query string if (getTarget() != null) { - joiner.add(String.format("%starget%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTarget())))); + joiner.add(getTarget().toUrlQueryString(prefix + "target" + suffix)); } // add `function` to the URL query string if (getFunction() != null) { - joiner.add(String.format("%sfunction%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getFunction())))); + joiner.add(String.format("%sfunction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFunction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `args` to the URL query string if (getArgs() != null) { for (int i = 0; i < getArgs().size(); i++) { - joiner.add(String.format("%sargs%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getArgs().get(i))))); + if (getArgs().get(i) != null) { + joiner.add(getArgs().get(i).toUrlQueryString(String.format("%sargs%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } } } diff --git a/src/main/java/co/permify/sdk/model/FunctionType.java b/src/main/java/co/permify/sdk/model/FunctionType.java index 8c877ec..fdde581 100644 --- a/src/main/java/co/permify/sdk/model/FunctionType.java +++ b/src/main/java/co/permify/sdk/model/FunctionType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Function type with result and arg types. */ @@ -39,31 +38,30 @@ FunctionType.JSON_PROPERTY_RESULT_TYPE, FunctionType.JSON_PROPERTY_ARG_TYPES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionType { public static final String JSON_PROPERTY_RESULT_TYPE = "resultType"; - @jakarta.annotation.Nullable private V1alpha1Type resultType; public static final String JSON_PROPERTY_ARG_TYPES = "argTypes"; - @jakarta.annotation.Nullable - private List argTypes = new ArrayList<>(); + private List argTypes; public FunctionType() { } - public FunctionType resultType(@jakarta.annotation.Nullable V1alpha1Type resultType) { + public FunctionType resultType(V1alpha1Type resultType) { this.resultType = resultType; return this; } - /** + /** * Get resultType * @return resultType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESULT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public V1alpha1Type getResultType() { return resultType; } @@ -71,12 +69,12 @@ public V1alpha1Type getResultType() { @JsonProperty(JSON_PROPERTY_RESULT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResultType(@jakarta.annotation.Nullable V1alpha1Type resultType) { + public void setResultType(V1alpha1Type resultType) { this.resultType = resultType; } - public FunctionType argTypes(@jakarta.annotation.Nullable List argTypes) { + public FunctionType argTypes(List argTypes) { this.argTypes = argTypes; return this; } @@ -89,13 +87,14 @@ public FunctionType addArgTypesItem(V1alpha1Type argTypesItem) { return this; } - /** + /** * Argument types of the function. * @return argTypes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARG_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArgTypes() { return argTypes; } @@ -103,7 +102,7 @@ public List getArgTypes() { @JsonProperty(JSON_PROPERTY_ARG_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArgTypes(@jakarta.annotation.Nullable List argTypes) { + public void setArgTypes(List argTypes) { this.argTypes = argTypes; } diff --git a/src/main/java/co/permify/sdk/model/HealthResponse.java b/src/main/java/co/permify/sdk/model/HealthResponse.java deleted file mode 100644 index a30c39c..0000000 --- a/src/main/java/co/permify/sdk/model/HealthResponse.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package co.permify.sdk.model; - -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.StringJoiner; -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - - -import co.permify.sdk.client.ApiClient; -/** - * HealthResponse - */ -@JsonPropertyOrder({ - HealthResponse.JSON_PROPERTY_STATUS -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class HealthResponse { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private String status; - - public HealthResponse() { - } - - public HealthResponse status(@jakarta.annotation.Nullable String status) { - this.status = status; - return this; - } - - /** - * Get status - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { - return status; - } - - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(@jakarta.annotation.Nullable String status) { - this.status = status; - } - - - /** - * Return true if this HealthResponse object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HealthResponse healthResponse = (HealthResponse) o; - return Objects.equals(this.status, healthResponse.status); - } - - @Override - public int hashCode() { - return Objects.hash(status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HealthResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - return joiner.toString(); - } -} - diff --git a/src/main/java/co/permify/sdk/model/Ident.java b/src/main/java/co/permify/sdk/model/Ident.java index f1910b9..6955c5e 100644 --- a/src/main/java/co/permify/sdk/model/Ident.java +++ b/src/main/java/co/permify/sdk/model/Ident.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * An identifier expression. e.g. `request`. */ @JsonPropertyOrder({ Ident.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Ident { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public Ident() { } - public Ident name(@jakarta.annotation.Nullable String name) { + public Ident name(String name) { this.name = name; return this; } - /** + /** * Required. Holds a single, unqualified identifier, possibly preceded by a '.'. Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -63,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Leaf.java b/src/main/java/co/permify/sdk/model/Leaf.java index 8e59590..df1859a 100644 --- a/src/main/java/co/permify/sdk/model/Leaf.java +++ b/src/main/java/co/permify/sdk/model/Leaf.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Leaf represents a leaf node in the permission tree. */ @@ -42,39 +41,36 @@ Leaf.JSON_PROPERTY_COMPUTED_ATTRIBUTE, Leaf.JSON_PROPERTY_CALL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Leaf { public static final String JSON_PROPERTY_COMPUTED_USER_SET = "computedUserSet"; - @jakarta.annotation.Nullable private ComputedUserSet computedUserSet; public static final String JSON_PROPERTY_TUPLE_TO_USER_SET = "tupleToUserSet"; - @jakarta.annotation.Nullable private TupleToUserSet tupleToUserSet; public static final String JSON_PROPERTY_COMPUTED_ATTRIBUTE = "computedAttribute"; - @jakarta.annotation.Nullable private ComputedAttribute computedAttribute; public static final String JSON_PROPERTY_CALL = "call"; - @jakarta.annotation.Nullable private V1Call call; public Leaf() { } - public Leaf computedUserSet(@jakarta.annotation.Nullable ComputedUserSet computedUserSet) { + public Leaf computedUserSet(ComputedUserSet computedUserSet) { this.computedUserSet = computedUserSet; return this; } - /** + /** * Get computedUserSet * @return computedUserSet - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPUTED_USER_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ComputedUserSet getComputedUserSet() { return computedUserSet; } @@ -82,23 +78,24 @@ public ComputedUserSet getComputedUserSet() { @JsonProperty(JSON_PROPERTY_COMPUTED_USER_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComputedUserSet(@jakarta.annotation.Nullable ComputedUserSet computedUserSet) { + public void setComputedUserSet(ComputedUserSet computedUserSet) { this.computedUserSet = computedUserSet; } - public Leaf tupleToUserSet(@jakarta.annotation.Nullable TupleToUserSet tupleToUserSet) { + public Leaf tupleToUserSet(TupleToUserSet tupleToUserSet) { this.tupleToUserSet = tupleToUserSet; return this; } - /** + /** * Get tupleToUserSet * @return tupleToUserSet - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLE_TO_USER_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TupleToUserSet getTupleToUserSet() { return tupleToUserSet; } @@ -106,23 +103,24 @@ public TupleToUserSet getTupleToUserSet() { @JsonProperty(JSON_PROPERTY_TUPLE_TO_USER_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTupleToUserSet(@jakarta.annotation.Nullable TupleToUserSet tupleToUserSet) { + public void setTupleToUserSet(TupleToUserSet tupleToUserSet) { this.tupleToUserSet = tupleToUserSet; } - public Leaf computedAttribute(@jakarta.annotation.Nullable ComputedAttribute computedAttribute) { + public Leaf computedAttribute(ComputedAttribute computedAttribute) { this.computedAttribute = computedAttribute; return this; } - /** + /** * Get computedAttribute * @return computedAttribute - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPUTED_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ComputedAttribute getComputedAttribute() { return computedAttribute; } @@ -130,23 +128,24 @@ public ComputedAttribute getComputedAttribute() { @JsonProperty(JSON_PROPERTY_COMPUTED_ATTRIBUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComputedAttribute(@jakarta.annotation.Nullable ComputedAttribute computedAttribute) { + public void setComputedAttribute(ComputedAttribute computedAttribute) { this.computedAttribute = computedAttribute; } - public Leaf call(@jakarta.annotation.Nullable V1Call call) { + public Leaf call(V1Call call) { this.call = call; return this; } - /** + /** * Get call * @return call - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public V1Call getCall() { return call; } @@ -154,7 +153,7 @@ public V1Call getCall() { @JsonProperty(JSON_PROPERTY_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCall(@jakarta.annotation.Nullable V1Call call) { + public void setCall(V1Call call) { this.call = call; } diff --git a/src/main/java/co/permify/sdk/model/ListType.java b/src/main/java/co/permify/sdk/model/ListType.java index 0a11900..94dc98a 100644 --- a/src/main/java/co/permify/sdk/model/ListType.java +++ b/src/main/java/co/permify/sdk/model/ListType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * List type with typed elements, e.g. `list<example.proto.MyMessage>`. */ @JsonPropertyOrder({ ListType.JSON_PROPERTY_ELEM_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ListType { public static final String JSON_PROPERTY_ELEM_TYPE = "elemType"; - @jakarta.annotation.Nullable private V1alpha1Type elemType; public ListType() { } - public ListType elemType(@jakarta.annotation.Nullable V1alpha1Type elemType) { + public ListType elemType(V1alpha1Type elemType) { this.elemType = elemType; return this; } - /** + /** * Get elemType * @return elemType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ELEM_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public V1alpha1Type getElemType() { return elemType; } @@ -64,7 +63,7 @@ public V1alpha1Type getElemType() { @JsonProperty(JSON_PROPERTY_ELEM_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setElemType(@jakarta.annotation.Nullable V1alpha1Type elemType) { + public void setElemType(V1alpha1Type elemType) { this.elemType = elemType; } diff --git a/src/main/java/co/permify/sdk/model/LookupEntityBody.java b/src/main/java/co/permify/sdk/model/LookupEntityBody.java index 5e0dc30..a6eb8e4 100644 --- a/src/main/java/co/permify/sdk/model/LookupEntityBody.java +++ b/src/main/java/co/permify/sdk/model/LookupEntityBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.util.HashMap; import co.permify.sdk.model.Context; import co.permify.sdk.model.PermissionLookupEntityRequestMetadata; +import co.permify.sdk.model.StringArrayValue; import co.permify.sdk.model.Subject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -28,10 +29,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupEntityRequest is the request message for the LookupEntity method in the Permission service. */ @@ -41,54 +43,52 @@ LookupEntityBody.JSON_PROPERTY_PERMISSION, LookupEntityBody.JSON_PROPERTY_SUBJECT, LookupEntityBody.JSON_PROPERTY_CONTEXT, + LookupEntityBody.JSON_PROPERTY_SCOPE, LookupEntityBody.JSON_PROPERTY_PAGE_SIZE, LookupEntityBody.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class LookupEntityBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionLookupEntityRequestMetadata metadata; public static final String JSON_PROPERTY_ENTITY_TYPE = "entity_type"; - @jakarta.annotation.Nullable private String entityType; public static final String JSON_PROPERTY_PERMISSION = "permission"; - @jakarta.annotation.Nullable private String permission; public static final String JSON_PROPERTY_SUBJECT = "subject"; - @jakarta.annotation.Nullable private Subject subject; public static final String JSON_PROPERTY_CONTEXT = "context"; - @jakarta.annotation.Nullable private Context context; + public static final String JSON_PROPERTY_SCOPE = "scope"; + private Map scope = new HashMap<>(); + public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public LookupEntityBody() { } - public LookupEntityBody metadata(@jakarta.annotation.Nullable PermissionLookupEntityRequestMetadata metadata) { + public LookupEntityBody metadata(PermissionLookupEntityRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionLookupEntityRequestMetadata getMetadata() { return metadata; } @@ -96,23 +96,24 @@ public PermissionLookupEntityRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionLookupEntityRequestMetadata metadata) { + public void setMetadata(PermissionLookupEntityRequestMetadata metadata) { this.metadata = metadata; } - public LookupEntityBody entityType(@jakarta.annotation.Nullable String entityType) { + public LookupEntityBody entityType(String entityType) { this.entityType = entityType; return this; } - /** + /** * Type of the entity to lookup, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. * @return entityType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityType() { return entityType; } @@ -120,23 +121,24 @@ public String getEntityType() { @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityType(@jakarta.annotation.Nullable String entityType) { + public void setEntityType(String entityType) { this.entityType = entityType; } - public LookupEntityBody permission(@jakarta.annotation.Nullable String permission) { + public LookupEntityBody permission(String permission) { this.permission = permission; return this; } - /** + /** * Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. * @return permission - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPermission() { return permission; } @@ -144,23 +146,24 @@ public String getPermission() { @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPermission(@jakarta.annotation.Nullable String permission) { + public void setPermission(String permission) { this.permission = permission; } - public LookupEntityBody subject(@jakarta.annotation.Nullable Subject subject) { + public LookupEntityBody subject(Subject subject) { this.subject = subject; return this; } - /** + /** * Get subject * @return subject - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Subject getSubject() { return subject; } @@ -168,23 +171,24 @@ public Subject getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(@jakarta.annotation.Nullable Subject subject) { + public void setSubject(Subject subject) { this.subject = subject; } - public LookupEntityBody context(@jakarta.annotation.Nullable Context context) { + public LookupEntityBody context(Context context) { this.context = context; return this; } - /** + /** * Get context * @return context - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Context getContext() { return context; } @@ -192,23 +196,57 @@ public Context getContext() { @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContext(@jakarta.annotation.Nullable Context context) { + public void setContext(Context context) { this.context = context; } - public LookupEntityBody pageSize(@jakarta.annotation.Nullable Long pageSize) { + public LookupEntityBody scope(Map scope) { + this.scope = scope; + return this; + } + + public LookupEntityBody putScopeItem(String key, StringArrayValue scopeItem) { + if (this.scope == null) { + this.scope = new HashMap<>(); + } + this.scope.put(key, scopeItem); + return this; + } + + /** + * Scope: A map that associates entity types with lists of identifiers. Each entry helps filter requests by specifying which entities are relevant to the operation. + * @return scope + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SCOPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getScope() { + return scope; + } + + + @JsonProperty(JSON_PROPERTY_SCOPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScope(Map scope) { + this.scope = scope; + } + + + public LookupEntityBody pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** - * page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. + /** + * page_size is the number of entities to be returned in the response. The value should be between 1 and 100. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -216,23 +254,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public LookupEntityBody continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public LookupEntityBody continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -240,7 +279,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -262,13 +301,14 @@ public boolean equals(Object o) { Objects.equals(this.permission, lookupEntityBody.permission) && Objects.equals(this.subject, lookupEntityBody.subject) && Objects.equals(this.context, lookupEntityBody.context) && + Objects.equals(this.scope, lookupEntityBody.scope) && Objects.equals(this.pageSize, lookupEntityBody.pageSize) && Objects.equals(this.continuousToken, lookupEntityBody.continuousToken); } @Override public int hashCode() { - return Objects.hash(metadata, entityType, permission, subject, context, pageSize, continuousToken); + return Objects.hash(metadata, entityType, permission, subject, context, scope, pageSize, continuousToken); } @Override @@ -280,6 +320,7 @@ public String toString() { sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" continuousToken: ").append(toIndentedString(continuousToken)).append("\n"); sb.append("}"); @@ -336,12 +377,12 @@ public String toUrlQueryString(String prefix) { // add `entity_type` to the URL query string if (getEntityType() != null) { - joiner.add(String.format("%sentity_type%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityType())))); + joiner.add(String.format("%sentity_type%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permission` to the URL query string if (getPermission() != null) { - joiner.add(String.format("%spermission%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPermission())))); + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subject` to the URL query string @@ -354,14 +395,24 @@ public String toUrlQueryString(String prefix) { joiner.add(getContext().toUrlQueryString(prefix + "context" + suffix)); } + // add `scope` to the URL query string + if (getScope() != null) { + for (String _key : getScope().keySet()) { + if (getScope().get(_key) != null) { + joiner.add(getScope().get(_key).toUrlQueryString(String.format("%sscope%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix)))); + } + } + } + // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java b/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java index 75ecbd8..f05b4d0 100644 --- a/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java +++ b/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.util.HashMap; import co.permify.sdk.model.Context; import co.permify.sdk.model.PermissionLookupEntityRequestMetadata; +import co.permify.sdk.model.StringArrayValue; import co.permify.sdk.model.Subject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -28,10 +29,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupEntityRequest is the request message for the LookupEntity method in the Permission service. */ @@ -41,54 +43,52 @@ LookupEntityStreamBody.JSON_PROPERTY_PERMISSION, LookupEntityStreamBody.JSON_PROPERTY_SUBJECT, LookupEntityStreamBody.JSON_PROPERTY_CONTEXT, + LookupEntityStreamBody.JSON_PROPERTY_SCOPE, LookupEntityStreamBody.JSON_PROPERTY_PAGE_SIZE, LookupEntityStreamBody.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class LookupEntityStreamBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionLookupEntityRequestMetadata metadata; public static final String JSON_PROPERTY_ENTITY_TYPE = "entity_type"; - @jakarta.annotation.Nullable private String entityType; public static final String JSON_PROPERTY_PERMISSION = "permission"; - @jakarta.annotation.Nullable private String permission; public static final String JSON_PROPERTY_SUBJECT = "subject"; - @jakarta.annotation.Nullable private Subject subject; public static final String JSON_PROPERTY_CONTEXT = "context"; - @jakarta.annotation.Nullable private Context context; + public static final String JSON_PROPERTY_SCOPE = "scope"; + private Map scope = new HashMap<>(); + public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public LookupEntityStreamBody() { } - public LookupEntityStreamBody metadata(@jakarta.annotation.Nullable PermissionLookupEntityRequestMetadata metadata) { + public LookupEntityStreamBody metadata(PermissionLookupEntityRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionLookupEntityRequestMetadata getMetadata() { return metadata; } @@ -96,23 +96,24 @@ public PermissionLookupEntityRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionLookupEntityRequestMetadata metadata) { + public void setMetadata(PermissionLookupEntityRequestMetadata metadata) { this.metadata = metadata; } - public LookupEntityStreamBody entityType(@jakarta.annotation.Nullable String entityType) { + public LookupEntityStreamBody entityType(String entityType) { this.entityType = entityType; return this; } - /** + /** * Type of the entity to lookup, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. * @return entityType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityType() { return entityType; } @@ -120,23 +121,24 @@ public String getEntityType() { @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityType(@jakarta.annotation.Nullable String entityType) { + public void setEntityType(String entityType) { this.entityType = entityType; } - public LookupEntityStreamBody permission(@jakarta.annotation.Nullable String permission) { + public LookupEntityStreamBody permission(String permission) { this.permission = permission; return this; } - /** + /** * Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. * @return permission - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPermission() { return permission; } @@ -144,23 +146,24 @@ public String getPermission() { @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPermission(@jakarta.annotation.Nullable String permission) { + public void setPermission(String permission) { this.permission = permission; } - public LookupEntityStreamBody subject(@jakarta.annotation.Nullable Subject subject) { + public LookupEntityStreamBody subject(Subject subject) { this.subject = subject; return this; } - /** + /** * Get subject * @return subject - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Subject getSubject() { return subject; } @@ -168,23 +171,24 @@ public Subject getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(@jakarta.annotation.Nullable Subject subject) { + public void setSubject(Subject subject) { this.subject = subject; } - public LookupEntityStreamBody context(@jakarta.annotation.Nullable Context context) { + public LookupEntityStreamBody context(Context context) { this.context = context; return this; } - /** + /** * Get context * @return context - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Context getContext() { return context; } @@ -192,23 +196,57 @@ public Context getContext() { @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContext(@jakarta.annotation.Nullable Context context) { + public void setContext(Context context) { this.context = context; } - public LookupEntityStreamBody pageSize(@jakarta.annotation.Nullable Long pageSize) { + public LookupEntityStreamBody scope(Map scope) { + this.scope = scope; + return this; + } + + public LookupEntityStreamBody putScopeItem(String key, StringArrayValue scopeItem) { + if (this.scope == null) { + this.scope = new HashMap<>(); + } + this.scope.put(key, scopeItem); + return this; + } + + /** + * Scope: A map that associates entity types with lists of identifiers. Each entry helps filter requests by specifying which entities are relevant to the operation. + * @return scope + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SCOPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getScope() { + return scope; + } + + + @JsonProperty(JSON_PROPERTY_SCOPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScope(Map scope) { + this.scope = scope; + } + + + public LookupEntityStreamBody pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** - * page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. + /** + * page_size is the number of entities to be returned in the response. The value should be between 1 and 100. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -216,23 +254,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public LookupEntityStreamBody continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public LookupEntityStreamBody continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -240,7 +279,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -262,13 +301,14 @@ public boolean equals(Object o) { Objects.equals(this.permission, lookupEntityStreamBody.permission) && Objects.equals(this.subject, lookupEntityStreamBody.subject) && Objects.equals(this.context, lookupEntityStreamBody.context) && + Objects.equals(this.scope, lookupEntityStreamBody.scope) && Objects.equals(this.pageSize, lookupEntityStreamBody.pageSize) && Objects.equals(this.continuousToken, lookupEntityStreamBody.continuousToken); } @Override public int hashCode() { - return Objects.hash(metadata, entityType, permission, subject, context, pageSize, continuousToken); + return Objects.hash(metadata, entityType, permission, subject, context, scope, pageSize, continuousToken); } @Override @@ -280,6 +320,7 @@ public String toString() { sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" continuousToken: ").append(toIndentedString(continuousToken)).append("\n"); sb.append("}"); @@ -336,12 +377,12 @@ public String toUrlQueryString(String prefix) { // add `entity_type` to the URL query string if (getEntityType() != null) { - joiner.add(String.format("%sentity_type%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityType())))); + joiner.add(String.format("%sentity_type%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permission` to the URL query string if (getPermission() != null) { - joiner.add(String.format("%spermission%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPermission())))); + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subject` to the URL query string @@ -354,14 +395,24 @@ public String toUrlQueryString(String prefix) { joiner.add(getContext().toUrlQueryString(prefix + "context" + suffix)); } + // add `scope` to the URL query string + if (getScope() != null) { + for (String _key : getScope().keySet()) { + if (getScope().get(_key) != null) { + joiner.add(getScope().get(_key).toUrlQueryString(String.format("%sscope%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix)))); + } + } + } + // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/LookupSubjectBody.java b/src/main/java/co/permify/sdk/model/LookupSubjectBody.java index bf4d1fc..d5b3d29 100644 --- a/src/main/java/co/permify/sdk/model/LookupSubjectBody.java +++ b/src/main/java/co/permify/sdk/model/LookupSubjectBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Argument; import co.permify.sdk.model.Context; import co.permify.sdk.model.Entity; import co.permify.sdk.model.PermissionLookupSubjectRequestMetadata; @@ -28,11 +29,12 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupSubjectRequest is the request message for the LookupSubject method in the Permission service. */ @@ -42,54 +44,52 @@ LookupSubjectBody.JSON_PROPERTY_PERMISSION, LookupSubjectBody.JSON_PROPERTY_SUBJECT_REFERENCE, LookupSubjectBody.JSON_PROPERTY_CONTEXT, + LookupSubjectBody.JSON_PROPERTY_ARGUMENTS, LookupSubjectBody.JSON_PROPERTY_PAGE_SIZE, LookupSubjectBody.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class LookupSubjectBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionLookupSubjectRequestMetadata metadata; public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private Entity entity; public static final String JSON_PROPERTY_PERMISSION = "permission"; - @jakarta.annotation.Nullable private String permission; public static final String JSON_PROPERTY_SUBJECT_REFERENCE = "subject_reference"; - @jakarta.annotation.Nullable private RelationReference subjectReference; public static final String JSON_PROPERTY_CONTEXT = "context"; - @jakarta.annotation.Nullable private Context context; + public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; + private List arguments; + public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public LookupSubjectBody() { } - public LookupSubjectBody metadata(@jakarta.annotation.Nullable PermissionLookupSubjectRequestMetadata metadata) { + public LookupSubjectBody metadata(PermissionLookupSubjectRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionLookupSubjectRequestMetadata getMetadata() { return metadata; } @@ -97,23 +97,24 @@ public PermissionLookupSubjectRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionLookupSubjectRequestMetadata metadata) { + public void setMetadata(PermissionLookupSubjectRequestMetadata metadata) { this.metadata = metadata; } - public LookupSubjectBody entity(@jakarta.annotation.Nullable Entity entity) { + public LookupSubjectBody entity(Entity entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Entity getEntity() { return entity; } @@ -121,23 +122,24 @@ public Entity getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable Entity entity) { + public void setEntity(Entity entity) { this.entity = entity; } - public LookupSubjectBody permission(@jakarta.annotation.Nullable String permission) { + public LookupSubjectBody permission(String permission) { this.permission = permission; return this; } - /** + /** * Permission to be checked, can be a permission or relation. Required, and must match the pattern \"^([a-zA-Z][a-zA-Z0-9_]{1,62}[a-zA-Z0-9])$\", max 64 bytes. * @return permission - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPermission() { return permission; } @@ -145,23 +147,24 @@ public String getPermission() { @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPermission(@jakarta.annotation.Nullable String permission) { + public void setPermission(String permission) { this.permission = permission; } - public LookupSubjectBody subjectReference(@jakarta.annotation.Nullable RelationReference subjectReference) { + public LookupSubjectBody subjectReference(RelationReference subjectReference) { this.subjectReference = subjectReference; return this; } - /** + /** * Get subjectReference * @return subjectReference - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public RelationReference getSubjectReference() { return subjectReference; } @@ -169,23 +172,24 @@ public RelationReference getSubjectReference() { @JsonProperty(JSON_PROPERTY_SUBJECT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubjectReference(@jakarta.annotation.Nullable RelationReference subjectReference) { + public void setSubjectReference(RelationReference subjectReference) { this.subjectReference = subjectReference; } - public LookupSubjectBody context(@jakarta.annotation.Nullable Context context) { + public LookupSubjectBody context(Context context) { this.context = context; return this; } - /** + /** * Get context * @return context - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Context getContext() { return context; } @@ -193,23 +197,57 @@ public Context getContext() { @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContext(@jakarta.annotation.Nullable Context context) { + public void setContext(Context context) { this.context = context; } - public LookupSubjectBody pageSize(@jakarta.annotation.Nullable Long pageSize) { + public LookupSubjectBody arguments(List arguments) { + this.arguments = arguments; + return this; + } + + public LookupSubjectBody addArgumentsItem(Argument argumentsItem) { + if (this.arguments == null) { + this.arguments = new ArrayList<>(); + } + this.arguments.add(argumentsItem); + return this; + } + + /** + * Additional arguments associated with this request. + * @return arguments + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ARGUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getArguments() { + return arguments; + } + + + @JsonProperty(JSON_PROPERTY_ARGUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setArguments(List arguments) { + this.arguments = arguments; + } + + + public LookupSubjectBody pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** - * page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. + /** + * page_size is the number of subjects to be returned in the response. The value should be between 1 and 100. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -217,23 +255,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public LookupSubjectBody continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public LookupSubjectBody continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -241,7 +280,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -263,13 +302,14 @@ public boolean equals(Object o) { Objects.equals(this.permission, lookupSubjectBody.permission) && Objects.equals(this.subjectReference, lookupSubjectBody.subjectReference) && Objects.equals(this.context, lookupSubjectBody.context) && + Objects.equals(this.arguments, lookupSubjectBody.arguments) && Objects.equals(this.pageSize, lookupSubjectBody.pageSize) && Objects.equals(this.continuousToken, lookupSubjectBody.continuousToken); } @Override public int hashCode() { - return Objects.hash(metadata, entity, permission, subjectReference, context, pageSize, continuousToken); + return Objects.hash(metadata, entity, permission, subjectReference, context, arguments, pageSize, continuousToken); } @Override @@ -281,6 +321,7 @@ public String toString() { sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" subjectReference: ").append(toIndentedString(subjectReference)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" continuousToken: ").append(toIndentedString(continuousToken)).append("\n"); sb.append("}"); @@ -342,7 +383,7 @@ public String toUrlQueryString(String prefix) { // add `permission` to the URL query string if (getPermission() != null) { - joiner.add(String.format("%spermission%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPermission())))); + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subject_reference` to the URL query string @@ -355,14 +396,24 @@ public String toUrlQueryString(String prefix) { joiner.add(getContext().toUrlQueryString(prefix + "context" + suffix)); } + // add `arguments` to the URL query string + if (getArguments() != null) { + for (int i = 0; i < getArguments().size(); i++) { + if (getArguments().get(i) != null) { + joiner.add(getArguments().get(i).toUrlQueryString(String.format("%sarguments%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/MapType.java b/src/main/java/co/permify/sdk/model/MapType.java index 0b49fc6..a517004 100644 --- a/src/main/java/co/permify/sdk/model/MapType.java +++ b/src/main/java/co/permify/sdk/model/MapType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Map type with parameterized key and value types, e.g. `map<string, int>`. */ @@ -37,31 +36,30 @@ MapType.JSON_PROPERTY_KEY_TYPE, MapType.JSON_PROPERTY_VALUE_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class MapType { public static final String JSON_PROPERTY_KEY_TYPE = "keyType"; - @jakarta.annotation.Nullable private V1alpha1Type keyType; public static final String JSON_PROPERTY_VALUE_TYPE = "valueType"; - @jakarta.annotation.Nullable private V1alpha1Type valueType; public MapType() { } - public MapType keyType(@jakarta.annotation.Nullable V1alpha1Type keyType) { + public MapType keyType(V1alpha1Type keyType) { this.keyType = keyType; return this; } - /** + /** * Get keyType * @return keyType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_KEY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public V1alpha1Type getKeyType() { return keyType; } @@ -69,23 +67,24 @@ public V1alpha1Type getKeyType() { @JsonProperty(JSON_PROPERTY_KEY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKeyType(@jakarta.annotation.Nullable V1alpha1Type keyType) { + public void setKeyType(V1alpha1Type keyType) { this.keyType = keyType; } - public MapType valueType(@jakarta.annotation.Nullable V1alpha1Type valueType) { + public MapType valueType(V1alpha1Type valueType) { this.valueType = valueType; return this; } - /** + /** * Get valueType * @return valueType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public V1alpha1Type getValueType() { return valueType; } @@ -93,7 +92,7 @@ public V1alpha1Type getValueType() { @JsonProperty(JSON_PROPERTY_VALUE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValueType(@jakarta.annotation.Nullable V1alpha1Type valueType) { + public void setValueType(V1alpha1Type valueType) { this.valueType = valueType; } diff --git a/src/main/java/co/permify/sdk/model/NullValue.java b/src/main/java/co/permify/sdk/model/NullValue.java deleted file mode 100644 index ff136cb..0000000 --- a/src/main/java/co/permify/sdk/model/NullValue.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package co.permify.sdk.model; - -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.StringJoiner; -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. - */ -public enum NullValue { - - NULL_VALUE("NULL_VALUE"); - - private String value; - - NullValue(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static NullValue fromValue(String value) { - for (NullValue b : NullValue.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } - -} - diff --git a/src/main/java/co/permify/sdk/model/PartialWriteBody.java b/src/main/java/co/permify/sdk/model/PartialWriteBody.java index 67f982b..6f8dd70 100644 --- a/src/main/java/co/permify/sdk/model/PartialWriteBody.java +++ b/src/main/java/co/permify/sdk/model/PartialWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PartialWriteBody */ @@ -40,31 +39,30 @@ PartialWriteBody.JSON_PROPERTY_METADATA, PartialWriteBody.JSON_PROPERTY_PARTIALS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PartialWriteBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private SchemaPartialWriteRequestMetadata metadata; public static final String JSON_PROPERTY_PARTIALS = "partials"; - @jakarta.annotation.Nullable private Map partials = new HashMap<>(); public PartialWriteBody() { } - public PartialWriteBody metadata(@jakarta.annotation.Nullable SchemaPartialWriteRequestMetadata metadata) { + public PartialWriteBody metadata(SchemaPartialWriteRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SchemaPartialWriteRequestMetadata getMetadata() { return metadata; } @@ -72,12 +70,12 @@ public SchemaPartialWriteRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable SchemaPartialWriteRequestMetadata metadata) { + public void setMetadata(SchemaPartialWriteRequestMetadata metadata) { this.metadata = metadata; } - public PartialWriteBody partials(@jakarta.annotation.Nullable Map partials) { + public PartialWriteBody partials(Map partials) { this.partials = partials; return this; } @@ -90,13 +88,14 @@ public PartialWriteBody putPartialsItem(String key, Partials partialsItem) { return this; } - /** + /** * Get partials * @return partials - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PARTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getPartials() { return partials; } @@ -104,7 +103,7 @@ public Map getPartials() { @JsonProperty(JSON_PROPERTY_PARTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPartials(@jakarta.annotation.Nullable Map partials) { + public void setPartials(Map partials) { this.partials = partials; } diff --git a/src/main/java/co/permify/sdk/model/Partials.java b/src/main/java/co/permify/sdk/model/Partials.java index 0716e20..2bd0ca3 100644 --- a/src/main/java/co/permify/sdk/model/Partials.java +++ b/src/main/java/co/permify/sdk/model/Partials.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Partials */ @@ -39,24 +38,21 @@ Partials.JSON_PROPERTY_DELETE, Partials.JSON_PROPERTY_UPDATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Partials { public static final String JSON_PROPERTY_WRITE = "write"; - @jakarta.annotation.Nullable - private List write = new ArrayList<>(); + private List write; public static final String JSON_PROPERTY_DELETE = "delete"; - @jakarta.annotation.Nullable - private List delete = new ArrayList<>(); + private List delete; public static final String JSON_PROPERTY_UPDATE = "update"; - @jakarta.annotation.Nullable - private List update = new ArrayList<>(); + private List update; public Partials() { } - public Partials write(@jakarta.annotation.Nullable List write) { + public Partials write(List write) { this.write = write; return this; } @@ -69,13 +65,14 @@ public Partials addWriteItem(String writeItem) { return this; } - /** + /** * Get write * @return write - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrite() { return write; } @@ -83,12 +80,12 @@ public List getWrite() { @JsonProperty(JSON_PROPERTY_WRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrite(@jakarta.annotation.Nullable List write) { + public void setWrite(List write) { this.write = write; } - public Partials delete(@jakarta.annotation.Nullable List delete) { + public Partials delete(List delete) { this.delete = delete; return this; } @@ -101,13 +98,14 @@ public Partials addDeleteItem(String deleteItem) { return this; } - /** + /** * Get delete * @return delete - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DELETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getDelete() { return delete; } @@ -115,12 +113,12 @@ public List getDelete() { @JsonProperty(JSON_PROPERTY_DELETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDelete(@jakarta.annotation.Nullable List delete) { + public void setDelete(List delete) { this.delete = delete; } - public Partials update(@jakarta.annotation.Nullable List update) { + public Partials update(List update) { this.update = update; return this; } @@ -133,13 +131,14 @@ public Partials addUpdateItem(String updateItem) { return this; } - /** + /** * Get update * @return update - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUpdate() { return update; } @@ -147,7 +146,7 @@ public List getUpdate() { @JsonProperty(JSON_PROPERTY_UPDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdate(@jakarta.annotation.Nullable List update) { + public void setUpdate(List update) { this.update = update; } @@ -233,7 +232,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getWrite().size(); i++) { joiner.add(String.format("%swrite%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getWrite().get(i))))); + URLEncoder.encode(String.valueOf(getWrite().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -242,7 +241,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getDelete().size(); i++) { joiner.add(String.format("%sdelete%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getDelete().get(i))))); + URLEncoder.encode(String.valueOf(getDelete().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -251,7 +250,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getUpdate().size(); i++) { joiner.add(String.format("%supdate%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUpdate().get(i))))); + URLEncoder.encode(String.valueOf(getUpdate().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java index 8b186df..bf19cee 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionCheckRequestMetadata metadata for the PermissionCheckRequest. */ @@ -37,35 +36,33 @@ PermissionCheckRequestMetadata.JSON_PROPERTY_SNAP_TOKEN, PermissionCheckRequestMetadata.JSON_PROPERTY_DEPTH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionCheckRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public static final String JSON_PROPERTY_DEPTH = "depth"; - @jakarta.annotation.Nullable private Integer depth; public PermissionCheckRequestMetadata() { } - public PermissionCheckRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public PermissionCheckRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * Version of the schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -73,23 +70,24 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } - public PermissionCheckRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public PermissionCheckRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -97,23 +95,24 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } - public PermissionCheckRequestMetadata depth(@jakarta.annotation.Nullable Integer depth) { + public PermissionCheckRequestMetadata depth(Integer depth) { this.depth = depth; return this; } - /** + /** * Query limit when if recursive database queries got in loop * @return depth - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getDepth() { return depth; } @@ -121,7 +120,7 @@ public Integer getDepth() { @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepth(@jakarta.annotation.Nullable Integer depth) { + public void setDepth(Integer depth) { this.depth = depth; } @@ -204,17 +203,17 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `depth` to the URL query string if (getDepth() != null) { - joiner.add(String.format("%sdepth%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDepth())))); + joiner.add(String.format("%sdepth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java b/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java index 2ab483b..f5d15d3 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionCheckResponse is the response message for the Check method in the Permission service. */ @@ -38,31 +37,30 @@ PermissionCheckResponse.JSON_PROPERTY_CAN, PermissionCheckResponse.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionCheckResponse { public static final String JSON_PROPERTY_CAN = "can"; - @jakarta.annotation.Nullable - private CheckResult can = CheckResult.CHECK_RESULT_UNSPECIFIED; + private CheckResult can; public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionCheckResponseMetadata metadata; public PermissionCheckResponse() { } - public PermissionCheckResponse can(@jakarta.annotation.Nullable CheckResult can) { + public PermissionCheckResponse can(CheckResult can) { this.can = can; return this; } - /** + /** * Get can * @return can - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CheckResult getCan() { return can; } @@ -70,23 +68,24 @@ public CheckResult getCan() { @JsonProperty(JSON_PROPERTY_CAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCan(@jakarta.annotation.Nullable CheckResult can) { + public void setCan(CheckResult can) { this.can = can; } - public PermissionCheckResponse metadata(@jakarta.annotation.Nullable PermissionCheckResponseMetadata metadata) { + public PermissionCheckResponse metadata(PermissionCheckResponseMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionCheckResponseMetadata getMetadata() { return metadata; } @@ -94,7 +93,7 @@ public PermissionCheckResponseMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionCheckResponseMetadata metadata) { + public void setMetadata(PermissionCheckResponseMetadata metadata) { this.metadata = metadata; } @@ -175,7 +174,7 @@ public String toUrlQueryString(String prefix) { // add `can` to the URL query string if (getCan() != null) { - joiner.add(String.format("%scan%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getCan())))); + joiner.add(String.format("%scan%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCan()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `metadata` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java b/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java index c8fb5e8..bca4541 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionCheckResponseMetadata metadata for the PermissionCheckResponse. */ @JsonPropertyOrder({ PermissionCheckResponseMetadata.JSON_PROPERTY_CHECK_COUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionCheckResponseMetadata { public static final String JSON_PROPERTY_CHECK_COUNT = "check_count"; - @jakarta.annotation.Nullable private Integer checkCount; public PermissionCheckResponseMetadata() { } - public PermissionCheckResponseMetadata checkCount(@jakarta.annotation.Nullable Integer checkCount) { + public PermissionCheckResponseMetadata checkCount(Integer checkCount) { this.checkCount = checkCount; return this; } - /** + /** * The count of the checks performed. * @return checkCount - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHECK_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCheckCount() { return checkCount; } @@ -63,7 +62,7 @@ public Integer getCheckCount() { @JsonProperty(JSON_PROPERTY_CHECK_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCheckCount(@jakarta.annotation.Nullable Integer checkCount) { + public void setCheckCount(Integer checkCount) { this.checkCount = checkCount; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `check_count` to the URL query string if (getCheckCount() != null) { - joiner.add(String.format("%scheck_count%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getCheckCount())))); + joiner.add(String.format("%scheck_count%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckCount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionDefinition.java b/src/main/java/co/permify/sdk/model/PermissionDefinition.java index 05a4e2f..a148091 100644 --- a/src/main/java/co/permify/sdk/model/PermissionDefinition.java +++ b/src/main/java/co/permify/sdk/model/PermissionDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The PermissionDefinition message provides detailed information about a specific permission. */ @@ -37,31 +36,30 @@ PermissionDefinition.JSON_PROPERTY_NAME, PermissionDefinition.JSON_PROPERTY_CHILD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionDefinition { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_CHILD = "child"; - @jakarta.annotation.Nullable private Child child; public PermissionDefinition() { } - public PermissionDefinition name(@jakarta.annotation.Nullable String name) { + public PermissionDefinition name(String name) { this.name = name; return this; } - /** + /** * The name of the permission, which follows a specific string pattern and has a maximum byte size. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -69,23 +67,24 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public PermissionDefinition child(@jakarta.annotation.Nullable Child child) { + public PermissionDefinition child(Child child) { this.child = child; return this; } - /** + /** * Get child * @return child - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHILD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Child getChild() { return child; } @@ -93,7 +92,7 @@ public Child getChild() { @JsonProperty(JSON_PROPERTY_CHILD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChild(@jakarta.annotation.Nullable Child child) { + public void setChild(Child child) { this.child = child; } @@ -174,7 +173,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `child` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/PermissionExpandBody.java b/src/main/java/co/permify/sdk/model/PermissionExpandBody.java index 08bb43d..eb82dca 100644 --- a/src/main/java/co/permify/sdk/model/PermissionExpandBody.java +++ b/src/main/java/co/permify/sdk/model/PermissionExpandBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionExpandRequest is the request message for the Expand method in the Permission service. */ @@ -45,43 +44,39 @@ PermissionExpandBody.JSON_PROPERTY_CONTEXT, PermissionExpandBody.JSON_PROPERTY_ARGUMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionExpandBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionExpandRequestMetadata metadata; public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private Entity entity; public static final String JSON_PROPERTY_PERMISSION = "permission"; - @jakarta.annotation.Nullable private String permission; public static final String JSON_PROPERTY_CONTEXT = "context"; - @jakarta.annotation.Nullable private Context context; public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; - @jakarta.annotation.Nullable - private List arguments = new ArrayList<>(); + private List arguments; public PermissionExpandBody() { } - public PermissionExpandBody metadata(@jakarta.annotation.Nullable PermissionExpandRequestMetadata metadata) { + public PermissionExpandBody metadata(PermissionExpandRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionExpandRequestMetadata getMetadata() { return metadata; } @@ -89,23 +84,24 @@ public PermissionExpandRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionExpandRequestMetadata metadata) { + public void setMetadata(PermissionExpandRequestMetadata metadata) { this.metadata = metadata; } - public PermissionExpandBody entity(@jakarta.annotation.Nullable Entity entity) { + public PermissionExpandBody entity(Entity entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Entity getEntity() { return entity; } @@ -113,23 +109,24 @@ public Entity getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable Entity entity) { + public void setEntity(Entity entity) { this.entity = entity; } - public PermissionExpandBody permission(@jakarta.annotation.Nullable String permission) { + public PermissionExpandBody permission(String permission) { this.permission = permission; return this; } - /** + /** * Name of the permission to be expanded, not required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. * @return permission - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPermission() { return permission; } @@ -137,23 +134,24 @@ public String getPermission() { @JsonProperty(JSON_PROPERTY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPermission(@jakarta.annotation.Nullable String permission) { + public void setPermission(String permission) { this.permission = permission; } - public PermissionExpandBody context(@jakarta.annotation.Nullable Context context) { + public PermissionExpandBody context(Context context) { this.context = context; return this; } - /** + /** * Get context * @return context - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Context getContext() { return context; } @@ -161,12 +159,12 @@ public Context getContext() { @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContext(@jakarta.annotation.Nullable Context context) { + public void setContext(Context context) { this.context = context; } - public PermissionExpandBody arguments(@jakarta.annotation.Nullable List arguments) { + public PermissionExpandBody arguments(List arguments) { this.arguments = arguments; return this; } @@ -179,13 +177,14 @@ public PermissionExpandBody addArgumentsItem(Argument argumentsItem) { return this; } - /** + /** * Additional arguments associated with this request. * @return arguments - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArguments() { return arguments; } @@ -193,7 +192,7 @@ public List getArguments() { @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArguments(@jakarta.annotation.Nullable List arguments) { + public void setArguments(List arguments) { this.arguments = arguments; } @@ -290,7 +289,7 @@ public String toUrlQueryString(String prefix) { // add `permission` to the URL query string if (getPermission() != null) { - joiner.add(String.format("%spermission%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPermission())))); + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `context` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java index 752dcef..0558179 100644 --- a/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionExpandRequestMetadata metadata for the PermissionExpandRequest. */ @@ -36,31 +35,30 @@ PermissionExpandRequestMetadata.JSON_PROPERTY_SCHEMA_VERSION, PermissionExpandRequestMetadata.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionExpandRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public PermissionExpandRequestMetadata() { } - public PermissionExpandRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public PermissionExpandRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * Version of the schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -68,23 +66,24 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } - public PermissionExpandRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public PermissionExpandRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens). * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -92,7 +91,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java b/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java index a9a4e11..4b3c24e 100644 --- a/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.V1Expand; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -28,42 +29,41 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionExpandResponse is the response message for the Expand method in the Permission service. */ @JsonPropertyOrder({ PermissionExpandResponse.JSON_PROPERTY_TREE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionExpandResponse { public static final String JSON_PROPERTY_TREE = "tree"; - @jakarta.annotation.Nullable - private Object tree; + private V1Expand tree; public PermissionExpandResponse() { } - public PermissionExpandResponse tree(@jakarta.annotation.Nullable Object tree) { + public PermissionExpandResponse tree(V1Expand tree) { this.tree = tree; return this; } - /** - * Expand is used to define a hierarchical structure for permissions. It has an entity, permission, and arguments. The node can be either another hierarchical structure or a set of subjects. + /** + * Get tree * @return tree - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TREE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getTree() { + + public V1Expand getTree() { return tree; } @JsonProperty(JSON_PROPERTY_TREE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTree(@jakarta.annotation.Nullable Object tree) { + public void setTree(V1Expand tree) { this.tree = tree; } @@ -142,7 +142,7 @@ public String toUrlQueryString(String prefix) { // add `tree` to the URL query string if (getTree() != null) { - joiner.add(String.format("%stree%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTree())))); + joiner.add(getTree().toUrlQueryString(prefix + "tree" + suffix)); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java index f19d081..9b2d9cc 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupEntityRequestMetadata metadata for the PermissionLookupEntityRequest. */ @@ -37,35 +36,33 @@ PermissionLookupEntityRequestMetadata.JSON_PROPERTY_SNAP_TOKEN, PermissionLookupEntityRequestMetadata.JSON_PROPERTY_DEPTH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionLookupEntityRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public static final String JSON_PROPERTY_DEPTH = "depth"; - @jakarta.annotation.Nullable private Integer depth; public PermissionLookupEntityRequestMetadata() { } - public PermissionLookupEntityRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public PermissionLookupEntityRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * Version of the schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -73,23 +70,24 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } - public PermissionLookupEntityRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public PermissionLookupEntityRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens). * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -97,23 +95,24 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } - public PermissionLookupEntityRequestMetadata depth(@jakarta.annotation.Nullable Integer depth) { + public PermissionLookupEntityRequestMetadata depth(Integer depth) { this.depth = depth; return this; } - /** + /** * Query limit when if recursive database queries got in loop. * @return depth - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getDepth() { return depth; } @@ -121,7 +120,7 @@ public Integer getDepth() { @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepth(@jakarta.annotation.Nullable Integer depth) { + public void setDepth(Integer depth) { this.depth = depth; } @@ -204,17 +203,17 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `depth` to the URL query string if (getDepth() != null) { - joiner.add(String.format("%sdepth%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDepth())))); + joiner.add(String.format("%sdepth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java b/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java index aa8b8c9..6882f13 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupEntityResponse is the response message for the LookupEntity method in the Permission service. */ @@ -38,20 +37,18 @@ PermissionLookupEntityResponse.JSON_PROPERTY_ENTITY_IDS, PermissionLookupEntityResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionLookupEntityResponse { public static final String JSON_PROPERTY_ENTITY_IDS = "entity_ids"; - @jakarta.annotation.Nullable - private List entityIds = new ArrayList<>(); + private List entityIds; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public PermissionLookupEntityResponse() { } - public PermissionLookupEntityResponse entityIds(@jakarta.annotation.Nullable List entityIds) { + public PermissionLookupEntityResponse entityIds(List entityIds) { this.entityIds = entityIds; return this; } @@ -64,13 +61,14 @@ public PermissionLookupEntityResponse addEntityIdsItem(String entityIdsItem) { return this; } - /** + /** * List of identifiers for entities that match the lookup. * @return entityIds - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getEntityIds() { return entityIds; } @@ -78,23 +76,24 @@ public List getEntityIds() { @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityIds(@jakarta.annotation.Nullable List entityIds) { + public void setEntityIds(List entityIds) { this.entityIds = entityIds; } - public PermissionLookupEntityResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public PermissionLookupEntityResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is a string that can be used to paginate and retrieve the next set of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -102,7 +101,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -186,13 +185,13 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEntityIds().size(); i++) { joiner.add(String.format("%sentity_ids%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getEntityIds().get(i))))); + URLEncoder.encode(String.valueOf(getEntityIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java b/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java index ac52b95..b537b6a 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupEntityStreamResponse is the response message for the LookupEntityStream method in the Permission service. */ @@ -36,31 +35,30 @@ PermissionLookupEntityStreamResponse.JSON_PROPERTY_ENTITY_ID, PermissionLookupEntityStreamResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionLookupEntityStreamResponse { public static final String JSON_PROPERTY_ENTITY_ID = "entity_id"; - @jakarta.annotation.Nullable private String entityId; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public PermissionLookupEntityStreamResponse() { } - public PermissionLookupEntityStreamResponse entityId(@jakarta.annotation.Nullable String entityId) { + public PermissionLookupEntityStreamResponse entityId(String entityId) { this.entityId = entityId; return this; } - /** + /** * Identifier for an entity that matches the lookup. * @return entityId - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityId() { return entityId; } @@ -68,23 +66,24 @@ public String getEntityId() { @JsonProperty(JSON_PROPERTY_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityId(@jakarta.annotation.Nullable String entityId) { + public void setEntityId(String entityId) { this.entityId = entityId; } - public PermissionLookupEntityStreamResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public PermissionLookupEntityStreamResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is a string that can be used to paginate and retrieve the next set of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -92,7 +91,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `entity_id` to the URL query string if (getEntityId() != null) { - joiner.add(String.format("%sentity_id%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityId())))); + joiner.add(String.format("%sentity_id%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java index 9b76d57..59685ef 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupSubjectRequestMetadata metadata for the PermissionLookupSubjectRequest. */ @@ -37,35 +36,33 @@ PermissionLookupSubjectRequestMetadata.JSON_PROPERTY_SNAP_TOKEN, PermissionLookupSubjectRequestMetadata.JSON_PROPERTY_DEPTH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionLookupSubjectRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public static final String JSON_PROPERTY_DEPTH = "depth"; - @jakarta.annotation.Nullable private Integer depth; public PermissionLookupSubjectRequestMetadata() { } - public PermissionLookupSubjectRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public PermissionLookupSubjectRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * Version of the schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -73,23 +70,24 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } - public PermissionLookupSubjectRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public PermissionLookupSubjectRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens). * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -97,23 +95,24 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } - public PermissionLookupSubjectRequestMetadata depth(@jakarta.annotation.Nullable Integer depth) { + public PermissionLookupSubjectRequestMetadata depth(Integer depth) { this.depth = depth; return this; } - /** + /** * Query limit when if recursive database queries got in loop. * @return depth - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getDepth() { return depth; } @@ -121,7 +120,7 @@ public Integer getDepth() { @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepth(@jakarta.annotation.Nullable Integer depth) { + public void setDepth(Integer depth) { this.depth = depth; } @@ -204,17 +203,17 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `depth` to the URL query string if (getDepth() != null) { - joiner.add(String.format("%sdepth%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDepth())))); + joiner.add(String.format("%sdepth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java index 7a2212d..01a69c3 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionLookupSubjectResponse is the response message for the LookupSubject method in the Permission service. */ @@ -38,20 +37,18 @@ PermissionLookupSubjectResponse.JSON_PROPERTY_SUBJECT_IDS, PermissionLookupSubjectResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionLookupSubjectResponse { public static final String JSON_PROPERTY_SUBJECT_IDS = "subject_ids"; - @jakarta.annotation.Nullable - private List subjectIds = new ArrayList<>(); + private List subjectIds; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public PermissionLookupSubjectResponse() { } - public PermissionLookupSubjectResponse subjectIds(@jakarta.annotation.Nullable List subjectIds) { + public PermissionLookupSubjectResponse subjectIds(List subjectIds) { this.subjectIds = subjectIds; return this; } @@ -64,13 +61,14 @@ public PermissionLookupSubjectResponse addSubjectIdsItem(String subjectIdsItem) return this; } - /** + /** * List of identifiers for subjects that match the lookup. * @return subjectIds - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSubjectIds() { return subjectIds; } @@ -78,23 +76,24 @@ public List getSubjectIds() { @JsonProperty(JSON_PROPERTY_SUBJECT_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubjectIds(@jakarta.annotation.Nullable List subjectIds) { + public void setSubjectIds(List subjectIds) { this.subjectIds = subjectIds; } - public PermissionLookupSubjectResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public PermissionLookupSubjectResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is a string that can be used to paginate and retrieve the next set of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -102,7 +101,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -186,13 +185,13 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getSubjectIds().size(); i++) { joiner.add(String.format("%ssubject_ids%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getSubjectIds().get(i))))); + URLEncoder.encode(String.valueOf(getSubjectIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java index 3aa50d6..a41f8a2 100644 --- a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionSubjectPermissionRequestMetadata metadata for the PermissionSubjectPermissionRequest. */ @@ -38,39 +37,36 @@ PermissionSubjectPermissionRequestMetadata.JSON_PROPERTY_ONLY_PERMISSION, PermissionSubjectPermissionRequestMetadata.JSON_PROPERTY_DEPTH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionSubjectPermissionRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public static final String JSON_PROPERTY_ONLY_PERMISSION = "only_permission"; - @jakarta.annotation.Nullable private Boolean onlyPermission; public static final String JSON_PROPERTY_DEPTH = "depth"; - @jakarta.annotation.Nullable private Integer depth; public PermissionSubjectPermissionRequestMetadata() { } - public PermissionSubjectPermissionRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public PermissionSubjectPermissionRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * Version of the schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -78,23 +74,24 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } - public PermissionSubjectPermissionRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public PermissionSubjectPermissionRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens). * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -102,23 +99,24 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } - public PermissionSubjectPermissionRequestMetadata onlyPermission(@jakarta.annotation.Nullable Boolean onlyPermission) { + public PermissionSubjectPermissionRequestMetadata onlyPermission(Boolean onlyPermission) { this.onlyPermission = onlyPermission; return this; } - /** + /** * Whether to only check permissions. * @return onlyPermission - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ONLY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getOnlyPermission() { return onlyPermission; } @@ -126,23 +124,24 @@ public Boolean getOnlyPermission() { @JsonProperty(JSON_PROPERTY_ONLY_PERMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOnlyPermission(@jakarta.annotation.Nullable Boolean onlyPermission) { + public void setOnlyPermission(Boolean onlyPermission) { this.onlyPermission = onlyPermission; } - public PermissionSubjectPermissionRequestMetadata depth(@jakarta.annotation.Nullable Integer depth) { + public PermissionSubjectPermissionRequestMetadata depth(Integer depth) { this.depth = depth; return this; } - /** + /** * Query limit when if recursive database queries got in loop. * @return depth - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getDepth() { return depth; } @@ -150,7 +149,7 @@ public Integer getDepth() { @JsonProperty(JSON_PROPERTY_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepth(@jakarta.annotation.Nullable Integer depth) { + public void setDepth(Integer depth) { this.depth = depth; } @@ -235,22 +234,22 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `only_permission` to the URL query string if (getOnlyPermission() != null) { - joiner.add(String.format("%sonly_permission%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOnlyPermission())))); + joiner.add(String.format("%sonly_permission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOnlyPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `depth` to the URL query string if (getDepth() != null) { - joiner.add(String.format("%sdepth%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDepth())))); + joiner.add(String.format("%sdepth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java index c34341e..859e0df 100644 --- a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,23 +31,21 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionSubjectPermissionResponse is the response message for the SubjectPermission method in the Permission service. */ @JsonPropertyOrder({ PermissionSubjectPermissionResponse.JSON_PROPERTY_RESULTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PermissionSubjectPermissionResponse { public static final String JSON_PROPERTY_RESULTS = "results"; - @jakarta.annotation.Nullable private Map results = new HashMap<>(); public PermissionSubjectPermissionResponse() { } - public PermissionSubjectPermissionResponse results(@jakarta.annotation.Nullable Map results) { + public PermissionSubjectPermissionResponse results(Map results) { this.results = results; return this; } @@ -60,13 +58,14 @@ public PermissionSubjectPermissionResponse putResultsItem(String key, CheckResul return this; } - /** + /** * Map of results for each permission check. * @return results - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getResults() { return results; } @@ -74,7 +73,7 @@ public Map getResults() { @JsonProperty(JSON_PROPERTY_RESULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResults(@jakarta.annotation.Nullable Map results) { + public void setResults(Map results) { this.results = results; } @@ -156,7 +155,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getResults().keySet()) { joiner.add(String.format("%sresults%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getResults().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getResults().get(_key))))); + getResults().get(_key), URLEncoder.encode(String.valueOf(getResults().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/PrimitiveType.java b/src/main/java/co/permify/sdk/model/PrimitiveType.java index a87440f..8e82eca 100644 --- a/src/main/java/co/permify/sdk/model/PrimitiveType.java +++ b/src/main/java/co/permify/sdk/model/PrimitiveType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,12 +26,10 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * CEL primitive types. - PRIMITIVE_TYPE_UNSPECIFIED: Unspecified type. - BOOL: Boolean type. - INT64: Int64 type. Proto-based integer values are widened to int64. - UINT64: Uint64 type. Proto-based unsigned integer values are widened to uint64. - DOUBLE: Double type. Proto-based float values are widened to double values. - STRING: String type. - BYTES: Bytes type. + * CEL primitive types. - BOOL: Boolean type. - INT64: Int64 type. Proto-based integer values are widened to int64. - UINT64: Uint64 type. Proto-based unsigned integer values are widened to uint64. - DOUBLE: Double type. Proto-based float values are widened to double values. - STRING: String type. - BYTES: Bytes type. */ public enum PrimitiveType { - PRIMITIVE_TYPE_UNSPECIFIED("PRIMITIVE_TYPE_UNSPECIFIED"), - BOOL("BOOL"), INT64("INT64"), diff --git a/src/main/java/co/permify/sdk/model/ReadAttributesBody.java b/src/main/java/co/permify/sdk/model/ReadAttributesBody.java index 48ad13c..aef4b8c 100644 --- a/src/main/java/co/permify/sdk/model/ReadAttributesBody.java +++ b/src/main/java/co/permify/sdk/model/ReadAttributesBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * AttributeReadRequest defines the structure of a request for reading attributes. It includes the tenant_id, metadata, attribute filter, page size for pagination, and a continuous token for multi-page results. */ @@ -40,39 +39,36 @@ ReadAttributesBody.JSON_PROPERTY_PAGE_SIZE, ReadAttributesBody.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ReadAttributesBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private AttributeReadRequestMetadata metadata; public static final String JSON_PROPERTY_FILTER = "filter"; - @jakarta.annotation.Nullable private AttributeFilter filter; public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public ReadAttributesBody() { } - public ReadAttributesBody metadata(@jakarta.annotation.Nullable AttributeReadRequestMetadata metadata) { + public ReadAttributesBody metadata(AttributeReadRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AttributeReadRequestMetadata getMetadata() { return metadata; } @@ -80,23 +76,24 @@ public AttributeReadRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable AttributeReadRequestMetadata metadata) { + public void setMetadata(AttributeReadRequestMetadata metadata) { this.metadata = metadata; } - public ReadAttributesBody filter(@jakarta.annotation.Nullable AttributeFilter filter) { + public ReadAttributesBody filter(AttributeFilter filter) { this.filter = filter; return this; } - /** + /** * Get filter * @return filter - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AttributeFilter getFilter() { return filter; } @@ -104,23 +101,24 @@ public AttributeFilter getFilter() { @JsonProperty(JSON_PROPERTY_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilter(@jakarta.annotation.Nullable AttributeFilter filter) { + public void setFilter(AttributeFilter filter) { this.filter = filter; } - public ReadAttributesBody pageSize(@jakarta.annotation.Nullable Long pageSize) { + public ReadAttributesBody pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** + /** * page_size specifies the number of results to return in a single page. If more results are available, a continuous_token is included in the response. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -128,23 +126,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public ReadAttributesBody continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public ReadAttributesBody continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is used in case of paginated reads to get the next page of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -152,7 +151,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -247,12 +246,12 @@ public String toUrlQueryString(String prefix) { // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java b/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java index a6bc628..ac57240 100644 --- a/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java +++ b/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * RelationshipReadRequest defines the structure of a request for reading relationships. It contains the necessary information such as tenant_id, metadata, and filter for the read operation. */ @@ -40,39 +39,36 @@ ReadRelationshipsBody.JSON_PROPERTY_PAGE_SIZE, ReadRelationshipsBody.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ReadRelationshipsBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private RelationshipReadRequestMetadata metadata; public static final String JSON_PROPERTY_FILTER = "filter"; - @jakarta.annotation.Nullable private TupleFilter filter; public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public ReadRelationshipsBody() { } - public ReadRelationshipsBody metadata(@jakarta.annotation.Nullable RelationshipReadRequestMetadata metadata) { + public ReadRelationshipsBody metadata(RelationshipReadRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public RelationshipReadRequestMetadata getMetadata() { return metadata; } @@ -80,23 +76,24 @@ public RelationshipReadRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable RelationshipReadRequestMetadata metadata) { + public void setMetadata(RelationshipReadRequestMetadata metadata) { this.metadata = metadata; } - public ReadRelationshipsBody filter(@jakarta.annotation.Nullable TupleFilter filter) { + public ReadRelationshipsBody filter(TupleFilter filter) { this.filter = filter; return this; } - /** + /** * Get filter * @return filter - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TupleFilter getFilter() { return filter; } @@ -104,23 +101,24 @@ public TupleFilter getFilter() { @JsonProperty(JSON_PROPERTY_FILTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilter(@jakarta.annotation.Nullable TupleFilter filter) { + public void setFilter(TupleFilter filter) { this.filter = filter; } - public ReadRelationshipsBody pageSize(@jakarta.annotation.Nullable Long pageSize) { + public ReadRelationshipsBody pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** + /** * page_size specifies the number of results to return in a single page. If more results are available, a continuous_token is included in the response. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -128,23 +126,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public ReadRelationshipsBody continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public ReadRelationshipsBody continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is used in case of paginated reads to get the next page of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -152,7 +151,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -247,12 +246,12 @@ public String toUrlQueryString(String prefix) { // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/RelationDefinition.java b/src/main/java/co/permify/sdk/model/RelationDefinition.java index 3deada2..b8c83fe 100644 --- a/src/main/java/co/permify/sdk/model/RelationDefinition.java +++ b/src/main/java/co/permify/sdk/model/RelationDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The RelationDefinition message provides detailed information about a specific relation. */ @@ -39,31 +38,30 @@ RelationDefinition.JSON_PROPERTY_NAME, RelationDefinition.JSON_PROPERTY_RELATION_REFERENCES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationDefinition { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_RELATION_REFERENCES = "relationReferences"; - @jakarta.annotation.Nullable - private List relationReferences = new ArrayList<>(); + private List relationReferences; public RelationDefinition() { } - public RelationDefinition name(@jakarta.annotation.Nullable String name) { + public RelationDefinition name(String name) { this.name = name; return this; } - /** + /** * The name of the relation, which follows a specific string pattern and has a maximum byte size. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -71,12 +69,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public RelationDefinition relationReferences(@jakarta.annotation.Nullable List relationReferences) { + public RelationDefinition relationReferences(List relationReferences) { this.relationReferences = relationReferences; return this; } @@ -89,13 +87,14 @@ public RelationDefinition addRelationReferencesItem(RelationReference relationRe return this; } - /** + /** * A list of references to other relations. * @return relationReferences - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getRelationReferences() { return relationReferences; } @@ -103,7 +102,7 @@ public List getRelationReferences() { @JsonProperty(JSON_PROPERTY_RELATION_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelationReferences(@jakarta.annotation.Nullable List relationReferences) { + public void setRelationReferences(List relationReferences) { this.relationReferences = relationReferences; } @@ -184,7 +183,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relationReferences` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/RelationReference.java b/src/main/java/co/permify/sdk/model/RelationReference.java index 34f3b9d..158e5ff 100644 --- a/src/main/java/co/permify/sdk/model/RelationReference.java +++ b/src/main/java/co/permify/sdk/model/RelationReference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The RelationReference message provides a reference to a specific relation. */ @@ -36,31 +35,30 @@ RelationReference.JSON_PROPERTY_TYPE, RelationReference.JSON_PROPERTY_RELATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationReference { public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public RelationReference() { } - public RelationReference type(@jakarta.annotation.Nullable String type) { + public RelationReference type(String type) { this.type = type; return this; } - /** + /** * The type of the referenced entity, which follows a specific string pattern and has a maximum byte size. * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } @@ -68,23 +66,24 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(String type) { this.type = type; } - public RelationReference relation(@jakarta.annotation.Nullable String relation) { + public RelationReference relation(String relation) { this.relation = relation; return this; } - /** + /** * The name of the referenced relation, which follows a specific string pattern and has a maximum byte size. * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -92,7 +91,7 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java b/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java index 0b47e64..459cb58 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * RelationshipDeleteResponse */ @JsonPropertyOrder({ RelationshipDeleteResponse.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationshipDeleteResponse { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public RelationshipDeleteResponse() { } - public RelationshipDeleteResponse snapToken(@jakarta.annotation.Nullable String snapToken) { + public RelationshipDeleteResponse snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java b/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java index b2766fa..b7a1ed6 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * RelationshipReadRequestMetadata defines the structure of the metadata for a read request focused on relationships. It includes the snap_token associated with a particular state of the database. */ @JsonPropertyOrder({ RelationshipReadRequestMetadata.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationshipReadRequestMetadata { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public RelationshipReadRequestMetadata() { } - public RelationshipReadRequestMetadata snapToken(@jakarta.annotation.Nullable String snapToken) { + public RelationshipReadRequestMetadata snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java b/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java index 7cd6303..a422f86 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java +++ b/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * RelationshipReadResponse defines the structure of the response after reading relationships. It includes the tuples representing the relationships and a continuous token for handling result pagination. */ @@ -39,20 +38,18 @@ RelationshipReadResponse.JSON_PROPERTY_TUPLES, RelationshipReadResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationshipReadResponse { public static final String JSON_PROPERTY_TUPLES = "tuples"; - @jakarta.annotation.Nullable - private List tuples = new ArrayList<>(); + private List tuples; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public RelationshipReadResponse() { } - public RelationshipReadResponse tuples(@jakarta.annotation.Nullable List tuples) { + public RelationshipReadResponse tuples(List tuples) { this.tuples = tuples; return this; } @@ -65,13 +62,14 @@ public RelationshipReadResponse addTuplesItem(Tuple tuplesItem) { return this; } - /** + /** * tuples is a list of the relationships retrieved in the read operation, represented as entity-relation-entity triples. * @return tuples - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTuples() { return tuples; } @@ -79,23 +77,24 @@ public List getTuples() { @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTuples(@jakarta.annotation.Nullable List tuples) { + public void setTuples(List tuples) { this.tuples = tuples; } - public RelationshipReadResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public RelationshipReadResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is used in the case of paginated reads to retrieve the next page of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -103,7 +102,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -194,7 +193,7 @@ public String toUrlQueryString(String prefix) { // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java b/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java index a5d8598..ea9f1ff 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * RelationshipWriteRequestMetadata */ @JsonPropertyOrder({ RelationshipWriteRequestMetadata.JSON_PROPERTY_SCHEMA_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationshipWriteRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public RelationshipWriteRequestMetadata() { } - public RelationshipWriteRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public RelationshipWriteRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * Get schemaVersion * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -63,7 +62,7 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java b/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java index 5e4e97d..48bad21 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * RelationshipWriteResponse */ @JsonPropertyOrder({ RelationshipWriteResponse.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelationshipWriteResponse { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public RelationshipWriteResponse() { } - public RelationshipWriteResponse snapToken(@jakarta.annotation.Nullable String snapToken) { + public RelationshipWriteResponse snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens) * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Rewrite.java b/src/main/java/co/permify/sdk/model/Rewrite.java index 2b78f88..8aae593 100644 --- a/src/main/java/co/permify/sdk/model/Rewrite.java +++ b/src/main/java/co/permify/sdk/model/Rewrite.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The Rewrite message represents a specific rewrite operation. This operation could be one of the following: union, intersection, or exclusion. */ @@ -40,31 +39,30 @@ Rewrite.JSON_PROPERTY_REWRITE_OPERATION, Rewrite.JSON_PROPERTY_CHILDREN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Rewrite { public static final String JSON_PROPERTY_REWRITE_OPERATION = "rewriteOperation"; - @jakarta.annotation.Nullable - private RewriteOperation rewriteOperation = RewriteOperation.OPERATION_UNSPECIFIED; + private RewriteOperation rewriteOperation; public static final String JSON_PROPERTY_CHILDREN = "children"; - @jakarta.annotation.Nullable - private List children = new ArrayList<>(); + private List children; public Rewrite() { } - public Rewrite rewriteOperation(@jakarta.annotation.Nullable RewriteOperation rewriteOperation) { + public Rewrite rewriteOperation(RewriteOperation rewriteOperation) { this.rewriteOperation = rewriteOperation; return this; } - /** + /** * Get rewriteOperation * @return rewriteOperation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REWRITE_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public RewriteOperation getRewriteOperation() { return rewriteOperation; } @@ -72,12 +70,12 @@ public RewriteOperation getRewriteOperation() { @JsonProperty(JSON_PROPERTY_REWRITE_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewriteOperation(@jakarta.annotation.Nullable RewriteOperation rewriteOperation) { + public void setRewriteOperation(RewriteOperation rewriteOperation) { this.rewriteOperation = rewriteOperation; } - public Rewrite children(@jakarta.annotation.Nullable List children) { + public Rewrite children(List children) { this.children = children; return this; } @@ -90,13 +88,14 @@ public Rewrite addChildrenItem(Child childrenItem) { return this; } - /** + /** * A list of children that are operated upon by the rewrite operation. * @return children - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHILDREN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getChildren() { return children; } @@ -104,7 +103,7 @@ public List getChildren() { @JsonProperty(JSON_PROPERTY_CHILDREN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChildren(@jakarta.annotation.Nullable List children) { + public void setChildren(List children) { this.children = children; } @@ -185,7 +184,7 @@ public String toUrlQueryString(String prefix) { // add `rewriteOperation` to the URL query string if (getRewriteOperation() != null) { - joiner.add(String.format("%srewriteOperation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRewriteOperation())))); + joiner.add(String.format("%srewriteOperation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRewriteOperation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `children` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/RewriteOperation.java b/src/main/java/co/permify/sdk/model/RewriteOperation.java index 11b034a..10238df 100644 --- a/src/main/java/co/permify/sdk/model/RewriteOperation.java +++ b/src/main/java/co/permify/sdk/model/RewriteOperation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,17 +26,15 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Operation enum includes potential rewrite operations. OPERATION_UNION: Represents a union operation. OPERATION_INTERSECTION: Represents an intersection operation. OPERATION_EXCLUSION: Represents an exclusion operation. - OPERATION_UNSPECIFIED: Default, unspecified operation. - OPERATION_UNION: Represents a union operation. - OPERATION_INTERSECTION: Represents an intersection operation. - OPERATION_EXCLUSION: Represents an exclusion operation. + * Operation enum includes potential rewrite operations. OPERATION_UNION: Represents a union operation. OPERATION_INTERSECTION: Represents an intersection operation. OPERATION_EXCLUSION: Represents an exclusion operation. - OPERATION_UNION: Represents a union operation. - OPERATION_INTERSECTION: Represents an intersection operation. - OPERATION_EXCLUSION: Represents an exclusion operation. */ public enum RewriteOperation { - OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), + UNION("OPERATION_UNION"), - OPERATION_UNION("OPERATION_UNION"), + INTERSECTION("OPERATION_INTERSECTION"), - OPERATION_INTERSECTION("OPERATION_INTERSECTION"), - - OPERATION_EXCLUSION("OPERATION_EXCLUSION"); + EXCLUSION("OPERATION_EXCLUSION"); private String value; diff --git a/src/main/java/co/permify/sdk/model/RuleDefinition.java b/src/main/java/co/permify/sdk/model/RuleDefinition.java index d16c5a3..98a94e8 100644 --- a/src/main/java/co/permify/sdk/model/RuleDefinition.java +++ b/src/main/java/co/permify/sdk/model/RuleDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The RuleDefinition message provides detailed information about a specific rule. */ @@ -41,35 +40,33 @@ RuleDefinition.JSON_PROPERTY_ARGUMENTS, RuleDefinition.JSON_PROPERTY_EXPRESSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RuleDefinition { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; - @jakarta.annotation.Nullable private Map arguments = new HashMap<>(); public static final String JSON_PROPERTY_EXPRESSION = "expression"; - @jakarta.annotation.Nullable private CheckedExpr expression; public RuleDefinition() { } - public RuleDefinition name(@jakarta.annotation.Nullable String name) { + public RuleDefinition name(String name) { this.name = name; return this; } - /** + /** * The name of the rule, which follows a specific string pattern and has a maximum byte size. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -77,12 +74,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public RuleDefinition arguments(@jakarta.annotation.Nullable Map arguments) { + public RuleDefinition arguments(Map arguments) { this.arguments = arguments; return this; } @@ -95,13 +92,14 @@ public RuleDefinition putArgumentsItem(String key, AttributeType argumentsItem) return this; } - /** + /** * Map of arguments for this rule. The key is the attribute name, and the value is the AttributeType. * @return arguments - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getArguments() { return arguments; } @@ -109,23 +107,24 @@ public Map getArguments() { @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArguments(@jakarta.annotation.Nullable Map arguments) { + public void setArguments(Map arguments) { this.arguments = arguments; } - public RuleDefinition expression(@jakarta.annotation.Nullable CheckedExpr expression) { + public RuleDefinition expression(CheckedExpr expression) { this.expression = expression; return this; } - /** + /** * Get expression * @return expression - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CheckedExpr getExpression() { return expression; } @@ -133,7 +132,7 @@ public CheckedExpr getExpression() { @JsonProperty(JSON_PROPERTY_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpression(@jakarta.annotation.Nullable CheckedExpr expression) { + public void setExpression(CheckedExpr expression) { this.expression = expression; } @@ -216,7 +215,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `arguments` to the URL query string @@ -224,7 +223,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getArguments().keySet()) { joiner.add(String.format("%sarguments%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getArguments().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getArguments().get(_key))))); + getArguments().get(_key), URLEncoder.encode(String.valueOf(getArguments().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/RunBundleBody.java b/src/main/java/co/permify/sdk/model/RunBundleBody.java index abee449..a732a8b 100644 --- a/src/main/java/co/permify/sdk/model/RunBundleBody.java +++ b/src/main/java/co/permify/sdk/model/RunBundleBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * BundleRunRequest is used to request the execution of a bundle. It includes tenant_id, the name of the bundle, and additional arguments for execution. */ @@ -38,31 +37,30 @@ RunBundleBody.JSON_PROPERTY_NAME, RunBundleBody.JSON_PROPERTY_ARGUMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RunBundleBody { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; - @jakarta.annotation.Nullable private Map arguments = new HashMap<>(); public RunBundleBody() { } - public RunBundleBody name(@jakarta.annotation.Nullable String name) { + public RunBundleBody name(String name) { this.name = name; return this; } - /** + /** * Name of the bundle to be executed. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -70,12 +68,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public RunBundleBody arguments(@jakarta.annotation.Nullable Map arguments) { + public RunBundleBody arguments(Map arguments) { this.arguments = arguments; return this; } @@ -88,13 +86,14 @@ public RunBundleBody putArgumentsItem(String key, String argumentsItem) { return this; } - /** + /** * Additional key-value pairs for execution arguments. * @return arguments - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getArguments() { return arguments; } @@ -102,7 +101,7 @@ public Map getArguments() { @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArguments(@jakarta.annotation.Nullable Map arguments) { + public void setArguments(Map arguments) { this.arguments = arguments; } @@ -183,7 +182,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `arguments` to the URL query string @@ -191,7 +190,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getArguments().keySet()) { joiner.add(String.format("%sarguments%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getArguments().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getArguments().get(_key))))); + getArguments().get(_key), URLEncoder.encode(String.valueOf(getArguments().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/SchemaDefinition.java b/src/main/java/co/permify/sdk/model/SchemaDefinition.java index 8e24cda..2269d23 100644 --- a/src/main/java/co/permify/sdk/model/SchemaDefinition.java +++ b/src/main/java/co/permify/sdk/model/SchemaDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * The SchemaDefinition message provides definitions for entities and rules, and includes references to clarify whether a name refers to an entity or a rule. */ @@ -42,24 +41,21 @@ SchemaDefinition.JSON_PROPERTY_RULE_DEFINITIONS, SchemaDefinition.JSON_PROPERTY_REFERENCES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaDefinition { public static final String JSON_PROPERTY_ENTITY_DEFINITIONS = "entityDefinitions"; - @jakarta.annotation.Nullable private Map entityDefinitions = new HashMap<>(); public static final String JSON_PROPERTY_RULE_DEFINITIONS = "ruleDefinitions"; - @jakarta.annotation.Nullable private Map ruleDefinitions = new HashMap<>(); public static final String JSON_PROPERTY_REFERENCES = "references"; - @jakarta.annotation.Nullable private Map references = new HashMap<>(); public SchemaDefinition() { } - public SchemaDefinition entityDefinitions(@jakarta.annotation.Nullable Map entityDefinitions) { + public SchemaDefinition entityDefinitions(Map entityDefinitions) { this.entityDefinitions = entityDefinitions; return this; } @@ -72,13 +68,14 @@ public SchemaDefinition putEntityDefinitionsItem(String key, EntityDefinition en return this; } - /** + /** * Map of entity definitions. The key is the entity name, and the value is the corresponding EntityDefinition. * @return entityDefinitions - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY_DEFINITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getEntityDefinitions() { return entityDefinitions; } @@ -86,12 +83,12 @@ public Map getEntityDefinitions() { @JsonProperty(JSON_PROPERTY_ENTITY_DEFINITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityDefinitions(@jakarta.annotation.Nullable Map entityDefinitions) { + public void setEntityDefinitions(Map entityDefinitions) { this.entityDefinitions = entityDefinitions; } - public SchemaDefinition ruleDefinitions(@jakarta.annotation.Nullable Map ruleDefinitions) { + public SchemaDefinition ruleDefinitions(Map ruleDefinitions) { this.ruleDefinitions = ruleDefinitions; return this; } @@ -104,13 +101,14 @@ public SchemaDefinition putRuleDefinitionsItem(String key, RuleDefinition ruleDe return this; } - /** + /** * Map of rule definitions. The key is the rule name, and the value is the corresponding RuleDefinition. * @return ruleDefinitions - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RULE_DEFINITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getRuleDefinitions() { return ruleDefinitions; } @@ -118,12 +116,12 @@ public Map getRuleDefinitions() { @JsonProperty(JSON_PROPERTY_RULE_DEFINITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRuleDefinitions(@jakarta.annotation.Nullable Map ruleDefinitions) { + public void setRuleDefinitions(Map ruleDefinitions) { this.ruleDefinitions = ruleDefinitions; } - public SchemaDefinition references(@jakarta.annotation.Nullable Map references) { + public SchemaDefinition references(Map references) { this.references = references; return this; } @@ -136,13 +134,14 @@ public SchemaDefinition putReferencesItem(String key, SchemaDefinitionReference return this; } - /** + /** * Map of references to signify whether a string refers to an entity or a rule. * @return references - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getReferences() { return references; } @@ -150,7 +149,7 @@ public Map getReferences() { @JsonProperty(JSON_PROPERTY_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReferences(@jakarta.annotation.Nullable Map references) { + public void setReferences(Map references) { this.references = references; } @@ -256,7 +255,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getReferences().keySet()) { joiner.add(String.format("%sreferences%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getReferences().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getReferences().get(_key))))); + getReferences().get(_key), URLEncoder.encode(String.valueOf(getReferences().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java b/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java index 5fa72b6..45a7641 100644 --- a/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java +++ b/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,15 +26,13 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * The Reference enum helps distinguish whether a name corresponds to an entity or a rule. - REFERENCE_UNSPECIFIED: Default, unspecified reference. - REFERENCE_ENTITY: Indicates that the name refers to an entity. - REFERENCE_RULE: Indicates that the name refers to a rule. + * The Reference enum helps distinguish whether a name corresponds to an entity or a rule. - REFERENCE_ENTITY: Indicates that the name refers to an entity. - REFERENCE_RULE: Indicates that the name refers to a rule. */ public enum SchemaDefinitionReference { - REFERENCE_UNSPECIFIED("REFERENCE_UNSPECIFIED"), + ENTITY("REFERENCE_ENTITY"), - REFERENCE_ENTITY("REFERENCE_ENTITY"), - - REFERENCE_RULE("REFERENCE_RULE"); + RULE("REFERENCE_RULE"); private String value; diff --git a/src/main/java/co/permify/sdk/model/SchemaList.java b/src/main/java/co/permify/sdk/model/SchemaList.java index 42cf1a4..17531d4 100644 --- a/src/main/java/co/permify/sdk/model/SchemaList.java +++ b/src/main/java/co/permify/sdk/model/SchemaList.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaList */ @@ -36,31 +35,30 @@ SchemaList.JSON_PROPERTY_VERSION, SchemaList.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaList { public static final String JSON_PROPERTY_VERSION = "version"; - @jakarta.annotation.Nullable private String version; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - @jakarta.annotation.Nullable private String createdAt; public SchemaList() { } - public SchemaList version(@jakarta.annotation.Nullable String version) { + public SchemaList version(String version) { this.version = version; return this; } - /** + /** * Get version * @return version - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getVersion() { return version; } @@ -68,23 +66,24 @@ public String getVersion() { @JsonProperty(JSON_PROPERTY_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVersion(@jakarta.annotation.Nullable String version) { + public void setVersion(String version) { this.version = version; } - public SchemaList createdAt(@jakarta.annotation.Nullable String createdAt) { + public SchemaList createdAt(String createdAt) { this.createdAt = createdAt; return this; } - /** + /** * Get createdAt * @return createdAt - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCreatedAt() { return createdAt; } @@ -92,7 +91,7 @@ public String getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(@jakarta.annotation.Nullable String createdAt) { + public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `version` to the URL query string if (getVersion() != null) { - joiner.add(String.format("%sversion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVersion())))); + joiner.add(String.format("%sversion%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `created_at` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screated_at%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); + joiner.add(String.format("%screated_at%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaListBody.java b/src/main/java/co/permify/sdk/model/SchemaListBody.java index 045a59f..ae7723e 100644 --- a/src/main/java/co/permify/sdk/model/SchemaListBody.java +++ b/src/main/java/co/permify/sdk/model/SchemaListBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaListRequest is the request message for the List method in the Schema service. It contains tenant_id for which the schemas are to be listed. */ @@ -36,31 +35,30 @@ SchemaListBody.JSON_PROPERTY_PAGE_SIZE, SchemaListBody.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaListBody { public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public SchemaListBody() { } - public SchemaListBody pageSize(@jakarta.annotation.Nullable Long pageSize) { + public SchemaListBody pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** - * page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. + /** + * page_size is the number of schemas to be returned in the response. The value should be between 1 and 100. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -68,23 +66,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public SchemaListBody continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public SchemaListBody continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -92,7 +91,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaListResponse.java b/src/main/java/co/permify/sdk/model/SchemaListResponse.java index a2ddb8b..bdf6375 100644 --- a/src/main/java/co/permify/sdk/model/SchemaListResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaListResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaListResponse */ @@ -40,35 +39,33 @@ SchemaListResponse.JSON_PROPERTY_SCHEMAS, SchemaListResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaListResponse { public static final String JSON_PROPERTY_HEAD = "head"; - @jakarta.annotation.Nullable private String head; public static final String JSON_PROPERTY_SCHEMAS = "schemas"; - @jakarta.annotation.Nullable - private List schemas = new ArrayList<>(); + private List schemas; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public SchemaListResponse() { } - public SchemaListResponse head(@jakarta.annotation.Nullable String head) { + public SchemaListResponse head(String head) { this.head = head; return this; } - /** + /** * Get head * @return head - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getHead() { return head; } @@ -76,12 +73,12 @@ public String getHead() { @JsonProperty(JSON_PROPERTY_HEAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHead(@jakarta.annotation.Nullable String head) { + public void setHead(String head) { this.head = head; } - public SchemaListResponse schemas(@jakarta.annotation.Nullable List schemas) { + public SchemaListResponse schemas(List schemas) { this.schemas = schemas; return this; } @@ -94,13 +91,14 @@ public SchemaListResponse addSchemasItem(SchemaList schemasItem) { return this; } - /** + /** * Get schemas * @return schemas - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSchemas() { return schemas; } @@ -108,23 +106,24 @@ public List getSchemas() { @JsonProperty(JSON_PROPERTY_SCHEMAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemas(@jakarta.annotation.Nullable List schemas) { + public void setSchemas(List schemas) { this.schemas = schemas; } - public SchemaListResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public SchemaListResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is a string that can be used to paginate and retrieve the next set of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -132,7 +131,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -215,7 +214,7 @@ public String toUrlQueryString(String prefix) { // add `head` to the URL query string if (getHead() != null) { - joiner.add(String.format("%shead%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getHead())))); + joiner.add(String.format("%shead%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHead()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schemas` to the URL query string @@ -230,7 +229,7 @@ public String toUrlQueryString(String prefix) { // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java b/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java index 3e4529e..17f155e 100644 --- a/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaPartialWriteRequestMetadata provides additional information for the Schema Partial Write request. It contains schema_version to specify which version of the schema should be read. */ @JsonPropertyOrder({ SchemaPartialWriteRequestMetadata.JSON_PROPERTY_SCHEMA_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaPartialWriteRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public SchemaPartialWriteRequestMetadata() { } - public SchemaPartialWriteRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public SchemaPartialWriteRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * schema_version is the string that identifies the version of the schema to be read. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -63,7 +62,7 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java b/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java index 671187a..819f9ba 100644 --- a/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaPartialWriteResponse is the response message for the Parietal Write method in the Schema service. It returns the requested schema. */ @JsonPropertyOrder({ SchemaPartialWriteResponse.JSON_PROPERTY_SCHEMA_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaPartialWriteResponse { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public SchemaPartialWriteResponse() { } - public SchemaPartialWriteResponse schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public SchemaPartialWriteResponse schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * schema_version is the string that identifies the version of the written schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -63,7 +62,7 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaReadBody.java b/src/main/java/co/permify/sdk/model/SchemaReadBody.java index f632ac2..d414c00 100644 --- a/src/main/java/co/permify/sdk/model/SchemaReadBody.java +++ b/src/main/java/co/permify/sdk/model/SchemaReadBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaReadRequest is the request message for the Read method in the Schema service. It contains tenant_id and metadata about the schema to be read. */ @JsonPropertyOrder({ SchemaReadBody.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaReadBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private SchemaReadRequestMetadata metadata; public SchemaReadBody() { } - public SchemaReadBody metadata(@jakarta.annotation.Nullable SchemaReadRequestMetadata metadata) { + public SchemaReadBody metadata(SchemaReadRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SchemaReadRequestMetadata getMetadata() { return metadata; } @@ -64,7 +63,7 @@ public SchemaReadRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable SchemaReadRequestMetadata metadata) { + public void setMetadata(SchemaReadRequestMetadata metadata) { this.metadata = metadata; } diff --git a/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java b/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java index ff13add..80f0276 100644 --- a/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaReadRequestMetadata provides additional information for the Schema Read request. It contains schema_version to specify which version of the schema should be read. */ @JsonPropertyOrder({ SchemaReadRequestMetadata.JSON_PROPERTY_SCHEMA_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaReadRequestMetadata { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public SchemaReadRequestMetadata() { } - public SchemaReadRequestMetadata schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public SchemaReadRequestMetadata schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * schema_version is the string that identifies the version of the schema to be read. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -63,7 +62,7 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaReadResponse.java b/src/main/java/co/permify/sdk/model/SchemaReadResponse.java index 9941e15..d45e425 100644 --- a/src/main/java/co/permify/sdk/model/SchemaReadResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaReadResponse is the response message for the Read method in the Schema service. It returns the requested schema. */ @JsonPropertyOrder({ SchemaReadResponse.JSON_PROPERTY_SCHEMA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaReadResponse { public static final String JSON_PROPERTY_SCHEMA = "schema"; - @jakarta.annotation.Nullable private SchemaDefinition schema; public SchemaReadResponse() { } - public SchemaReadResponse schema(@jakarta.annotation.Nullable SchemaDefinition schema) { + public SchemaReadResponse schema(SchemaDefinition schema) { this.schema = schema; return this; } - /** + /** * Get schema * @return schema - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SchemaDefinition getSchema() { return schema; } @@ -64,7 +63,7 @@ public SchemaDefinition getSchema() { @JsonProperty(JSON_PROPERTY_SCHEMA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchema(@jakarta.annotation.Nullable SchemaDefinition schema) { + public void setSchema(SchemaDefinition schema) { this.schema = schema; } diff --git a/src/main/java/co/permify/sdk/model/SchemaWriteBody.java b/src/main/java/co/permify/sdk/model/SchemaWriteBody.java index e2cacd2..8a07d62 100644 --- a/src/main/java/co/permify/sdk/model/SchemaWriteBody.java +++ b/src/main/java/co/permify/sdk/model/SchemaWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaWriteRequest is the request message for the Write method in the Schema service. It contains tenant_id and the schema to be written. */ @JsonPropertyOrder({ SchemaWriteBody.JSON_PROPERTY_SCHEMA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaWriteBody { public static final String JSON_PROPERTY_SCHEMA = "schema"; - @jakarta.annotation.Nullable private String schema; public SchemaWriteBody() { } - public SchemaWriteBody schema(@jakarta.annotation.Nullable String schema) { + public SchemaWriteBody schema(String schema) { this.schema = schema; return this; } - /** + /** * schema is the string representation of the schema to be written. * @return schema - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchema() { return schema; } @@ -63,7 +62,7 @@ public String getSchema() { @JsonProperty(JSON_PROPERTY_SCHEMA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchema(@jakarta.annotation.Nullable String schema) { + public void setSchema(String schema) { this.schema = schema; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema` to the URL query string if (getSchema() != null) { - joiner.add(String.format("%sschema%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchema())))); + joiner.add(String.format("%sschema%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchema()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java b/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java index d4b90ea..855820a 100644 --- a/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SchemaWriteResponse is the response message for the Write method in the Schema service. It returns the version of the written schema. */ @JsonPropertyOrder({ SchemaWriteResponse.JSON_PROPERTY_SCHEMA_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaWriteResponse { public static final String JSON_PROPERTY_SCHEMA_VERSION = "schema_version"; - @jakarta.annotation.Nullable private String schemaVersion; public SchemaWriteResponse() { } - public SchemaWriteResponse schemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public SchemaWriteResponse schemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; return this; } - /** + /** * schema_version is the string that identifies the version of the written schema. * @return schemaVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSchemaVersion() { return schemaVersion; } @@ -63,7 +62,7 @@ public String getSchemaVersion() { @JsonProperty(JSON_PROPERTY_SCHEMA_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSchemaVersion(@jakarta.annotation.Nullable String schemaVersion) { + public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `schema_version` to the URL query string if (getSchemaVersion() != null) { - joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSchemaVersion())))); + joiner.add(String.format("%sschema_version%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchemaVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Select.java b/src/main/java/co/permify/sdk/model/Select.java index 09184a3..377eeef 100644 --- a/src/main/java/co/permify/sdk/model/Select.java +++ b/src/main/java/co/permify/sdk/model/Select.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -28,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * A field selection expression. e.g. `request.auth`. */ @@ -37,59 +37,58 @@ Select.JSON_PROPERTY_FIELD, Select.JSON_PROPERTY_TEST_ONLY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Select { public static final String JSON_PROPERTY_OPERAND = "operand"; - @jakarta.annotation.Nullable - private Object operand; + private Expr operand; public static final String JSON_PROPERTY_FIELD = "field"; - @jakarta.annotation.Nullable private String field; public static final String JSON_PROPERTY_TEST_ONLY = "testOnly"; - @jakarta.annotation.Nullable private Boolean testOnly; public Select() { } - public Select operand(@jakarta.annotation.Nullable Object operand) { + public Select operand(Expr operand) { this.operand = operand; return this; } - /** - * An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`. + /** + * Get operand * @return operand - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getOperand() { + + public Expr getOperand() { return operand; } @JsonProperty(JSON_PROPERTY_OPERAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperand(@jakarta.annotation.Nullable Object operand) { + public void setOperand(Expr operand) { this.operand = operand; } - public Select field(@jakarta.annotation.Nullable String field) { + public Select field(String field) { this.field = field; return this; } - /** + /** * Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`. * @return field - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getField() { return field; } @@ -97,23 +96,24 @@ public String getField() { @JsonProperty(JSON_PROPERTY_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setField(@jakarta.annotation.Nullable String field) { + public void setField(String field) { this.field = field; } - public Select testOnly(@jakarta.annotation.Nullable Boolean testOnly) { + public Select testOnly(Boolean testOnly) { this.testOnly = testOnly; return this; } - /** + /** * Whether the select is to be interpreted as a field presence test. This results from the macro `has(request.auth)`. * @return testOnly - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getTestOnly() { return testOnly; } @@ -121,7 +121,7 @@ public Boolean getTestOnly() { @JsonProperty(JSON_PROPERTY_TEST_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestOnly(@jakarta.annotation.Nullable Boolean testOnly) { + public void setTestOnly(Boolean testOnly) { this.testOnly = testOnly; } @@ -204,17 +204,17 @@ public String toUrlQueryString(String prefix) { // add `operand` to the URL query string if (getOperand() != null) { - joiner.add(String.format("%soperand%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOperand())))); + joiner.add(getOperand().toUrlQueryString(prefix + "operand" + suffix)); } // add `field` to the URL query string if (getField() != null) { - joiner.add(String.format("%sfield%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getField())))); + joiner.add(String.format("%sfield%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getField()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `testOnly` to the URL query string if (getTestOnly() != null) { - joiner.add(String.format("%stestOnly%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTestOnly())))); + joiner.add(String.format("%stestOnly%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTestOnly()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SourceInfo.java b/src/main/java/co/permify/sdk/model/SourceInfo.java index 25a3625..ba23063 100644 --- a/src/main/java/co/permify/sdk/model/SourceInfo.java +++ b/src/main/java/co/permify/sdk/model/SourceInfo.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -32,7 +33,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Source information collected at parse time. */ @@ -43,43 +43,39 @@ SourceInfo.JSON_PROPERTY_POSITIONS, SourceInfo.JSON_PROPERTY_MACRO_CALLS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SourceInfo { public static final String JSON_PROPERTY_SYNTAX_VERSION = "syntaxVersion"; - @jakarta.annotation.Nullable private String syntaxVersion; public static final String JSON_PROPERTY_LOCATION = "location"; - @jakarta.annotation.Nullable private String location; public static final String JSON_PROPERTY_LINE_OFFSETS = "lineOffsets"; - @jakarta.annotation.Nullable - private List lineOffsets = new ArrayList<>(); + private List lineOffsets; public static final String JSON_PROPERTY_POSITIONS = "positions"; - @jakarta.annotation.Nullable private Map positions = new HashMap<>(); public static final String JSON_PROPERTY_MACRO_CALLS = "macroCalls"; - @jakarta.annotation.Nullable - private Map macroCalls = new HashMap<>(); + private Map macroCalls = new HashMap<>(); public SourceInfo() { } - public SourceInfo syntaxVersion(@jakarta.annotation.Nullable String syntaxVersion) { + public SourceInfo syntaxVersion(String syntaxVersion) { this.syntaxVersion = syntaxVersion; return this; } - /** + /** * The syntax version of the source, e.g. `cel1`. * @return syntaxVersion - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYNTAX_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSyntaxVersion() { return syntaxVersion; } @@ -87,23 +83,24 @@ public String getSyntaxVersion() { @JsonProperty(JSON_PROPERTY_SYNTAX_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSyntaxVersion(@jakarta.annotation.Nullable String syntaxVersion) { + public void setSyntaxVersion(String syntaxVersion) { this.syntaxVersion = syntaxVersion; } - public SourceInfo location(@jakarta.annotation.Nullable String location) { + public SourceInfo location(String location) { this.location = location; return this; } - /** + /** * The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`. * @return location - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLocation() { return location; } @@ -111,12 +108,12 @@ public String getLocation() { @JsonProperty(JSON_PROPERTY_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocation(@jakarta.annotation.Nullable String location) { + public void setLocation(String location) { this.location = location; } - public SourceInfo lineOffsets(@jakarta.annotation.Nullable List lineOffsets) { + public SourceInfo lineOffsets(List lineOffsets) { this.lineOffsets = lineOffsets; return this; } @@ -129,13 +126,14 @@ public SourceInfo addLineOffsetsItem(Integer lineOffsetsItem) { return this; } - /** + /** * Monotonically increasing list of code point offsets where newlines `\\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derivd from `id_positions[id] - line_offsets[i]`. * @return lineOffsets - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINE_OFFSETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getLineOffsets() { return lineOffsets; } @@ -143,12 +141,12 @@ public List getLineOffsets() { @JsonProperty(JSON_PROPERTY_LINE_OFFSETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLineOffsets(@jakarta.annotation.Nullable List lineOffsets) { + public void setLineOffsets(List lineOffsets) { this.lineOffsets = lineOffsets; } - public SourceInfo positions(@jakarta.annotation.Nullable Map positions) { + public SourceInfo positions(Map positions) { this.positions = positions; return this; } @@ -161,13 +159,14 @@ public SourceInfo putPositionsItem(String key, Integer positionsItem) { return this; } - /** + /** * A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source. * @return positions - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POSITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getPositions() { return positions; } @@ -175,17 +174,17 @@ public Map getPositions() { @JsonProperty(JSON_PROPERTY_POSITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPositions(@jakarta.annotation.Nullable Map positions) { + public void setPositions(Map positions) { this.positions = positions; } - public SourceInfo macroCalls(@jakarta.annotation.Nullable Map macroCalls) { + public SourceInfo macroCalls(Map macroCalls) { this.macroCalls = macroCalls; return this; } - public SourceInfo putMacroCallsItem(String key, Object macroCallsItem) { + public SourceInfo putMacroCallsItem(String key, Expr macroCallsItem) { if (this.macroCalls == null) { this.macroCalls = new HashMap<>(); } @@ -193,21 +192,22 @@ public SourceInfo putMacroCallsItem(String key, Object macroCallsItem) { return this; } - /** + /** * A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced. * @return macroCalls - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MACRO_CALLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMacroCalls() { + + public Map getMacroCalls() { return macroCalls; } @JsonProperty(JSON_PROPERTY_MACRO_CALLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMacroCalls(@jakarta.annotation.Nullable Map macroCalls) { + public void setMacroCalls(Map macroCalls) { this.macroCalls = macroCalls; } @@ -294,12 +294,12 @@ public String toUrlQueryString(String prefix) { // add `syntaxVersion` to the URL query string if (getSyntaxVersion() != null) { - joiner.add(String.format("%ssyntaxVersion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSyntaxVersion())))); + joiner.add(String.format("%ssyntaxVersion%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSyntaxVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `location` to the URL query string if (getLocation() != null) { - joiner.add(String.format("%slocation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLocation())))); + joiner.add(String.format("%slocation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `lineOffsets` to the URL query string @@ -307,7 +307,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getLineOffsets().size(); i++) { joiner.add(String.format("%slineOffsets%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getLineOffsets().get(i))))); + URLEncoder.encode(String.valueOf(getLineOffsets().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -316,16 +316,17 @@ public String toUrlQueryString(String prefix) { for (String _key : getPositions().keySet()) { joiner.add(String.format("%spositions%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getPositions().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getPositions().get(_key))))); + getPositions().get(_key), URLEncoder.encode(String.valueOf(getPositions().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `macroCalls` to the URL query string if (getMacroCalls() != null) { for (String _key : getMacroCalls().keySet()) { - joiner.add(String.format("%smacroCalls%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getMacroCalls().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getMacroCalls().get(_key))))); + if (getMacroCalls().get(_key) != null) { + joiner.add(getMacroCalls().get(_key).toUrlQueryString(String.format("%smacroCalls%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix)))); + } } } diff --git a/src/main/java/co/permify/sdk/model/Status.java b/src/main/java/co/permify/sdk/model/Status.java index b7748e9..49de8b0 100644 --- a/src/main/java/co/permify/sdk/model/Status.java +++ b/src/main/java/co/permify/sdk/model/Status.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Status */ @@ -40,35 +39,33 @@ Status.JSON_PROPERTY_MESSAGE, Status.JSON_PROPERTY_DETAILS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Status { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_DETAILS = "details"; - @jakarta.annotation.Nullable - private List details = new ArrayList<>(); + private List details; public Status() { } - public Status code(@jakarta.annotation.Nullable Integer code) { + public Status code(Integer code) { this.code = code; return this; } - /** + /** * Get code * @return code - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } @@ -76,23 +73,24 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(@jakarta.annotation.Nullable Integer code) { + public void setCode(Integer code) { this.code = code; } - public Status message(@jakarta.annotation.Nullable String message) { + public Status message(String message) { this.message = message; return this; } - /** + /** * Get message * @return message - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } @@ -100,12 +98,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(@jakarta.annotation.Nullable String message) { + public void setMessage(String message) { this.message = message; } - public Status details(@jakarta.annotation.Nullable List details) { + public Status details(List details) { this.details = details; return this; } @@ -118,13 +116,14 @@ public Status addDetailsItem(Any detailsItem) { return this; } - /** + /** * Get details * @return details - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getDetails() { return details; } @@ -132,7 +131,7 @@ public List getDetails() { @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetails(@jakarta.annotation.Nullable List details) { + public void setDetails(List details) { this.details = details; } @@ -215,12 +214,12 @@ public String toUrlQueryString(String prefix) { // add `code` to the URL query string if (getCode() != null) { - joiner.add(String.format("%scode%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getCode())))); + joiner.add(String.format("%scode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `message` to the URL query string if (getMessage() != null) { - joiner.add(String.format("%smessage%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); + joiner.add(String.format("%smessage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `details` to the URL query string @@ -229,7 +228,7 @@ public String toUrlQueryString(String prefix) { if (getDetails().get(i) != null) { joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getDetails().get(i))))); + URLEncoder.encode(String.valueOf(getDetails().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } } diff --git a/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java b/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java index a546895..2632fb8 100644 --- a/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java +++ b/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * StreamResultOfPermissionLookupEntityStreamResponse */ @@ -38,31 +37,30 @@ StreamResultOfPermissionLookupEntityStreamResponse.JSON_PROPERTY_RESULT, StreamResultOfPermissionLookupEntityStreamResponse.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StreamResultOfPermissionLookupEntityStreamResponse { public static final String JSON_PROPERTY_RESULT = "result"; - @jakarta.annotation.Nullable private PermissionLookupEntityStreamResponse result; public static final String JSON_PROPERTY_ERROR = "error"; - @jakarta.annotation.Nullable private Status error; public StreamResultOfPermissionLookupEntityStreamResponse() { } - public StreamResultOfPermissionLookupEntityStreamResponse result(@jakarta.annotation.Nullable PermissionLookupEntityStreamResponse result) { + public StreamResultOfPermissionLookupEntityStreamResponse result(PermissionLookupEntityStreamResponse result) { this.result = result; return this; } - /** + /** * Get result * @return result - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionLookupEntityStreamResponse getResult() { return result; } @@ -70,23 +68,24 @@ public PermissionLookupEntityStreamResponse getResult() { @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResult(@jakarta.annotation.Nullable PermissionLookupEntityStreamResponse result) { + public void setResult(PermissionLookupEntityStreamResponse result) { this.result = result; } - public StreamResultOfPermissionLookupEntityStreamResponse error(@jakarta.annotation.Nullable Status error) { + public StreamResultOfPermissionLookupEntityStreamResponse error(Status error) { this.error = error; return this; } - /** + /** * Get error * @return error - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Status getError() { return error; } @@ -94,7 +93,7 @@ public Status getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(@jakarta.annotation.Nullable Status error) { + public void setError(Status error) { this.error = error; } diff --git a/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java b/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java index bed15c2..3d7e5e8 100644 --- a/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java +++ b/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * StreamResultOfWatchResponse */ @@ -38,31 +37,30 @@ StreamResultOfWatchResponse.JSON_PROPERTY_RESULT, StreamResultOfWatchResponse.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StreamResultOfWatchResponse { public static final String JSON_PROPERTY_RESULT = "result"; - @jakarta.annotation.Nullable private WatchResponse result; public static final String JSON_PROPERTY_ERROR = "error"; - @jakarta.annotation.Nullable private Status error; public StreamResultOfWatchResponse() { } - public StreamResultOfWatchResponse result(@jakarta.annotation.Nullable WatchResponse result) { + public StreamResultOfWatchResponse result(WatchResponse result) { this.result = result; return this; } - /** + /** * Get result * @return result - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WatchResponse getResult() { return result; } @@ -70,23 +68,24 @@ public WatchResponse getResult() { @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResult(@jakarta.annotation.Nullable WatchResponse result) { + public void setResult(WatchResponse result) { this.result = result; } - public StreamResultOfWatchResponse error(@jakarta.annotation.Nullable Status error) { + public StreamResultOfWatchResponse error(Status error) { this.error = error; return this; } - /** + /** * Get error * @return error - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Status getError() { return error; } @@ -94,7 +93,7 @@ public Status getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(@jakarta.annotation.Nullable Status error) { + public void setError(Status error) { this.error = error; } diff --git a/src/main/java/co/permify/sdk/model/ContextAttribute.java b/src/main/java/co/permify/sdk/model/StringArrayValue.java similarity index 62% rename from src/main/java/co/permify/sdk/model/ContextAttribute.java rename to src/main/java/co/permify/sdk/model/StringArrayValue.java index 1e7484c..c5f337e 100644 --- a/src/main/java/co/permify/sdk/model/ContextAttribute.java +++ b/src/main/java/co/permify/sdk/model/StringArrayValue.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,52 +24,61 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** - * ContextAttribute defines a context attribute which includes its name. + * Wrapper for an array of strings. */ @JsonPropertyOrder({ - ContextAttribute.JSON_PROPERTY_NAME + StringArrayValue.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ContextAttribute { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class StringArrayValue { + public static final String JSON_PROPERTY_DATA = "data"; + private List data; - public ContextAttribute() { + public StringArrayValue() { } - public ContextAttribute name(@jakarta.annotation.Nullable String name) { - this.name = name; + public StringArrayValue data(List data) { + this.data = data; return this; } - /** - * Get name - * @return name - */ + public StringArrayValue addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * The array of strings. + * @return data + **/ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; + + public List getData() { + return data; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { - this.name = name; + public void setData(List data) { + this.data = data; } /** - * Return true if this ContextAttribute object is equal to o. + * Return true if this StringArrayValue object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,20 +88,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ContextAttribute contextAttribute = (ContextAttribute) o; - return Objects.equals(this.name, contextAttribute.name); + StringArrayValue stringArrayValue = (StringArrayValue) o; + return Objects.equals(this.data, stringArrayValue.data); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ContextAttribute {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("class StringArrayValue {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } @@ -140,9 +149,13 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `name` to the URL query string - if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + joiner.add(String.format("%sdata%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getData().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Subject.java b/src/main/java/co/permify/sdk/model/Subject.java index 14010fc..47bafb0 100644 --- a/src/main/java/co/permify/sdk/model/Subject.java +++ b/src/main/java/co/permify/sdk/model/Subject.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Subject represents an entity subject with a type, an identifier, and a relation. */ @@ -37,35 +36,33 @@ Subject.JSON_PROPERTY_ID, Subject.JSON_PROPERTY_RELATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Subject { public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public Subject() { } - public Subject type(@jakarta.annotation.Nullable String type) { + public Subject type(String type) { this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } @@ -73,23 +70,24 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(String type) { this.type = type; } - public Subject id(@jakarta.annotation.Nullable String id) { + public Subject id(String id) { this.id = id; return this; } - /** + /** * Get id * @return id - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { return id; } @@ -97,23 +95,24 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { + public void setId(String id) { this.id = id; } - public Subject relation(@jakarta.annotation.Nullable String relation) { + public Subject relation(String relation) { this.relation = relation; return this; } - /** + /** * Get relation * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -121,7 +120,7 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } @@ -204,17 +203,17 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SubjectFilter.java b/src/main/java/co/permify/sdk/model/SubjectFilter.java index 49917e9..7cd1b1b 100644 --- a/src/main/java/co/permify/sdk/model/SubjectFilter.java +++ b/src/main/java/co/permify/sdk/model/SubjectFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * SubjectFilter is used to filter subjects based on the type, ids and relation. */ @@ -39,35 +38,33 @@ SubjectFilter.JSON_PROPERTY_IDS, SubjectFilter.JSON_PROPERTY_RELATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SubjectFilter { public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_IDS = "ids"; - @jakarta.annotation.Nullable - private List ids = new ArrayList<>(); + private List ids; public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public SubjectFilter() { } - public SubjectFilter type(@jakarta.annotation.Nullable String type) { + public SubjectFilter type(String type) { this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } @@ -75,12 +72,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(String type) { this.type = type; } - public SubjectFilter ids(@jakarta.annotation.Nullable List ids) { + public SubjectFilter ids(List ids) { this.ids = ids; return this; } @@ -93,13 +90,14 @@ public SubjectFilter addIdsItem(String idsItem) { return this; } - /** + /** * Get ids * @return ids - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getIds() { return ids; } @@ -107,23 +105,24 @@ public List getIds() { @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds(@jakarta.annotation.Nullable List ids) { + public void setIds(List ids) { this.ids = ids; } - public SubjectFilter relation(@jakarta.annotation.Nullable String relation) { + public SubjectFilter relation(String relation) { this.relation = relation; return this; } - /** + /** * Get relation * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -131,7 +130,7 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } @@ -214,7 +213,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ids` to the URL query string @@ -222,13 +221,13 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getIds().size(); i++) { joiner.add(String.format("%sids%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i))))); + URLEncoder.encode(String.valueOf(getIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java b/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java index 5575a9d..0208f66 100644 --- a/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java +++ b/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * PermissionSubjectPermissionRequest is the request message for the SubjectPermission method in the Permission service. */ @@ -42,39 +41,36 @@ SubjectPermissionBody.JSON_PROPERTY_SUBJECT, SubjectPermissionBody.JSON_PROPERTY_CONTEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SubjectPermissionBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private PermissionSubjectPermissionRequestMetadata metadata; public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private Entity entity; public static final String JSON_PROPERTY_SUBJECT = "subject"; - @jakarta.annotation.Nullable private Subject subject; public static final String JSON_PROPERTY_CONTEXT = "context"; - @jakarta.annotation.Nullable private Context context; public SubjectPermissionBody() { } - public SubjectPermissionBody metadata(@jakarta.annotation.Nullable PermissionSubjectPermissionRequestMetadata metadata) { + public SubjectPermissionBody metadata(PermissionSubjectPermissionRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PermissionSubjectPermissionRequestMetadata getMetadata() { return metadata; } @@ -82,23 +78,24 @@ public PermissionSubjectPermissionRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable PermissionSubjectPermissionRequestMetadata metadata) { + public void setMetadata(PermissionSubjectPermissionRequestMetadata metadata) { this.metadata = metadata; } - public SubjectPermissionBody entity(@jakarta.annotation.Nullable Entity entity) { + public SubjectPermissionBody entity(Entity entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Entity getEntity() { return entity; } @@ -106,23 +103,24 @@ public Entity getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable Entity entity) { + public void setEntity(Entity entity) { this.entity = entity; } - public SubjectPermissionBody subject(@jakarta.annotation.Nullable Subject subject) { + public SubjectPermissionBody subject(Subject subject) { this.subject = subject; return this; } - /** + /** * Get subject * @return subject - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Subject getSubject() { return subject; } @@ -130,23 +128,24 @@ public Subject getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(@jakarta.annotation.Nullable Subject subject) { + public void setSubject(Subject subject) { this.subject = subject; } - public SubjectPermissionBody context(@jakarta.annotation.Nullable Context context) { + public SubjectPermissionBody context(Context context) { this.context = context; return this; } - /** + /** * Get context * @return context - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Context getContext() { return context; } @@ -154,7 +153,7 @@ public Context getContext() { @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContext(@jakarta.annotation.Nullable Context context) { + public void setContext(Context context) { this.context = context; } diff --git a/src/main/java/co/permify/sdk/model/Subjects.java b/src/main/java/co/permify/sdk/model/Subjects.java index 7e76c8e..0a105ff 100644 --- a/src/main/java/co/permify/sdk/model/Subjects.java +++ b/src/main/java/co/permify/sdk/model/Subjects.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,23 +31,21 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Subjects holds a repeated field of Subject type. */ @JsonPropertyOrder({ Subjects.JSON_PROPERTY_SUBJECTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Subjects { public static final String JSON_PROPERTY_SUBJECTS = "subjects"; - @jakarta.annotation.Nullable - private List subjects = new ArrayList<>(); + private List subjects; public Subjects() { } - public Subjects subjects(@jakarta.annotation.Nullable List subjects) { + public Subjects subjects(List subjects) { this.subjects = subjects; return this; } @@ -60,13 +58,14 @@ public Subjects addSubjectsItem(Subject subjectsItem) { return this; } - /** + /** * A list of subjects. * @return subjects - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSubjects() { return subjects; } @@ -74,7 +73,7 @@ public List getSubjects() { @JsonProperty(JSON_PROPERTY_SUBJECTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubjects(@jakarta.annotation.Nullable List subjects) { + public void setSubjects(List subjects) { this.subjects = subjects; } diff --git a/src/main/java/co/permify/sdk/model/Tenant.java b/src/main/java/co/permify/sdk/model/Tenant.java index d164b8b..9f7786b 100644 --- a/src/main/java/co/permify/sdk/model/Tenant.java +++ b/src/main/java/co/permify/sdk/model/Tenant.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Tenant represents a tenant with an id, a name, and a timestamp indicating when it was created. */ @@ -38,35 +37,33 @@ Tenant.JSON_PROPERTY_NAME, Tenant.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Tenant { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - @jakarta.annotation.Nullable private OffsetDateTime createdAt; public Tenant() { } - public Tenant id(@jakarta.annotation.Nullable String id) { + public Tenant id(String id) { this.id = id; return this; } - /** + /** * The ID of the tenant. * @return id - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { return id; } @@ -74,23 +71,24 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { + public void setId(String id) { this.id = id; } - public Tenant name(@jakarta.annotation.Nullable String name) { + public Tenant name(String name) { this.name = name; return this; } - /** + /** * The name of the tenant. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -98,23 +96,24 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public Tenant createdAt(@jakarta.annotation.Nullable OffsetDateTime createdAt) { + public Tenant createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** + /** * The time at which the tenant was created. * @return createdAt - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getCreatedAt() { return createdAt; } @@ -122,7 +121,7 @@ public OffsetDateTime getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(@jakarta.annotation.Nullable OffsetDateTime createdAt) { + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } @@ -205,17 +204,17 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `created_at` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screated_at%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); + joiner.add(String.format("%screated_at%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/TenantCreateRequest.java b/src/main/java/co/permify/sdk/model/TenantCreateRequest.java index 1e970da..195044b 100644 --- a/src/main/java/co/permify/sdk/model/TenantCreateRequest.java +++ b/src/main/java/co/permify/sdk/model/TenantCreateRequest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TenantCreateRequest is the message used for the request to create a tenant. */ @@ -36,31 +35,30 @@ TenantCreateRequest.JSON_PROPERTY_ID, TenantCreateRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TenantCreateRequest { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public TenantCreateRequest() { } - public TenantCreateRequest id(@jakarta.annotation.Nullable String id) { + public TenantCreateRequest id(String id) { this.id = id; return this; } - /** + /** * id is a unique identifier for the tenant. * @return id - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { return id; } @@ -68,23 +66,24 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { + public void setId(String id) { this.id = id; } - public TenantCreateRequest name(@jakarta.annotation.Nullable String name) { + public TenantCreateRequest name(String name) { this.name = name; return this; } - /** + /** * name is the name of the tenant. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -92,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/TenantCreateResponse.java b/src/main/java/co/permify/sdk/model/TenantCreateResponse.java index 09abbeb..8622246 100644 --- a/src/main/java/co/permify/sdk/model/TenantCreateResponse.java +++ b/src/main/java/co/permify/sdk/model/TenantCreateResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TenantCreateResponse is the message returned from the request to create a tenant. */ @JsonPropertyOrder({ TenantCreateResponse.JSON_PROPERTY_TENANT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TenantCreateResponse { public static final String JSON_PROPERTY_TENANT = "tenant"; - @jakarta.annotation.Nullable private Tenant tenant; public TenantCreateResponse() { } - public TenantCreateResponse tenant(@jakarta.annotation.Nullable Tenant tenant) { + public TenantCreateResponse tenant(Tenant tenant) { this.tenant = tenant; return this; } - /** + /** * Get tenant * @return tenant - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TENANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Tenant getTenant() { return tenant; } @@ -64,7 +63,7 @@ public Tenant getTenant() { @JsonProperty(JSON_PROPERTY_TENANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTenant(@jakarta.annotation.Nullable Tenant tenant) { + public void setTenant(Tenant tenant) { this.tenant = tenant; } diff --git a/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java b/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java index 07533a3..7e496c3 100644 --- a/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TenantDeleteResponse is the message returned from the request to delete a tenant. */ @JsonPropertyOrder({ TenantDeleteResponse.JSON_PROPERTY_TENANT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TenantDeleteResponse { public static final String JSON_PROPERTY_TENANT = "tenant"; - @jakarta.annotation.Nullable private Tenant tenant; public TenantDeleteResponse() { } - public TenantDeleteResponse tenant(@jakarta.annotation.Nullable Tenant tenant) { + public TenantDeleteResponse tenant(Tenant tenant) { this.tenant = tenant; return this; } - /** + /** * Get tenant * @return tenant - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TENANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Tenant getTenant() { return tenant; } @@ -64,7 +63,7 @@ public Tenant getTenant() { @JsonProperty(JSON_PROPERTY_TENANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTenant(@jakarta.annotation.Nullable Tenant tenant) { + public void setTenant(Tenant tenant) { this.tenant = tenant; } diff --git a/src/main/java/co/permify/sdk/model/TenantListRequest.java b/src/main/java/co/permify/sdk/model/TenantListRequest.java index f1d574d..3a5124b 100644 --- a/src/main/java/co/permify/sdk/model/TenantListRequest.java +++ b/src/main/java/co/permify/sdk/model/TenantListRequest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TenantListRequest is the message used for the request to list all tenants. */ @@ -36,31 +35,30 @@ TenantListRequest.JSON_PROPERTY_PAGE_SIZE, TenantListRequest.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TenantListRequest { public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; - @jakarta.annotation.Nullable private Long pageSize; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public TenantListRequest() { } - public TenantListRequest pageSize(@jakarta.annotation.Nullable Long pageSize) { + public TenantListRequest pageSize(Long pageSize) { this.pageSize = pageSize; return this; } - /** + /** * page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. * @return pageSize - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPageSize() { return pageSize; } @@ -68,23 +66,24 @@ public Long getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(@jakarta.annotation.Nullable Long pageSize) { + public void setPageSize(Long pageSize) { this.pageSize = pageSize; } - public TenantListRequest continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public TenantListRequest continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -92,7 +91,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `page_size` to the URL query string if (getPageSize() != null) { - joiner.add(String.format("%spage_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageSize())))); + joiner.add(String.format("%spage_size%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPageSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/TenantListResponse.java b/src/main/java/co/permify/sdk/model/TenantListResponse.java index b86b3c6..ca3c0d1 100644 --- a/src/main/java/co/permify/sdk/model/TenantListResponse.java +++ b/src/main/java/co/permify/sdk/model/TenantListResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TenantListResponse is the message returned from the request to list all tenants. */ @@ -39,20 +38,18 @@ TenantListResponse.JSON_PROPERTY_TENANTS, TenantListResponse.JSON_PROPERTY_CONTINUOUS_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TenantListResponse { public static final String JSON_PROPERTY_TENANTS = "tenants"; - @jakarta.annotation.Nullable - private List tenants = new ArrayList<>(); + private List tenants; public static final String JSON_PROPERTY_CONTINUOUS_TOKEN = "continuous_token"; - @jakarta.annotation.Nullable private String continuousToken; public TenantListResponse() { } - public TenantListResponse tenants(@jakarta.annotation.Nullable List tenants) { + public TenantListResponse tenants(List tenants) { this.tenants = tenants; return this; } @@ -65,13 +62,14 @@ public TenantListResponse addTenantsItem(Tenant tenantsItem) { return this; } - /** + /** * tenants is a list of tenants. * @return tenants - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TENANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTenants() { return tenants; } @@ -79,23 +77,24 @@ public List getTenants() { @JsonProperty(JSON_PROPERTY_TENANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTenants(@jakarta.annotation.Nullable List tenants) { + public void setTenants(List tenants) { this.tenants = tenants; } - public TenantListResponse continuousToken(@jakarta.annotation.Nullable String continuousToken) { + public TenantListResponse continuousToken(String continuousToken) { this.continuousToken = continuousToken; return this; } - /** + /** * continuous_token is a string that can be used to paginate and retrieve the next set of results. * @return continuousToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getContinuousToken() { return continuousToken; } @@ -103,7 +102,7 @@ public String getContinuousToken() { @JsonProperty(JSON_PROPERTY_CONTINUOUS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinuousToken(@jakarta.annotation.Nullable String continuousToken) { + public void setContinuousToken(String continuousToken) { this.continuousToken = continuousToken; } @@ -194,7 +193,7 @@ public String toUrlQueryString(String prefix) { // add `continuous_token` to the URL query string if (getContinuousToken() != null) { - joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContinuousToken())))); + joiner.add(String.format("%scontinuous_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContinuousToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/Tuple.java b/src/main/java/co/permify/sdk/model/Tuple.java index 2971657..5196824 100644 --- a/src/main/java/co/permify/sdk/model/Tuple.java +++ b/src/main/java/co/permify/sdk/model/Tuple.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Tuple is a structure that includes an entity, a relation, and a subject. */ @@ -39,35 +38,33 @@ Tuple.JSON_PROPERTY_RELATION, Tuple.JSON_PROPERTY_SUBJECT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Tuple { public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private Entity entity; public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public static final String JSON_PROPERTY_SUBJECT = "subject"; - @jakarta.annotation.Nullable private Subject subject; public Tuple() { } - public Tuple entity(@jakarta.annotation.Nullable Entity entity) { + public Tuple entity(Entity entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Entity getEntity() { return entity; } @@ -75,23 +72,24 @@ public Entity getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable Entity entity) { + public void setEntity(Entity entity) { this.entity = entity; } - public Tuple relation(@jakarta.annotation.Nullable String relation) { + public Tuple relation(String relation) { this.relation = relation; return this; } - /** + /** * Get relation * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -99,23 +97,24 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } - public Tuple subject(@jakarta.annotation.Nullable Subject subject) { + public Tuple subject(Subject subject) { this.subject = subject; return this; } - /** + /** * Get subject * @return subject - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Subject getSubject() { return subject; } @@ -123,7 +122,7 @@ public Subject getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(@jakarta.annotation.Nullable Subject subject) { + public void setSubject(Subject subject) { this.subject = subject; } @@ -211,7 +210,7 @@ public String toUrlQueryString(String prefix) { // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subject` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/TupleFilter.java b/src/main/java/co/permify/sdk/model/TupleFilter.java index e826876..2321752 100644 --- a/src/main/java/co/permify/sdk/model/TupleFilter.java +++ b/src/main/java/co/permify/sdk/model/TupleFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TupleFilter is used to filter tuples based on the entity, relation and the subject. */ @@ -39,35 +38,33 @@ TupleFilter.JSON_PROPERTY_RELATION, TupleFilter.JSON_PROPERTY_SUBJECT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TupleFilter { public static final String JSON_PROPERTY_ENTITY = "entity"; - @jakarta.annotation.Nullable private EntityFilter entity; public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public static final String JSON_PROPERTY_SUBJECT = "subject"; - @jakarta.annotation.Nullable private SubjectFilter subject; public TupleFilter() { } - public TupleFilter entity(@jakarta.annotation.Nullable EntityFilter entity) { + public TupleFilter entity(EntityFilter entity) { this.entity = entity; return this; } - /** + /** * Get entity * @return entity - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EntityFilter getEntity() { return entity; } @@ -75,23 +72,24 @@ public EntityFilter getEntity() { @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntity(@jakarta.annotation.Nullable EntityFilter entity) { + public void setEntity(EntityFilter entity) { this.entity = entity; } - public TupleFilter relation(@jakarta.annotation.Nullable String relation) { + public TupleFilter relation(String relation) { this.relation = relation; return this; } - /** + /** * Get relation * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -99,23 +97,24 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } - public TupleFilter subject(@jakarta.annotation.Nullable SubjectFilter subject) { + public TupleFilter subject(SubjectFilter subject) { this.subject = subject; return this; } - /** + /** * Get subject * @return subject - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SubjectFilter getSubject() { return subject; } @@ -123,7 +122,7 @@ public SubjectFilter getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(@jakarta.annotation.Nullable SubjectFilter subject) { + public void setSubject(SubjectFilter subject) { this.subject = subject; } @@ -211,7 +210,7 @@ public String toUrlQueryString(String prefix) { // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subject` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/TupleSet.java b/src/main/java/co/permify/sdk/model/TupleSet.java index 9ae5b47..480caf8 100644 --- a/src/main/java/co/permify/sdk/model/TupleSet.java +++ b/src/main/java/co/permify/sdk/model/TupleSet.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TupleSet represents a set of tuples associated with a specific relation. */ @JsonPropertyOrder({ TupleSet.JSON_PROPERTY_RELATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TupleSet { public static final String JSON_PROPERTY_RELATION = "relation"; - @jakarta.annotation.Nullable private String relation; public TupleSet() { } - public TupleSet relation(@jakarta.annotation.Nullable String relation) { + public TupleSet relation(String relation) { this.relation = relation; return this; } - /** + /** * Get relation * @return relation - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelation() { return relation; } @@ -63,7 +62,7 @@ public String getRelation() { @JsonProperty(JSON_PROPERTY_RELATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelation(@jakarta.annotation.Nullable String relation) { + public void setRelation(String relation) { this.relation = relation; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `relation` to the URL query string if (getRelation() != null) { - joiner.add(String.format("%srelation%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRelation())))); + joiner.add(String.format("%srelation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/TupleToUserSet.java b/src/main/java/co/permify/sdk/model/TupleToUserSet.java index cb4f49c..8543dd2 100644 --- a/src/main/java/co/permify/sdk/model/TupleToUserSet.java +++ b/src/main/java/co/permify/sdk/model/TupleToUserSet.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * TupleToUserSet defines a mapping from tuple sets to computed user sets. */ @@ -38,31 +37,30 @@ TupleToUserSet.JSON_PROPERTY_TUPLE_SET, TupleToUserSet.JSON_PROPERTY_COMPUTED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TupleToUserSet { public static final String JSON_PROPERTY_TUPLE_SET = "tupleSet"; - @jakarta.annotation.Nullable private TupleSet tupleSet; public static final String JSON_PROPERTY_COMPUTED = "computed"; - @jakarta.annotation.Nullable private ComputedUserSet computed; public TupleToUserSet() { } - public TupleToUserSet tupleSet(@jakarta.annotation.Nullable TupleSet tupleSet) { + public TupleToUserSet tupleSet(TupleSet tupleSet) { this.tupleSet = tupleSet; return this; } - /** + /** * Get tupleSet * @return tupleSet - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLE_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TupleSet getTupleSet() { return tupleSet; } @@ -70,23 +68,24 @@ public TupleSet getTupleSet() { @JsonProperty(JSON_PROPERTY_TUPLE_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTupleSet(@jakarta.annotation.Nullable TupleSet tupleSet) { + public void setTupleSet(TupleSet tupleSet) { this.tupleSet = tupleSet; } - public TupleToUserSet computed(@jakarta.annotation.Nullable ComputedUserSet computed) { + public TupleToUserSet computed(ComputedUserSet computed) { this.computed = computed; return this; } - /** + /** * Get computed * @return computed - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPUTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ComputedUserSet getComputed() { return computed; } @@ -94,7 +93,7 @@ public ComputedUserSet getComputed() { @JsonProperty(JSON_PROPERTY_COMPUTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComputed(@jakarta.annotation.Nullable ComputedUserSet computed) { + public void setComputed(ComputedUserSet computed) { this.computed = computed; } diff --git a/src/main/java/co/permify/sdk/model/V1Call.java b/src/main/java/co/permify/sdk/model/V1Call.java index d226fbd..08821a1 100644 --- a/src/main/java/co/permify/sdk/model/V1Call.java +++ b/src/main/java/co/permify/sdk/model/V1Call.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Call represents a call to a rule. It includes the name of the rule and the arguments passed to it. */ @@ -39,31 +38,30 @@ V1Call.JSON_PROPERTY_RULE_NAME, V1Call.JSON_PROPERTY_ARGUMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class V1Call { public static final String JSON_PROPERTY_RULE_NAME = "ruleName"; - @jakarta.annotation.Nullable private String ruleName; public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; - @jakarta.annotation.Nullable - private List arguments = new ArrayList<>(); + private List arguments; public V1Call() { } - public V1Call ruleName(@jakarta.annotation.Nullable String ruleName) { + public V1Call ruleName(String ruleName) { this.ruleName = ruleName; return this; } - /** + /** * Get ruleName * @return ruleName - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RULE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRuleName() { return ruleName; } @@ -71,12 +69,12 @@ public String getRuleName() { @JsonProperty(JSON_PROPERTY_RULE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRuleName(@jakarta.annotation.Nullable String ruleName) { + public void setRuleName(String ruleName) { this.ruleName = ruleName; } - public V1Call arguments(@jakarta.annotation.Nullable List arguments) { + public V1Call arguments(List arguments) { this.arguments = arguments; return this; } @@ -89,13 +87,14 @@ public V1Call addArgumentsItem(Argument argumentsItem) { return this; } - /** + /** * Get arguments * @return arguments - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArguments() { return arguments; } @@ -103,7 +102,7 @@ public List getArguments() { @JsonProperty(JSON_PROPERTY_ARGUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArguments(@jakarta.annotation.Nullable List arguments) { + public void setArguments(List arguments) { this.arguments = arguments; } @@ -184,7 +183,7 @@ public String toUrlQueryString(String prefix) { // add `ruleName` to the URL query string if (getRuleName() != null) { - joiner.add(String.format("%sruleName%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRuleName())))); + joiner.add(String.format("%sruleName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRuleName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `arguments` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/V1Expand.java b/src/main/java/co/permify/sdk/model/V1Expand.java new file mode 100644 index 0000000..928f139 --- /dev/null +++ b/src/main/java/co/permify/sdk/model/V1Expand.java @@ -0,0 +1,313 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.4.2 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import co.permify.sdk.model.Argument; +import co.permify.sdk.model.Entity; +import co.permify.sdk.model.ExpandLeaf; +import co.permify.sdk.model.ExpandTreeNode; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * Expand is used to define a hierarchical structure for permissions. It has an entity, permission, and arguments. The node can be either another hierarchical structure or a set of subjects. + */ +@JsonPropertyOrder({ + V1Expand.JSON_PROPERTY_ENTITY, + V1Expand.JSON_PROPERTY_PERMISSION, + V1Expand.JSON_PROPERTY_ARGUMENTS, + V1Expand.JSON_PROPERTY_EXPAND, + V1Expand.JSON_PROPERTY_LEAF +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class V1Expand { + public static final String JSON_PROPERTY_ENTITY = "entity"; + private Entity entity; + + public static final String JSON_PROPERTY_PERMISSION = "permission"; + private String permission; + + public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; + private List arguments; + + public static final String JSON_PROPERTY_EXPAND = "expand"; + private ExpandTreeNode expand; + + public static final String JSON_PROPERTY_LEAF = "leaf"; + private ExpandLeaf leaf; + + public V1Expand() { + } + + public V1Expand entity(Entity entity) { + this.entity = entity; + return this; + } + + /** + * Get entity + * @return entity + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Entity getEntity() { + return entity; + } + + + @JsonProperty(JSON_PROPERTY_ENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntity(Entity entity) { + this.entity = entity; + } + + + public V1Expand permission(String permission) { + this.permission = permission; + return this; + } + + /** + * permission is the permission applied to the entity. + * @return permission + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PERMISSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPermission() { + return permission; + } + + + @JsonProperty(JSON_PROPERTY_PERMISSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPermission(String permission) { + this.permission = permission; + } + + + public V1Expand arguments(List arguments) { + this.arguments = arguments; + return this; + } + + public V1Expand addArgumentsItem(Argument argumentsItem) { + if (this.arguments == null) { + this.arguments = new ArrayList<>(); + } + this.arguments.add(argumentsItem); + return this; + } + + /** + * arguments are the additional information or context used to evaluate permissions. + * @return arguments + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ARGUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getArguments() { + return arguments; + } + + + @JsonProperty(JSON_PROPERTY_ARGUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setArguments(List arguments) { + this.arguments = arguments; + } + + + public V1Expand expand(ExpandTreeNode expand) { + this.expand = expand; + return this; + } + + /** + * Get expand + * @return expand + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXPAND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ExpandTreeNode getExpand() { + return expand; + } + + + @JsonProperty(JSON_PROPERTY_EXPAND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExpand(ExpandTreeNode expand) { + this.expand = expand; + } + + + public V1Expand leaf(ExpandLeaf leaf) { + this.leaf = leaf; + return this; + } + + /** + * Get leaf + * @return leaf + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LEAF) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ExpandLeaf getLeaf() { + return leaf; + } + + + @JsonProperty(JSON_PROPERTY_LEAF) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLeaf(ExpandLeaf leaf) { + this.leaf = leaf; + } + + + /** + * Return true if this v1.Expand object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1Expand v1Expand = (V1Expand) o; + return Objects.equals(this.entity, v1Expand.entity) && + Objects.equals(this.permission, v1Expand.permission) && + Objects.equals(this.arguments, v1Expand.arguments) && + Objects.equals(this.expand, v1Expand.expand) && + Objects.equals(this.leaf, v1Expand.leaf); + } + + @Override + public int hashCode() { + return Objects.hash(entity, permission, arguments, expand, leaf); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1Expand {\n"); + sb.append(" entity: ").append(toIndentedString(entity)).append("\n"); + sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); + sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n"); + sb.append(" expand: ").append(toIndentedString(expand)).append("\n"); + sb.append(" leaf: ").append(toIndentedString(leaf)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `entity` to the URL query string + if (getEntity() != null) { + joiner.add(getEntity().toUrlQueryString(prefix + "entity" + suffix)); + } + + // add `permission` to the URL query string + if (getPermission() != null) { + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `arguments` to the URL query string + if (getArguments() != null) { + for (int i = 0; i < getArguments().size(); i++) { + if (getArguments().get(i) != null) { + joiner.add(getArguments().get(i).toUrlQueryString(String.format("%sarguments%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + // add `expand` to the URL query string + if (getExpand() != null) { + joiner.add(getExpand().toUrlQueryString(prefix + "expand" + suffix)); + } + + // add `leaf` to the URL query string + if (getLeaf() != null) { + joiner.add(getLeaf().toUrlQueryString(prefix + "leaf" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/V1Operation.java b/src/main/java/co/permify/sdk/model/V1Operation.java index 2f0fbad..79ae8b5 100644 --- a/src/main/java/co/permify/sdk/model/V1Operation.java +++ b/src/main/java/co/permify/sdk/model/V1Operation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Operation is a message representing a series of operations that can be performed. It includes fields for writing and deleting relationships and attributes. */ @@ -40,28 +39,24 @@ V1Operation.JSON_PROPERTY_ATTRIBUTES_WRITE, V1Operation.JSON_PROPERTY_ATTRIBUTES_DELETE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class V1Operation { public static final String JSON_PROPERTY_RELATIONSHIPS_WRITE = "relationships_write"; - @jakarta.annotation.Nullable - private List relationshipsWrite = new ArrayList<>(); + private List relationshipsWrite; public static final String JSON_PROPERTY_RELATIONSHIPS_DELETE = "relationships_delete"; - @jakarta.annotation.Nullable - private List relationshipsDelete = new ArrayList<>(); + private List relationshipsDelete; public static final String JSON_PROPERTY_ATTRIBUTES_WRITE = "attributes_write"; - @jakarta.annotation.Nullable - private List attributesWrite = new ArrayList<>(); + private List attributesWrite; public static final String JSON_PROPERTY_ATTRIBUTES_DELETE = "attributes_delete"; - @jakarta.annotation.Nullable - private List attributesDelete = new ArrayList<>(); + private List attributesDelete; public V1Operation() { } - public V1Operation relationshipsWrite(@jakarta.annotation.Nullable List relationshipsWrite) { + public V1Operation relationshipsWrite(List relationshipsWrite) { this.relationshipsWrite = relationshipsWrite; return this; } @@ -74,13 +69,14 @@ public V1Operation addRelationshipsWriteItem(String relationshipsWriteItem) { return this; } - /** + /** * 'relationships_write' is a repeated string field for storing relationship keys that are to be written or created. * @return relationshipsWrite - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS_WRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getRelationshipsWrite() { return relationshipsWrite; } @@ -88,12 +84,12 @@ public List getRelationshipsWrite() { @JsonProperty(JSON_PROPERTY_RELATIONSHIPS_WRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelationshipsWrite(@jakarta.annotation.Nullable List relationshipsWrite) { + public void setRelationshipsWrite(List relationshipsWrite) { this.relationshipsWrite = relationshipsWrite; } - public V1Operation relationshipsDelete(@jakarta.annotation.Nullable List relationshipsDelete) { + public V1Operation relationshipsDelete(List relationshipsDelete) { this.relationshipsDelete = relationshipsDelete; return this; } @@ -106,13 +102,14 @@ public V1Operation addRelationshipsDeleteItem(String relationshipsDeleteItem) { return this; } - /** + /** * 'relationships_delete' is a repeated string field for storing relationship keys that are to be deleted or removed. * @return relationshipsDelete - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS_DELETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getRelationshipsDelete() { return relationshipsDelete; } @@ -120,12 +117,12 @@ public List getRelationshipsDelete() { @JsonProperty(JSON_PROPERTY_RELATIONSHIPS_DELETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelationshipsDelete(@jakarta.annotation.Nullable List relationshipsDelete) { + public void setRelationshipsDelete(List relationshipsDelete) { this.relationshipsDelete = relationshipsDelete; } - public V1Operation attributesWrite(@jakarta.annotation.Nullable List attributesWrite) { + public V1Operation attributesWrite(List attributesWrite) { this.attributesWrite = attributesWrite; return this; } @@ -138,13 +135,14 @@ public V1Operation addAttributesWriteItem(String attributesWriteItem) { return this; } - /** + /** * 'attributes_write' is a repeated string field for storing attribute keys that are to be written or created. * @return attributesWrite - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES_WRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAttributesWrite() { return attributesWrite; } @@ -152,12 +150,12 @@ public List getAttributesWrite() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES_WRITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributesWrite(@jakarta.annotation.Nullable List attributesWrite) { + public void setAttributesWrite(List attributesWrite) { this.attributesWrite = attributesWrite; } - public V1Operation attributesDelete(@jakarta.annotation.Nullable List attributesDelete) { + public V1Operation attributesDelete(List attributesDelete) { this.attributesDelete = attributesDelete; return this; } @@ -170,13 +168,14 @@ public V1Operation addAttributesDeleteItem(String attributesDeleteItem) { return this; } - /** + /** * 'attributes_delete' is a repeated string field for storing attribute keys that are to be deleted or removed. * @return attributesDelete - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES_DELETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAttributesDelete() { return attributesDelete; } @@ -184,7 +183,7 @@ public List getAttributesDelete() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES_DELETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributesDelete(@jakarta.annotation.Nullable List attributesDelete) { + public void setAttributesDelete(List attributesDelete) { this.attributesDelete = attributesDelete; } @@ -272,7 +271,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getRelationshipsWrite().size(); i++) { joiner.add(String.format("%srelationships_write%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getRelationshipsWrite().get(i))))); + URLEncoder.encode(String.valueOf(getRelationshipsWrite().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -281,7 +280,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getRelationshipsDelete().size(); i++) { joiner.add(String.format("%srelationships_delete%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getRelationshipsDelete().get(i))))); + URLEncoder.encode(String.valueOf(getRelationshipsDelete().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -290,7 +289,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAttributesWrite().size(); i++) { joiner.add(String.format("%sattributes_write%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getAttributesWrite().get(i))))); + URLEncoder.encode(String.valueOf(getAttributesWrite().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -299,7 +298,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAttributesDelete().size(); i++) { joiner.add(String.format("%sattributes_delete%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getAttributesDelete().get(i))))); + URLEncoder.encode(String.valueOf(getAttributesDelete().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/V1alpha1Reference.java b/src/main/java/co/permify/sdk/model/V1alpha1Reference.java index f9c2df5..b12b19f 100644 --- a/src/main/java/co/permify/sdk/model/V1alpha1Reference.java +++ b/src/main/java/co/permify/sdk/model/V1alpha1Reference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Describes a resolved reference to a declaration. */ @@ -40,35 +39,33 @@ V1alpha1Reference.JSON_PROPERTY_OVERLOAD_ID, V1alpha1Reference.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class V1alpha1Reference { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_OVERLOAD_ID = "overloadId"; - @jakarta.annotation.Nullable - private List overloadId = new ArrayList<>(); + private List overloadId; public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nullable private Constant value; public V1alpha1Reference() { } - public V1alpha1Reference name(@jakarta.annotation.Nullable String name) { + public V1alpha1Reference name(String name) { this.name = name; return this; } - /** + /** * The fully qualified name of the declaration. * @return name - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } @@ -76,12 +73,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { + public void setName(String name) { this.name = name; } - public V1alpha1Reference overloadId(@jakarta.annotation.Nullable List overloadId) { + public V1alpha1Reference overloadId(List overloadId) { this.overloadId = overloadId; return this; } @@ -94,13 +91,14 @@ public V1alpha1Reference addOverloadIdItem(String overloadIdItem) { return this; } - /** + /** * For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * @return overloadId - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OVERLOAD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getOverloadId() { return overloadId; } @@ -108,23 +106,24 @@ public List getOverloadId() { @JsonProperty(JSON_PROPERTY_OVERLOAD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOverloadId(@jakarta.annotation.Nullable List overloadId) { + public void setOverloadId(List overloadId) { this.overloadId = overloadId; } - public V1alpha1Reference value(@jakarta.annotation.Nullable Constant value) { + public V1alpha1Reference value(Constant value) { this.value = value; return this; } - /** + /** * Get value * @return value - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Constant getValue() { return value; } @@ -132,7 +131,7 @@ public Constant getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(@jakarta.annotation.Nullable Constant value) { + public void setValue(Constant value) { this.value = value; } @@ -215,7 +214,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `overloadId` to the URL query string @@ -223,7 +222,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getOverloadId().size(); i++) { joiner.add(String.format("%soverloadId%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getOverloadId().get(i))))); + URLEncoder.encode(String.valueOf(getOverloadId().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/V1alpha1Type.java b/src/main/java/co/permify/sdk/model/V1alpha1Type.java index 13d1911..6cf89bd 100644 --- a/src/main/java/co/permify/sdk/model/V1alpha1Type.java +++ b/src/main/java/co/permify/sdk/model/V1alpha1Type.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Represents a CEL type. */ @@ -53,75 +52,63 @@ V1alpha1Type.JSON_PROPERTY_ERROR, V1alpha1Type.JSON_PROPERTY_ABSTRACT_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class V1alpha1Type { public static final String JSON_PROPERTY_DYN = "dyn"; - @jakarta.annotation.Nullable private Object dyn; public static final String JSON_PROPERTY_NULL = "null"; - @jakarta.annotation.Nullable private String _null; public static final String JSON_PROPERTY_PRIMITIVE = "primitive"; - @jakarta.annotation.Nullable - private PrimitiveType primitive = PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED; + private PrimitiveType primitive; public static final String JSON_PROPERTY_WRAPPER = "wrapper"; - @jakarta.annotation.Nullable - private PrimitiveType wrapper = PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED; + private PrimitiveType wrapper; public static final String JSON_PROPERTY_WELL_KNOWN = "wellKnown"; - @jakarta.annotation.Nullable - private WellKnownType wellKnown = WellKnownType.WELL_KNOWN_TYPE_UNSPECIFIED; + private WellKnownType wellKnown; public static final String JSON_PROPERTY_LIST_TYPE = "listType"; - @jakarta.annotation.Nullable private ListType listType; public static final String JSON_PROPERTY_MAP_TYPE = "mapType"; - @jakarta.annotation.Nullable private MapType mapType; public static final String JSON_PROPERTY_FUNCTION = "function"; - @jakarta.annotation.Nullable private FunctionType function; public static final String JSON_PROPERTY_MESSAGE_TYPE = "messageType"; - @jakarta.annotation.Nullable private String messageType; public static final String JSON_PROPERTY_TYPE_PARAM = "typeParam"; - @jakarta.annotation.Nullable private String typeParam; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private V1alpha1Type type; public static final String JSON_PROPERTY_ERROR = "error"; - @jakarta.annotation.Nullable private Object error; public static final String JSON_PROPERTY_ABSTRACT_TYPE = "abstractType"; - @jakarta.annotation.Nullable private AbstractType abstractType; public V1alpha1Type() { } - public V1alpha1Type dyn(@jakarta.annotation.Nullable Object dyn) { + public V1alpha1Type dyn(Object dyn) { this.dyn = dyn; return this; } - /** + /** * Dynamic type. * @return dyn - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DYN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getDyn() { return dyn; } @@ -129,23 +116,24 @@ public Object getDyn() { @JsonProperty(JSON_PROPERTY_DYN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDyn(@jakarta.annotation.Nullable Object dyn) { + public void setDyn(Object dyn) { this.dyn = dyn; } - public V1alpha1Type _null(@jakarta.annotation.Nullable String _null) { + public V1alpha1Type _null(String _null) { this._null = _null; return this; } - /** + /** * Null value. * @return _null - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NULL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNull() { return _null; } @@ -153,23 +141,24 @@ public String getNull() { @JsonProperty(JSON_PROPERTY_NULL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNull(@jakarta.annotation.Nullable String _null) { + public void setNull(String _null) { this._null = _null; } - public V1alpha1Type primitive(@jakarta.annotation.Nullable PrimitiveType primitive) { + public V1alpha1Type primitive(PrimitiveType primitive) { this.primitive = primitive; return this; } - /** + /** * Get primitive * @return primitive - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMITIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PrimitiveType getPrimitive() { return primitive; } @@ -177,23 +166,24 @@ public PrimitiveType getPrimitive() { @JsonProperty(JSON_PROPERTY_PRIMITIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimitive(@jakarta.annotation.Nullable PrimitiveType primitive) { + public void setPrimitive(PrimitiveType primitive) { this.primitive = primitive; } - public V1alpha1Type wrapper(@jakarta.annotation.Nullable PrimitiveType wrapper) { + public V1alpha1Type wrapper(PrimitiveType wrapper) { this.wrapper = wrapper; return this; } - /** + /** * Get wrapper * @return wrapper - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRAPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PrimitiveType getWrapper() { return wrapper; } @@ -201,23 +191,24 @@ public PrimitiveType getWrapper() { @JsonProperty(JSON_PROPERTY_WRAPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrapper(@jakarta.annotation.Nullable PrimitiveType wrapper) { + public void setWrapper(PrimitiveType wrapper) { this.wrapper = wrapper; } - public V1alpha1Type wellKnown(@jakarta.annotation.Nullable WellKnownType wellKnown) { + public V1alpha1Type wellKnown(WellKnownType wellKnown) { this.wellKnown = wellKnown; return this; } - /** + /** * Get wellKnown * @return wellKnown - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WELL_KNOWN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WellKnownType getWellKnown() { return wellKnown; } @@ -225,23 +216,24 @@ public WellKnownType getWellKnown() { @JsonProperty(JSON_PROPERTY_WELL_KNOWN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWellKnown(@jakarta.annotation.Nullable WellKnownType wellKnown) { + public void setWellKnown(WellKnownType wellKnown) { this.wellKnown = wellKnown; } - public V1alpha1Type listType(@jakarta.annotation.Nullable ListType listType) { + public V1alpha1Type listType(ListType listType) { this.listType = listType; return this; } - /** + /** * Get listType * @return listType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ListType getListType() { return listType; } @@ -249,23 +241,24 @@ public ListType getListType() { @JsonProperty(JSON_PROPERTY_LIST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setListType(@jakarta.annotation.Nullable ListType listType) { + public void setListType(ListType listType) { this.listType = listType; } - public V1alpha1Type mapType(@jakarta.annotation.Nullable MapType mapType) { + public V1alpha1Type mapType(MapType mapType) { this.mapType = mapType; return this; } - /** + /** * Get mapType * @return mapType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public MapType getMapType() { return mapType; } @@ -273,23 +266,24 @@ public MapType getMapType() { @JsonProperty(JSON_PROPERTY_MAP_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapType(@jakarta.annotation.Nullable MapType mapType) { + public void setMapType(MapType mapType) { this.mapType = mapType; } - public V1alpha1Type function(@jakarta.annotation.Nullable FunctionType function) { + public V1alpha1Type function(FunctionType function) { this.function = function; return this; } - /** + /** * Get function * @return function - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FUNCTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunctionType getFunction() { return function; } @@ -297,23 +291,24 @@ public FunctionType getFunction() { @JsonProperty(JSON_PROPERTY_FUNCTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFunction(@jakarta.annotation.Nullable FunctionType function) { + public void setFunction(FunctionType function) { this.function = function; } - public V1alpha1Type messageType(@jakarta.annotation.Nullable String messageType) { + public V1alpha1Type messageType(String messageType) { this.messageType = messageType; return this; } - /** + /** * Protocol buffer message type. The `message_type` string specifies the qualified message type name. For example, `google.plus.Profile`. * @return messageType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessageType() { return messageType; } @@ -321,23 +316,24 @@ public String getMessageType() { @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessageType(@jakarta.annotation.Nullable String messageType) { + public void setMessageType(String messageType) { this.messageType = messageType; } - public V1alpha1Type typeParam(@jakarta.annotation.Nullable String typeParam) { + public V1alpha1Type typeParam(String typeParam) { this.typeParam = typeParam; return this; } - /** + /** * Type param type. The `type_param` string specifies the type parameter name, e.g. `list<E>` would be a `list_type` whose element type was a `type_param` type named `E`. * @return typeParam - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE_PARAM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTypeParam() { return typeParam; } @@ -345,23 +341,24 @@ public String getTypeParam() { @JsonProperty(JSON_PROPERTY_TYPE_PARAM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTypeParam(@jakarta.annotation.Nullable String typeParam) { + public void setTypeParam(String typeParam) { this.typeParam = typeParam; } - public V1alpha1Type type(@jakarta.annotation.Nullable V1alpha1Type type) { + public V1alpha1Type type(V1alpha1Type type) { this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public V1alpha1Type getType() { return type; } @@ -369,23 +366,24 @@ public V1alpha1Type getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable V1alpha1Type type) { + public void setType(V1alpha1Type type) { this.type = type; } - public V1alpha1Type error(@jakarta.annotation.Nullable Object error) { + public V1alpha1Type error(Object error) { this.error = error; return this; } - /** + /** * Error type. During type-checking if an expression is an error, its type is propagated as the `ERROR` type. This permits the type-checker to discover other errors present in the expression. * @return error - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getError() { return error; } @@ -393,23 +391,24 @@ public Object getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(@jakarta.annotation.Nullable Object error) { + public void setError(Object error) { this.error = error; } - public V1alpha1Type abstractType(@jakarta.annotation.Nullable AbstractType abstractType) { + public V1alpha1Type abstractType(AbstractType abstractType) { this.abstractType = abstractType; return this; } - /** + /** * Get abstractType * @return abstractType - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ABSTRACT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AbstractType getAbstractType() { return abstractType; } @@ -417,7 +416,7 @@ public AbstractType getAbstractType() { @JsonProperty(JSON_PROPERTY_ABSTRACT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAbstractType(@jakarta.annotation.Nullable AbstractType abstractType) { + public void setAbstractType(AbstractType abstractType) { this.abstractType = abstractType; } @@ -520,27 +519,27 @@ public String toUrlQueryString(String prefix) { // add `dyn` to the URL query string if (getDyn() != null) { - joiner.add(String.format("%sdyn%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDyn())))); + joiner.add(String.format("%sdyn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDyn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `null` to the URL query string if (getNull() != null) { - joiner.add(String.format("%snull%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getNull())))); + joiner.add(String.format("%snull%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNull()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `primitive` to the URL query string if (getPrimitive() != null) { - joiner.add(String.format("%sprimitive%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPrimitive())))); + joiner.add(String.format("%sprimitive%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPrimitive()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `wrapper` to the URL query string if (getWrapper() != null) { - joiner.add(String.format("%swrapper%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getWrapper())))); + joiner.add(String.format("%swrapper%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWrapper()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `wellKnown` to the URL query string if (getWellKnown() != null) { - joiner.add(String.format("%swellKnown%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getWellKnown())))); + joiner.add(String.format("%swellKnown%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWellKnown()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `listType` to the URL query string @@ -560,12 +559,12 @@ public String toUrlQueryString(String prefix) { // add `messageType` to the URL query string if (getMessageType() != null) { - joiner.add(String.format("%smessageType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMessageType())))); + joiner.add(String.format("%smessageType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMessageType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `typeParam` to the URL query string if (getTypeParam() != null) { - joiner.add(String.format("%stypeParam%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTypeParam())))); + joiner.add(String.format("%stypeParam%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTypeParam()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string @@ -575,7 +574,7 @@ public String toUrlQueryString(String prefix) { // add `error` to the URL query string if (getError() != null) { - joiner.add(String.format("%serror%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getError())))); + joiner.add(String.format("%serror%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getError()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `abstractType` to the URL query string diff --git a/src/main/java/co/permify/sdk/model/Values.java b/src/main/java/co/permify/sdk/model/Values.java index 1c5d771..212ba90 100644 --- a/src/main/java/co/permify/sdk/model/Values.java +++ b/src/main/java/co/permify/sdk/model/Values.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,23 +31,21 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Values */ @JsonPropertyOrder({ Values.JSON_PROPERTY_VALUES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Values { public static final String JSON_PROPERTY_VALUES = "values"; - @jakarta.annotation.Nullable private Map values = new HashMap<>(); public Values() { } - public Values values(@jakarta.annotation.Nullable Map values) { + public Values values(Map values) { this.values = values; return this; } @@ -60,13 +58,14 @@ public Values putValuesItem(String key, Any valuesItem) { return this; } - /** + /** * Get values * @return values - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getValues() { return values; } @@ -74,7 +73,7 @@ public Map getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(@jakarta.annotation.Nullable Map values) { + public void setValues(Map values) { this.values = values; } @@ -156,7 +155,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getValues().keySet()) { joiner.add(String.format("%svalues%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getValues().get(_key), ApiClient.urlEncode(ApiClient.valueToString(getValues().get(_key))))); + getValues().get(_key), URLEncoder.encode(String.valueOf(getValues().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/co/permify/sdk/model/WatchBody.java b/src/main/java/co/permify/sdk/model/WatchBody.java index 8927e8a..1e29f8d 100644 --- a/src/main/java/co/permify/sdk/model/WatchBody.java +++ b/src/main/java/co/permify/sdk/model/WatchBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,34 +28,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * WatchRequest is the request message for the Watch RPC. It contains the details needed to establish a watch stream. */ @JsonPropertyOrder({ WatchBody.JSON_PROPERTY_SNAP_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class WatchBody { public static final String JSON_PROPERTY_SNAP_TOKEN = "snap_token"; - @jakarta.annotation.Nullable private String snapToken; public WatchBody() { } - public WatchBody snapToken(@jakarta.annotation.Nullable String snapToken) { + public WatchBody snapToken(String snapToken) { this.snapToken = snapToken; return this; } - /** + /** * The snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens). * @return snapToken - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSnapToken() { return snapToken; } @@ -63,7 +62,7 @@ public String getSnapToken() { @JsonProperty(JSON_PROPERTY_SNAP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSnapToken(@jakarta.annotation.Nullable String snapToken) { + public void setSnapToken(String snapToken) { this.snapToken = snapToken; } @@ -142,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `snap_token` to the URL query string if (getSnapToken() != null) { - joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSnapToken())))); + joiner.add(String.format("%ssnap_token%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSnapToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/co/permify/sdk/model/WatchResponse.java b/src/main/java/co/permify/sdk/model/WatchResponse.java index 1cfd87a..498ad7f 100644 --- a/src/main/java/co/permify/sdk/model/WatchResponse.java +++ b/src/main/java/co/permify/sdk/model/WatchResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,34 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * WatchResponse is the response message for the Watch RPC. It contains the changes in the data that are being watched. */ @JsonPropertyOrder({ WatchResponse.JSON_PROPERTY_CHANGES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class WatchResponse { public static final String JSON_PROPERTY_CHANGES = "changes"; - @jakarta.annotation.Nullable private DataChanges changes; public WatchResponse() { } - public WatchResponse changes(@jakarta.annotation.Nullable DataChanges changes) { + public WatchResponse changes(DataChanges changes) { this.changes = changes; return this; } - /** + /** * Get changes * @return changes - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataChanges getChanges() { return changes; } @@ -64,7 +63,7 @@ public DataChanges getChanges() { @JsonProperty(JSON_PROPERTY_CHANGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChanges(@jakarta.annotation.Nullable DataChanges changes) { + public void setChanges(DataChanges changes) { this.changes = changes; } diff --git a/src/main/java/co/permify/sdk/model/WellKnownType.java b/src/main/java/co/permify/sdk/model/WellKnownType.java index cd11aa4..7ed6204 100644 --- a/src/main/java/co/permify/sdk/model/WellKnownType.java +++ b/src/main/java/co/permify/sdk/model/WellKnownType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,12 +26,10 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Well-known protobuf types treated with first-class support in CEL. - WELL_KNOWN_TYPE_UNSPECIFIED: Unspecified type. - ANY: Well-known protobuf.Any type. Any types are a polymorphic message type. During type-checking they are treated like `DYN` types, but at runtime they are resolved to a specific message type specified at evaluation time. - TIMESTAMP: Well-known protobuf.Timestamp type, internally referenced as `timestamp`. - DURATION: Well-known protobuf.Duration type, internally referenced as `duration`. + * Well-known protobuf types treated with first-class support in CEL. - ANY: Well-known protobuf.Any type. Any types are a polymorphic message type. During type-checking they are treated like `DYN` types, but at runtime they are resolved to a specific message type specified at evaluation time. - TIMESTAMP: Well-known protobuf.Timestamp type, internally referenced as `timestamp`. - DURATION: Well-known protobuf.Duration type, internally referenced as `duration`. */ public enum WellKnownType { - WELL_KNOWN_TYPE_UNSPECIFIED("WELL_KNOWN_TYPE_UNSPECIFIED"), - ANY("ANY"), TIMESTAMP("TIMESTAMP"), diff --git a/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java b/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java index ecef04e..8fd458b 100644 --- a/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java +++ b/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import co.permify.sdk.client.ApiClient; /** * Represents a request to write relationship data. */ @@ -40,31 +39,30 @@ WriteRelationshipsBody.JSON_PROPERTY_METADATA, WriteRelationshipsBody.JSON_PROPERTY_TUPLES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class WriteRelationshipsBody { public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private RelationshipWriteRequestMetadata metadata; public static final String JSON_PROPERTY_TUPLES = "tuples"; - @jakarta.annotation.Nullable - private List tuples = new ArrayList<>(); + private List tuples; public WriteRelationshipsBody() { } - public WriteRelationshipsBody metadata(@jakarta.annotation.Nullable RelationshipWriteRequestMetadata metadata) { + public WriteRelationshipsBody metadata(RelationshipWriteRequestMetadata metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public RelationshipWriteRequestMetadata getMetadata() { return metadata; } @@ -72,12 +70,12 @@ public RelationshipWriteRequestMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable RelationshipWriteRequestMetadata metadata) { + public void setMetadata(RelationshipWriteRequestMetadata metadata) { this.metadata = metadata; } - public WriteRelationshipsBody tuples(@jakarta.annotation.Nullable List tuples) { + public WriteRelationshipsBody tuples(List tuples) { this.tuples = tuples; return this; } @@ -90,13 +88,14 @@ public WriteRelationshipsBody addTuplesItem(Tuple tuplesItem) { return this; } - /** + /** * List of tuples for the request. Must have between 1 and 100 items. * @return tuples - */ + **/ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTuples() { return tuples; } @@ -104,7 +103,7 @@ public List getTuples() { @JsonProperty(JSON_PROPERTY_TUPLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTuples(@jakarta.annotation.Nullable List tuples) { + public void setTuples(List tuples) { this.tuples = tuples; } diff --git a/src/test/java/co/permify/sdk/api/BundleApiTest.java b/src/test/java/co/permify/sdk/api/BundleApiTest.java index 8350d8e..11e5391 100644 --- a/src/test/java/co/permify/sdk/api/BundleApiTest.java +++ b/src/test/java/co/permify/sdk/api/BundleApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,8 +21,8 @@ import co.permify.sdk.model.BundleWriteBody; import co.permify.sdk.model.BundleWriteResponse; import co.permify.sdk.model.Status; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Test; +import org.junit.Ignore; import java.util.ArrayList; import java.util.HashMap; @@ -34,7 +34,7 @@ /** * API tests for BundleApi */ -@Disabled +@Ignore public class BundleApiTest { private final BundleApi api = new BundleApi(); diff --git a/src/test/java/co/permify/sdk/api/DataApiTest.java b/src/test/java/co/permify/sdk/api/DataApiTest.java index c186b8f..394d5f7 100644 --- a/src/test/java/co/permify/sdk/api/DataApiTest.java +++ b/src/test/java/co/permify/sdk/api/DataApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,8 +29,8 @@ import co.permify.sdk.model.RunBundleBody; import co.permify.sdk.model.Status; import co.permify.sdk.model.WriteRelationshipsBody; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Test; +import org.junit.Ignore; import java.util.ArrayList; import java.util.HashMap; @@ -42,7 +42,7 @@ /** * API tests for DataApi */ -@Disabled +@Ignore public class DataApiTest { private final DataApi api = new DataApi(); diff --git a/src/test/java/co/permify/sdk/api/HealthApiTest.java b/src/test/java/co/permify/sdk/api/HealthApiTest.java deleted file mode 100644 index 3ba2d43..0000000 --- a/src/test/java/co/permify/sdk/api/HealthApiTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package co.permify.sdk.api; - -import co.permify.sdk.client.ApiException; -import co.permify.sdk.model.HealthResponse; -import co.permify.sdk.model.Status; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - - -/** - * API tests for HealthApi - */ -@Disabled -public class HealthApiTest { - - private final HealthApi api = new HealthApi(); - - - /** - * health api - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void healthCheckTest() throws ApiException { - HealthResponse response = - api.healthCheck(); - - // TODO: test validations - } - -} diff --git a/src/test/java/co/permify/sdk/api/PermissionApiTest.java b/src/test/java/co/permify/sdk/api/PermissionApiTest.java index 6063851..668a7d7 100644 --- a/src/test/java/co/permify/sdk/api/PermissionApiTest.java +++ b/src/test/java/co/permify/sdk/api/PermissionApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,10 +14,10 @@ package co.permify.sdk.api; import co.permify.sdk.client.ApiException; +import co.permify.sdk.model.CheckBody; import co.permify.sdk.model.LookupEntityBody; import co.permify.sdk.model.LookupEntityStreamBody; import co.permify.sdk.model.LookupSubjectBody; -import co.permify.sdk.model.PermissionCheckBody; import co.permify.sdk.model.PermissionCheckResponse; import co.permify.sdk.model.PermissionExpandBody; import co.permify.sdk.model.PermissionExpandResponse; @@ -27,8 +27,8 @@ import co.permify.sdk.model.Status; import co.permify.sdk.model.StreamResultOfPermissionLookupEntityStreamResponse; import co.permify.sdk.model.SubjectPermissionBody; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Test; +import org.junit.Ignore; import java.util.ArrayList; import java.util.HashMap; @@ -40,7 +40,7 @@ /** * API tests for PermissionApi */ -@Disabled +@Ignore public class PermissionApiTest { private final PermissionApi api = new PermissionApi(); @@ -57,7 +57,7 @@ public class PermissionApiTest { @Test public void permissionsCheckTest() throws ApiException { String tenantId = null; - PermissionCheckBody body = null; + CheckBody body = null; PermissionCheckResponse response = api.permissionsCheck(tenantId, body); diff --git a/src/test/java/co/permify/sdk/api/SchemaApiTest.java b/src/test/java/co/permify/sdk/api/SchemaApiTest.java index 5e2224b..d42197e 100644 --- a/src/test/java/co/permify/sdk/api/SchemaApiTest.java +++ b/src/test/java/co/permify/sdk/api/SchemaApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,8 +23,8 @@ import co.permify.sdk.model.SchemaWriteBody; import co.permify.sdk.model.SchemaWriteResponse; import co.permify.sdk.model.Status; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Test; +import org.junit.Ignore; import java.util.ArrayList; import java.util.HashMap; @@ -36,7 +36,7 @@ /** * API tests for SchemaApi */ -@Disabled +@Ignore public class SchemaApiTest { private final SchemaApi api = new SchemaApi(); diff --git a/src/test/java/co/permify/sdk/api/TenancyApiTest.java b/src/test/java/co/permify/sdk/api/TenancyApiTest.java index d2d351c..bc12c9a 100644 --- a/src/test/java/co/permify/sdk/api/TenancyApiTest.java +++ b/src/test/java/co/permify/sdk/api/TenancyApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,8 +20,8 @@ import co.permify.sdk.model.TenantDeleteResponse; import co.permify.sdk.model.TenantListRequest; import co.permify.sdk.model.TenantListResponse; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Test; +import org.junit.Ignore; import java.util.ArrayList; import java.util.HashMap; @@ -33,7 +33,7 @@ /** * API tests for TenancyApi */ -@Disabled +@Ignore public class TenancyApiTest { private final TenancyApi api = new TenancyApi(); diff --git a/src/test/java/co/permify/sdk/api/WatchApiTest.java b/src/test/java/co/permify/sdk/api/WatchApiTest.java index fb58a48..cf1bef0 100644 --- a/src/test/java/co/permify/sdk/api/WatchApiTest.java +++ b/src/test/java/co/permify/sdk/api/WatchApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,8 +17,8 @@ import co.permify.sdk.model.Status; import co.permify.sdk.model.StreamResultOfWatchResponse; import co.permify.sdk.model.WatchBody; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Test; +import org.junit.Ignore; import java.util.ArrayList; import java.util.HashMap; @@ -30,7 +30,7 @@ /** * API tests for WatchApi */ -@Disabled +@Ignore public class WatchApiTest { private final WatchApi api = new WatchApi(); diff --git a/src/test/java/co/permify/sdk/model/AbstractTypeTest.java b/src/test/java/co/permify/sdk/model/AbstractTypeTest.java index 772171f..df9621c 100644 --- a/src/test/java/co/permify/sdk/model/AbstractTypeTest.java +++ b/src/test/java/co/permify/sdk/model/AbstractTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for AbstractType */ -class AbstractTypeTest { +public class AbstractTypeTest { private final AbstractType model = new AbstractType(); /** * Model tests for AbstractType */ @Test - void testAbstractType() { + public void testAbstractType() { // TODO: test AbstractType } @@ -44,7 +44,7 @@ void testAbstractType() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -52,7 +52,7 @@ void nameTest() { * Test the property 'parameterTypes' */ @Test - void parameterTypesTest() { + public void parameterTypesTest() { // TODO: test parameterTypes } diff --git a/src/test/java/co/permify/sdk/model/AnyTest.java b/src/test/java/co/permify/sdk/model/AnyTest.java index 2eff3d6..836f35a 100644 --- a/src/test/java/co/permify/sdk/model/AnyTest.java +++ b/src/test/java/co/permify/sdk/model/AnyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Any */ -class AnyTest { +public class AnyTest { private final Any model = new Any(); /** * Model tests for Any */ @Test - void testAny() { + public void testAny() { // TODO: test Any } @@ -43,7 +43,7 @@ void testAny() { * Test the property 'atType' */ @Test - void atTypeTest() { + public void atTypeTest() { // TODO: test atType } diff --git a/src/test/java/co/permify/sdk/model/ArgumentTest.java b/src/test/java/co/permify/sdk/model/ArgumentTest.java index fc21658..e3385b7 100644 --- a/src/test/java/co/permify/sdk/model/ArgumentTest.java +++ b/src/test/java/co/permify/sdk/model/ArgumentTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,28 +14,27 @@ package co.permify.sdk.model; import co.permify.sdk.model.ComputedAttribute; -import co.permify.sdk.model.ContextAttribute; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Argument */ -class ArgumentTest { +public class ArgumentTest { private final Argument model = new Argument(); /** * Model tests for Argument */ @Test - void testArgument() { + public void testArgument() { // TODO: test Argument } @@ -43,16 +42,8 @@ void testArgument() { * Test the property 'computedAttribute' */ @Test - void computedAttributeTest() { + public void computedAttributeTest() { // TODO: test computedAttribute } - /** - * Test the property 'contextAttribute' - */ - @Test - void contextAttributeTest() { - // TODO: test contextAttribute - } - } diff --git a/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java b/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java index 48b4c21..d389c80 100644 --- a/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for AttributeDefinition */ -class AttributeDefinitionTest { +public class AttributeDefinitionTest { private final AttributeDefinition model = new AttributeDefinition(); /** * Model tests for AttributeDefinition */ @Test - void testAttributeDefinition() { + public void testAttributeDefinition() { // TODO: test AttributeDefinition } @@ -42,7 +42,7 @@ void testAttributeDefinition() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -50,7 +50,7 @@ void nameTest() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } diff --git a/src/test/java/co/permify/sdk/model/AttributeFilterTest.java b/src/test/java/co/permify/sdk/model/AttributeFilterTest.java index bb83b5d..4b529f9 100644 --- a/src/test/java/co/permify/sdk/model/AttributeFilterTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for AttributeFilter */ -class AttributeFilterTest { +public class AttributeFilterTest { private final AttributeFilter model = new AttributeFilter(); /** * Model tests for AttributeFilter */ @Test - void testAttributeFilter() { + public void testAttributeFilter() { // TODO: test AttributeFilter } @@ -44,7 +44,7 @@ void testAttributeFilter() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -52,7 +52,7 @@ void entityTest() { * Test the property 'attributes' */ @Test - void attributesTest() { + public void attributesTest() { // TODO: test attributes } diff --git a/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java index 4222a72..63465a7 100644 --- a/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for AttributeReadRequestMetadata */ -class AttributeReadRequestMetadataTest { +public class AttributeReadRequestMetadataTest { private final AttributeReadRequestMetadata model = new AttributeReadRequestMetadata(); /** * Model tests for AttributeReadRequestMetadata */ @Test - void testAttributeReadRequestMetadata() { + public void testAttributeReadRequestMetadata() { // TODO: test AttributeReadRequestMetadata } @@ -41,7 +41,7 @@ void testAttributeReadRequestMetadata() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java b/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java index 9eb36e1..ebbbebe 100644 --- a/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for AttributeReadResponse */ -class AttributeReadResponseTest { +public class AttributeReadResponseTest { private final AttributeReadResponse model = new AttributeReadResponse(); /** * Model tests for AttributeReadResponse */ @Test - void testAttributeReadResponse() { + public void testAttributeReadResponse() { // TODO: test AttributeReadResponse } @@ -44,7 +44,7 @@ void testAttributeReadResponse() { * Test the property 'attributes' */ @Test - void attributesTest() { + public void attributesTest() { // TODO: test attributes } @@ -52,7 +52,7 @@ void attributesTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/AttributeTest.java b/src/test/java/co/permify/sdk/model/AttributeTest.java index 538cfb6..f223a46 100644 --- a/src/test/java/co/permify/sdk/model/AttributeTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Attribute */ -class AttributeTest { +public class AttributeTest { private final Attribute model = new Attribute(); /** * Model tests for Attribute */ @Test - void testAttribute() { + public void testAttribute() { // TODO: test Attribute } @@ -43,7 +43,7 @@ void testAttribute() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -51,7 +51,7 @@ void entityTest() { * Test the property 'attribute' */ @Test - void attributeTest() { + public void attributeTest() { // TODO: test attribute } @@ -59,7 +59,7 @@ void attributeTest() { * Test the property 'value' */ @Test - void valueTest() { + public void valueTest() { // TODO: test value } diff --git a/src/test/java/co/permify/sdk/model/AttributeTypeTest.java b/src/test/java/co/permify/sdk/model/AttributeTypeTest.java index 31053c3..d56c561 100644 --- a/src/test/java/co/permify/sdk/model/AttributeTypeTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for AttributeType */ -class AttributeTypeTest { +public class AttributeTypeTest { /** * Model tests for AttributeType */ @Test - void testAttributeType() { + public void testAttributeType() { // TODO: test AttributeType } diff --git a/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java b/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java index 03753a1..7e2aa3b 100644 --- a/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleDeleteBody */ -class BundleDeleteBodyTest { +public class BundleDeleteBodyTest { private final BundleDeleteBody model = new BundleDeleteBody(); /** * Model tests for BundleDeleteBody */ @Test - void testBundleDeleteBody() { + public void testBundleDeleteBody() { // TODO: test BundleDeleteBody } @@ -41,7 +41,7 @@ void testBundleDeleteBody() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } diff --git a/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java index 6612fa8..04dfd52 100644 --- a/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleDeleteResponse */ -class BundleDeleteResponseTest { +public class BundleDeleteResponseTest { private final BundleDeleteResponse model = new BundleDeleteResponse(); /** * Model tests for BundleDeleteResponse */ @Test - void testBundleDeleteResponse() { + public void testBundleDeleteResponse() { // TODO: test BundleDeleteResponse } @@ -41,7 +41,7 @@ void testBundleDeleteResponse() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } diff --git a/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java b/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java index 2617b21..5611ac3 100644 --- a/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java +++ b/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleReadBody */ -class BundleReadBodyTest { +public class BundleReadBodyTest { private final BundleReadBody model = new BundleReadBody(); /** * Model tests for BundleReadBody */ @Test - void testBundleReadBody() { + public void testBundleReadBody() { // TODO: test BundleReadBody } @@ -41,7 +41,7 @@ void testBundleReadBody() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } diff --git a/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java b/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java index 16395ce..a567a2c 100644 --- a/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleReadResponse */ -class BundleReadResponseTest { +public class BundleReadResponseTest { private final BundleReadResponse model = new BundleReadResponse(); /** * Model tests for BundleReadResponse */ @Test - void testBundleReadResponse() { + public void testBundleReadResponse() { // TODO: test BundleReadResponse } @@ -42,7 +42,7 @@ void testBundleReadResponse() { * Test the property 'bundle' */ @Test - void bundleTest() { + public void bundleTest() { // TODO: test bundle } diff --git a/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java b/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java index be0aa82..89c2eef 100644 --- a/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleRunResponse */ -class BundleRunResponseTest { +public class BundleRunResponseTest { private final BundleRunResponse model = new BundleRunResponse(); /** * Model tests for BundleRunResponse */ @Test - void testBundleRunResponse() { + public void testBundleRunResponse() { // TODO: test BundleRunResponse } @@ -41,7 +41,7 @@ void testBundleRunResponse() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java b/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java index 61ed335..58385f7 100644 --- a/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleWriteBody */ -class BundleWriteBodyTest { +public class BundleWriteBodyTest { private final BundleWriteBody model = new BundleWriteBody(); /** * Model tests for BundleWriteBody */ @Test - void testBundleWriteBody() { + public void testBundleWriteBody() { // TODO: test BundleWriteBody } @@ -44,7 +44,7 @@ void testBundleWriteBody() { * Test the property 'bundles' */ @Test - void bundlesTest() { + public void bundlesTest() { // TODO: test bundles } diff --git a/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java b/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java index 9b906b0..8072ba3 100644 --- a/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for BundleWriteResponse */ -class BundleWriteResponseTest { +public class BundleWriteResponseTest { private final BundleWriteResponse model = new BundleWriteResponse(); /** * Model tests for BundleWriteResponse */ @Test - void testBundleWriteResponse() { + public void testBundleWriteResponse() { // TODO: test BundleWriteResponse } @@ -43,7 +43,7 @@ void testBundleWriteResponse() { * Test the property 'names' */ @Test - void namesTest() { + public void namesTest() { // TODO: test names } diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckBodyTest.java b/src/test/java/co/permify/sdk/model/CheckBodyTest.java similarity index 72% rename from src/test/java/co/permify/sdk/model/PermissionCheckBodyTest.java rename to src/test/java/co/permify/sdk/model/CheckBodyTest.java index 65c2576..59579ad 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckBodyTest.java +++ b/src/test/java/co/permify/sdk/model/CheckBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,29 +26,29 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** - * Model tests for PermissionCheckBody + * Model tests for CheckBody */ -class PermissionCheckBodyTest { - private final PermissionCheckBody model = new PermissionCheckBody(); +public class CheckBodyTest { + private final CheckBody model = new CheckBody(); /** - * Model tests for PermissionCheckBody + * Model tests for CheckBody */ @Test - void testPermissionCheckBody() { - // TODO: test PermissionCheckBody + public void testCheckBody() { + // TODO: test CheckBody } /** * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -56,7 +56,7 @@ void metadataTest() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -64,7 +64,7 @@ void entityTest() { * Test the property 'permission' */ @Test - void permissionTest() { + public void permissionTest() { // TODO: test permission } @@ -72,7 +72,7 @@ void permissionTest() { * Test the property 'subject' */ @Test - void subjectTest() { + public void subjectTest() { // TODO: test subject } @@ -80,7 +80,7 @@ void subjectTest() { * Test the property 'context' */ @Test - void contextTest() { + public void contextTest() { // TODO: test context } @@ -88,7 +88,7 @@ void contextTest() { * Test the property 'arguments' */ @Test - void argumentsTest() { + public void argumentsTest() { // TODO: test arguments } diff --git a/src/test/java/co/permify/sdk/model/CheckResultTest.java b/src/test/java/co/permify/sdk/model/CheckResultTest.java index 2461680..8ac3a40 100644 --- a/src/test/java/co/permify/sdk/model/CheckResultTest.java +++ b/src/test/java/co/permify/sdk/model/CheckResultTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for CheckResult */ -class CheckResultTest { +public class CheckResultTest { /** * Model tests for CheckResult */ @Test - void testCheckResult() { + public void testCheckResult() { // TODO: test CheckResult } diff --git a/src/test/java/co/permify/sdk/model/CheckedExprTest.java b/src/test/java/co/permify/sdk/model/CheckedExprTest.java index 19e675b..3db37ec 100644 --- a/src/test/java/co/permify/sdk/model/CheckedExprTest.java +++ b/src/test/java/co/permify/sdk/model/CheckedExprTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import co.permify.sdk.model.SourceInfo; import co.permify.sdk.model.V1alpha1Reference; import co.permify.sdk.model.V1alpha1Type; @@ -24,21 +25,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for CheckedExpr */ -class CheckedExprTest { +public class CheckedExprTest { private final CheckedExpr model = new CheckedExpr(); /** * Model tests for CheckedExpr */ @Test - void testCheckedExpr() { + public void testCheckedExpr() { // TODO: test CheckedExpr } @@ -46,7 +47,7 @@ void testCheckedExpr() { * Test the property 'referenceMap' */ @Test - void referenceMapTest() { + public void referenceMapTest() { // TODO: test referenceMap } @@ -54,7 +55,7 @@ void referenceMapTest() { * Test the property 'typeMap' */ @Test - void typeMapTest() { + public void typeMapTest() { // TODO: test typeMap } @@ -62,7 +63,7 @@ void typeMapTest() { * Test the property 'sourceInfo' */ @Test - void sourceInfoTest() { + public void sourceInfoTest() { // TODO: test sourceInfo } @@ -70,7 +71,7 @@ void sourceInfoTest() { * Test the property 'exprVersion' */ @Test - void exprVersionTest() { + public void exprVersionTest() { // TODO: test exprVersion } @@ -78,7 +79,7 @@ void exprVersionTest() { * Test the property 'expr' */ @Test - void exprTest() { + public void exprTest() { // TODO: test expr } diff --git a/src/test/java/co/permify/sdk/model/ChildTest.java b/src/test/java/co/permify/sdk/model/ChildTest.java index 9d751ab..864beeb 100644 --- a/src/test/java/co/permify/sdk/model/ChildTest.java +++ b/src/test/java/co/permify/sdk/model/ChildTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Child */ -class ChildTest { +public class ChildTest { private final Child model = new Child(); /** * Model tests for Child */ @Test - void testChild() { + public void testChild() { // TODO: test Child } @@ -43,7 +43,7 @@ void testChild() { * Test the property 'leaf' */ @Test - void leafTest() { + public void leafTest() { // TODO: test leaf } @@ -51,7 +51,7 @@ void leafTest() { * Test the property 'rewrite' */ @Test - void rewriteTest() { + public void rewriteTest() { // TODO: test rewrite } diff --git a/src/test/java/co/permify/sdk/model/ComprehensionTest.java b/src/test/java/co/permify/sdk/model/ComprehensionTest.java index 76cdc3f..bcd7634 100644 --- a/src/test/java/co/permify/sdk/model/ComprehensionTest.java +++ b/src/test/java/co/permify/sdk/model/ComprehensionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,27 +13,28 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Comprehension */ -class ComprehensionTest { +public class ComprehensionTest { private final Comprehension model = new Comprehension(); /** * Model tests for Comprehension */ @Test - void testComprehension() { + public void testComprehension() { // TODO: test Comprehension } @@ -41,7 +42,7 @@ void testComprehension() { * Test the property 'iterVar' */ @Test - void iterVarTest() { + public void iterVarTest() { // TODO: test iterVar } @@ -49,7 +50,7 @@ void iterVarTest() { * Test the property 'iterRange' */ @Test - void iterRangeTest() { + public void iterRangeTest() { // TODO: test iterRange } @@ -57,7 +58,7 @@ void iterRangeTest() { * Test the property 'accuVar' */ @Test - void accuVarTest() { + public void accuVarTest() { // TODO: test accuVar } @@ -65,7 +66,7 @@ void accuVarTest() { * Test the property 'accuInit' */ @Test - void accuInitTest() { + public void accuInitTest() { // TODO: test accuInit } @@ -73,7 +74,7 @@ void accuInitTest() { * Test the property 'loopCondition' */ @Test - void loopConditionTest() { + public void loopConditionTest() { // TODO: test loopCondition } @@ -81,7 +82,7 @@ void loopConditionTest() { * Test the property 'loopStep' */ @Test - void loopStepTest() { + public void loopStepTest() { // TODO: test loopStep } @@ -89,7 +90,7 @@ void loopStepTest() { * Test the property 'result' */ @Test - void resultTest() { + public void resultTest() { // TODO: test result } diff --git a/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java b/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java index 9632ec2..815fd8f 100644 --- a/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java +++ b/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ComputedAttribute */ -class ComputedAttributeTest { +public class ComputedAttributeTest { private final ComputedAttribute model = new ComputedAttribute(); /** * Model tests for ComputedAttribute */ @Test - void testComputedAttribute() { + public void testComputedAttribute() { // TODO: test ComputedAttribute } @@ -41,7 +41,7 @@ void testComputedAttribute() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } diff --git a/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java b/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java index 062dc3e..f9a0d84 100644 --- a/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java +++ b/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ComputedUserSet */ -class ComputedUserSetTest { +public class ComputedUserSetTest { private final ComputedUserSet model = new ComputedUserSet(); /** * Model tests for ComputedUserSet */ @Test - void testComputedUserSet() { + public void testComputedUserSet() { // TODO: test ComputedUserSet } @@ -41,7 +41,7 @@ void testComputedUserSet() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } diff --git a/src/test/java/co/permify/sdk/model/ConstantTest.java b/src/test/java/co/permify/sdk/model/ConstantTest.java index c754144..a324cc3 100644 --- a/src/test/java/co/permify/sdk/model/ConstantTest.java +++ b/src/test/java/co/permify/sdk/model/ConstantTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Constant */ -class ConstantTest { +public class ConstantTest { private final Constant model = new Constant(); /** * Model tests for Constant */ @Test - void testConstant() { + public void testConstant() { // TODO: test Constant } @@ -42,7 +42,7 @@ void testConstant() { * Test the property 'nullValue' */ @Test - void nullValueTest() { + public void nullValueTest() { // TODO: test nullValue } @@ -50,7 +50,7 @@ void nullValueTest() { * Test the property 'boolValue' */ @Test - void boolValueTest() { + public void boolValueTest() { // TODO: test boolValue } @@ -58,7 +58,7 @@ void boolValueTest() { * Test the property 'int64Value' */ @Test - void int64ValueTest() { + public void int64ValueTest() { // TODO: test int64Value } @@ -66,7 +66,7 @@ void int64ValueTest() { * Test the property 'uint64Value' */ @Test - void uint64ValueTest() { + public void uint64ValueTest() { // TODO: test uint64Value } @@ -74,7 +74,7 @@ void uint64ValueTest() { * Test the property 'doubleValue' */ @Test - void doubleValueTest() { + public void doubleValueTest() { // TODO: test doubleValue } @@ -82,7 +82,7 @@ void doubleValueTest() { * Test the property 'stringValue' */ @Test - void stringValueTest() { + public void stringValueTest() { // TODO: test stringValue } @@ -90,7 +90,7 @@ void stringValueTest() { * Test the property 'bytesValue' */ @Test - void bytesValueTest() { + public void bytesValueTest() { // TODO: test bytesValue } @@ -98,7 +98,7 @@ void bytesValueTest() { * Test the property 'durationValue' */ @Test - void durationValueTest() { + public void durationValueTest() { // TODO: test durationValue } @@ -106,7 +106,7 @@ void durationValueTest() { * Test the property 'timestampValue' */ @Test - void timestampValueTest() { + public void timestampValueTest() { // TODO: test timestampValue } diff --git a/src/test/java/co/permify/sdk/model/ContextTest.java b/src/test/java/co/permify/sdk/model/ContextTest.java index fff98ee..228b2e9 100644 --- a/src/test/java/co/permify/sdk/model/ContextTest.java +++ b/src/test/java/co/permify/sdk/model/ContextTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Context */ -class ContextTest { +public class ContextTest { private final Context model = new Context(); /** * Model tests for Context */ @Test - void testContext() { + public void testContext() { // TODO: test Context } @@ -45,7 +45,7 @@ void testContext() { * Test the property 'tuples' */ @Test - void tuplesTest() { + public void tuplesTest() { // TODO: test tuples } @@ -53,7 +53,7 @@ void tuplesTest() { * Test the property 'attributes' */ @Test - void attributesTest() { + public void attributesTest() { // TODO: test attributes } @@ -61,7 +61,7 @@ void attributesTest() { * Test the property 'data' */ @Test - void dataTest() { + public void dataTest() { // TODO: test data } diff --git a/src/test/java/co/permify/sdk/model/CreateListTest.java b/src/test/java/co/permify/sdk/model/CreateListTest.java index af5b019..7460a8f 100644 --- a/src/test/java/co/permify/sdk/model/CreateListTest.java +++ b/src/test/java/co/permify/sdk/model/CreateListTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for CreateList */ -class CreateListTest { +public class CreateListTest { private final CreateList model = new CreateList(); /** * Model tests for CreateList */ @Test - void testCreateList() { + public void testCreateList() { // TODO: test CreateList } @@ -43,7 +44,7 @@ void testCreateList() { * Test the property 'elements' */ @Test - void elementsTest() { + public void elementsTest() { // TODO: test elements } @@ -51,7 +52,7 @@ void elementsTest() { * Test the property 'optionalIndices' */ @Test - void optionalIndicesTest() { + public void optionalIndicesTest() { // TODO: test optionalIndices } diff --git a/src/test/java/co/permify/sdk/model/CreateStructTest.java b/src/test/java/co/permify/sdk/model/CreateStructTest.java index a57fe45..8235bcf 100644 --- a/src/test/java/co/permify/sdk/model/CreateStructTest.java +++ b/src/test/java/co/permify/sdk/model/CreateStructTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for CreateStruct */ -class CreateStructTest { +public class CreateStructTest { private final CreateStruct model = new CreateStruct(); /** * Model tests for CreateStruct */ @Test - void testCreateStruct() { + public void testCreateStruct() { // TODO: test CreateStruct } @@ -44,7 +44,7 @@ void testCreateStruct() { * Test the property 'messageName' */ @Test - void messageNameTest() { + public void messageNameTest() { // TODO: test messageName } @@ -52,7 +52,7 @@ void messageNameTest() { * Test the property 'entries' */ @Test - void entriesTest() { + public void entriesTest() { // TODO: test entries } diff --git a/src/test/java/co/permify/sdk/model/DataBundleTest.java b/src/test/java/co/permify/sdk/model/DataBundleTest.java index 89085a5..594a15d 100644 --- a/src/test/java/co/permify/sdk/model/DataBundleTest.java +++ b/src/test/java/co/permify/sdk/model/DataBundleTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataBundle */ -class DataBundleTest { +public class DataBundleTest { private final DataBundle model = new DataBundle(); /** * Model tests for DataBundle */ @Test - void testDataBundle() { + public void testDataBundle() { // TODO: test DataBundle } @@ -44,7 +44,7 @@ void testDataBundle() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -52,7 +52,7 @@ void nameTest() { * Test the property 'arguments' */ @Test - void argumentsTest() { + public void argumentsTest() { // TODO: test arguments } @@ -60,7 +60,7 @@ void argumentsTest() { * Test the property 'operations' */ @Test - void operationsTest() { + public void operationsTest() { // TODO: test operations } diff --git a/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java b/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java index d605a77..9d5fc68 100644 --- a/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java +++ b/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataChangeOperation */ -class DataChangeOperationTest { +public class DataChangeOperationTest { /** * Model tests for DataChangeOperation */ @Test - void testDataChangeOperation() { + public void testDataChangeOperation() { // TODO: test DataChangeOperation } diff --git a/src/test/java/co/permify/sdk/model/DataChangeTest.java b/src/test/java/co/permify/sdk/model/DataChangeTest.java index c3507fc..5f0d791 100644 --- a/src/test/java/co/permify/sdk/model/DataChangeTest.java +++ b/src/test/java/co/permify/sdk/model/DataChangeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataChange */ -class DataChangeTest { +public class DataChangeTest { private final DataChange model = new DataChange(); /** * Model tests for DataChange */ @Test - void testDataChange() { + public void testDataChange() { // TODO: test DataChange } @@ -44,7 +44,7 @@ void testDataChange() { * Test the property 'operation' */ @Test - void operationTest() { + public void operationTest() { // TODO: test operation } @@ -52,7 +52,7 @@ void operationTest() { * Test the property 'tuple' */ @Test - void tupleTest() { + public void tupleTest() { // TODO: test tuple } @@ -60,7 +60,7 @@ void tupleTest() { * Test the property 'attribute' */ @Test - void attributeTest() { + public void attributeTest() { // TODO: test attribute } diff --git a/src/test/java/co/permify/sdk/model/DataChangesTest.java b/src/test/java/co/permify/sdk/model/DataChangesTest.java index 21288e3..6222116 100644 --- a/src/test/java/co/permify/sdk/model/DataChangesTest.java +++ b/src/test/java/co/permify/sdk/model/DataChangesTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataChanges */ -class DataChangesTest { +public class DataChangesTest { private final DataChanges model = new DataChanges(); /** * Model tests for DataChanges */ @Test - void testDataChanges() { + public void testDataChanges() { // TODO: test DataChanges } @@ -44,7 +44,7 @@ void testDataChanges() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } @@ -52,7 +52,7 @@ void snapTokenTest() { * Test the property 'dataChanges' */ @Test - void dataChangesTest() { + public void dataChangesTest() { // TODO: test dataChanges } diff --git a/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java b/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java index 87a6e50..2730ac5 100644 --- a/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataDeleteBody */ -class DataDeleteBodyTest { +public class DataDeleteBodyTest { private final DataDeleteBody model = new DataDeleteBody(); /** * Model tests for DataDeleteBody */ @Test - void testDataDeleteBody() { + public void testDataDeleteBody() { // TODO: test DataDeleteBody } @@ -43,7 +43,7 @@ void testDataDeleteBody() { * Test the property 'tupleFilter' */ @Test - void tupleFilterTest() { + public void tupleFilterTest() { // TODO: test tupleFilter } @@ -51,7 +51,7 @@ void tupleFilterTest() { * Test the property 'attributeFilter' */ @Test - void attributeFilterTest() { + public void attributeFilterTest() { // TODO: test attributeFilter } diff --git a/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java index d1ae914..23f7746 100644 --- a/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataDeleteResponse */ -class DataDeleteResponseTest { +public class DataDeleteResponseTest { private final DataDeleteResponse model = new DataDeleteResponse(); /** * Model tests for DataDeleteResponse */ @Test - void testDataDeleteResponse() { + public void testDataDeleteResponse() { // TODO: test DataDeleteResponse } @@ -41,7 +41,7 @@ void testDataDeleteResponse() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java b/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java index 36a3a03..92c6bc0 100644 --- a/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,21 +24,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataWriteBody */ -class DataWriteBodyTest { +public class DataWriteBodyTest { private final DataWriteBody model = new DataWriteBody(); /** * Model tests for DataWriteBody */ @Test - void testDataWriteBody() { + public void testDataWriteBody() { // TODO: test DataWriteBody } @@ -46,7 +46,7 @@ void testDataWriteBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -54,7 +54,7 @@ void metadataTest() { * Test the property 'tuples' */ @Test - void tuplesTest() { + public void tuplesTest() { // TODO: test tuples } @@ -62,7 +62,7 @@ void tuplesTest() { * Test the property 'attributes' */ @Test - void attributesTest() { + public void attributesTest() { // TODO: test attributes } diff --git a/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java index 70be39e..c80bc37 100644 --- a/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataWriteRequestMetadata */ -class DataWriteRequestMetadataTest { +public class DataWriteRequestMetadataTest { private final DataWriteRequestMetadata model = new DataWriteRequestMetadata(); /** * Model tests for DataWriteRequestMetadata */ @Test - void testDataWriteRequestMetadata() { + public void testDataWriteRequestMetadata() { // TODO: test DataWriteRequestMetadata } @@ -41,7 +41,7 @@ void testDataWriteRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } diff --git a/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java b/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java index 8cd8713..36daf51 100644 --- a/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DataWriteResponse */ -class DataWriteResponseTest { +public class DataWriteResponseTest { private final DataWriteResponse model = new DataWriteResponse(); /** * Model tests for DataWriteResponse */ @Test - void testDataWriteResponse() { + public void testDataWriteResponse() { // TODO: test DataWriteResponse } @@ -41,7 +41,7 @@ void testDataWriteResponse() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java b/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java index e055d1b..c8458f2 100644 --- a/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java +++ b/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for DeleteRelationshipsBody */ -class DeleteRelationshipsBodyTest { +public class DeleteRelationshipsBodyTest { private final DeleteRelationshipsBody model = new DeleteRelationshipsBody(); /** * Model tests for DeleteRelationshipsBody */ @Test - void testDeleteRelationshipsBody() { + public void testDeleteRelationshipsBody() { // TODO: test DeleteRelationshipsBody } @@ -42,7 +42,7 @@ void testDeleteRelationshipsBody() { * Test the property 'filter' */ @Test - void filterTest() { + public void filterTest() { // TODO: test filter } diff --git a/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java b/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java index cad5ab0..e6be4ab 100644 --- a/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for EntityDefinitionReference */ -class EntityDefinitionReferenceTest { +public class EntityDefinitionReferenceTest { /** * Model tests for EntityDefinitionReference */ @Test - void testEntityDefinitionReference() { + public void testEntityDefinitionReference() { // TODO: test EntityDefinitionReference } diff --git a/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java b/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java index a6e616d..be4152f 100644 --- a/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,21 +25,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for EntityDefinition */ -class EntityDefinitionTest { +public class EntityDefinitionTest { private final EntityDefinition model = new EntityDefinition(); /** * Model tests for EntityDefinition */ @Test - void testEntityDefinition() { + public void testEntityDefinition() { // TODO: test EntityDefinition } @@ -47,7 +47,7 @@ void testEntityDefinition() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -55,7 +55,7 @@ void nameTest() { * Test the property 'relations' */ @Test - void relationsTest() { + public void relationsTest() { // TODO: test relations } @@ -63,7 +63,7 @@ void relationsTest() { * Test the property 'permissions' */ @Test - void permissionsTest() { + public void permissionsTest() { // TODO: test permissions } @@ -71,7 +71,7 @@ void permissionsTest() { * Test the property 'attributes' */ @Test - void attributesTest() { + public void attributesTest() { // TODO: test attributes } @@ -79,7 +79,7 @@ void attributesTest() { * Test the property 'references' */ @Test - void referencesTest() { + public void referencesTest() { // TODO: test references } diff --git a/src/test/java/co/permify/sdk/model/EntityFilterTest.java b/src/test/java/co/permify/sdk/model/EntityFilterTest.java index 7dc5efd..3554ef9 100644 --- a/src/test/java/co/permify/sdk/model/EntityFilterTest.java +++ b/src/test/java/co/permify/sdk/model/EntityFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for EntityFilter */ -class EntityFilterTest { +public class EntityFilterTest { private final EntityFilter model = new EntityFilter(); /** * Model tests for EntityFilter */ @Test - void testEntityFilter() { + public void testEntityFilter() { // TODO: test EntityFilter } @@ -43,7 +43,7 @@ void testEntityFilter() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } @@ -51,7 +51,7 @@ void typeTest() { * Test the property 'ids' */ @Test - void idsTest() { + public void idsTest() { // TODO: test ids } diff --git a/src/test/java/co/permify/sdk/model/EntityTest.java b/src/test/java/co/permify/sdk/model/EntityTest.java index a0c8096..60e336c 100644 --- a/src/test/java/co/permify/sdk/model/EntityTest.java +++ b/src/test/java/co/permify/sdk/model/EntityTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Entity */ -class EntityTest { +public class EntityTest { private final Entity model = new Entity(); /** * Model tests for Entity */ @Test - void testEntity() { + public void testEntity() { // TODO: test Entity } @@ -41,7 +41,7 @@ void testEntity() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } @@ -49,7 +49,7 @@ void typeTest() { * Test the property 'id' */ @Test - void idTest() { + public void idTest() { // TODO: test id } diff --git a/src/test/java/co/permify/sdk/model/EntryTest.java b/src/test/java/co/permify/sdk/model/EntryTest.java index 2109252..c3fead9 100644 --- a/src/test/java/co/permify/sdk/model/EntryTest.java +++ b/src/test/java/co/permify/sdk/model/EntryTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,27 +13,28 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Entry */ -class EntryTest { +public class EntryTest { private final Entry model = new Entry(); /** * Model tests for Entry */ @Test - void testEntry() { + public void testEntry() { // TODO: test Entry } @@ -41,7 +42,7 @@ void testEntry() { * Test the property 'id' */ @Test - void idTest() { + public void idTest() { // TODO: test id } @@ -49,7 +50,7 @@ void idTest() { * Test the property 'fieldKey' */ @Test - void fieldKeyTest() { + public void fieldKeyTest() { // TODO: test fieldKey } @@ -57,7 +58,7 @@ void fieldKeyTest() { * Test the property 'mapKey' */ @Test - void mapKeyTest() { + public void mapKeyTest() { // TODO: test mapKey } @@ -65,7 +66,7 @@ void mapKeyTest() { * Test the property 'value' */ @Test - void valueTest() { + public void valueTest() { // TODO: test value } @@ -73,7 +74,7 @@ void valueTest() { * Test the property 'optionalEntry' */ @Test - void optionalEntryTest() { + public void optionalEntryTest() { // TODO: test optionalEntry } diff --git a/src/test/java/co/permify/sdk/model/ExpandLeafTest.java b/src/test/java/co/permify/sdk/model/ExpandLeafTest.java index 33f95c9..3d19a53 100644 --- a/src/test/java/co/permify/sdk/model/ExpandLeafTest.java +++ b/src/test/java/co/permify/sdk/model/ExpandLeafTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ExpandLeaf */ -class ExpandLeafTest { +public class ExpandLeafTest { private final ExpandLeaf model = new ExpandLeaf(); /** * Model tests for ExpandLeaf */ @Test - void testExpandLeaf() { + public void testExpandLeaf() { // TODO: test ExpandLeaf } @@ -44,7 +44,7 @@ void testExpandLeaf() { * Test the property 'subjects' */ @Test - void subjectsTest() { + public void subjectsTest() { // TODO: test subjects } @@ -52,7 +52,7 @@ void subjectsTest() { * Test the property 'values' */ @Test - void valuesTest() { + public void valuesTest() { // TODO: test values } @@ -60,7 +60,7 @@ void valuesTest() { * Test the property 'value' */ @Test - void valueTest() { + public void valueTest() { // TODO: test value } diff --git a/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java b/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java index 2e048c1..78ca765 100644 --- a/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java +++ b/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ExpandTreeNodeOperation */ -class ExpandTreeNodeOperationTest { +public class ExpandTreeNodeOperationTest { /** * Model tests for ExpandTreeNodeOperation */ @Test - void testExpandTreeNodeOperation() { + public void testExpandTreeNodeOperation() { // TODO: test ExpandTreeNodeOperation } diff --git a/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java b/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java index 1f91769..fa32ed8 100644 --- a/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java +++ b/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,6 +14,7 @@ package co.permify.sdk.model; import co.permify.sdk.model.ExpandTreeNodeOperation; +import co.permify.sdk.model.V1Expand; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,21 +23,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ExpandTreeNode */ -class ExpandTreeNodeTest { +public class ExpandTreeNodeTest { private final ExpandTreeNode model = new ExpandTreeNode(); /** * Model tests for ExpandTreeNode */ @Test - void testExpandTreeNode() { + public void testExpandTreeNode() { // TODO: test ExpandTreeNode } @@ -44,7 +45,7 @@ void testExpandTreeNode() { * Test the property 'operation' */ @Test - void operationTest() { + public void operationTest() { // TODO: test operation } @@ -52,7 +53,7 @@ void operationTest() { * Test the property 'children' */ @Test - void childrenTest() { + public void childrenTest() { // TODO: test children } diff --git a/src/test/java/co/permify/sdk/model/ExprCallTest.java b/src/test/java/co/permify/sdk/model/ExprCallTest.java index 434d26a..d7f311f 100644 --- a/src/test/java/co/permify/sdk/model/ExprCallTest.java +++ b/src/test/java/co/permify/sdk/model/ExprCallTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ExprCall */ -class ExprCallTest { +public class ExprCallTest { private final ExprCall model = new ExprCall(); /** * Model tests for ExprCall */ @Test - void testExprCall() { + public void testExprCall() { // TODO: test ExprCall } @@ -43,7 +44,7 @@ void testExprCall() { * Test the property 'target' */ @Test - void targetTest() { + public void targetTest() { // TODO: test target } @@ -51,7 +52,7 @@ void targetTest() { * Test the property 'function' */ @Test - void functionTest() { + public void functionTest() { // TODO: test function } @@ -59,7 +60,7 @@ void functionTest() { * Test the property 'args' */ @Test - void argsTest() { + public void argsTest() { // TODO: test args } diff --git a/src/test/java/co/permify/sdk/model/ExprTest.java b/src/test/java/co/permify/sdk/model/ExprTest.java new file mode 100644 index 0000000..87917bd --- /dev/null +++ b/src/test/java/co/permify/sdk/model/ExprTest.java @@ -0,0 +1,111 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.4.2 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import co.permify.sdk.model.Comprehension; +import co.permify.sdk.model.Constant; +import co.permify.sdk.model.CreateList; +import co.permify.sdk.model.CreateStruct; +import co.permify.sdk.model.ExprCall; +import co.permify.sdk.model.Ident; +import co.permify.sdk.model.Select; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for Expr + */ +public class ExprTest { + private final Expr model = new Expr(); + + /** + * Model tests for Expr + */ + @Test + public void testExpr() { + // TODO: test Expr + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'constExpr' + */ + @Test + public void constExprTest() { + // TODO: test constExpr + } + + /** + * Test the property 'identExpr' + */ + @Test + public void identExprTest() { + // TODO: test identExpr + } + + /** + * Test the property 'selectExpr' + */ + @Test + public void selectExprTest() { + // TODO: test selectExpr + } + + /** + * Test the property 'callExpr' + */ + @Test + public void callExprTest() { + // TODO: test callExpr + } + + /** + * Test the property 'listExpr' + */ + @Test + public void listExprTest() { + // TODO: test listExpr + } + + /** + * Test the property 'structExpr' + */ + @Test + public void structExprTest() { + // TODO: test structExpr + } + + /** + * Test the property 'comprehensionExpr' + */ + @Test + public void comprehensionExprTest() { + // TODO: test comprehensionExpr + } + +} diff --git a/src/test/java/co/permify/sdk/model/FunctionTypeTest.java b/src/test/java/co/permify/sdk/model/FunctionTypeTest.java index 7b24319..45e6cba 100644 --- a/src/test/java/co/permify/sdk/model/FunctionTypeTest.java +++ b/src/test/java/co/permify/sdk/model/FunctionTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for FunctionType */ -class FunctionTypeTest { +public class FunctionTypeTest { private final FunctionType model = new FunctionType(); /** * Model tests for FunctionType */ @Test - void testFunctionType() { + public void testFunctionType() { // TODO: test FunctionType } @@ -44,7 +44,7 @@ void testFunctionType() { * Test the property 'resultType' */ @Test - void resultTypeTest() { + public void resultTypeTest() { // TODO: test resultType } @@ -52,7 +52,7 @@ void resultTypeTest() { * Test the property 'argTypes' */ @Test - void argTypesTest() { + public void argTypesTest() { // TODO: test argTypes } diff --git a/src/test/java/co/permify/sdk/model/HealthResponseTest.java b/src/test/java/co/permify/sdk/model/HealthResponseTest.java deleted file mode 100644 index eb16c8f..0000000 --- a/src/test/java/co/permify/sdk/model/HealthResponseTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package co.permify.sdk.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for HealthResponse - */ -class HealthResponseTest { - private final HealthResponse model = new HealthResponse(); - - /** - * Model tests for HealthResponse - */ - @Test - void testHealthResponse() { - // TODO: test HealthResponse - } - - /** - * Test the property 'status' - */ - @Test - void statusTest() { - // TODO: test status - } - -} diff --git a/src/test/java/co/permify/sdk/model/IdentTest.java b/src/test/java/co/permify/sdk/model/IdentTest.java index a1f00b2..d4dd7c7 100644 --- a/src/test/java/co/permify/sdk/model/IdentTest.java +++ b/src/test/java/co/permify/sdk/model/IdentTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Ident */ -class IdentTest { +public class IdentTest { private final Ident model = new Ident(); /** * Model tests for Ident */ @Test - void testIdent() { + public void testIdent() { // TODO: test Ident } @@ -41,7 +41,7 @@ void testIdent() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } diff --git a/src/test/java/co/permify/sdk/model/LeafTest.java b/src/test/java/co/permify/sdk/model/LeafTest.java index df0d357..4d23735 100644 --- a/src/test/java/co/permify/sdk/model/LeafTest.java +++ b/src/test/java/co/permify/sdk/model/LeafTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Leaf */ -class LeafTest { +public class LeafTest { private final Leaf model = new Leaf(); /** * Model tests for Leaf */ @Test - void testLeaf() { + public void testLeaf() { // TODO: test Leaf } @@ -45,7 +45,7 @@ void testLeaf() { * Test the property 'computedUserSet' */ @Test - void computedUserSetTest() { + public void computedUserSetTest() { // TODO: test computedUserSet } @@ -53,7 +53,7 @@ void computedUserSetTest() { * Test the property 'tupleToUserSet' */ @Test - void tupleToUserSetTest() { + public void tupleToUserSetTest() { // TODO: test tupleToUserSet } @@ -61,7 +61,7 @@ void tupleToUserSetTest() { * Test the property 'computedAttribute' */ @Test - void computedAttributeTest() { + public void computedAttributeTest() { // TODO: test computedAttribute } @@ -69,7 +69,7 @@ void computedAttributeTest() { * Test the property 'call' */ @Test - void callTest() { + public void callTest() { // TODO: test call } diff --git a/src/test/java/co/permify/sdk/model/ListTypeTest.java b/src/test/java/co/permify/sdk/model/ListTypeTest.java index 366fe2b..ee331a9 100644 --- a/src/test/java/co/permify/sdk/model/ListTypeTest.java +++ b/src/test/java/co/permify/sdk/model/ListTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ListType */ -class ListTypeTest { +public class ListTypeTest { private final ListType model = new ListType(); /** * Model tests for ListType */ @Test - void testListType() { + public void testListType() { // TODO: test ListType } @@ -42,7 +42,7 @@ void testListType() { * Test the property 'elemType' */ @Test - void elemTypeTest() { + public void elemTypeTest() { // TODO: test elemType } diff --git a/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java b/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java index c66b464..02a2308 100644 --- a/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java +++ b/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,6 +15,7 @@ import co.permify.sdk.model.Context; import co.permify.sdk.model.PermissionLookupEntityRequestMetadata; +import co.permify.sdk.model.StringArrayValue; import co.permify.sdk.model.Subject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -22,21 +23,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import java.util.HashMap; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for LookupEntityBody */ -class LookupEntityBodyTest { +public class LookupEntityBodyTest { private final LookupEntityBody model = new LookupEntityBody(); /** * Model tests for LookupEntityBody */ @Test - void testLookupEntityBody() { + public void testLookupEntityBody() { // TODO: test LookupEntityBody } @@ -44,7 +47,7 @@ void testLookupEntityBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -52,7 +55,7 @@ void metadataTest() { * Test the property 'entityType' */ @Test - void entityTypeTest() { + public void entityTypeTest() { // TODO: test entityType } @@ -60,7 +63,7 @@ void entityTypeTest() { * Test the property 'permission' */ @Test - void permissionTest() { + public void permissionTest() { // TODO: test permission } @@ -68,7 +71,7 @@ void permissionTest() { * Test the property 'subject' */ @Test - void subjectTest() { + public void subjectTest() { // TODO: test subject } @@ -76,15 +79,23 @@ void subjectTest() { * Test the property 'context' */ @Test - void contextTest() { + public void contextTest() { // TODO: test context } + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + /** * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -92,7 +103,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java b/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java index b0f3e94..7096c06 100644 --- a/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java +++ b/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,6 +15,7 @@ import co.permify.sdk.model.Context; import co.permify.sdk.model.PermissionLookupEntityRequestMetadata; +import co.permify.sdk.model.StringArrayValue; import co.permify.sdk.model.Subject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -22,21 +23,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import java.util.HashMap; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for LookupEntityStreamBody */ -class LookupEntityStreamBodyTest { +public class LookupEntityStreamBodyTest { private final LookupEntityStreamBody model = new LookupEntityStreamBody(); /** * Model tests for LookupEntityStreamBody */ @Test - void testLookupEntityStreamBody() { + public void testLookupEntityStreamBody() { // TODO: test LookupEntityStreamBody } @@ -44,7 +47,7 @@ void testLookupEntityStreamBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -52,7 +55,7 @@ void metadataTest() { * Test the property 'entityType' */ @Test - void entityTypeTest() { + public void entityTypeTest() { // TODO: test entityType } @@ -60,7 +63,7 @@ void entityTypeTest() { * Test the property 'permission' */ @Test - void permissionTest() { + public void permissionTest() { // TODO: test permission } @@ -68,7 +71,7 @@ void permissionTest() { * Test the property 'subject' */ @Test - void subjectTest() { + public void subjectTest() { // TODO: test subject } @@ -76,15 +79,23 @@ void subjectTest() { * Test the property 'context' */ @Test - void contextTest() { + public void contextTest() { // TODO: test context } + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + /** * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -92,7 +103,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java b/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java index 45371d7..a3efdea 100644 --- a/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java +++ b/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Argument; import co.permify.sdk.model.Context; import co.permify.sdk.model.Entity; import co.permify.sdk.model.PermissionLookupSubjectRequestMetadata; @@ -22,22 +23,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for LookupSubjectBody */ -class LookupSubjectBodyTest { +public class LookupSubjectBodyTest { private final LookupSubjectBody model = new LookupSubjectBody(); /** * Model tests for LookupSubjectBody */ @Test - void testLookupSubjectBody() { + public void testLookupSubjectBody() { // TODO: test LookupSubjectBody } @@ -45,7 +48,7 @@ void testLookupSubjectBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -53,7 +56,7 @@ void metadataTest() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -61,7 +64,7 @@ void entityTest() { * Test the property 'permission' */ @Test - void permissionTest() { + public void permissionTest() { // TODO: test permission } @@ -69,7 +72,7 @@ void permissionTest() { * Test the property 'subjectReference' */ @Test - void subjectReferenceTest() { + public void subjectReferenceTest() { // TODO: test subjectReference } @@ -77,15 +80,23 @@ void subjectReferenceTest() { * Test the property 'context' */ @Test - void contextTest() { + public void contextTest() { // TODO: test context } + /** + * Test the property 'arguments' + */ + @Test + public void argumentsTest() { + // TODO: test arguments + } + /** * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -93,7 +104,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/MapTypeTest.java b/src/test/java/co/permify/sdk/model/MapTypeTest.java index 0eb7619..38752df 100644 --- a/src/test/java/co/permify/sdk/model/MapTypeTest.java +++ b/src/test/java/co/permify/sdk/model/MapTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for MapType */ -class MapTypeTest { +public class MapTypeTest { private final MapType model = new MapType(); /** * Model tests for MapType */ @Test - void testMapType() { + public void testMapType() { // TODO: test MapType } @@ -42,7 +42,7 @@ void testMapType() { * Test the property 'keyType' */ @Test - void keyTypeTest() { + public void keyTypeTest() { // TODO: test keyType } @@ -50,7 +50,7 @@ void keyTypeTest() { * Test the property 'valueType' */ @Test - void valueTypeTest() { + public void valueTypeTest() { // TODO: test valueType } diff --git a/src/test/java/co/permify/sdk/model/NullValueTest.java b/src/test/java/co/permify/sdk/model/NullValueTest.java deleted file mode 100644 index e6deb91..0000000 --- a/src/test/java/co/permify/sdk/model/NullValueTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Permify API - * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. - * - * The version of the OpenAPI document: v1.0.3 - * Contact: hello@permify.co - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package co.permify.sdk.model; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NullValue - */ -class NullValueTest { - /** - * Model tests for NullValue - */ - @Test - void testNullValue() { - // TODO: test NullValue - } - -} diff --git a/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java b/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java index 6171862..59a3abf 100644 --- a/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PartialWriteBody */ -class PartialWriteBodyTest { +public class PartialWriteBodyTest { private final PartialWriteBody model = new PartialWriteBody(); /** * Model tests for PartialWriteBody */ @Test - void testPartialWriteBody() { + public void testPartialWriteBody() { // TODO: test PartialWriteBody } @@ -45,7 +45,7 @@ void testPartialWriteBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -53,7 +53,7 @@ void metadataTest() { * Test the property 'partials' */ @Test - void partialsTest() { + public void partialsTest() { // TODO: test partials } diff --git a/src/test/java/co/permify/sdk/model/PartialsTest.java b/src/test/java/co/permify/sdk/model/PartialsTest.java index a185ea5..47d7ec2 100644 --- a/src/test/java/co/permify/sdk/model/PartialsTest.java +++ b/src/test/java/co/permify/sdk/model/PartialsTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Partials */ -class PartialsTest { +public class PartialsTest { private final Partials model = new Partials(); /** * Model tests for Partials */ @Test - void testPartials() { + public void testPartials() { // TODO: test Partials } @@ -43,7 +43,7 @@ void testPartials() { * Test the property 'write' */ @Test - void writeTest() { + public void writeTest() { // TODO: test write } @@ -51,7 +51,7 @@ void writeTest() { * Test the property 'delete' */ @Test - void deleteTest() { + public void deleteTest() { // TODO: test delete } @@ -59,7 +59,7 @@ void deleteTest() { * Test the property 'update' */ @Test - void updateTest() { + public void updateTest() { // TODO: test update } diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java index 7a58ba0..a6b0598 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionCheckRequestMetadata */ -class PermissionCheckRequestMetadataTest { +public class PermissionCheckRequestMetadataTest { private final PermissionCheckRequestMetadata model = new PermissionCheckRequestMetadata(); /** * Model tests for PermissionCheckRequestMetadata */ @Test - void testPermissionCheckRequestMetadata() { + public void testPermissionCheckRequestMetadata() { // TODO: test PermissionCheckRequestMetadata } @@ -41,7 +41,7 @@ void testPermissionCheckRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } @@ -49,7 +49,7 @@ void schemaVersionTest() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } @@ -57,7 +57,7 @@ void snapTokenTest() { * Test the property 'depth' */ @Test - void depthTest() { + public void depthTest() { // TODO: test depth } diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java index 8efcbb3..b3b9da7 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionCheckResponseMetadata */ -class PermissionCheckResponseMetadataTest { +public class PermissionCheckResponseMetadataTest { private final PermissionCheckResponseMetadata model = new PermissionCheckResponseMetadata(); /** * Model tests for PermissionCheckResponseMetadata */ @Test - void testPermissionCheckResponseMetadata() { + public void testPermissionCheckResponseMetadata() { // TODO: test PermissionCheckResponseMetadata } @@ -41,7 +41,7 @@ void testPermissionCheckResponseMetadata() { * Test the property 'checkCount' */ @Test - void checkCountTest() { + public void checkCountTest() { // TODO: test checkCount } diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java index 921638d..d8e0468 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionCheckResponse */ -class PermissionCheckResponseTest { +public class PermissionCheckResponseTest { private final PermissionCheckResponse model = new PermissionCheckResponse(); /** * Model tests for PermissionCheckResponse */ @Test - void testPermissionCheckResponse() { + public void testPermissionCheckResponse() { // TODO: test PermissionCheckResponse } @@ -43,7 +43,7 @@ void testPermissionCheckResponse() { * Test the property 'can' */ @Test - void canTest() { + public void canTest() { // TODO: test can } @@ -51,7 +51,7 @@ void canTest() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } diff --git a/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java b/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java index be0534f..d9ef27a 100644 --- a/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionDefinition */ -class PermissionDefinitionTest { +public class PermissionDefinitionTest { private final PermissionDefinition model = new PermissionDefinition(); /** * Model tests for PermissionDefinition */ @Test - void testPermissionDefinition() { + public void testPermissionDefinition() { // TODO: test PermissionDefinition } @@ -42,7 +42,7 @@ void testPermissionDefinition() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -50,7 +50,7 @@ void nameTest() { * Test the property 'child' */ @Test - void childTest() { + public void childTest() { // TODO: test child } diff --git a/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java b/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java index 906396d..e86ee79 100644 --- a/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,21 +25,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionExpandBody */ -class PermissionExpandBodyTest { +public class PermissionExpandBodyTest { private final PermissionExpandBody model = new PermissionExpandBody(); /** * Model tests for PermissionExpandBody */ @Test - void testPermissionExpandBody() { + public void testPermissionExpandBody() { // TODO: test PermissionExpandBody } @@ -47,7 +47,7 @@ void testPermissionExpandBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -55,7 +55,7 @@ void metadataTest() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -63,7 +63,7 @@ void entityTest() { * Test the property 'permission' */ @Test - void permissionTest() { + public void permissionTest() { // TODO: test permission } @@ -71,7 +71,7 @@ void permissionTest() { * Test the property 'context' */ @Test - void contextTest() { + public void contextTest() { // TODO: test context } @@ -79,7 +79,7 @@ void contextTest() { * Test the property 'arguments' */ @Test - void argumentsTest() { + public void argumentsTest() { // TODO: test arguments } diff --git a/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java index ade0eaa..2de691c 100644 --- a/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionExpandRequestMetadata */ -class PermissionExpandRequestMetadataTest { +public class PermissionExpandRequestMetadataTest { private final PermissionExpandRequestMetadata model = new PermissionExpandRequestMetadata(); /** * Model tests for PermissionExpandRequestMetadata */ @Test - void testPermissionExpandRequestMetadata() { + public void testPermissionExpandRequestMetadata() { // TODO: test PermissionExpandRequestMetadata } @@ -41,7 +41,7 @@ void testPermissionExpandRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } @@ -49,7 +49,7 @@ void schemaVersionTest() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java index 5548253..68d3b70 100644 --- a/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,27 +13,28 @@ package co.permify.sdk.model; +import co.permify.sdk.model.V1Expand; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionExpandResponse */ -class PermissionExpandResponseTest { +public class PermissionExpandResponseTest { private final PermissionExpandResponse model = new PermissionExpandResponse(); /** * Model tests for PermissionExpandResponse */ @Test - void testPermissionExpandResponse() { + public void testPermissionExpandResponse() { // TODO: test PermissionExpandResponse } @@ -41,7 +42,7 @@ void testPermissionExpandResponse() { * Test the property 'tree' */ @Test - void treeTest() { + public void treeTest() { // TODO: test tree } diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java index 87d1c56..d286805 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionLookupEntityRequestMetadata */ -class PermissionLookupEntityRequestMetadataTest { +public class PermissionLookupEntityRequestMetadataTest { private final PermissionLookupEntityRequestMetadata model = new PermissionLookupEntityRequestMetadata(); /** * Model tests for PermissionLookupEntityRequestMetadata */ @Test - void testPermissionLookupEntityRequestMetadata() { + public void testPermissionLookupEntityRequestMetadata() { // TODO: test PermissionLookupEntityRequestMetadata } @@ -41,7 +41,7 @@ void testPermissionLookupEntityRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } @@ -49,7 +49,7 @@ void schemaVersionTest() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } @@ -57,7 +57,7 @@ void snapTokenTest() { * Test the property 'depth' */ @Test - void depthTest() { + public void depthTest() { // TODO: test depth } diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java index 35a6804..995a2b3 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionLookupEntityResponse */ -class PermissionLookupEntityResponseTest { +public class PermissionLookupEntityResponseTest { private final PermissionLookupEntityResponse model = new PermissionLookupEntityResponse(); /** * Model tests for PermissionLookupEntityResponse */ @Test - void testPermissionLookupEntityResponse() { + public void testPermissionLookupEntityResponse() { // TODO: test PermissionLookupEntityResponse } @@ -43,7 +43,7 @@ void testPermissionLookupEntityResponse() { * Test the property 'entityIds' */ @Test - void entityIdsTest() { + public void entityIdsTest() { // TODO: test entityIds } @@ -51,7 +51,7 @@ void entityIdsTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java index 95553af..ad6bc5e 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionLookupEntityStreamResponse */ -class PermissionLookupEntityStreamResponseTest { +public class PermissionLookupEntityStreamResponseTest { private final PermissionLookupEntityStreamResponse model = new PermissionLookupEntityStreamResponse(); /** * Model tests for PermissionLookupEntityStreamResponse */ @Test - void testPermissionLookupEntityStreamResponse() { + public void testPermissionLookupEntityStreamResponse() { // TODO: test PermissionLookupEntityStreamResponse } @@ -41,7 +41,7 @@ void testPermissionLookupEntityStreamResponse() { * Test the property 'entityId' */ @Test - void entityIdTest() { + public void entityIdTest() { // TODO: test entityId } @@ -49,7 +49,7 @@ void entityIdTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java index edab18e..ec6b684 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionLookupSubjectRequestMetadata */ -class PermissionLookupSubjectRequestMetadataTest { +public class PermissionLookupSubjectRequestMetadataTest { private final PermissionLookupSubjectRequestMetadata model = new PermissionLookupSubjectRequestMetadata(); /** * Model tests for PermissionLookupSubjectRequestMetadata */ @Test - void testPermissionLookupSubjectRequestMetadata() { + public void testPermissionLookupSubjectRequestMetadata() { // TODO: test PermissionLookupSubjectRequestMetadata } @@ -41,7 +41,7 @@ void testPermissionLookupSubjectRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } @@ -49,7 +49,7 @@ void schemaVersionTest() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } @@ -57,7 +57,7 @@ void snapTokenTest() { * Test the property 'depth' */ @Test - void depthTest() { + public void depthTest() { // TODO: test depth } diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java index 4a5a5b0..69275be 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionLookupSubjectResponse */ -class PermissionLookupSubjectResponseTest { +public class PermissionLookupSubjectResponseTest { private final PermissionLookupSubjectResponse model = new PermissionLookupSubjectResponse(); /** * Model tests for PermissionLookupSubjectResponse */ @Test - void testPermissionLookupSubjectResponse() { + public void testPermissionLookupSubjectResponse() { // TODO: test PermissionLookupSubjectResponse } @@ -43,7 +43,7 @@ void testPermissionLookupSubjectResponse() { * Test the property 'subjectIds' */ @Test - void subjectIdsTest() { + public void subjectIdsTest() { // TODO: test subjectIds } @@ -51,7 +51,7 @@ void subjectIdsTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java index e60c59f..ab3f90a 100644 --- a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionSubjectPermissionRequestMetadata */ -class PermissionSubjectPermissionRequestMetadataTest { +public class PermissionSubjectPermissionRequestMetadataTest { private final PermissionSubjectPermissionRequestMetadata model = new PermissionSubjectPermissionRequestMetadata(); /** * Model tests for PermissionSubjectPermissionRequestMetadata */ @Test - void testPermissionSubjectPermissionRequestMetadata() { + public void testPermissionSubjectPermissionRequestMetadata() { // TODO: test PermissionSubjectPermissionRequestMetadata } @@ -41,7 +41,7 @@ void testPermissionSubjectPermissionRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } @@ -49,7 +49,7 @@ void schemaVersionTest() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } @@ -57,7 +57,7 @@ void snapTokenTest() { * Test the property 'onlyPermission' */ @Test - void onlyPermissionTest() { + public void onlyPermissionTest() { // TODO: test onlyPermission } @@ -65,7 +65,7 @@ void onlyPermissionTest() { * Test the property 'depth' */ @Test - void depthTest() { + public void depthTest() { // TODO: test depth } diff --git a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java index 1e3a74c..37ad236 100644 --- a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PermissionSubjectPermissionResponse */ -class PermissionSubjectPermissionResponseTest { +public class PermissionSubjectPermissionResponseTest { private final PermissionSubjectPermissionResponse model = new PermissionSubjectPermissionResponse(); /** * Model tests for PermissionSubjectPermissionResponse */ @Test - void testPermissionSubjectPermissionResponse() { + public void testPermissionSubjectPermissionResponse() { // TODO: test PermissionSubjectPermissionResponse } @@ -44,7 +44,7 @@ void testPermissionSubjectPermissionResponse() { * Test the property 'results' */ @Test - void resultsTest() { + public void resultsTest() { // TODO: test results } diff --git a/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java b/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java index 2ed6846..0f17e37 100644 --- a/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java +++ b/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for PrimitiveType */ -class PrimitiveTypeTest { +public class PrimitiveTypeTest { /** * Model tests for PrimitiveType */ @Test - void testPrimitiveType() { + public void testPrimitiveType() { // TODO: test PrimitiveType } diff --git a/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java b/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java index 32c4bfc..2fab398 100644 --- a/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java +++ b/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ReadAttributesBody */ -class ReadAttributesBodyTest { +public class ReadAttributesBodyTest { private final ReadAttributesBody model = new ReadAttributesBody(); /** * Model tests for ReadAttributesBody */ @Test - void testReadAttributesBody() { + public void testReadAttributesBody() { // TODO: test ReadAttributesBody } @@ -43,7 +43,7 @@ void testReadAttributesBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -51,7 +51,7 @@ void metadataTest() { * Test the property 'filter' */ @Test - void filterTest() { + public void filterTest() { // TODO: test filter } @@ -59,7 +59,7 @@ void filterTest() { * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -67,7 +67,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java b/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java index 3af4460..12b1b75 100644 --- a/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java +++ b/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for ReadRelationshipsBody */ -class ReadRelationshipsBodyTest { +public class ReadRelationshipsBodyTest { private final ReadRelationshipsBody model = new ReadRelationshipsBody(); /** * Model tests for ReadRelationshipsBody */ @Test - void testReadRelationshipsBody() { + public void testReadRelationshipsBody() { // TODO: test ReadRelationshipsBody } @@ -43,7 +43,7 @@ void testReadRelationshipsBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -51,7 +51,7 @@ void metadataTest() { * Test the property 'filter' */ @Test - void filterTest() { + public void filterTest() { // TODO: test filter } @@ -59,7 +59,7 @@ void filterTest() { * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -67,7 +67,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java b/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java index 5c3cc51..20da180 100644 --- a/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationDefinition */ -class RelationDefinitionTest { +public class RelationDefinitionTest { private final RelationDefinition model = new RelationDefinition(); /** * Model tests for RelationDefinition */ @Test - void testRelationDefinition() { + public void testRelationDefinition() { // TODO: test RelationDefinition } @@ -44,7 +44,7 @@ void testRelationDefinition() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -52,7 +52,7 @@ void nameTest() { * Test the property 'relationReferences' */ @Test - void relationReferencesTest() { + public void relationReferencesTest() { // TODO: test relationReferences } diff --git a/src/test/java/co/permify/sdk/model/RelationReferenceTest.java b/src/test/java/co/permify/sdk/model/RelationReferenceTest.java index 0ef253b..c3ae895 100644 --- a/src/test/java/co/permify/sdk/model/RelationReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/RelationReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationReference */ -class RelationReferenceTest { +public class RelationReferenceTest { private final RelationReference model = new RelationReference(); /** * Model tests for RelationReference */ @Test - void testRelationReference() { + public void testRelationReference() { // TODO: test RelationReference } @@ -41,7 +41,7 @@ void testRelationReference() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } @@ -49,7 +49,7 @@ void typeTest() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } diff --git a/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java index dd5ab97..2e69f66 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationshipDeleteResponse */ -class RelationshipDeleteResponseTest { +public class RelationshipDeleteResponseTest { private final RelationshipDeleteResponse model = new RelationshipDeleteResponse(); /** * Model tests for RelationshipDeleteResponse */ @Test - void testRelationshipDeleteResponse() { + public void testRelationshipDeleteResponse() { // TODO: test RelationshipDeleteResponse } @@ -41,7 +41,7 @@ void testRelationshipDeleteResponse() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java index 90d1b99..cec34ae 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationshipReadRequestMetadata */ -class RelationshipReadRequestMetadataTest { +public class RelationshipReadRequestMetadataTest { private final RelationshipReadRequestMetadata model = new RelationshipReadRequestMetadata(); /** * Model tests for RelationshipReadRequestMetadata */ @Test - void testRelationshipReadRequestMetadata() { + public void testRelationshipReadRequestMetadata() { // TODO: test RelationshipReadRequestMetadata } @@ -41,7 +41,7 @@ void testRelationshipReadRequestMetadata() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java b/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java index 4ff3c40..ee666ec 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationshipReadResponse */ -class RelationshipReadResponseTest { +public class RelationshipReadResponseTest { private final RelationshipReadResponse model = new RelationshipReadResponse(); /** * Model tests for RelationshipReadResponse */ @Test - void testRelationshipReadResponse() { + public void testRelationshipReadResponse() { // TODO: test RelationshipReadResponse } @@ -44,7 +44,7 @@ void testRelationshipReadResponse() { * Test the property 'tuples' */ @Test - void tuplesTest() { + public void tuplesTest() { // TODO: test tuples } @@ -52,7 +52,7 @@ void tuplesTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java index 52dd920..7fe3fd7 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationshipWriteRequestMetadata */ -class RelationshipWriteRequestMetadataTest { +public class RelationshipWriteRequestMetadataTest { private final RelationshipWriteRequestMetadata model = new RelationshipWriteRequestMetadata(); /** * Model tests for RelationshipWriteRequestMetadata */ @Test - void testRelationshipWriteRequestMetadata() { + public void testRelationshipWriteRequestMetadata() { // TODO: test RelationshipWriteRequestMetadata } @@ -41,7 +41,7 @@ void testRelationshipWriteRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } diff --git a/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java b/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java index 72534c9..d23b60c 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RelationshipWriteResponse */ -class RelationshipWriteResponseTest { +public class RelationshipWriteResponseTest { private final RelationshipWriteResponse model = new RelationshipWriteResponse(); /** * Model tests for RelationshipWriteResponse */ @Test - void testRelationshipWriteResponse() { + public void testRelationshipWriteResponse() { // TODO: test RelationshipWriteResponse } @@ -41,7 +41,7 @@ void testRelationshipWriteResponse() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/RewriteOperationTest.java b/src/test/java/co/permify/sdk/model/RewriteOperationTest.java index fd3c396..2da6910 100644 --- a/src/test/java/co/permify/sdk/model/RewriteOperationTest.java +++ b/src/test/java/co/permify/sdk/model/RewriteOperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RewriteOperation */ -class RewriteOperationTest { +public class RewriteOperationTest { /** * Model tests for RewriteOperation */ @Test - void testRewriteOperation() { + public void testRewriteOperation() { // TODO: test RewriteOperation } diff --git a/src/test/java/co/permify/sdk/model/RewriteTest.java b/src/test/java/co/permify/sdk/model/RewriteTest.java index aa3f0e6..a7519b6 100644 --- a/src/test/java/co/permify/sdk/model/RewriteTest.java +++ b/src/test/java/co/permify/sdk/model/RewriteTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Rewrite */ -class RewriteTest { +public class RewriteTest { private final Rewrite model = new Rewrite(); /** * Model tests for Rewrite */ @Test - void testRewrite() { + public void testRewrite() { // TODO: test Rewrite } @@ -45,7 +45,7 @@ void testRewrite() { * Test the property 'rewriteOperation' */ @Test - void rewriteOperationTest() { + public void rewriteOperationTest() { // TODO: test rewriteOperation } @@ -53,7 +53,7 @@ void rewriteOperationTest() { * Test the property 'children' */ @Test - void childrenTest() { + public void childrenTest() { // TODO: test children } diff --git a/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java b/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java index 5e1e612..4da5138 100644 --- a/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RuleDefinition */ -class RuleDefinitionTest { +public class RuleDefinitionTest { private final RuleDefinition model = new RuleDefinition(); /** * Model tests for RuleDefinition */ @Test - void testRuleDefinition() { + public void testRuleDefinition() { // TODO: test RuleDefinition } @@ -45,7 +45,7 @@ void testRuleDefinition() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -53,7 +53,7 @@ void nameTest() { * Test the property 'arguments' */ @Test - void argumentsTest() { + public void argumentsTest() { // TODO: test arguments } @@ -61,7 +61,7 @@ void argumentsTest() { * Test the property 'expression' */ @Test - void expressionTest() { + public void expressionTest() { // TODO: test expression } diff --git a/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java b/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java index 8994d52..0b3e835 100644 --- a/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java +++ b/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for RunBundleBody */ -class RunBundleBodyTest { +public class RunBundleBodyTest { private final RunBundleBody model = new RunBundleBody(); /** * Model tests for RunBundleBody */ @Test - void testRunBundleBody() { + public void testRunBundleBody() { // TODO: test RunBundleBody } @@ -43,7 +43,7 @@ void testRunBundleBody() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -51,7 +51,7 @@ void nameTest() { * Test the property 'arguments' */ @Test - void argumentsTest() { + public void argumentsTest() { // TODO: test arguments } diff --git a/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java b/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java index a3c29dd..892a8be 100644 --- a/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaDefinitionReference */ -class SchemaDefinitionReferenceTest { +public class SchemaDefinitionReferenceTest { /** * Model tests for SchemaDefinitionReference */ @Test - void testSchemaDefinitionReference() { + public void testSchemaDefinitionReference() { // TODO: test SchemaDefinitionReference } diff --git a/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java b/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java index ee4ff58..298b582 100644 --- a/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,21 +24,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaDefinition */ -class SchemaDefinitionTest { +public class SchemaDefinitionTest { private final SchemaDefinition model = new SchemaDefinition(); /** * Model tests for SchemaDefinition */ @Test - void testSchemaDefinition() { + public void testSchemaDefinition() { // TODO: test SchemaDefinition } @@ -46,7 +46,7 @@ void testSchemaDefinition() { * Test the property 'entityDefinitions' */ @Test - void entityDefinitionsTest() { + public void entityDefinitionsTest() { // TODO: test entityDefinitions } @@ -54,7 +54,7 @@ void entityDefinitionsTest() { * Test the property 'ruleDefinitions' */ @Test - void ruleDefinitionsTest() { + public void ruleDefinitionsTest() { // TODO: test ruleDefinitions } @@ -62,7 +62,7 @@ void ruleDefinitionsTest() { * Test the property 'references' */ @Test - void referencesTest() { + public void referencesTest() { // TODO: test references } diff --git a/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java b/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java index 4e8fd43..4bd9ed1 100644 --- a/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaListBody */ -class SchemaListBodyTest { +public class SchemaListBodyTest { private final SchemaListBody model = new SchemaListBody(); /** * Model tests for SchemaListBody */ @Test - void testSchemaListBody() { + public void testSchemaListBody() { // TODO: test SchemaListBody } @@ -41,7 +41,7 @@ void testSchemaListBody() { * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -49,7 +49,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java index 249e975..57a02fa 100644 --- a/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaListResponse */ -class SchemaListResponseTest { +public class SchemaListResponseTest { private final SchemaListResponse model = new SchemaListResponse(); /** * Model tests for SchemaListResponse */ @Test - void testSchemaListResponse() { + public void testSchemaListResponse() { // TODO: test SchemaListResponse } @@ -44,7 +44,7 @@ void testSchemaListResponse() { * Test the property 'head' */ @Test - void headTest() { + public void headTest() { // TODO: test head } @@ -52,7 +52,7 @@ void headTest() { * Test the property 'schemas' */ @Test - void schemasTest() { + public void schemasTest() { // TODO: test schemas } @@ -60,7 +60,7 @@ void schemasTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/SchemaListTest.java b/src/test/java/co/permify/sdk/model/SchemaListTest.java index ff32c41..4a35342 100644 --- a/src/test/java/co/permify/sdk/model/SchemaListTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaListTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaList */ -class SchemaListTest { +public class SchemaListTest { private final SchemaList model = new SchemaList(); /** * Model tests for SchemaList */ @Test - void testSchemaList() { + public void testSchemaList() { // TODO: test SchemaList } @@ -41,7 +41,7 @@ void testSchemaList() { * Test the property 'version' */ @Test - void versionTest() { + public void versionTest() { // TODO: test version } @@ -49,7 +49,7 @@ void versionTest() { * Test the property 'createdAt' */ @Test - void createdAtTest() { + public void createdAtTest() { // TODO: test createdAt } diff --git a/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java index ee8c94b..c179400 100644 --- a/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaPartialWriteRequestMetadata */ -class SchemaPartialWriteRequestMetadataTest { +public class SchemaPartialWriteRequestMetadataTest { private final SchemaPartialWriteRequestMetadata model = new SchemaPartialWriteRequestMetadata(); /** * Model tests for SchemaPartialWriteRequestMetadata */ @Test - void testSchemaPartialWriteRequestMetadata() { + public void testSchemaPartialWriteRequestMetadata() { // TODO: test SchemaPartialWriteRequestMetadata } @@ -41,7 +41,7 @@ void testSchemaPartialWriteRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } diff --git a/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java index 2af8a88..5d1454f 100644 --- a/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaPartialWriteResponse */ -class SchemaPartialWriteResponseTest { +public class SchemaPartialWriteResponseTest { private final SchemaPartialWriteResponse model = new SchemaPartialWriteResponse(); /** * Model tests for SchemaPartialWriteResponse */ @Test - void testSchemaPartialWriteResponse() { + public void testSchemaPartialWriteResponse() { // TODO: test SchemaPartialWriteResponse } @@ -41,7 +41,7 @@ void testSchemaPartialWriteResponse() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } diff --git a/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java b/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java index 2297b04..978916f 100644 --- a/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaReadBody */ -class SchemaReadBodyTest { +public class SchemaReadBodyTest { private final SchemaReadBody model = new SchemaReadBody(); /** * Model tests for SchemaReadBody */ @Test - void testSchemaReadBody() { + public void testSchemaReadBody() { // TODO: test SchemaReadBody } @@ -42,7 +42,7 @@ void testSchemaReadBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } diff --git a/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java index 5ae000c..0280db1 100644 --- a/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaReadRequestMetadata */ -class SchemaReadRequestMetadataTest { +public class SchemaReadRequestMetadataTest { private final SchemaReadRequestMetadata model = new SchemaReadRequestMetadata(); /** * Model tests for SchemaReadRequestMetadata */ @Test - void testSchemaReadRequestMetadata() { + public void testSchemaReadRequestMetadata() { // TODO: test SchemaReadRequestMetadata } @@ -41,7 +41,7 @@ void testSchemaReadRequestMetadata() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } diff --git a/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java index 031e0c7..aaadb7c 100644 --- a/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaReadResponse */ -class SchemaReadResponseTest { +public class SchemaReadResponseTest { private final SchemaReadResponse model = new SchemaReadResponse(); /** * Model tests for SchemaReadResponse */ @Test - void testSchemaReadResponse() { + public void testSchemaReadResponse() { // TODO: test SchemaReadResponse } @@ -42,7 +42,7 @@ void testSchemaReadResponse() { * Test the property 'schema' */ @Test - void schemaTest() { + public void schemaTest() { // TODO: test schema } diff --git a/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java b/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java index 9eba21a..0f6df88 100644 --- a/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaWriteBody */ -class SchemaWriteBodyTest { +public class SchemaWriteBodyTest { private final SchemaWriteBody model = new SchemaWriteBody(); /** * Model tests for SchemaWriteBody */ @Test - void testSchemaWriteBody() { + public void testSchemaWriteBody() { // TODO: test SchemaWriteBody } @@ -41,7 +41,7 @@ void testSchemaWriteBody() { * Test the property 'schema' */ @Test - void schemaTest() { + public void schemaTest() { // TODO: test schema } diff --git a/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java index a97e68a..c0a2489 100644 --- a/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SchemaWriteResponse */ -class SchemaWriteResponseTest { +public class SchemaWriteResponseTest { private final SchemaWriteResponse model = new SchemaWriteResponse(); /** * Model tests for SchemaWriteResponse */ @Test - void testSchemaWriteResponse() { + public void testSchemaWriteResponse() { // TODO: test SchemaWriteResponse } @@ -41,7 +41,7 @@ void testSchemaWriteResponse() { * Test the property 'schemaVersion' */ @Test - void schemaVersionTest() { + public void schemaVersionTest() { // TODO: test schemaVersion } diff --git a/src/test/java/co/permify/sdk/model/SelectTest.java b/src/test/java/co/permify/sdk/model/SelectTest.java index 8ec941e..66c3250 100644 --- a/src/test/java/co/permify/sdk/model/SelectTest.java +++ b/src/test/java/co/permify/sdk/model/SelectTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,27 +13,28 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Select */ -class SelectTest { +public class SelectTest { private final Select model = new Select(); /** * Model tests for Select */ @Test - void testSelect() { + public void testSelect() { // TODO: test Select } @@ -41,7 +42,7 @@ void testSelect() { * Test the property 'operand' */ @Test - void operandTest() { + public void operandTest() { // TODO: test operand } @@ -49,7 +50,7 @@ void operandTest() { * Test the property 'field' */ @Test - void fieldTest() { + public void fieldTest() { // TODO: test field } @@ -57,7 +58,7 @@ void fieldTest() { * Test the property 'testOnly' */ @Test - void testOnlyTest() { + public void testOnlyTest() { // TODO: test testOnly } diff --git a/src/test/java/co/permify/sdk/model/SourceInfoTest.java b/src/test/java/co/permify/sdk/model/SourceInfoTest.java index 327c690..7accb5f 100644 --- a/src/test/java/co/permify/sdk/model/SourceInfoTest.java +++ b/src/test/java/co/permify/sdk/model/SourceInfoTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package co.permify.sdk.model; +import co.permify.sdk.model.Expr; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,21 +24,21 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SourceInfo */ -class SourceInfoTest { +public class SourceInfoTest { private final SourceInfo model = new SourceInfo(); /** * Model tests for SourceInfo */ @Test - void testSourceInfo() { + public void testSourceInfo() { // TODO: test SourceInfo } @@ -45,7 +46,7 @@ void testSourceInfo() { * Test the property 'syntaxVersion' */ @Test - void syntaxVersionTest() { + public void syntaxVersionTest() { // TODO: test syntaxVersion } @@ -53,7 +54,7 @@ void syntaxVersionTest() { * Test the property 'location' */ @Test - void locationTest() { + public void locationTest() { // TODO: test location } @@ -61,7 +62,7 @@ void locationTest() { * Test the property 'lineOffsets' */ @Test - void lineOffsetsTest() { + public void lineOffsetsTest() { // TODO: test lineOffsets } @@ -69,7 +70,7 @@ void lineOffsetsTest() { * Test the property 'positions' */ @Test - void positionsTest() { + public void positionsTest() { // TODO: test positions } @@ -77,7 +78,7 @@ void positionsTest() { * Test the property 'macroCalls' */ @Test - void macroCallsTest() { + public void macroCallsTest() { // TODO: test macroCalls } diff --git a/src/test/java/co/permify/sdk/model/StatusTest.java b/src/test/java/co/permify/sdk/model/StatusTest.java index 1ea85c0..057d407 100644 --- a/src/test/java/co/permify/sdk/model/StatusTest.java +++ b/src/test/java/co/permify/sdk/model/StatusTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Status */ -class StatusTest { +public class StatusTest { private final Status model = new Status(); /** * Model tests for Status */ @Test - void testStatus() { + public void testStatus() { // TODO: test Status } @@ -44,7 +44,7 @@ void testStatus() { * Test the property 'code' */ @Test - void codeTest() { + public void codeTest() { // TODO: test code } @@ -52,7 +52,7 @@ void codeTest() { * Test the property 'message' */ @Test - void messageTest() { + public void messageTest() { // TODO: test message } @@ -60,7 +60,7 @@ void messageTest() { * Test the property 'details' */ @Test - void detailsTest() { + public void detailsTest() { // TODO: test details } diff --git a/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java b/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java index c4745a8..aa10b30 100644 --- a/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java +++ b/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for StreamResultOfPermissionLookupEntityStreamResponse */ -class StreamResultOfPermissionLookupEntityStreamResponseTest { +public class StreamResultOfPermissionLookupEntityStreamResponseTest { private final StreamResultOfPermissionLookupEntityStreamResponse model = new StreamResultOfPermissionLookupEntityStreamResponse(); /** * Model tests for StreamResultOfPermissionLookupEntityStreamResponse */ @Test - void testStreamResultOfPermissionLookupEntityStreamResponse() { + public void testStreamResultOfPermissionLookupEntityStreamResponse() { // TODO: test StreamResultOfPermissionLookupEntityStreamResponse } @@ -43,7 +43,7 @@ void testStreamResultOfPermissionLookupEntityStreamResponse() { * Test the property 'result' */ @Test - void resultTest() { + public void resultTest() { // TODO: test result } @@ -51,7 +51,7 @@ void resultTest() { * Test the property 'error' */ @Test - void errorTest() { + public void errorTest() { // TODO: test error } diff --git a/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java b/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java index 538ce1e..788ff9a 100644 --- a/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java +++ b/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for StreamResultOfWatchResponse */ -class StreamResultOfWatchResponseTest { +public class StreamResultOfWatchResponseTest { private final StreamResultOfWatchResponse model = new StreamResultOfWatchResponse(); /** * Model tests for StreamResultOfWatchResponse */ @Test - void testStreamResultOfWatchResponse() { + public void testStreamResultOfWatchResponse() { // TODO: test StreamResultOfWatchResponse } @@ -43,7 +43,7 @@ void testStreamResultOfWatchResponse() { * Test the property 'result' */ @Test - void resultTest() { + public void resultTest() { // TODO: test result } @@ -51,7 +51,7 @@ void resultTest() { * Test the property 'error' */ @Test - void errorTest() { + public void errorTest() { // TODO: test error } diff --git a/src/test/java/co/permify/sdk/model/ContextAttributeTest.java b/src/test/java/co/permify/sdk/model/StringArrayValueTest.java similarity index 58% rename from src/test/java/co/permify/sdk/model/ContextAttributeTest.java rename to src/test/java/co/permify/sdk/model/StringArrayValueTest.java index 867d808..dd90fd9 100644 --- a/src/test/java/co/permify/sdk/model/ContextAttributeTest.java +++ b/src/test/java/co/permify/sdk/model/StringArrayValueTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,31 +18,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** - * Model tests for ContextAttribute + * Model tests for StringArrayValue */ -class ContextAttributeTest { - private final ContextAttribute model = new ContextAttribute(); +public class StringArrayValueTest { + private final StringArrayValue model = new StringArrayValue(); /** - * Model tests for ContextAttribute + * Model tests for StringArrayValue */ @Test - void testContextAttribute() { - // TODO: test ContextAttribute + public void testStringArrayValue() { + // TODO: test StringArrayValue } /** - * Test the property 'name' + * Test the property 'data' */ @Test - void nameTest() { - // TODO: test name + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/co/permify/sdk/model/SubjectFilterTest.java b/src/test/java/co/permify/sdk/model/SubjectFilterTest.java index 2bec477..da669f3 100644 --- a/src/test/java/co/permify/sdk/model/SubjectFilterTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SubjectFilter */ -class SubjectFilterTest { +public class SubjectFilterTest { private final SubjectFilter model = new SubjectFilter(); /** * Model tests for SubjectFilter */ @Test - void testSubjectFilter() { + public void testSubjectFilter() { // TODO: test SubjectFilter } @@ -43,7 +43,7 @@ void testSubjectFilter() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } @@ -51,7 +51,7 @@ void typeTest() { * Test the property 'ids' */ @Test - void idsTest() { + public void idsTest() { // TODO: test ids } @@ -59,7 +59,7 @@ void idsTest() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } diff --git a/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java b/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java index e077965..44cdcd6 100644 --- a/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for SubjectPermissionBody */ -class SubjectPermissionBodyTest { +public class SubjectPermissionBodyTest { private final SubjectPermissionBody model = new SubjectPermissionBody(); /** * Model tests for SubjectPermissionBody */ @Test - void testSubjectPermissionBody() { + public void testSubjectPermissionBody() { // TODO: test SubjectPermissionBody } @@ -45,7 +45,7 @@ void testSubjectPermissionBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -53,7 +53,7 @@ void metadataTest() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -61,7 +61,7 @@ void entityTest() { * Test the property 'subject' */ @Test - void subjectTest() { + public void subjectTest() { // TODO: test subject } @@ -69,7 +69,7 @@ void subjectTest() { * Test the property 'context' */ @Test - void contextTest() { + public void contextTest() { // TODO: test context } diff --git a/src/test/java/co/permify/sdk/model/SubjectTest.java b/src/test/java/co/permify/sdk/model/SubjectTest.java index 701a023..81fa930 100644 --- a/src/test/java/co/permify/sdk/model/SubjectTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Subject */ -class SubjectTest { +public class SubjectTest { private final Subject model = new Subject(); /** * Model tests for Subject */ @Test - void testSubject() { + public void testSubject() { // TODO: test Subject } @@ -41,7 +41,7 @@ void testSubject() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } @@ -49,7 +49,7 @@ void typeTest() { * Test the property 'id' */ @Test - void idTest() { + public void idTest() { // TODO: test id } @@ -57,7 +57,7 @@ void idTest() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } diff --git a/src/test/java/co/permify/sdk/model/SubjectsTest.java b/src/test/java/co/permify/sdk/model/SubjectsTest.java index a74d872..fedc743 100644 --- a/src/test/java/co/permify/sdk/model/SubjectsTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectsTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Subjects */ -class SubjectsTest { +public class SubjectsTest { private final Subjects model = new Subjects(); /** * Model tests for Subjects */ @Test - void testSubjects() { + public void testSubjects() { // TODO: test Subjects } @@ -44,7 +44,7 @@ void testSubjects() { * Test the property 'subjects' */ @Test - void subjectsTest() { + public void subjectsTest() { // TODO: test subjects } diff --git a/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java b/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java index 0b7e45d..1b799d5 100644 --- a/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java +++ b/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TenantCreateRequest */ -class TenantCreateRequestTest { +public class TenantCreateRequestTest { private final TenantCreateRequest model = new TenantCreateRequest(); /** * Model tests for TenantCreateRequest */ @Test - void testTenantCreateRequest() { + public void testTenantCreateRequest() { // TODO: test TenantCreateRequest } @@ -41,7 +41,7 @@ void testTenantCreateRequest() { * Test the property 'id' */ @Test - void idTest() { + public void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ void idTest() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } diff --git a/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java b/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java index 450fb43..474f3b0 100644 --- a/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java +++ b/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TenantCreateResponse */ -class TenantCreateResponseTest { +public class TenantCreateResponseTest { private final TenantCreateResponse model = new TenantCreateResponse(); /** * Model tests for TenantCreateResponse */ @Test - void testTenantCreateResponse() { + public void testTenantCreateResponse() { // TODO: test TenantCreateResponse } @@ -42,7 +42,7 @@ void testTenantCreateResponse() { * Test the property 'tenant' */ @Test - void tenantTest() { + public void tenantTest() { // TODO: test tenant } diff --git a/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java index 5e92ecd..5723825 100644 --- a/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TenantDeleteResponse */ -class TenantDeleteResponseTest { +public class TenantDeleteResponseTest { private final TenantDeleteResponse model = new TenantDeleteResponse(); /** * Model tests for TenantDeleteResponse */ @Test - void testTenantDeleteResponse() { + public void testTenantDeleteResponse() { // TODO: test TenantDeleteResponse } @@ -42,7 +42,7 @@ void testTenantDeleteResponse() { * Test the property 'tenant' */ @Test - void tenantTest() { + public void tenantTest() { // TODO: test tenant } diff --git a/src/test/java/co/permify/sdk/model/TenantListRequestTest.java b/src/test/java/co/permify/sdk/model/TenantListRequestTest.java index 921eca9..8e0067e 100644 --- a/src/test/java/co/permify/sdk/model/TenantListRequestTest.java +++ b/src/test/java/co/permify/sdk/model/TenantListRequestTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TenantListRequest */ -class TenantListRequestTest { +public class TenantListRequestTest { private final TenantListRequest model = new TenantListRequest(); /** * Model tests for TenantListRequest */ @Test - void testTenantListRequest() { + public void testTenantListRequest() { // TODO: test TenantListRequest } @@ -41,7 +41,7 @@ void testTenantListRequest() { * Test the property 'pageSize' */ @Test - void pageSizeTest() { + public void pageSizeTest() { // TODO: test pageSize } @@ -49,7 +49,7 @@ void pageSizeTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/TenantListResponseTest.java b/src/test/java/co/permify/sdk/model/TenantListResponseTest.java index 50487df..eef8975 100644 --- a/src/test/java/co/permify/sdk/model/TenantListResponseTest.java +++ b/src/test/java/co/permify/sdk/model/TenantListResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TenantListResponse */ -class TenantListResponseTest { +public class TenantListResponseTest { private final TenantListResponse model = new TenantListResponse(); /** * Model tests for TenantListResponse */ @Test - void testTenantListResponse() { + public void testTenantListResponse() { // TODO: test TenantListResponse } @@ -44,7 +44,7 @@ void testTenantListResponse() { * Test the property 'tenants' */ @Test - void tenantsTest() { + public void tenantsTest() { // TODO: test tenants } @@ -52,7 +52,7 @@ void tenantsTest() { * Test the property 'continuousToken' */ @Test - void continuousTokenTest() { + public void continuousTokenTest() { // TODO: test continuousToken } diff --git a/src/test/java/co/permify/sdk/model/TenantTest.java b/src/test/java/co/permify/sdk/model/TenantTest.java index 48450af..028328f 100644 --- a/src/test/java/co/permify/sdk/model/TenantTest.java +++ b/src/test/java/co/permify/sdk/model/TenantTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Tenant */ -class TenantTest { +public class TenantTest { private final Tenant model = new Tenant(); /** * Model tests for Tenant */ @Test - void testTenant() { + public void testTenant() { // TODO: test Tenant } @@ -42,7 +42,7 @@ void testTenant() { * Test the property 'id' */ @Test - void idTest() { + public void idTest() { // TODO: test id } @@ -50,7 +50,7 @@ void idTest() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -58,7 +58,7 @@ void nameTest() { * Test the property 'createdAt' */ @Test - void createdAtTest() { + public void createdAtTest() { // TODO: test createdAt } diff --git a/src/test/java/co/permify/sdk/model/TupleFilterTest.java b/src/test/java/co/permify/sdk/model/TupleFilterTest.java index 9eed351..e4b9b7a 100644 --- a/src/test/java/co/permify/sdk/model/TupleFilterTest.java +++ b/src/test/java/co/permify/sdk/model/TupleFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TupleFilter */ -class TupleFilterTest { +public class TupleFilterTest { private final TupleFilter model = new TupleFilter(); /** * Model tests for TupleFilter */ @Test - void testTupleFilter() { + public void testTupleFilter() { // TODO: test TupleFilter } @@ -43,7 +43,7 @@ void testTupleFilter() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -51,7 +51,7 @@ void entityTest() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } @@ -59,7 +59,7 @@ void relationTest() { * Test the property 'subject' */ @Test - void subjectTest() { + public void subjectTest() { // TODO: test subject } diff --git a/src/test/java/co/permify/sdk/model/TupleSetTest.java b/src/test/java/co/permify/sdk/model/TupleSetTest.java index 3e8598b..677dfcd 100644 --- a/src/test/java/co/permify/sdk/model/TupleSetTest.java +++ b/src/test/java/co/permify/sdk/model/TupleSetTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TupleSet */ -class TupleSetTest { +public class TupleSetTest { private final TupleSet model = new TupleSet(); /** * Model tests for TupleSet */ @Test - void testTupleSet() { + public void testTupleSet() { // TODO: test TupleSet } @@ -41,7 +41,7 @@ void testTupleSet() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } diff --git a/src/test/java/co/permify/sdk/model/TupleTest.java b/src/test/java/co/permify/sdk/model/TupleTest.java index b64f566..b712682 100644 --- a/src/test/java/co/permify/sdk/model/TupleTest.java +++ b/src/test/java/co/permify/sdk/model/TupleTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Tuple */ -class TupleTest { +public class TupleTest { private final Tuple model = new Tuple(); /** * Model tests for Tuple */ @Test - void testTuple() { + public void testTuple() { // TODO: test Tuple } @@ -43,7 +43,7 @@ void testTuple() { * Test the property 'entity' */ @Test - void entityTest() { + public void entityTest() { // TODO: test entity } @@ -51,7 +51,7 @@ void entityTest() { * Test the property 'relation' */ @Test - void relationTest() { + public void relationTest() { // TODO: test relation } @@ -59,7 +59,7 @@ void relationTest() { * Test the property 'subject' */ @Test - void subjectTest() { + public void subjectTest() { // TODO: test subject } diff --git a/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java b/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java index c6594fa..1e7d042 100644 --- a/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java +++ b/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for TupleToUserSet */ -class TupleToUserSetTest { +public class TupleToUserSetTest { private final TupleToUserSet model = new TupleToUserSet(); /** * Model tests for TupleToUserSet */ @Test - void testTupleToUserSet() { + public void testTupleToUserSet() { // TODO: test TupleToUserSet } @@ -43,7 +43,7 @@ void testTupleToUserSet() { * Test the property 'tupleSet' */ @Test - void tupleSetTest() { + public void tupleSetTest() { // TODO: test tupleSet } @@ -51,7 +51,7 @@ void tupleSetTest() { * Test the property 'computed' */ @Test - void computedTest() { + public void computedTest() { // TODO: test computed } diff --git a/src/test/java/co/permify/sdk/model/V1CallTest.java b/src/test/java/co/permify/sdk/model/V1CallTest.java index b6c9be6..c3cffc7 100644 --- a/src/test/java/co/permify/sdk/model/V1CallTest.java +++ b/src/test/java/co/permify/sdk/model/V1CallTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for V1Call */ -class V1CallTest { +public class V1CallTest { private final V1Call model = new V1Call(); /** * Model tests for V1Call */ @Test - void testV1Call() { + public void testV1Call() { // TODO: test V1Call } @@ -44,7 +44,7 @@ void testV1Call() { * Test the property 'ruleName' */ @Test - void ruleNameTest() { + public void ruleNameTest() { // TODO: test ruleName } @@ -52,7 +52,7 @@ void ruleNameTest() { * Test the property 'arguments' */ @Test - void argumentsTest() { + public void argumentsTest() { // TODO: test arguments } diff --git a/src/test/java/co/permify/sdk/model/V1ExpandTest.java b/src/test/java/co/permify/sdk/model/V1ExpandTest.java new file mode 100644 index 0000000..d909ae5 --- /dev/null +++ b/src/test/java/co/permify/sdk/model/V1ExpandTest.java @@ -0,0 +1,86 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.4.2 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import co.permify.sdk.model.Argument; +import co.permify.sdk.model.Entity; +import co.permify.sdk.model.ExpandLeaf; +import co.permify.sdk.model.ExpandTreeNode; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for V1Expand + */ +public class V1ExpandTest { + private final V1Expand model = new V1Expand(); + + /** + * Model tests for V1Expand + */ + @Test + public void testV1Expand() { + // TODO: test V1Expand + } + + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } + + /** + * Test the property 'permission' + */ + @Test + public void permissionTest() { + // TODO: test permission + } + + /** + * Test the property 'arguments' + */ + @Test + public void argumentsTest() { + // TODO: test arguments + } + + /** + * Test the property 'expand' + */ + @Test + public void expandTest() { + // TODO: test expand + } + + /** + * Test the property 'leaf' + */ + @Test + public void leafTest() { + // TODO: test leaf + } + +} diff --git a/src/test/java/co/permify/sdk/model/V1OperationTest.java b/src/test/java/co/permify/sdk/model/V1OperationTest.java index ffde7be..05a91ff 100644 --- a/src/test/java/co/permify/sdk/model/V1OperationTest.java +++ b/src/test/java/co/permify/sdk/model/V1OperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for V1Operation */ -class V1OperationTest { +public class V1OperationTest { private final V1Operation model = new V1Operation(); /** * Model tests for V1Operation */ @Test - void testV1Operation() { + public void testV1Operation() { // TODO: test V1Operation } @@ -43,7 +43,7 @@ void testV1Operation() { * Test the property 'relationshipsWrite' */ @Test - void relationshipsWriteTest() { + public void relationshipsWriteTest() { // TODO: test relationshipsWrite } @@ -51,7 +51,7 @@ void relationshipsWriteTest() { * Test the property 'relationshipsDelete' */ @Test - void relationshipsDeleteTest() { + public void relationshipsDeleteTest() { // TODO: test relationshipsDelete } @@ -59,7 +59,7 @@ void relationshipsDeleteTest() { * Test the property 'attributesWrite' */ @Test - void attributesWriteTest() { + public void attributesWriteTest() { // TODO: test attributesWrite } @@ -67,7 +67,7 @@ void attributesWriteTest() { * Test the property 'attributesDelete' */ @Test - void attributesDeleteTest() { + public void attributesDeleteTest() { // TODO: test attributesDelete } diff --git a/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java b/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java index 88d29c3..1717b73 100644 --- a/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for V1alpha1Reference */ -class V1alpha1ReferenceTest { +public class V1alpha1ReferenceTest { private final V1alpha1Reference model = new V1alpha1Reference(); /** * Model tests for V1alpha1Reference */ @Test - void testV1alpha1Reference() { + public void testV1alpha1Reference() { // TODO: test V1alpha1Reference } @@ -44,7 +44,7 @@ void testV1alpha1Reference() { * Test the property 'name' */ @Test - void nameTest() { + public void nameTest() { // TODO: test name } @@ -52,7 +52,7 @@ void nameTest() { * Test the property 'overloadId' */ @Test - void overloadIdTest() { + public void overloadIdTest() { // TODO: test overloadId } @@ -60,7 +60,7 @@ void overloadIdTest() { * Test the property 'value' */ @Test - void valueTest() { + public void valueTest() { // TODO: test value } diff --git a/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java b/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java index 0ce5022..f129048 100644 --- a/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java +++ b/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,21 +25,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for V1alpha1Type */ -class V1alpha1TypeTest { +public class V1alpha1TypeTest { private final V1alpha1Type model = new V1alpha1Type(); /** * Model tests for V1alpha1Type */ @Test - void testV1alpha1Type() { + public void testV1alpha1Type() { // TODO: test V1alpha1Type } @@ -47,7 +47,7 @@ void testV1alpha1Type() { * Test the property 'dyn' */ @Test - void dynTest() { + public void dynTest() { // TODO: test dyn } @@ -55,7 +55,7 @@ void dynTest() { * Test the property '_null' */ @Test - void _nullTest() { + public void _nullTest() { // TODO: test _null } @@ -63,7 +63,7 @@ void _nullTest() { * Test the property 'primitive' */ @Test - void primitiveTest() { + public void primitiveTest() { // TODO: test primitive } @@ -71,7 +71,7 @@ void primitiveTest() { * Test the property 'wrapper' */ @Test - void wrapperTest() { + public void wrapperTest() { // TODO: test wrapper } @@ -79,7 +79,7 @@ void wrapperTest() { * Test the property 'wellKnown' */ @Test - void wellKnownTest() { + public void wellKnownTest() { // TODO: test wellKnown } @@ -87,7 +87,7 @@ void wellKnownTest() { * Test the property 'listType' */ @Test - void listTypeTest() { + public void listTypeTest() { // TODO: test listType } @@ -95,7 +95,7 @@ void listTypeTest() { * Test the property 'mapType' */ @Test - void mapTypeTest() { + public void mapTypeTest() { // TODO: test mapType } @@ -103,7 +103,7 @@ void mapTypeTest() { * Test the property 'function' */ @Test - void functionTest() { + public void functionTest() { // TODO: test function } @@ -111,7 +111,7 @@ void functionTest() { * Test the property 'messageType' */ @Test - void messageTypeTest() { + public void messageTypeTest() { // TODO: test messageType } @@ -119,7 +119,7 @@ void messageTypeTest() { * Test the property 'typeParam' */ @Test - void typeParamTest() { + public void typeParamTest() { // TODO: test typeParam } @@ -127,7 +127,7 @@ void typeParamTest() { * Test the property 'type' */ @Test - void typeTest() { + public void typeTest() { // TODO: test type } @@ -135,7 +135,7 @@ void typeTest() { * Test the property 'error' */ @Test - void errorTest() { + public void errorTest() { // TODO: test error } @@ -143,7 +143,7 @@ void errorTest() { * Test the property 'abstractType' */ @Test - void abstractTypeTest() { + public void abstractTypeTest() { // TODO: test abstractType } diff --git a/src/test/java/co/permify/sdk/model/ValuesTest.java b/src/test/java/co/permify/sdk/model/ValuesTest.java index 13d770b..f47d559 100644 --- a/src/test/java/co/permify/sdk/model/ValuesTest.java +++ b/src/test/java/co/permify/sdk/model/ValuesTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,21 +22,21 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for Values */ -class ValuesTest { +public class ValuesTest { private final Values model = new Values(); /** * Model tests for Values */ @Test - void testValues() { + public void testValues() { // TODO: test Values } @@ -44,7 +44,7 @@ void testValues() { * Test the property 'values' */ @Test - void valuesTest() { + public void valuesTest() { // TODO: test values } diff --git a/src/test/java/co/permify/sdk/model/WatchBodyTest.java b/src/test/java/co/permify/sdk/model/WatchBodyTest.java index 8f2c34c..263fb2f 100644 --- a/src/test/java/co/permify/sdk/model/WatchBodyTest.java +++ b/src/test/java/co/permify/sdk/model/WatchBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for WatchBody */ -class WatchBodyTest { +public class WatchBodyTest { private final WatchBody model = new WatchBody(); /** * Model tests for WatchBody */ @Test - void testWatchBody() { + public void testWatchBody() { // TODO: test WatchBody } @@ -41,7 +41,7 @@ void testWatchBody() { * Test the property 'snapToken' */ @Test - void snapTokenTest() { + public void snapTokenTest() { // TODO: test snapToken } diff --git a/src/test/java/co/permify/sdk/model/WatchResponseTest.java b/src/test/java/co/permify/sdk/model/WatchResponseTest.java index 720bd63..14f43c5 100644 --- a/src/test/java/co/permify/sdk/model/WatchResponseTest.java +++ b/src/test/java/co/permify/sdk/model/WatchResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,21 +20,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for WatchResponse */ -class WatchResponseTest { +public class WatchResponseTest { private final WatchResponse model = new WatchResponse(); /** * Model tests for WatchResponse */ @Test - void testWatchResponse() { + public void testWatchResponse() { // TODO: test WatchResponse } @@ -42,7 +42,7 @@ void testWatchResponse() { * Test the property 'changes' */ @Test - void changesTest() { + public void changesTest() { // TODO: test changes } diff --git a/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java b/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java index 09a13da..7a07bcc 100644 --- a/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java +++ b/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,19 @@ package co.permify.sdk.model; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for WellKnownType */ -class WellKnownTypeTest { +public class WellKnownTypeTest { /** * Model tests for WellKnownType */ @Test - void testWellKnownType() { + public void testWellKnownType() { // TODO: test WellKnownType } diff --git a/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java b/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java index 23ec3ae..f1db933 100644 --- a/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java +++ b/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.0.3 + * The version of the OpenAPI document: v1.4.2 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,21 +23,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; /** * Model tests for WriteRelationshipsBody */ -class WriteRelationshipsBodyTest { +public class WriteRelationshipsBodyTest { private final WriteRelationshipsBody model = new WriteRelationshipsBody(); /** * Model tests for WriteRelationshipsBody */ @Test - void testWriteRelationshipsBody() { + public void testWriteRelationshipsBody() { // TODO: test WriteRelationshipsBody } @@ -45,7 +45,7 @@ void testWriteRelationshipsBody() { * Test the property 'metadata' */ @Test - void metadataTest() { + public void metadataTest() { // TODO: test metadata } @@ -53,7 +53,7 @@ void metadataTest() { * Test the property 'tuples' */ @Test - void tuplesTest() { + public void tuplesTest() { // TODO: test tuples }