Here are the examples of the csharp api long.Equals(object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
884 Examples
19
View Source File : LineItem.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public bool Equals(LineItem input)
{
if (input == null)
return false;
return
(
this.AmountExcludingTax == input.AmountExcludingTax ||
this.AmountExcludingTax != null &&
this.AmountExcludingTax.Equals(input.AmountExcludingTax)
) &&
(
this.AmountIncludingTax == input.AmountIncludingTax ||
this.AmountIncludingTax != null &&
this.AmountIncludingTax.Equals(input.AmountIncludingTax)
) &&
(
this.Description == input.Description ||
this.Description != null &&
this.Description.Equals(input.Description)
) &&
(
this.Id == input.Id ||
this.Id != null &&
this.Id.Equals(input.Id)
) &&
(
this.ImageUrl == input.ImageUrl ||
this.ImageUrl != null &&
this.ImageUrl.Equals(input.ImageUrl)
) &&
(
this.ProductUrl == input.ProductUrl ||
this.ProductUrl != null &&
this.ProductUrl.Equals(input.ProductUrl)
) &&
(
this.Quanreplacedy == input.Quanreplacedy ||
this.Quanreplacedy != null &&
this.Quanreplacedy.Equals(input.Quanreplacedy)
) &&
(
this.TaxAmount == input.TaxAmount ||
this.TaxAmount != null &&
this.TaxAmount.Equals(input.TaxAmount)
) &&
(
this.TaxCategory == input.TaxCategory ||
this.TaxCategory != null &&
this.TaxCategory.Equals(input.TaxCategory)
) &&
(
this.TaxPercentage == input.TaxPercentage ||
this.TaxPercentage != null &&
this.TaxPercentage.Equals(input.TaxPercentage)
);
}
19
View Source File : Amount.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public bool Equals(Amount input)
{
if (input == null)
return false;
return
(
this.Currency == input.Currency ||
this.Currency != null &&
this.Currency.Equals(input.Currency)
) &&
(
this.Value == input.Value ||
this.Value != null &&
this.Value.Equals(input.Value)
);
}
19
View Source File : SplitAmount.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public bool Equals(SplitAmount input)
{
if (input == null)
return false;
return
(
this.Currency == input.Currency ||
this.Currency != null &&
this.Currency.Equals(input.Currency)
) &&
(
this.Value == input.Value ||
this.Value != null &&
this.Value.Equals(input.Value)
);
}
19
View Source File : Amount.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public bool Equals(Amount other)
{
if (other == null)
return false;
return
(
this.Currency == other.Currency ||
this.Currency != null &&
this.Currency.Equals(other.Currency)
) &&
(
this.Value == other.Value ||
this.Value != null &&
this.Value.Equals(other.Value)
);
}
19
View Source File : SplitAmount.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public bool Equals(SplitAmount input)
{
if (input == null)
return false;
return
(
this.Currency == input.Currency ||
(this.Currency != null &&
this.Currency.Equals(input.Currency))
) &&
(
this.Value == input.Value ||
(this.Value != null &&
this.Value.Equals(input.Value))
);
}
19
View Source File : GPGKey.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public bool Equals(GPGKey input)
{
if (input == null)
{
return false;
}
return
(
this.CanCertify == input.CanCertify ||
(this.CanCertify != null &&
this.CanCertify.Equals(input.CanCertify))) &&
(
this.CanEncryptComms == input.CanEncryptComms ||
(this.CanEncryptComms != null &&
this.CanEncryptComms.Equals(input.CanEncryptComms))) &&
(
this.CanEncryptStorage == input.CanEncryptStorage ||
(this.CanEncryptStorage != null &&
this.CanEncryptStorage.Equals(input.CanEncryptStorage))) &&
(
this.CanSign == input.CanSign ||
(this.CanSign != null &&
this.CanSign.Equals(input.CanSign))) &&
(
this.CreatedAt == input.CreatedAt ||
(this.CreatedAt != null &&
this.CreatedAt.Equals(input.CreatedAt))) &&
(
this.Emails == input.Emails ||
(this.Emails != null &&
this.Emails.SequenceEqual(input.Emails))) &&
(
this.ExpiresAt == input.ExpiresAt ||
(this.ExpiresAt != null &&
this.ExpiresAt.Equals(input.ExpiresAt))) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))) &&
(
this.KeyId == input.KeyId ||
(this.KeyId != null &&
this.KeyId.Equals(input.KeyId))) &&
(
this.PrimaryKeyId == input.PrimaryKeyId ||
(this.PrimaryKeyId != null &&
this.PrimaryKeyId.Equals(input.PrimaryKeyId))) &&
(
this.PublicKey == input.PublicKey ||
(this.PublicKey != null &&
this.PublicKey.Equals(input.PublicKey))) &&
(
this.Subkeys == input.Subkeys ||
(this.Subkeys != null &&
this.Subkeys.SequenceEqual(input.Subkeys)));
}
19
View Source File : PublicKey.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public bool Equals(PublicKey input)
{
if (input == null)
{
return false;
}
return
(
this.CreatedAt == input.CreatedAt ||
(this.CreatedAt != null &&
this.CreatedAt.Equals(input.CreatedAt))) &&
(
this.Fingerprint == input.Fingerprint ||
(this.Fingerprint != null &&
this.Fingerprint.Equals(input.Fingerprint))) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))) &&
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))) &&
(
this.replacedle == input.replacedle ||
(this.replacedle != null &&
this.replacedle.Equals(input.replacedle))) &&
(
this.Url == input.Url ||
(this.Url != null &&
this.Url.Equals(input.Url)));
}
19
View Source File : Repository.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public bool Equals(Repository input)
{
if (input == null)
{
return false;
}
return
(
this.CloneUrl == input.CloneUrl ||
(this.CloneUrl != null &&
this.CloneUrl.Equals(input.CloneUrl))) &&
(
this.CreatedAt == input.CreatedAt ||
(this.CreatedAt != null &&
this.CreatedAt.Equals(input.CreatedAt))) &&
(
this.DefaultBranch == input.DefaultBranch ||
(this.DefaultBranch != null &&
this.DefaultBranch.Equals(input.DefaultBranch))) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))) &&
(
this.Empty == input.Empty ||
(this.Empty != null &&
this.Empty.Equals(input.Empty))) &&
(
this.Fork == input.Fork ||
(this.Fork != null &&
this.Fork.Equals(input.Fork))) &&
(
this.ForksCount == input.ForksCount ||
(this.ForksCount != null &&
this.ForksCount.Equals(input.ForksCount))) &&
(
this.FullName == input.FullName ||
(this.FullName != null &&
this.FullName.Equals(input.FullName))) &&
(
this.HtmlUrl == input.HtmlUrl ||
(this.HtmlUrl != null &&
this.HtmlUrl.Equals(input.HtmlUrl))) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))) &&
(
this.Mirror == input.Mirror ||
(this.Mirror != null &&
this.Mirror.Equals(input.Mirror))) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))) &&
(
this.OreplacedsuesCount == input.OreplacedsuesCount ||
(this.OreplacedsuesCount != null &&
this.OreplacedsuesCount.Equals(input.OreplacedsuesCount))) &&
(
this.Owner == input.Owner ||
(this.Owner != null &&
this.Owner.Equals(input.Owner))) &&
(
this.Parent == input.Parent ||
(this.Parent != null &&
this.Parent.Equals(input.Parent))) &&
(
this.Permissions == input.Permissions ||
(this.Permissions != null &&
this.Permissions.Equals(input.Permissions))) &&
(
this.IsPrivate == input.IsPrivate ||
(this.IsPrivate != null &&
this.IsPrivate.Equals(input.IsPrivate))) &&
(
this.Size == input.Size ||
(this.Size != null &&
this.Size.Equals(input.Size))) &&
(
this.SshUrl == input.SshUrl ||
(this.SshUrl != null &&
this.SshUrl.Equals(input.SshUrl))) &&
(
this.StarsCount == input.StarsCount ||
(this.StarsCount != null &&
this.StarsCount.Equals(input.StarsCount))) &&
(
this.UpdatedAt == input.UpdatedAt ||
(this.UpdatedAt != null &&
this.UpdatedAt.Equals(input.UpdatedAt))) &&
(
this.WatchersCount == input.WatchersCount ||
(this.WatchersCount != null &&
this.WatchersCount.Equals(input.WatchersCount))) &&
(
this.Website == input.Website ||
(this.Website != null &&
this.Website.Equals(input.Website)));
}
19
View Source File : TrackedTime.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public bool Equals(TrackedTime input)
{
if (input == null)
{
return false;
}
return
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))) &&
(
this.IssueId == input.IssueId ||
(this.IssueId != null &&
this.IssueId.Equals(input.IssueId))) &&
(
this.Time == input.Time ||
(this.Time != null &&
this.Time.Equals(input.Time))) &&
(
this.UserId == input.UserId ||
(this.UserId != null &&
this.UserId.Equals(input.UserId)));
}
19
View Source File : User.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public bool Equals(User input)
{
if (input == null)
{
return false;
}
return
(
this.AvatarUrl == input.AvatarUrl ||
(this.AvatarUrl != null &&
this.AvatarUrl.Equals(input.AvatarUrl))) &&
(
this.Email == input.Email ||
(this.Email != null &&
this.Email.Equals(input.Email))) &&
(
this.FullName == input.FullName ||
(this.FullName != null &&
this.FullName.Equals(input.FullName))) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))) &&
(
this.Login == input.Login ||
(this.Login != null &&
this.Login.Equals(input.Login)));
}
19
View Source File : BucketsItems.cs
License : Apache License 2.0
Project Creator : Autodesk-Forge
License : Apache License 2.0
Project Creator : Autodesk-Forge
public bool Equals(BucketsItems other)
{
// credit: http://stackoverflow.com/a/10454552/677735
if (other == null)
return false;
return
(
this.BucketKey == other.BucketKey ||
this.BucketKey != null &&
this.BucketKey.Equals(other.BucketKey)
) &&
(
this.CreatedDate == other.CreatedDate ||
this.CreatedDate != null &&
this.CreatedDate.Equals(other.CreatedDate)
) &&
(
this.PolicyKey == other.PolicyKey ||
this.PolicyKey != null &&
this.PolicyKey.Equals(other.PolicyKey)
);
}
19
View Source File : OAuthError.cs
License : Apache License 2.0
Project Creator : Autodesk-Forge
License : Apache License 2.0
Project Creator : Autodesk-Forge
public bool Equals(OAuthError other)
{
// credit: http://stackoverflow.com/a/10454552/677735
if (other == null)
return false;
return
(
this.ErrorMessage == other.ErrorMessage ||
this.ErrorMessage != null &&
this.ErrorMessage.Equals(other.ErrorMessage)
) &&
(
this.ErrorCode == other.ErrorCode ||
this.ErrorCode != null &&
this.ErrorCode.Equals(other.ErrorCode)
) &&
(
this.ErrorResponse == other.ErrorResponse ||
this.ErrorResponse != null &&
this.ErrorResponse.Equals(other.ErrorResponse)
);
}
19
View Source File : PostObjectSigned.cs
License : Apache License 2.0
Project Creator : Autodesk-Forge
License : Apache License 2.0
Project Creator : Autodesk-Forge
public bool Equals(PostObjectSigned other)
{
// credit: http://stackoverflow.com/a/10454552/677735
if (other == null)
return false;
return
(
this.SignedUrl == other.SignedUrl ||
this.SignedUrl != null &&
this.SignedUrl.Equals(other.SignedUrl)
) &&
(
this.Expiration == other.Expiration ||
this.Expiration != null &&
this.Expiration.Equals(other.Expiration)
);
}
19
View Source File : VersionAttributes.cs
License : Apache License 2.0
Project Creator : Autodesk-Forge
License : Apache License 2.0
Project Creator : Autodesk-Forge
public bool Equals(VersionAttributes other)
{
// credit: http://stackoverflow.com/a/10454552/677735
if (other == null)
return false;
return
(
this.Name == other.Name ||
this.Name != null &&
this.Name.Equals(other.Name)
) &&
(
this.DisplayName == other.DisplayName ||
this.DisplayName != null &&
this.DisplayName.Equals(other.DisplayName)
) &&
(
this.VersionNumber == other.VersionNumber ||
this.VersionNumber != null &&
this.VersionNumber.Equals(other.VersionNumber)
) &&
(
this.MimeType == other.MimeType ||
this.MimeType != null &&
this.MimeType.Equals(other.MimeType)
) &&
(
this.FileType == other.FileType ||
this.FileType != null &&
this.FileType.Equals(other.FileType)
) &&
(
this.StorageSize == other.StorageSize ||
this.StorageSize != null &&
this.StorageSize.Equals(other.StorageSize)
) &&
(
this.Extension == other.Extension ||
this.Extension != null &&
this.Extension.Equals(other.Extension)
);
}
19
View Source File : ARCameraFrameEventArgs.cs
License : Apache License 2.0
Project Creator : chenjd
License : Apache License 2.0
Project Creator : chenjd
public bool Equals(ARCameraFrameEventArgs other)
{
return
lightEstimation.Equals(other.lightEstimation)
&& timestampNs.Equals(other.timestampNs)
&& projectionMatrix.Equals(other.projectionMatrix)
&& displayMatrix.Equals(other.displayMatrix)
&& textures.Equals(other.textures)
&& propertyNameIds.Equals(other.propertyNameIds);
}
19
View Source File : Example.cs
License : GNU General Public License v3.0
Project Creator : ClayLipscomb
License : GNU General Public License v3.0
Project Creator : ClayLipscomb
public void Test() {
uint? rowLimit = 25; // limit result sets to 25 rows, underlying table has over 1000 rows
Int64? pInInt64 = 999999999999999999; // 18 digit long
Decimal? pInDecimal = 79228162514264337593543950335M; // 28 digit decimal (Decimal.MaxValue)
String pInOutString = HELLO;
DateTime? pOutDate;
// List used as argument for Oracle replacedociative array
IList<Int64?> pInOutListInt64, somePrimeNumbers = new List<Int64?> { 2, 3, 5, 7, 11, 13, 17, 19, 29, 31 };
// DTO IList<T>s and a datatable to be hydrated from Oracle cursor
IList<DtoImplemented> dtoInheritedResultSet;
IList<DtoImplementedWithCustom> dtoImplementedResultSet;
IList<DtoCustomMapByName> dtoOriginalMapByNameResultSet;
IList<DtoCustomMapByPosition> dtoOriginalMapByPositionLResultSet;
DataTable dataTable;
// 1. Hydrate DTO IList<T> from typed result set by using DTO implementing package record interface.
pInOutListInt64 = somePrimeNumbers;
dtoInheritedResultSet = XmplPkgExample.Instance.GetRowsTypedRet<DtoImplemented>(pInDecimal, ref pInOutString, ref pInOutListInt64, out pOutDate, rowLimit);
Debug.replacedert(dtoInheritedResultSet.Count == rowLimit);
Debug.replacedert(pInOutString.Equals(GOODBYE)); // confirm OUT string arg from package function
for (int i = 0; i < pInOutListInt64.Count; i++)
Debug.replacedert(pInOutListInt64[i].Equals(somePrimeNumbers[i] * 7)); // confirm all values were multiplied by 7 in func
Debug.replacedert(pOutDate.Equals(new DateTime(1999, 12, 31))); // confirm OUT date arg from package function
// 2. Hydrate DTO IList<T> from typed result set by using DTO implementing package record interface with additional properties.
pInOutListInt64 = somePrimeNumbers;
dtoImplementedResultSet = XmplPkgExample.Instance.GetRowsTypedRet<DtoImplementedWithCustom>(pInDecimal, ref pInOutString, ref pInOutListInt64, out pOutDate, rowLimit);
Debug.replacedert(dtoImplementedResultSet.Count == rowLimit);
Debug.replacedert(pInOutString.Equals(GOODBYE)); // confirm OUT string arg from package function
for (int i = 0; i < pInOutListInt64.Count; i++)
Debug.replacedert(pInOutListInt64[i].Equals(somePrimeNumbers[i] * 7)); // confirm all values were multiplied by 7 in func
Debug.replacedert(pOutDate.Equals(new DateTime(1999, 12, 31))); // confirm OUT date arg from package function
// 3. Hydrate DTO IList<T> from untyped result set by mapping column name to property name (default);
// unmapped columns will be ignored (non-default).
dtoOriginalMapByNameResultSet = XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByName>(pInInt64, false, true, rowLimit);
Debug.replacedert(dtoOriginalMapByNameResultSet.Count == rowLimit);
// 4. Hydrate DTO IList<T> from untyped result set by mapping column name to property name (default);
// an unmapped column will throw (default).
try {
dtoOriginalMapByNameResultSet = XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByName>(pInInt64, false, false, rowLimit);
} catch (Exception ex) {
if (!ex.Message.StartsWith("Hydrator.BuildMappings")) Debug.replacedert(false);
}
// 5. Hydrate DTO IList<T> from untyped result set by mapping column position to property position (non-default);
// unmapped columns will be ignored (non-default)
dtoOriginalMapByPositionLResultSet = XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByPosition>(pInInt64, true, true, rowLimit);
// 6. Hydrate DTO IList<T> from untyped result set by mapping column position to property position (non-default);
// an unmapped column will throw (default).
try {
dtoOriginalMapByPositionLResultSet = XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByPosition>(pInInt64, true, false, rowLimit);
} catch (Exception ex) {
if (!ex.Message.StartsWith("Hydrator.BuildMappings")) Debug.replacedert(false);
}
// 7. Hydrate Datatable from all columns in untyped result set, column names are converted to DataTable captions.
// No DTO or generic required.
dataTable = XmplPkgExample.Instance.GetRowsUntypedRet(pInInt64, true, rowLimit);
Debug.replacedert(dataTable.Rows.Count == rowLimit);
List<String> dataTableCaptions = new List<string> { "Id", "Col Integer", "Col Number", "Varchar2 Max Col", "Col Date", "Col Timestamp" };
for (int i = 0; i < dataTableCaptions.Count; i++)
Debug.replacedert(dataTable.Columns[i].Caption.Equals(dataTableCaptions[i])); // confirm captions were created from column name
}
19
View Source File : Example.NET5.cs
License : GNU General Public License v3.0
Project Creator : ClayLipscomb
License : GNU General Public License v3.0
Project Creator : ClayLipscomb
public void Test() {
uint? rowLimit = 25; // limit result sets to 25 rows, underlying table has over 1000 rows
Int64? pInInt64 = 999999999999999999; // 18 digit long
Decimal? pInDecimal = 79228162514264337593543950335M; // 28 digit decimal (Decimal.MaxValue)
String pInOutString = HELLO;
DateTime? pOutDate;
// List used as argument for Oracle replacedociative array
IList<Int64?> pInOutListInt64, somePrimeNumbers = new List<Int64?> { 2, 3, 5, 7, 11, 13, 17, 19, 29, 31 };
// 1a. Hydrate DTO IList<T> from typed result set by using DTO implementing package record interface.
pInOutListInt64 = somePrimeNumbers;
Debug.replacedert(XmplPkgExample.Instance.GetRowsTypedRet<DtoImplemented>(pInDecimal, ref pInOutString, ref pInOutListInt64, out pOutDate, rowLimit).Count == rowLimit);
Debug.replacedert(pInOutString.Equals(GOODBYE)); // confirm OUT string arg from package function
for (int i = 0; i < pInOutListInt64.Count; i++)
Debug.replacedert(pInOutListInt64[i].Equals(somePrimeNumbers[i] * 7)); // confirm all values were multiplied by 7 in func
Debug.replacedert(pOutDate.Equals(new DateTime(1999, 12, 31))); // confirm OUT date arg from package function
// 1b. Hydrate DTO IList<T> from typed result set by using DTO positional record implementing package record interface.
pInOutListInt64 = somePrimeNumbers;
Debug.replacedert(XmplPkgExample.Instance.GetRowsTypedRet<DtoImplementedPositionalRecord>(pInDecimal, ref pInOutString, ref pInOutListInt64, out pOutDate, rowLimit).Count == rowLimit);
Debug.replacedert(pInOutString.Equals(GOODBYE)); // confirm OUT string arg from package function
for (int i = 0; i < pInOutListInt64.Count; i++)
Debug.replacedert(pInOutListInt64[i].Equals(somePrimeNumbers[i] * 7)); // confirm all values were multiplied by 7 in func
Debug.replacedert(pOutDate.Equals(new DateTime(1999, 12, 31))); // confirm OUT date arg from package function
// 2. Hydrate DTO IList<T> from typed result set by using DTO implementing package record interface with additional properties.
pInOutListInt64 = somePrimeNumbers;
Debug.replacedert(XmplPkgExample.Instance.GetRowsTypedRet<DtoImplementedWithCustom>(pInDecimal, ref pInOutString, ref pInOutListInt64, out pOutDate, rowLimit).Count == rowLimit);
Debug.replacedert(pInOutString.Equals(GOODBYE)); // confirm OUT string arg from package function
for (int i = 0; i < pInOutListInt64.Count; i++)
Debug.replacedert(pInOutListInt64[i].Equals(somePrimeNumbers[i] * 7)); // confirm all values were multiplied by 7 in func
Debug.replacedert(pOutDate.Equals(new DateTime(1999, 12, 31))); // confirm OUT date arg from package function
// 3a. Hydrate DTO IList<T> from untyped result set by mapping column name to property name using custom positional record DTO;
// unmapped columns will be ignored.
Debug.replacedert(XmplPkgExample.Instance.GetRowsUntypedRet<DtoImplementedPositionalRecord>(pInInt64,
mapColumnToObjectPropertyByPosition: false, // map by name
allowUnmappedColumnsToBeExcluded: true,
rowLimit).Count == rowLimit);
// 3b. Hydrate DTO IList<T> from untyped result set by mapping column name to property name using custom DTO;
// unmapped columns will be ignored (arg non-default).
Debug.replacedert(XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByName>(pInInt64,
mapColumnToObjectPropertyByPosition: false, // map by name
allowUnmappedColumnsToBeExcluded: true,
rowLimit).Count == rowLimit);
// 4. Hydrate DTO IList<T> from untyped result set by mapping column name to property name custom DTO;
// an unmapped column will throw.
try {
XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByName>(pInInt64,
mapColumnToObjectPropertyByPosition: false, // map by name
allowUnmappedColumnsToBeExcluded: false,
rowLimit);
Debug.replacedert(false);
} catch (Exception ex) {
if (!ex.Message.StartsWith("Hydrator.BuildMappings")) Debug.replacedert(false);
}
// 5. Hydrate DTO IList<T> from untyped result set by mapping column position to property position using custom DTO with position attributes;
// unmapped columns will be ignored (non-default)
Debug.replacedert(XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByPosition>(pInInt64,
mapColumnToObjectPropertyByPosition: false, // map by position
allowUnmappedColumnsToBeExcluded: true,
rowLimit).Count == rowLimit);
// 6. Hydrate DTO IList<T> from untyped result set by mapping column position to property position using custom DTO with position attributes;
// an unmapped column will throw (default).
try {
XmplPkgExample.Instance.GetRowsUntypedRet<DtoCustomMapByPosition>(pInInt64,
mapColumnToObjectPropertyByPosition: false, // map by position
allowUnmappedColumnsToBeExcluded: false,
rowLimit);
Debug.replacedert(false);
} catch (Exception ex) {
if (!ex.Message.StartsWith("Hydrator.BuildMappings")) Debug.replacedert(false);
}
// 7. Hydrate Datatable from all columns in untyped result set, column names are converted to DataTable captions.
// No DTO or generic required.
DataTable dataTable = XmplPkgExample.Instance.GetRowsUntypedRet(pInInt64, true, rowLimit);
Debug.replacedert(dataTable.Rows.Count == rowLimit);
List<String> dataTableCaptions = new List<string> { "Id", "Col Integer", "Col Number", "Varchar2 Max Col", "Col Date", "Col Timestamp" };
for (int i = 0; i < dataTableCaptions.Count; i++)
Debug.replacedert(dataTable.Columns[i].Caption.Equals(dataTableCaptions[i])); // confirm captions were created from column name
}
19
View Source File : AcropolisRestoreParameters.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AcropolisRestoreParameters input)
{
if (input == null)
return false;
return
(
this.DisableNetwork == input.DisableNetwork ||
(this.DisableNetwork != null &&
this.DisableNetwork.Equals(input.DisableNetwork))
) &&
(
this.NetworkId == input.NetworkId ||
(this.NetworkId != null &&
this.NetworkId.Equals(input.NetworkId))
) &&
(
this.PoweredOn == input.PoweredOn ||
(this.PoweredOn != null &&
this.PoweredOn.Equals(input.PoweredOn))
) &&
(
this.Prefix == input.Prefix ||
(this.Prefix != null &&
this.Prefix.Equals(input.Prefix))
) &&
(
this.StorageContainerId == input.StorageContainerId ||
(this.StorageContainerId != null &&
this.StorageContainerId.Equals(input.StorageContainerId))
) &&
(
this.Suffix == input.Suffix ||
(this.Suffix != null &&
this.Suffix.Equals(input.Suffix))
);
}
19
View Source File : ActiveAlertsStats.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ActiveAlertsStats input)
{
if (input == null)
return false;
return
(
this.NumCriticalAlerts == input.NumCriticalAlerts ||
(this.NumCriticalAlerts != null &&
this.NumCriticalAlerts.Equals(input.NumCriticalAlerts))
) &&
(
this.NumHardwareAlerts == input.NumHardwareAlerts ||
(this.NumHardwareAlerts != null &&
this.NumHardwareAlerts.Equals(input.NumHardwareAlerts))
) &&
(
this.NumHardwareCriticalAlerts == input.NumHardwareCriticalAlerts ||
(this.NumHardwareCriticalAlerts != null &&
this.NumHardwareCriticalAlerts.Equals(input.NumHardwareCriticalAlerts))
) &&
(
this.NumHardwareInfoAlerts == input.NumHardwareInfoAlerts ||
(this.NumHardwareInfoAlerts != null &&
this.NumHardwareInfoAlerts.Equals(input.NumHardwareInfoAlerts))
) &&
(
this.NumHardwareWarningAlerts == input.NumHardwareWarningAlerts ||
(this.NumHardwareWarningAlerts != null &&
this.NumHardwareWarningAlerts.Equals(input.NumHardwareWarningAlerts))
) &&
(
this.NumInfoAlerts == input.NumInfoAlerts ||
(this.NumInfoAlerts != null &&
this.NumInfoAlerts.Equals(input.NumInfoAlerts))
) &&
(
this.NumServiceAlerts == input.NumServiceAlerts ||
(this.NumServiceAlerts != null &&
this.NumServiceAlerts.Equals(input.NumServiceAlerts))
) &&
(
this.NumServiceCriticalAlerts == input.NumServiceCriticalAlerts ||
(this.NumServiceCriticalAlerts != null &&
this.NumServiceCriticalAlerts.Equals(input.NumServiceCriticalAlerts))
) &&
(
this.NumServiceInfoAlerts == input.NumServiceInfoAlerts ||
(this.NumServiceInfoAlerts != null &&
this.NumServiceInfoAlerts.Equals(input.NumServiceInfoAlerts))
) &&
(
this.NumServiceWarningAlerts == input.NumServiceWarningAlerts ||
(this.NumServiceWarningAlerts != null &&
this.NumServiceWarningAlerts.Equals(input.NumServiceWarningAlerts))
) &&
(
this.NumSoftwareAlerts == input.NumSoftwareAlerts ||
(this.NumSoftwareAlerts != null &&
this.NumSoftwareAlerts.Equals(input.NumSoftwareAlerts))
) &&
(
this.NumSoftwareCriticalAlerts == input.NumSoftwareCriticalAlerts ||
(this.NumSoftwareCriticalAlerts != null &&
this.NumSoftwareCriticalAlerts.Equals(input.NumSoftwareCriticalAlerts))
) &&
(
this.NumSoftwareInfoAlerts == input.NumSoftwareInfoAlerts ||
(this.NumSoftwareInfoAlerts != null &&
this.NumSoftwareInfoAlerts.Equals(input.NumSoftwareInfoAlerts))
) &&
(
this.NumSoftwareWarningAlerts == input.NumSoftwareWarningAlerts ||
(this.NumSoftwareWarningAlerts != null &&
this.NumSoftwareWarningAlerts.Equals(input.NumSoftwareWarningAlerts))
) &&
(
this.NumWarningAlerts == input.NumWarningAlerts ||
(this.NumWarningAlerts != null &&
this.NumWarningAlerts.Equals(input.NumWarningAlerts))
);
}
19
View Source File : AddedActiveDirectoryPrincipal.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AddedActiveDirectoryPrincipal input)
{
if (input == null)
return false;
return
(
this.CreatedTimeMsecs == input.CreatedTimeMsecs ||
(this.CreatedTimeMsecs != null &&
this.CreatedTimeMsecs.Equals(input.CreatedTimeMsecs))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.Domain == input.Domain ||
(this.Domain != null &&
this.Domain.Equals(input.Domain))
) &&
(
this.LastUpdatedTimeMsecs == input.LastUpdatedTimeMsecs ||
(this.LastUpdatedTimeMsecs != null &&
this.LastUpdatedTimeMsecs.Equals(input.LastUpdatedTimeMsecs))
) &&
(
this.ObjectClreplaced == input.ObjectClreplaced ||
this.ObjectClreplaced.Equals(input.ObjectClreplaced)
) &&
(
this.PrincipalName == input.PrincipalName ||
(this.PrincipalName != null &&
this.PrincipalName.Equals(input.PrincipalName))
) &&
(
this.Restricted == input.Restricted ||
(this.Restricted != null &&
this.Restricted.Equals(input.Restricted))
) &&
(
this.Roles == input.Roles ||
this.Roles != null &&
input.Roles != null &&
this.Roles.SequenceEqual(input.Roles)
) &&
(
this.Sid == input.Sid ||
(this.Sid != null &&
this.Sid.Equals(input.Sid))
);
}
19
View Source File : AdditionalOracleDBParams.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AdditionalOracleDBParams input)
{
if (input == null)
return false;
return
(
this.AppEnreplacedyId == input.AppEnreplacedyId ||
(this.AppEnreplacedyId != null &&
this.AppEnreplacedyId.Equals(input.AppEnreplacedyId))
) &&
(
this.DbInfoChannelVec == input.DbInfoChannelVec ||
this.DbInfoChannelVec != null &&
input.DbInfoChannelVec != null &&
this.DbInfoChannelVec.SequenceEqual(input.DbInfoChannelVec)
);
}
19
View Source File : AdObjectRestoreInformation.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AdObjectRestoreInformation input)
{
if (input == null)
return false;
return
(
this.AttributeRestoreInfo == input.AttributeRestoreInfo ||
this.AttributeRestoreInfo != null &&
input.AttributeRestoreInfo != null &&
this.AttributeRestoreInfo.SequenceEqual(input.AttributeRestoreInfo)
) &&
(
this.ErrorMessage == input.ErrorMessage ||
(this.ErrorMessage != null &&
this.ErrorMessage.Equals(input.ErrorMessage))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.StartTimeUsecs == input.StartTimeUsecs ||
(this.StartTimeUsecs != null &&
this.StartTimeUsecs.Equals(input.StartTimeUsecs))
) &&
(
this.TimeTakenMsecs == input.TimeTakenMsecs ||
(this.TimeTakenMsecs != null &&
this.TimeTakenMsecs.Equals(input.TimeTakenMsecs))
);
}
19
View Source File : AgentInformation.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AgentInformation input)
{
if (input == null)
return false;
return
(
this.CbmrVersion == input.CbmrVersion ||
(this.CbmrVersion != null &&
this.CbmrVersion.Equals(input.CbmrVersion))
) &&
(
this.HostType == input.HostType ||
this.HostType.Equals(input.HostType)
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.OracleMultiNodeChannelSupported == input.OracleMultiNodeChannelSupported ||
(this.OracleMultiNodeChannelSupported != null &&
this.OracleMultiNodeChannelSupported.Equals(input.OracleMultiNodeChannelSupported))
) &&
(
this.RegistrationInfo == input.RegistrationInfo ||
(this.RegistrationInfo != null &&
this.RegistrationInfo.Equals(input.RegistrationInfo))
) &&
(
this.SourceSideDedupEnabled == input.SourceSideDedupEnabled ||
(this.SourceSideDedupEnabled != null &&
this.SourceSideDedupEnabled.Equals(input.SourceSideDedupEnabled))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
) &&
(
this.StatusMessage == input.StatusMessage ||
(this.StatusMessage != null &&
this.StatusMessage.Equals(input.StatusMessage))
) &&
(
this.Upgradability == input.Upgradability ||
this.Upgradability.Equals(input.Upgradability)
) &&
(
this.UpgradeStatus == input.UpgradeStatus ||
this.UpgradeStatus.Equals(input.UpgradeStatus)
) &&
(
this.UpgradeStatusMessage == input.UpgradeStatusMessage ||
(this.UpgradeStatusMessage != null &&
this.UpgradeStatusMessage.Equals(input.UpgradeStatusMessage))
) &&
(
this.Version == input.Version ||
(this.Version != null &&
this.Version.Equals(input.Version))
);
}
19
View Source File : AntivirusServiceGroupStateParams.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AntivirusServiceGroupStateParams input)
{
if (input == null)
return false;
return
(
this.Enable == input.Enable ||
(this.Enable != null &&
this.Enable.Equals(input.Enable))
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
);
}
19
View Source File : App.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(App input)
{
if (input == null)
return false;
return
(
this.AppId == input.AppId ||
(this.AppId != null &&
this.AppId.Equals(input.AppId))
) &&
(
this.Clusters == input.Clusters ||
this.Clusters != null &&
input.Clusters != null &&
this.Clusters.SequenceEqual(input.Clusters)
) &&
(
this.DownloadProgressPct == input.DownloadProgressPct ||
(this.DownloadProgressPct != null &&
this.DownloadProgressPct.Equals(input.DownloadProgressPct))
) &&
(
this.InstallState == input.InstallState ||
this.InstallState.Equals(input.InstallState)
) &&
(
this.InstallTime == input.InstallTime ||
(this.InstallTime != null &&
this.InstallTime.Equals(input.InstallTime))
) &&
(
this.IsLatest == input.IsLatest ||
(this.IsLatest != null &&
this.IsLatest.Equals(input.IsLatest))
) &&
(
this.LatestVersion == input.LatestVersion ||
(this.LatestVersion != null &&
this.LatestVersion.Equals(input.LatestVersion))
) &&
(
this.Metadata == input.Metadata ||
(this.Metadata != null &&
this.Metadata.Equals(input.Metadata))
) &&
(
this.RequiredPrivileges == input.RequiredPrivileges ||
this.RequiredPrivileges.SequenceEqual(input.RequiredPrivileges)
) &&
(
this.UninstallTime == input.UninstallTime ||
(this.UninstallTime != null &&
this.UninstallTime.Equals(input.UninstallTime))
) &&
(
this.Version == input.Version ||
(this.Version != null &&
this.Version.Equals(input.Version))
);
}
19
View Source File : ApplicationRestoreObject.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ApplicationRestoreObject input)
{
if (input == null)
return false;
return
(
this.AdRestoreParameters == input.AdRestoreParameters ||
(this.AdRestoreParameters != null &&
this.AdRestoreParameters.Equals(input.AdRestoreParameters))
) &&
(
this.ApplicationServerId == input.ApplicationServerId ||
(this.ApplicationServerId != null &&
this.ApplicationServerId.Equals(input.ApplicationServerId))
) &&
(
this.ExchangeRestoreParameters == input.ExchangeRestoreParameters ||
(this.ExchangeRestoreParameters != null &&
this.ExchangeRestoreParameters.Equals(input.ExchangeRestoreParameters))
) &&
(
this.SqlRestoreParameters == input.SqlRestoreParameters ||
(this.SqlRestoreParameters != null &&
this.SqlRestoreParameters.Equals(input.SqlRestoreParameters))
) &&
(
this.TargetHostId == input.TargetHostId ||
(this.TargetHostId != null &&
this.TargetHostId.Equals(input.TargetHostId))
) &&
(
this.TargetRootNodeId == input.TargetRootNodeId ||
(this.TargetRootNodeId != null &&
this.TargetRootNodeId.Equals(input.TargetRootNodeId))
);
}
19
View Source File : AuditLogsTile.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AuditLogsTile input)
{
if (input == null)
return false;
return
(
this.ClusterAuditLogs == input.ClusterAuditLogs ||
this.ClusterAuditLogs != null &&
input.ClusterAuditLogs != null &&
this.ClusterAuditLogs.SequenceEqual(input.ClusterAuditLogs)
) &&
(
this.TotalCount == input.TotalCount ||
(this.TotalCount != null &&
this.TotalCount.Equals(input.TotalCount))
);
}
19
View Source File : AwsProtectionSource.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AwsProtectionSource input)
{
if (input == null)
return false;
return
(
this.AccessKey == input.AccessKey ||
(this.AccessKey != null &&
this.AccessKey.Equals(input.AccessKey))
) &&
(
this.AmazonResourceName == input.AmazonResourceName ||
(this.AmazonResourceName != null &&
this.AmazonResourceName.Equals(input.AmazonResourceName))
) &&
(
this.AwsType == input.AwsType ||
this.AwsType.Equals(input.AwsType)
) &&
(
this.DbEngineId == input.DbEngineId ||
(this.DbEngineId != null &&
this.DbEngineId.Equals(input.DbEngineId))
) &&
(
this.HostType == input.HostType ||
this.HostType.Equals(input.HostType)
) &&
(
this.IpAddresses == input.IpAddresses ||
(this.IpAddresses != null &&
this.IpAddresses.Equals(input.IpAddresses))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.OwnerId == input.OwnerId ||
(this.OwnerId != null &&
this.OwnerId.Equals(input.OwnerId))
) &&
(
this.PhysicalSourceId == input.PhysicalSourceId ||
(this.PhysicalSourceId != null &&
this.PhysicalSourceId.Equals(input.PhysicalSourceId))
) &&
(
this.RegionId == input.RegionId ||
(this.RegionId != null &&
this.RegionId.Equals(input.RegionId))
) &&
(
this.ResourceId == input.ResourceId ||
(this.ResourceId != null &&
this.ResourceId.Equals(input.ResourceId))
) &&
(
this.RestoreTaskId == input.RestoreTaskId ||
(this.RestoreTaskId != null &&
this.RestoreTaskId.Equals(input.RestoreTaskId))
) &&
(
this.SecretAccessKey == input.SecretAccessKey ||
(this.SecretAccessKey != null &&
this.SecretAccessKey.Equals(input.SecretAccessKey))
) &&
(
this.SubscriptionType == input.SubscriptionType ||
this.SubscriptionType.Equals(input.SubscriptionType)
) &&
(
this.TagAttributes == input.TagAttributes ||
this.TagAttributes != null &&
input.TagAttributes != null &&
this.TagAttributes.SequenceEqual(input.TagAttributes)
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
) &&
(
this.UserAccountId == input.UserAccountId ||
(this.UserAccountId != null &&
this.UserAccountId.Equals(input.UserAccountId))
) &&
(
this.UserResourceName == input.UserResourceName ||
(this.UserResourceName != null &&
this.UserResourceName.Equals(input.UserResourceName))
);
}
19
View Source File : AzureParams.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AzureParams input)
{
if (input == null)
return false;
return
(
this.DataDiskType == input.DataDiskType ||
this.DataDiskType.Equals(input.DataDiskType)
) &&
(
this.InstanceId == input.InstanceId ||
(this.InstanceId != null &&
this.InstanceId.Equals(input.InstanceId))
) &&
(
this.NetworkResourceGroupId == input.NetworkResourceGroupId ||
(this.NetworkResourceGroupId != null &&
this.NetworkResourceGroupId.Equals(input.NetworkResourceGroupId))
) &&
(
this.OsDiskType == input.OsDiskType ||
this.OsDiskType.Equals(input.OsDiskType)
) &&
(
this.ResourceGroup == input.ResourceGroup ||
(this.ResourceGroup != null &&
this.ResourceGroup.Equals(input.ResourceGroup))
) &&
(
this.StorageAccount == input.StorageAccount ||
(this.StorageAccount != null &&
this.StorageAccount.Equals(input.StorageAccount))
) &&
(
this.StorageContainer == input.StorageContainer ||
(this.StorageContainer != null &&
this.StorageContainer.Equals(input.StorageContainer))
) &&
(
this.StorageResourceGroupId == input.StorageResourceGroupId ||
(this.StorageResourceGroupId != null &&
this.StorageResourceGroupId.Equals(input.StorageResourceGroupId))
) &&
(
this.SubnetId == input.SubnetId ||
(this.SubnetId != null &&
this.SubnetId.Equals(input.SubnetId))
) &&
(
this.TempVmResourceGroupId == input.TempVmResourceGroupId ||
(this.TempVmResourceGroupId != null &&
this.TempVmResourceGroupId.Equals(input.TempVmResourceGroupId))
) &&
(
this.TempVmStorageAccountId == input.TempVmStorageAccountId ||
(this.TempVmStorageAccountId != null &&
this.TempVmStorageAccountId.Equals(input.TempVmStorageAccountId))
) &&
(
this.TempVmStorageContainerId == input.TempVmStorageContainerId ||
(this.TempVmStorageContainerId != null &&
this.TempVmStorageContainerId.Equals(input.TempVmStorageContainerId))
) &&
(
this.TempVmSubnetId == input.TempVmSubnetId ||
(this.TempVmSubnetId != null &&
this.TempVmSubnetId.Equals(input.TempVmSubnetId))
) &&
(
this.TempVmVirtualNetworkId == input.TempVmVirtualNetworkId ||
(this.TempVmVirtualNetworkId != null &&
this.TempVmVirtualNetworkId.Equals(input.TempVmVirtualNetworkId))
) &&
(
this.VirtualNetworkId == input.VirtualNetworkId ||
(this.VirtualNetworkId != null &&
this.VirtualNetworkId.Equals(input.VirtualNetworkId))
);
}
19
View Source File : AzureProtectionSource.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(AzureProtectionSource input)
{
if (input == null)
return false;
return
(
this.ApplicationId == input.ApplicationId ||
(this.ApplicationId != null &&
this.ApplicationId.Equals(input.ApplicationId))
) &&
(
this.ApplicationKey == input.ApplicationKey ||
(this.ApplicationKey != null &&
this.ApplicationKey.Equals(input.ApplicationKey))
) &&
(
this.AzureType == input.AzureType ||
this.AzureType.Equals(input.AzureType)
) &&
(
this.HostType == input.HostType ||
this.HostType.Equals(input.HostType)
) &&
(
this.IpAddresses == input.IpAddresses ||
this.IpAddresses != null &&
input.IpAddresses != null &&
this.IpAddresses.SequenceEqual(input.IpAddresses)
) &&
(
this.IsManagedVm == input.IsManagedVm ||
(this.IsManagedVm != null &&
this.IsManagedVm.Equals(input.IsManagedVm))
) &&
(
this.Location == input.Location ||
(this.Location != null &&
this.Location.Equals(input.Location))
) &&
(
this.MemoryMbytes == input.MemoryMbytes ||
(this.MemoryMbytes != null &&
this.MemoryMbytes.Equals(input.MemoryMbytes))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.NumCores == input.NumCores ||
(this.NumCores != null &&
this.NumCores.Equals(input.NumCores))
) &&
(
this.PhysicalSourceId == input.PhysicalSourceId ||
(this.PhysicalSourceId != null &&
this.PhysicalSourceId.Equals(input.PhysicalSourceId))
) &&
(
this.ResourceId == input.ResourceId ||
(this.ResourceId != null &&
this.ResourceId.Equals(input.ResourceId))
) &&
(
this.RestoreTaskId == input.RestoreTaskId ||
(this.RestoreTaskId != null &&
this.RestoreTaskId.Equals(input.RestoreTaskId))
) &&
(
this.SubscriptionId == input.SubscriptionId ||
(this.SubscriptionId != null &&
this.SubscriptionId.Equals(input.SubscriptionId))
) &&
(
this.SubscriptionType == input.SubscriptionType ||
this.SubscriptionType.Equals(input.SubscriptionType)
) &&
(
this.TenantId == input.TenantId ||
(this.TenantId != null &&
this.TenantId.Equals(input.TenantId))
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
);
}
19
View Source File : BackupSourceStats.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(BackupSourceStats input)
{
if (input == null)
return false;
return
(
this.AdmittedTimeUsecs == input.AdmittedTimeUsecs ||
(this.AdmittedTimeUsecs != null &&
this.AdmittedTimeUsecs.Equals(input.AdmittedTimeUsecs))
) &&
(
this.EndTimeUsecs == input.EndTimeUsecs ||
(this.EndTimeUsecs != null &&
this.EndTimeUsecs.Equals(input.EndTimeUsecs))
) &&
(
this.StartTimeUsecs == input.StartTimeUsecs ||
(this.StartTimeUsecs != null &&
this.StartTimeUsecs.Equals(input.StartTimeUsecs))
) &&
(
this.TimeTakenUsecs == input.TimeTakenUsecs ||
(this.TimeTakenUsecs != null &&
this.TimeTakenUsecs.Equals(input.TimeTakenUsecs))
) &&
(
this.TotalBytesReadFromSource == input.TotalBytesReadFromSource ||
(this.TotalBytesReadFromSource != null &&
this.TotalBytesReadFromSource.Equals(input.TotalBytesReadFromSource))
) &&
(
this.TotalBytesToReadFromSource == input.TotalBytesToReadFromSource ||
(this.TotalBytesToReadFromSource != null &&
this.TotalBytesToReadFromSource.Equals(input.TotalBytesToReadFromSource))
) &&
(
this.TotalLogicalBackupSizeBytes == input.TotalLogicalBackupSizeBytes ||
(this.TotalLogicalBackupSizeBytes != null &&
this.TotalLogicalBackupSizeBytes.Equals(input.TotalLogicalBackupSizeBytes))
) &&
(
this.TotalPhysicalBackupSizeBytes == input.TotalPhysicalBackupSizeBytes ||
(this.TotalPhysicalBackupSizeBytes != null &&
this.TotalPhysicalBackupSizeBytes.Equals(input.TotalPhysicalBackupSizeBytes))
) &&
(
this.TotalSourceSizeBytes == input.TotalSourceSizeBytes ||
(this.TotalSourceSizeBytes != null &&
this.TotalSourceSizeBytes.Equals(input.TotalSourceSizeBytes))
);
}
19
View Source File : BandwidthLimitOverride.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(BandwidthLimitOverride input)
{
if (input == null)
return false;
return
(
this.BytesPerSecond == input.BytesPerSecond ||
(this.BytesPerSecond != null &&
this.BytesPerSecond.Equals(input.BytesPerSecond))
) &&
(
this.IoRate == input.IoRate ||
(this.IoRate != null &&
this.IoRate.Equals(input.IoRate))
) &&
(
this.TimePeriods == input.TimePeriods ||
(this.TimePeriods != null &&
this.TimePeriods.Equals(input.TimePeriods))
);
}
19
View Source File : CancelProtectionJobRunParam.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CancelProtectionJobRunParam input)
{
if (input == null)
return false;
return
(
this.CopyTaskUid == input.CopyTaskUid ||
(this.CopyTaskUid != null &&
this.CopyTaskUid.Equals(input.CopyTaskUid))
) &&
(
this.JobRunId == input.JobRunId ||
(this.JobRunId != null &&
this.JobRunId.Equals(input.JobRunId))
);
}
19
View Source File : CloneTaskRequest.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CloneTaskRequest input)
{
if (input == null)
return false;
return
(
this.CloneViewParameters == input.CloneViewParameters ||
(this.CloneViewParameters != null &&
this.CloneViewParameters.Equals(input.CloneViewParameters))
) &&
(
this.ContinueOnError == input.ContinueOnError ||
(this.ContinueOnError != null &&
this.ContinueOnError.Equals(input.ContinueOnError))
) &&
(
this.GlacierRetrievalType == input.GlacierRetrievalType ||
this.GlacierRetrievalType.Equals(input.GlacierRetrievalType)
) &&
(
this.HypervParameters == input.HypervParameters ||
(this.HypervParameters != null &&
this.HypervParameters.Equals(input.HypervParameters))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.NewParentId == input.NewParentId ||
(this.NewParentId != null &&
this.NewParentId.Equals(input.NewParentId))
) &&
(
this.Objects == input.Objects ||
this.Objects != null &&
input.Objects != null &&
this.Objects.SequenceEqual(input.Objects)
) &&
(
this.TargetViewName == input.TargetViewName ||
(this.TargetViewName != null &&
this.TargetViewName.Equals(input.TargetViewName))
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
) &&
(
this.VlanParameters == input.VlanParameters ||
(this.VlanParameters != null &&
this.VlanParameters.Equals(input.VlanParameters))
) &&
(
this.VmwareParameters == input.VmwareParameters ||
(this.VmwareParameters != null &&
this.VmwareParameters.Equals(input.VmwareParameters))
);
}
19
View Source File : CloneViewRequest.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CloneViewRequest input)
{
if (input == null)
return false;
return
(
this.AccessSids == input.AccessSids ||
this.AccessSids != null &&
input.AccessSids != null &&
this.AccessSids.SequenceEqual(input.AccessSids)
) &&
(
this.AntivirusScanConfig == input.AntivirusScanConfig ||
(this.AntivirusScanConfig != null &&
this.AntivirusScanConfig.Equals(input.AntivirusScanConfig))
) &&
(
this.CloneViewName == input.CloneViewName ||
(this.CloneViewName != null &&
this.CloneViewName.Equals(input.CloneViewName))
) &&
(
this.DataLockExpiryUsecs == input.DataLockExpiryUsecs ||
(this.DataLockExpiryUsecs != null &&
this.DataLockExpiryUsecs.Equals(input.DataLockExpiryUsecs))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.EnableFastDurableHandle == input.EnableFastDurableHandle ||
(this.EnableFastDurableHandle != null &&
this.EnableFastDurableHandle.Equals(input.EnableFastDurableHandle))
) &&
(
this.EnableFilerAuditLogging == input.EnableFilerAuditLogging ||
(this.EnableFilerAuditLogging != null &&
this.EnableFilerAuditLogging.Equals(input.EnableFilerAuditLogging))
) &&
(
this.EnableLiveIndexing == input.EnableLiveIndexing ||
(this.EnableLiveIndexing != null &&
this.EnableLiveIndexing.Equals(input.EnableLiveIndexing))
) &&
(
this.EnableMixedModePermissions == input.EnableMixedModePermissions ||
(this.EnableMixedModePermissions != null &&
this.EnableMixedModePermissions.Equals(input.EnableMixedModePermissions))
) &&
(
this.EnableNfsViewDiscovery == input.EnableNfsViewDiscovery ||
(this.EnableNfsViewDiscovery != null &&
this.EnableNfsViewDiscovery.Equals(input.EnableNfsViewDiscovery))
) &&
(
this.EnableOfflineCaching == input.EnableOfflineCaching ||
(this.EnableOfflineCaching != null &&
this.EnableOfflineCaching.Equals(input.EnableOfflineCaching))
) &&
(
this.EnableSmbAccessBasedEnumeration == input.EnableSmbAccessBasedEnumeration ||
(this.EnableSmbAccessBasedEnumeration != null &&
this.EnableSmbAccessBasedEnumeration.Equals(input.EnableSmbAccessBasedEnumeration))
) &&
(
this.EnableSmbEncryption == input.EnableSmbEncryption ||
(this.EnableSmbEncryption != null &&
this.EnableSmbEncryption.Equals(input.EnableSmbEncryption))
) &&
(
this.EnableSmbOplock == input.EnableSmbOplock ||
(this.EnableSmbOplock != null &&
this.EnableSmbOplock.Equals(input.EnableSmbOplock))
) &&
(
this.EnableSmbViewDiscovery == input.EnableSmbViewDiscovery ||
(this.EnableSmbViewDiscovery != null &&
this.EnableSmbViewDiscovery.Equals(input.EnableSmbViewDiscovery))
) &&
(
this.EnforceSmbEncryption == input.EnforceSmbEncryption ||
(this.EnforceSmbEncryption != null &&
this.EnforceSmbEncryption.Equals(input.EnforceSmbEncryption))
) &&
(
this.FileExtensionFilter == input.FileExtensionFilter ||
(this.FileExtensionFilter != null &&
this.FileExtensionFilter.Equals(input.FileExtensionFilter))
) &&
(
this.FileLockConfig == input.FileLockConfig ||
(this.FileLockConfig != null &&
this.FileLockConfig.Equals(input.FileLockConfig))
) &&
(
this.LogicalQuota == input.LogicalQuota ||
(this.LogicalQuota != null &&
this.LogicalQuota.Equals(input.LogicalQuota))
) &&
(
this.NfsAllSquash == input.NfsAllSquash ||
(this.NfsAllSquash != null &&
this.NfsAllSquash.Equals(input.NfsAllSquash))
) &&
(
this.NfsRootPermissions == input.NfsRootPermissions ||
(this.NfsRootPermissions != null &&
this.NfsRootPermissions.Equals(input.NfsRootPermissions))
) &&
(
this.NfsRootSquash == input.NfsRootSquash ||
(this.NfsRootSquash != null &&
this.NfsRootSquash.Equals(input.NfsRootSquash))
) &&
(
this.OverrideGlobalWhitelist == input.OverrideGlobalWhitelist ||
(this.OverrideGlobalWhitelist != null &&
this.OverrideGlobalWhitelist.Equals(input.OverrideGlobalWhitelist))
) &&
(
this.ProtocolAccess == input.ProtocolAccess ||
this.ProtocolAccess.Equals(input.ProtocolAccess)
) &&
(
this.Qos == input.Qos ||
(this.Qos != null &&
this.Qos.Equals(input.Qos))
) &&
(
this.SecurityMode == input.SecurityMode ||
this.SecurityMode.Equals(input.SecurityMode)
) &&
(
this.SharePermissions == input.SharePermissions ||
this.SharePermissions != null &&
input.SharePermissions != null &&
this.SharePermissions.SequenceEqual(input.SharePermissions)
) &&
(
this.SmbPermissionsInfo == input.SmbPermissionsInfo ||
(this.SmbPermissionsInfo != null &&
this.SmbPermissionsInfo.Equals(input.SmbPermissionsInfo))
) &&
(
this.SourceViewName == input.SourceViewName ||
(this.SourceViewName != null &&
this.SourceViewName.Equals(input.SourceViewName))
) &&
(
this.StoragePolicyOverride == input.StoragePolicyOverride ||
(this.StoragePolicyOverride != null &&
this.StoragePolicyOverride.Equals(input.StoragePolicyOverride))
) &&
(
this.SubnetWhitelist == input.SubnetWhitelist ||
this.SubnetWhitelist != null &&
input.SubnetWhitelist != null &&
this.SubnetWhitelist.SequenceEqual(input.SubnetWhitelist)
) &&
(
this.SwiftProjectDomain == input.SwiftProjectDomain ||
(this.SwiftProjectDomain != null &&
this.SwiftProjectDomain.Equals(input.SwiftProjectDomain))
) &&
(
this.SwiftProjectName == input.SwiftProjectName ||
(this.SwiftProjectName != null &&
this.SwiftProjectName.Equals(input.SwiftProjectName))
) &&
(
this.TenantId == input.TenantId ||
(this.TenantId != null &&
this.TenantId.Equals(input.TenantId))
);
}
19
View Source File : ClusterAuditLogsSearchResult.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ClusterAuditLogsSearchResult input)
{
if (input == null)
return false;
return
(
this.ClusterAuditLogs == input.ClusterAuditLogs ||
this.ClusterAuditLogs != null &&
input.ClusterAuditLogs != null &&
this.ClusterAuditLogs.SequenceEqual(input.ClusterAuditLogs)
) &&
(
this.TotalCount == input.TotalCount ||
(this.TotalCount != null &&
this.TotalCount.Equals(input.TotalCount))
);
}
19
View Source File : ClusterConfigProtoQoSMappingQoSContext.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ClusterConfigProtoQoSMappingQoSContext input)
{
if (input == null)
return false;
return
(
this.Component == input.Component ||
(this.Component != null &&
this.Component.Equals(input.Component))
) &&
(
this.Priority == input.Priority ||
(this.Priority != null &&
this.Priority.Equals(input.Priority))
) &&
(
this.Type == input.Type ||
(this.Type != null &&
this.Type.Equals(input.Type))
) &&
(
this.ViewBoxId == input.ViewBoxId ||
(this.ViewBoxId != null &&
this.ViewBoxId.Equals(input.ViewBoxId))
) &&
(
this.ViewId == input.ViewId ||
(this.ViewId != null &&
this.ViewId.Equals(input.ViewId))
);
}
19
View Source File : ClusterStats.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ClusterStats input)
{
if (input == null)
return false;
return
(
this.CloudUsagePerfStats == input.CloudUsagePerfStats ||
(this.CloudUsagePerfStats != null &&
this.CloudUsagePerfStats.Equals(input.CloudUsagePerfStats))
) &&
(
this.DataReductionRatio == input.DataReductionRatio ||
(this.DataReductionRatio != null &&
this.DataReductionRatio.Equals(input.DataReductionRatio))
) &&
(
this.DataUsageStats == input.DataUsageStats ||
(this.DataUsageStats != null &&
this.DataUsageStats.Equals(input.DataUsageStats))
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.LocalUsagePerfStats == input.LocalUsagePerfStats ||
(this.LocalUsagePerfStats != null &&
this.LocalUsagePerfStats.Equals(input.LocalUsagePerfStats))
) &&
(
this.LogicalStats == input.LogicalStats ||
(this.LogicalStats != null &&
this.LogicalStats.Equals(input.LogicalStats))
) &&
(
this.UsagePerfStats == input.UsagePerfStats ||
(this.UsagePerfStats != null &&
this.UsagePerfStats.Equals(input.UsagePerfStats))
);
}
19
View Source File : ClusterStatusResult.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ClusterStatusResult input)
{
if (input == null)
return false;
return
(
this.ClusterId == input.ClusterId ||
(this.ClusterId != null &&
this.ClusterId.Equals(input.ClusterId))
) &&
(
this.ClusterIncarnationId == input.ClusterIncarnationId ||
(this.ClusterIncarnationId != null &&
this.ClusterIncarnationId.Equals(input.ClusterIncarnationId))
) &&
(
this.CurrentOperation == input.CurrentOperation ||
this.CurrentOperation.Equals(input.CurrentOperation)
) &&
(
this.Message == input.Message ||
(this.Message != null &&
this.Message.Equals(input.Message))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.NodeStatuses == input.NodeStatuses ||
this.NodeStatuses != null &&
input.NodeStatuses != null &&
this.NodeStatuses.SequenceEqual(input.NodeStatuses)
) &&
(
this.RemovalState == input.RemovalState ||
this.RemovalState.Equals(input.RemovalState)
) &&
(
this.ServicesSynced == input.ServicesSynced ||
(this.ServicesSynced != null &&
this.ServicesSynced.Equals(input.ServicesSynced))
) &&
(
this.SoftwareVersion == input.SoftwareVersion ||
(this.SoftwareVersion != null &&
this.SoftwareVersion.Equals(input.SoftwareVersion))
) &&
(
this.StoppedServices == input.StoppedServices ||
this.StoppedServices.SequenceEqual(input.StoppedServices)
);
}
19
View Source File : ConnectorParameters.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ConnectorParameters input)
{
if (input == null)
return false;
return
(
this.Endpoint == input.Endpoint ||
(this.Endpoint != null &&
this.Endpoint.Equals(input.Endpoint))
) &&
(
this.Environment == input.Environment ||
this.Environment.Equals(input.Environment)
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Version == input.Version ||
(this.Version != null &&
this.Version.Equals(input.Version))
);
}
19
View Source File : ContinuousSchedule.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(ContinuousSchedule input)
{
if (input == null)
return false;
return
(
this.BackupIntervalMins == input.BackupIntervalMins ||
(this.BackupIntervalMins != null &&
this.BackupIntervalMins.Equals(input.BackupIntervalMins))
);
}
19
View Source File : CopySnapshotTaskStatus.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CopySnapshotTaskStatus input)
{
if (input == null)
return false;
return
(
this.Error == input.Error ||
(this.Error != null &&
this.Error.Equals(input.Error))
) &&
(
this.Source == input.Source ||
(this.Source != null &&
this.Source.Equals(input.Source))
) &&
(
this.Stats == input.Stats ||
(this.Stats != null &&
this.Stats.Equals(input.Stats))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
) &&
(
this.TaskEndTimeUsecs == input.TaskEndTimeUsecs ||
(this.TaskEndTimeUsecs != null &&
this.TaskEndTimeUsecs.Equals(input.TaskEndTimeUsecs))
) &&
(
this.TaskStartTimeUsecs == input.TaskStartTimeUsecs ||
(this.TaskStartTimeUsecs != null &&
this.TaskStartTimeUsecs.Equals(input.TaskStartTimeUsecs))
);
}
19
View Source File : CouchbaseBucket.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CouchbaseBucket input)
{
if (input == null)
return false;
return
(
this.BucketType == input.BucketType ||
(this.BucketType != null &&
this.BucketType.Equals(input.BucketType))
) &&
(
this.DoreplacedentCount == input.DoreplacedentCount ||
(this.DoreplacedentCount != null &&
this.DoreplacedentCount.Equals(input.DoreplacedentCount))
);
}
19
View Source File : CountByTier.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CountByTier input)
{
if (input == null)
return false;
return
(
this.DiskCount == input.DiskCount ||
(this.DiskCount != null &&
this.DiskCount.Equals(input.DiskCount))
) &&
(
this.StorageTier == input.StorageTier ||
this.StorageTier.Equals(input.StorageTier)
);
}
19
View Source File : CreateClusterResult.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CreateClusterResult input)
{
if (input == null)
return false;
return
(
this.ClusterId == input.ClusterId ||
(this.ClusterId != null &&
this.ClusterId.Equals(input.ClusterId))
) &&
(
this.ClusterName == input.ClusterName ||
(this.ClusterName != null &&
this.ClusterName.Equals(input.ClusterName))
) &&
(
this.ClusterSwVersion == input.ClusterSwVersion ||
(this.ClusterSwVersion != null &&
this.ClusterSwVersion.Equals(input.ClusterSwVersion))
) &&
(
this.HealthyNodes == input.HealthyNodes ||
this.HealthyNodes != null &&
input.HealthyNodes != null &&
this.HealthyNodes.SequenceEqual(input.HealthyNodes)
) &&
(
this.IncarnationId == input.IncarnationId ||
(this.IncarnationId != null &&
this.IncarnationId.Equals(input.IncarnationId))
) &&
(
this.Message == input.Message ||
(this.Message != null &&
this.Message.Equals(input.Message))
) &&
(
this.UnhealthyNodes == input.UnhealthyNodes ||
this.UnhealthyNodes != null &&
input.UnhealthyNodes != null &&
this.UnhealthyNodes.SequenceEqual(input.UnhealthyNodes)
);
}
19
View Source File : CreateViewBoxParams.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CreateViewBoxParams input)
{
if (input == null)
return false;
return
(
this.AdDomainName == input.AdDomainName ||
(this.AdDomainName != null &&
this.AdDomainName.Equals(input.AdDomainName))
) &&
(
this.ClientSubnetWhiteList == input.ClientSubnetWhiteList ||
this.ClientSubnetWhiteList != null &&
input.ClientSubnetWhiteList != null &&
this.ClientSubnetWhiteList.SequenceEqual(input.ClientSubnetWhiteList)
) &&
(
this.CloudDownWaterfallThresholdPct == input.CloudDownWaterfallThresholdPct ||
(this.CloudDownWaterfallThresholdPct != null &&
this.CloudDownWaterfallThresholdPct.Equals(input.CloudDownWaterfallThresholdPct))
) &&
(
this.CloudDownWaterfallThresholdSecs == input.CloudDownWaterfallThresholdSecs ||
(this.CloudDownWaterfallThresholdSecs != null &&
this.CloudDownWaterfallThresholdSecs.Equals(input.CloudDownWaterfallThresholdSecs))
) &&
(
this.ClusterParreplacedionId == input.ClusterParreplacedionId ||
(this.ClusterParreplacedionId != null &&
this.ClusterParreplacedionId.Equals(input.ClusterParreplacedionId))
) &&
(
this.DefaultUserQuotaPolicy == input.DefaultUserQuotaPolicy ||
(this.DefaultUserQuotaPolicy != null &&
this.DefaultUserQuotaPolicy.Equals(input.DefaultUserQuotaPolicy))
) &&
(
this.DefaultViewQuotaPolicy == input.DefaultViewQuotaPolicy ||
(this.DefaultViewQuotaPolicy != null &&
this.DefaultViewQuotaPolicy.Equals(input.DefaultViewQuotaPolicy))
) &&
(
this.DirectArchiveEnabled == input.DirectArchiveEnabled ||
(this.DirectArchiveEnabled != null &&
this.DirectArchiveEnabled.Equals(input.DirectArchiveEnabled))
) &&
(
this.LdapProviderId == input.LdapProviderId ||
(this.LdapProviderId != null &&
this.LdapProviderId.Equals(input.LdapProviderId))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.PhysicalQuota == input.PhysicalQuota ||
(this.PhysicalQuota != null &&
this.PhysicalQuota.Equals(input.PhysicalQuota))
) &&
(
this.S3BucketsAllowed == input.S3BucketsAllowed ||
(this.S3BucketsAllowed != null &&
this.S3BucketsAllowed.Equals(input.S3BucketsAllowed))
) &&
(
this.StoragePolicy == input.StoragePolicy ||
(this.StoragePolicy != null &&
this.StoragePolicy.Equals(input.StoragePolicy))
) &&
(
this.TenantIdVec == input.TenantIdVec ||
this.TenantIdVec != null &&
input.TenantIdVec != null &&
this.TenantIdVec.SequenceEqual(input.TenantIdVec)
);
}
19
View Source File : CreateViewRequest.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(CreateViewRequest input)
{
if (input == null)
return false;
return
(
this.AccessSids == input.AccessSids ||
this.AccessSids != null &&
input.AccessSids != null &&
this.AccessSids.SequenceEqual(input.AccessSids)
) &&
(
this.AntivirusScanConfig == input.AntivirusScanConfig ||
(this.AntivirusScanConfig != null &&
this.AntivirusScanConfig.Equals(input.AntivirusScanConfig))
) &&
(
this.CaseInsensitiveNamesEnabled == input.CaseInsensitiveNamesEnabled ||
(this.CaseInsensitiveNamesEnabled != null &&
this.CaseInsensitiveNamesEnabled.Equals(input.CaseInsensitiveNamesEnabled))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.EnableFastDurableHandle == input.EnableFastDurableHandle ||
(this.EnableFastDurableHandle != null &&
this.EnableFastDurableHandle.Equals(input.EnableFastDurableHandle))
) &&
(
this.EnableFilerAuditLogging == input.EnableFilerAuditLogging ||
(this.EnableFilerAuditLogging != null &&
this.EnableFilerAuditLogging.Equals(input.EnableFilerAuditLogging))
) &&
(
this.EnableLiveIndexing == input.EnableLiveIndexing ||
(this.EnableLiveIndexing != null &&
this.EnableLiveIndexing.Equals(input.EnableLiveIndexing))
) &&
(
this.EnableMixedModePermissions == input.EnableMixedModePermissions ||
(this.EnableMixedModePermissions != null &&
this.EnableMixedModePermissions.Equals(input.EnableMixedModePermissions))
) &&
(
this.EnableNfsViewDiscovery == input.EnableNfsViewDiscovery ||
(this.EnableNfsViewDiscovery != null &&
this.EnableNfsViewDiscovery.Equals(input.EnableNfsViewDiscovery))
) &&
(
this.EnableOfflineCaching == input.EnableOfflineCaching ||
(this.EnableOfflineCaching != null &&
this.EnableOfflineCaching.Equals(input.EnableOfflineCaching))
) &&
(
this.EnableSmbAccessBasedEnumeration == input.EnableSmbAccessBasedEnumeration ||
(this.EnableSmbAccessBasedEnumeration != null &&
this.EnableSmbAccessBasedEnumeration.Equals(input.EnableSmbAccessBasedEnumeration))
) &&
(
this.EnableSmbEncryption == input.EnableSmbEncryption ||
(this.EnableSmbEncryption != null &&
this.EnableSmbEncryption.Equals(input.EnableSmbEncryption))
) &&
(
this.EnableSmbOplock == input.EnableSmbOplock ||
(this.EnableSmbOplock != null &&
this.EnableSmbOplock.Equals(input.EnableSmbOplock))
) &&
(
this.EnableSmbViewDiscovery == input.EnableSmbViewDiscovery ||
(this.EnableSmbViewDiscovery != null &&
this.EnableSmbViewDiscovery.Equals(input.EnableSmbViewDiscovery))
) &&
(
this.EnforceSmbEncryption == input.EnforceSmbEncryption ||
(this.EnforceSmbEncryption != null &&
this.EnforceSmbEncryption.Equals(input.EnforceSmbEncryption))
) &&
(
this.FileExtensionFilter == input.FileExtensionFilter ||
(this.FileExtensionFilter != null &&
this.FileExtensionFilter.Equals(input.FileExtensionFilter))
) &&
(
this.FileLockConfig == input.FileLockConfig ||
(this.FileLockConfig != null &&
this.FileLockConfig.Equals(input.FileLockConfig))
) &&
(
this.LogicalQuota == input.LogicalQuota ||
(this.LogicalQuota != null &&
this.LogicalQuota.Equals(input.LogicalQuota))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.NfsAllSquash == input.NfsAllSquash ||
(this.NfsAllSquash != null &&
this.NfsAllSquash.Equals(input.NfsAllSquash))
) &&
(
this.NfsRootPermissions == input.NfsRootPermissions ||
(this.NfsRootPermissions != null &&
this.NfsRootPermissions.Equals(input.NfsRootPermissions))
) &&
(
this.NfsRootSquash == input.NfsRootSquash ||
(this.NfsRootSquash != null &&
this.NfsRootSquash.Equals(input.NfsRootSquash))
) &&
(
this.OverrideGlobalWhitelist == input.OverrideGlobalWhitelist ||
(this.OverrideGlobalWhitelist != null &&
this.OverrideGlobalWhitelist.Equals(input.OverrideGlobalWhitelist))
) &&
(
this.ProtocolAccess == input.ProtocolAccess ||
this.ProtocolAccess.Equals(input.ProtocolAccess)
) &&
(
this.Qos == input.Qos ||
(this.Qos != null &&
this.Qos.Equals(input.Qos))
) &&
(
this.S3KeyMappingConfig == input.S3KeyMappingConfig ||
this.S3KeyMappingConfig.Equals(input.S3KeyMappingConfig)
) &&
(
this.SecurityMode == input.SecurityMode ||
this.SecurityMode.Equals(input.SecurityMode)
) &&
(
this.SharePermissions == input.SharePermissions ||
this.SharePermissions != null &&
input.SharePermissions != null &&
this.SharePermissions.SequenceEqual(input.SharePermissions)
) &&
(
this.SmbPermissionsInfo == input.SmbPermissionsInfo ||
(this.SmbPermissionsInfo != null &&
this.SmbPermissionsInfo.Equals(input.SmbPermissionsInfo))
) &&
(
this.StoragePolicyOverride == input.StoragePolicyOverride ||
(this.StoragePolicyOverride != null &&
this.StoragePolicyOverride.Equals(input.StoragePolicyOverride))
) &&
(
this.SubnetWhitelist == input.SubnetWhitelist ||
this.SubnetWhitelist != null &&
input.SubnetWhitelist != null &&
this.SubnetWhitelist.SequenceEqual(input.SubnetWhitelist)
) &&
(
this.SwiftProjectDomain == input.SwiftProjectDomain ||
(this.SwiftProjectDomain != null &&
this.SwiftProjectDomain.Equals(input.SwiftProjectDomain))
) &&
(
this.SwiftProjectName == input.SwiftProjectName ||
(this.SwiftProjectName != null &&
this.SwiftProjectName.Equals(input.SwiftProjectName))
) &&
(
this.SwiftUserDomain == input.SwiftUserDomain ||
(this.SwiftUserDomain != null &&
this.SwiftUserDomain.Equals(input.SwiftUserDomain))
) &&
(
this.SwiftUsername == input.SwiftUsername ||
(this.SwiftUsername != null &&
this.SwiftUsername.Equals(input.SwiftUsername))
) &&
(
this.TenantId == input.TenantId ||
(this.TenantId != null &&
this.TenantId.Equals(input.TenantId))
) &&
(
this.ViewBoxId == input.ViewBoxId ||
(this.ViewBoxId != null &&
this.ViewBoxId.Equals(input.ViewBoxId))
);
}
19
View Source File : DagApplicationServerInfo.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(DagApplicationServerInfo input)
{
if (input == null)
return false;
return
(
this.Fqdn == input.Fqdn ||
(this.Fqdn != null &&
this.Fqdn.Equals(input.Fqdn))
) &&
(
this.Guid == input.Guid ||
(this.Guid != null &&
this.Guid.Equals(input.Guid))
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.OwnerId == input.OwnerId ||
(this.OwnerId != null &&
this.OwnerId.Equals(input.OwnerId))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
) &&
(
this.TotalSizeBytes == input.TotalSizeBytes ||
(this.TotalSizeBytes != null &&
this.TotalSizeBytes.Equals(input.TotalSizeBytes))
);
}
19
View Source File : Dashboard.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(Dashboard input)
{
if (input == null)
return false;
return
(
this.AuditLogs == input.AuditLogs ||
(this.AuditLogs != null &&
this.AuditLogs.Equals(input.AuditLogs))
) &&
(
this.ClusterId == input.ClusterId ||
(this.ClusterId != null &&
this.ClusterId.Equals(input.ClusterId))
) &&
(
this.Health == input.Health ||
(this.Health != null &&
this.Health.Equals(input.Health))
) &&
(
this.Iops == input.Iops ||
(this.Iops != null &&
this.Iops.Equals(input.Iops))
) &&
(
this.JobRuns == input.JobRuns ||
(this.JobRuns != null &&
this.JobRuns.Equals(input.JobRuns))
) &&
(
this.ProtectedObjects == input.ProtectedObjects ||
(this.ProtectedObjects != null &&
this.ProtectedObjects.Equals(input.ProtectedObjects))
) &&
(
this.Protection == input.Protection ||
(this.Protection != null &&
this.Protection.Equals(input.Protection))
) &&
(
this.Recoveries == input.Recoveries ||
(this.Recoveries != null &&
this.Recoveries.Equals(input.Recoveries))
) &&
(
this.StorageEfficiency == input.StorageEfficiency ||
(this.StorageEfficiency != null &&
this.StorageEfficiency.Equals(input.StorageEfficiency))
) &&
(
this.Throughput == input.Throughput ||
(this.Throughput != null &&
this.Throughput.Equals(input.Throughput))
);
}
19
View Source File : DataMigrationJobParameters.cs
License : Apache License 2.0
Project Creator : cohesity
License : Apache License 2.0
Project Creator : cohesity
public bool Equals(DataMigrationJobParameters input)
{
if (input == null)
return false;
return
(
this.ColdFileWindow == input.ColdFileWindow ||
(this.ColdFileWindow != null &&
this.ColdFileWindow.Equals(input.ColdFileWindow))
) &&
(
this.DeleteOrphanData == input.DeleteOrphanData ||
(this.DeleteOrphanData != null &&
this.DeleteOrphanData.Equals(input.DeleteOrphanData))
) &&
(
this.FilePathFilter == input.FilePathFilter ||
(this.FilePathFilter != null &&
this.FilePathFilter.Equals(input.FilePathFilter))
) &&
(
this.FileSelectionPolicy == input.FileSelectionPolicy ||
this.FileSelectionPolicy.Equals(input.FileSelectionPolicy)
) &&
(
this.FileSizeBytes == input.FileSizeBytes ||
(this.FileSizeBytes != null &&
this.FileSizeBytes.Equals(input.FileSizeBytes))
) &&
(
this.FileSizePolicy == input.FileSizePolicy ||
this.FileSizePolicy.Equals(input.FileSizePolicy)
) &&
(
this.MigrateWithoutStub == input.MigrateWithoutStub ||
(this.MigrateWithoutStub != null &&
this.MigrateWithoutStub.Equals(input.MigrateWithoutStub))
) &&
(
this.NfsMountPath == input.NfsMountPath ||
(this.NfsMountPath != null &&
this.NfsMountPath.Equals(input.NfsMountPath))
) &&
(
this.TargetViewName == input.TargetViewName ||
(this.TargetViewName != null &&
this.TargetViewName.Equals(input.TargetViewName))
);
}
See More Examples