-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chore/ci/setup-codecov' of https://github.com/openfga/d…
…otnet-sdk into chore/ci/setup-codecov
- Loading branch information
Showing
13 changed files
with
402 additions
and
4 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
* @openfga/dx | ||
README.md @openfga/product @openfga/community | ||
README.md @openfga/product @openfga/community @openfga/dx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# OpenFga.Sdk.Model.ConditionMetadata | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Module** | **string** | | [optional] | ||
**SourceInfo** | [**SourceInfo**](SourceInfo.md) | | [optional] | ||
|
||
[[Back to Model list]](../README.md#models) [[Back to API list]](../README.md#api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# OpenFga.Sdk.Model.SourceInfo | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**File** | **string** | | [optional] | ||
|
||
[[Back to Model list]](../README.md#models) [[Back to API list]](../README.md#api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
// | ||
// OpenFGA/.NET SDK for OpenFGA | ||
// | ||
// API version: 0.1 | ||
// Website: https://openfga.dev | ||
// Documentation: https://openfga.dev/docs | ||
// Support: https://openfga.dev/community | ||
// License: [Apache-2.0](https://github.com/openfga/dotnet-sdk/blob/main/LICENSE) | ||
// | ||
// NOTE: This file was auto generated. DO NOT EDIT. | ||
// | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace OpenFga.Sdk.Model { | ||
/// <summary> | ||
/// ConditionMetadata | ||
/// </summary> | ||
[DataContract(Name = "ConditionMetadata")] | ||
public partial class ConditionMetadata : IEquatable<ConditionMetadata>, IValidatableObject { | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConditionMetadata" /> class. | ||
/// </summary> | ||
[JsonConstructor] | ||
public ConditionMetadata() { | ||
this.AdditionalProperties = new Dictionary<string, object>(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConditionMetadata" /> class. | ||
/// </summary> | ||
/// <param name="module">module.</param> | ||
/// <param name="sourceInfo">sourceInfo.</param> | ||
public ConditionMetadata(string module = default(string), SourceInfo sourceInfo = default(SourceInfo)) { | ||
this.Module = module; | ||
this.SourceInfo = sourceInfo; | ||
this.AdditionalProperties = new Dictionary<string, object>(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or Sets Module | ||
/// </summary> | ||
[DataMember(Name = "module", EmitDefaultValue = false)] | ||
[JsonPropertyName("module")] | ||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] | ||
public string? Module { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets SourceInfo | ||
/// </summary> | ||
[DataMember(Name = "source_info", EmitDefaultValue = false)] | ||
[JsonPropertyName("source_info")] | ||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] | ||
public SourceInfo? SourceInfo { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets additional properties | ||
/// </summary> | ||
[JsonExtensionData] | ||
public IDictionary<string, object> AdditionalProperties { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() { | ||
return JsonSerializer.Serialize(this); | ||
} | ||
|
||
/// <summary> | ||
/// Builds a ConditionMetadata from the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>ConditionMetadata</returns> | ||
public static ConditionMetadata FromJson(string jsonString) { | ||
return JsonSerializer.Deserialize<ConditionMetadata>(jsonString) ?? throw new InvalidOperationException(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="input">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object input) { | ||
return this.Equals(input as ConditionMetadata); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if ConditionMetadata instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of ConditionMetadata to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(ConditionMetadata input) { | ||
if (input == null) { | ||
return false; | ||
} | ||
return | ||
( | ||
this.Module == input.Module || | ||
(this.Module != null && | ||
this.Module.Equals(input.Module)) | ||
) && | ||
( | ||
this.SourceInfo == input.SourceInfo || | ||
(this.SourceInfo != null && | ||
this.SourceInfo.Equals(input.SourceInfo)) | ||
) | ||
&& (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() { | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 9661; | ||
if (this.Module != null) { | ||
hashCode = (hashCode * 9923) + this.Module.GetHashCode(); | ||
} | ||
if (this.SourceInfo != null) { | ||
hashCode = (hashCode * 9923) + this.SourceInfo.GetHashCode(); | ||
} | ||
if (this.AdditionalProperties != null) { | ||
hashCode = (hashCode * 9923) + this.AdditionalProperties.GetHashCode(); | ||
} | ||
return hashCode; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// To validate all properties of the instance | ||
/// </summary> | ||
/// <param name="validationContext">Validation context</param> | ||
/// <returns>Validation Result</returns> | ||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) { | ||
yield break; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.