github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/types/derived.gen.go (about)

     1  // Code generated by goderive DO NOT EDIT.
     2  
     3  package types
     4  
     5  import (
     6  	"bytes"
     7  )
     8  
     9  // deriveTeleportEqualAppV3 returns whether this and that are equal.
    10  func deriveTeleportEqualAppV3(this, that *AppV3) bool {
    11  	return (this == nil && that == nil) ||
    12  		this != nil && that != nil &&
    13  			this.Kind == that.Kind &&
    14  			this.SubKind == that.SubKind &&
    15  			this.Version == that.Version &&
    16  			deriveTeleportEqualMetadata(&this.Metadata, &that.Metadata) &&
    17  			deriveTeleportEqual(&this.Spec, &that.Spec)
    18  }
    19  
    20  // deriveTeleportEqualDatabaseV3 returns whether this and that are equal.
    21  func deriveTeleportEqualDatabaseV3(this, that *DatabaseV3) bool {
    22  	return (this == nil && that == nil) ||
    23  		this != nil && that != nil &&
    24  			this.Kind == that.Kind &&
    25  			this.SubKind == that.SubKind &&
    26  			this.Version == that.Version &&
    27  			deriveTeleportEqualMetadata(&this.Metadata, &that.Metadata) &&
    28  			deriveTeleportEqual_(&this.Spec, &that.Spec)
    29  }
    30  
    31  // deriveTeleportEqualWindowsDesktopV3 returns whether this and that are equal.
    32  func deriveTeleportEqualWindowsDesktopV3(this, that *WindowsDesktopV3) bool {
    33  	return (this == nil && that == nil) ||
    34  		this != nil && that != nil &&
    35  			deriveTeleportEqualResourceHeader(&this.ResourceHeader, &that.ResourceHeader) &&
    36  			deriveTeleportEqual_1(&this.Spec, &that.Spec)
    37  }
    38  
    39  // deriveTeleportEqualKubernetesClusterV3 returns whether this and that are equal.
    40  func deriveTeleportEqualKubernetesClusterV3(this, that *KubernetesClusterV3) bool {
    41  	return (this == nil && that == nil) ||
    42  		this != nil && that != nil &&
    43  			this.Kind == that.Kind &&
    44  			this.SubKind == that.SubKind &&
    45  			this.Version == that.Version &&
    46  			deriveTeleportEqualMetadata(&this.Metadata, &that.Metadata) &&
    47  			deriveTeleportEqual_2(&this.Spec, &that.Spec)
    48  }
    49  
    50  // deriveTeleportEqualKubernetesServerV3 returns whether this and that are equal.
    51  func deriveTeleportEqualKubernetesServerV3(this, that *KubernetesServerV3) bool {
    52  	return (this == nil && that == nil) ||
    53  		this != nil && that != nil &&
    54  			this.Kind == that.Kind &&
    55  			this.SubKind == that.SubKind &&
    56  			this.Version == that.Version &&
    57  			deriveTeleportEqualMetadata(&this.Metadata, &that.Metadata) &&
    58  			deriveTeleportEqual_3(&this.Spec, &that.Spec)
    59  }
    60  
    61  // deriveTeleportEqualOktaAssignmentV1 returns whether this and that are equal.
    62  func deriveTeleportEqualOktaAssignmentV1(this, that *OktaAssignmentV1) bool {
    63  	return (this == nil && that == nil) ||
    64  		this != nil && that != nil &&
    65  			deriveTeleportEqualResourceHeader(&this.ResourceHeader, &that.ResourceHeader) &&
    66  			deriveTeleportEqual_4(&this.Spec, &that.Spec)
    67  }
    68  
    69  // deriveTeleportEqualResourceHeader returns whether this and that are equal.
    70  func deriveTeleportEqualResourceHeader(this, that *ResourceHeader) bool {
    71  	return (this == nil && that == nil) ||
    72  		this != nil && that != nil &&
    73  			this.Kind == that.Kind &&
    74  			this.SubKind == that.SubKind &&
    75  			this.Version == that.Version &&
    76  			deriveTeleportEqualMetadata(&this.Metadata, &that.Metadata)
    77  }
    78  
    79  // deriveTeleportEqualMetadata returns whether this and that are equal.
    80  func deriveTeleportEqualMetadata(this, that *Metadata) bool {
    81  	return (this == nil && that == nil) ||
    82  		this != nil && that != nil &&
    83  			this.Name == that.Name &&
    84  			this.Namespace == that.Namespace &&
    85  			this.Description == that.Description &&
    86  			deriveTeleportEqual_5(this.Labels, that.Labels) &&
    87  			((this.Expires == nil && that.Expires == nil) || (this.Expires != nil && that.Expires != nil && (*(this.Expires)).Equal(*(that.Expires))))
    88  }
    89  
    90  // deriveTeleportEqualUserGroupV1 returns whether this and that are equal.
    91  func deriveTeleportEqualUserGroupV1(this, that *UserGroupV1) bool {
    92  	return (this == nil && that == nil) ||
    93  		this != nil && that != nil &&
    94  			deriveTeleportEqualResourceHeader(&this.ResourceHeader, &that.ResourceHeader) &&
    95  			deriveTeleportEqual_6(&this.Spec, &that.Spec)
    96  }
    97  
    98  // deriveTeleportEqual returns whether this and that are equal.
    99  func deriveTeleportEqual(this, that *AppSpecV3) bool {
   100  	return (this == nil && that == nil) ||
   101  		this != nil && that != nil &&
   102  			this.URI == that.URI &&
   103  			this.PublicAddr == that.PublicAddr &&
   104  			deriveTeleportEqual_7(this.DynamicLabels, that.DynamicLabels) &&
   105  			this.InsecureSkipVerify == that.InsecureSkipVerify &&
   106  			deriveTeleportEqual_8(this.Rewrite, that.Rewrite) &&
   107  			deriveTeleportEqual_9(this.AWS, that.AWS) &&
   108  			this.Cloud == that.Cloud &&
   109  			deriveTeleportEqual_10(this.UserGroups, that.UserGroups) &&
   110  			this.Integration == that.Integration
   111  }
   112  
   113  // deriveTeleportEqual_ returns whether this and that are equal.
   114  func deriveTeleportEqual_(this, that *DatabaseSpecV3) bool {
   115  	return (this == nil && that == nil) ||
   116  		this != nil && that != nil &&
   117  			this.Protocol == that.Protocol &&
   118  			this.URI == that.URI &&
   119  			this.CACert == that.CACert &&
   120  			deriveTeleportEqual_7(this.DynamicLabels, that.DynamicLabels) &&
   121  			deriveTeleportEqual_11(&this.AWS, &that.AWS) &&
   122  			deriveTeleportEqual_12(&this.GCP, &that.GCP) &&
   123  			deriveTeleportEqual_13(&this.Azure, &that.Azure) &&
   124  			deriveTeleportEqual_14(&this.TLS, &that.TLS) &&
   125  			deriveTeleportEqual_15(&this.AD, &that.AD) &&
   126  			deriveTeleportEqual_16(&this.MySQL, &that.MySQL) &&
   127  			deriveTeleportEqual_17(this.AdminUser, that.AdminUser) &&
   128  			deriveTeleportEqual_18(&this.MongoAtlas, &that.MongoAtlas) &&
   129  			deriveTeleportEqual_19(&this.Oracle, &that.Oracle)
   130  }
   131  
   132  // deriveTeleportEqual_1 returns whether this and that are equal.
   133  func deriveTeleportEqual_1(this, that *WindowsDesktopSpecV3) bool {
   134  	return (this == nil && that == nil) ||
   135  		this != nil && that != nil &&
   136  			this.Addr == that.Addr &&
   137  			this.Domain == that.Domain &&
   138  			this.HostID == that.HostID &&
   139  			this.NonAD == that.NonAD &&
   140  			deriveTeleportEqual_20(this.ScreenSize, that.ScreenSize)
   141  }
   142  
   143  // deriveTeleportEqual_2 returns whether this and that are equal.
   144  func deriveTeleportEqual_2(this, that *KubernetesClusterSpecV3) bool {
   145  	return (this == nil && that == nil) ||
   146  		this != nil && that != nil &&
   147  			deriveTeleportEqual_7(this.DynamicLabels, that.DynamicLabels) &&
   148  			bytes.Equal(this.Kubeconfig, that.Kubeconfig) &&
   149  			deriveTeleportEqual_21(&this.Azure, &that.Azure) &&
   150  			deriveTeleportEqual_22(&this.AWS, &that.AWS) &&
   151  			deriveTeleportEqual_23(&this.GCP, &that.GCP)
   152  }
   153  
   154  // deriveTeleportEqual_3 returns whether this and that are equal.
   155  func deriveTeleportEqual_3(this, that *KubernetesServerSpecV3) bool {
   156  	return (this == nil && that == nil) ||
   157  		this != nil && that != nil &&
   158  			this.Version == that.Version &&
   159  			this.Hostname == that.Hostname &&
   160  			this.HostID == that.HostID &&
   161  			deriveTeleportEqual_24(&this.Rotation, &that.Rotation) &&
   162  			deriveTeleportEqualKubernetesClusterV3(this.Cluster, that.Cluster) &&
   163  			deriveTeleportEqual_10(this.ProxyIDs, that.ProxyIDs)
   164  }
   165  
   166  // deriveTeleportEqual_4 returns whether this and that are equal.
   167  func deriveTeleportEqual_4(this, that *OktaAssignmentSpecV1) bool {
   168  	return (this == nil && that == nil) ||
   169  		this != nil && that != nil &&
   170  			this.User == that.User &&
   171  			deriveTeleportEqual_25(this.Targets, that.Targets) &&
   172  			this.CleanupTime.Equal(that.CleanupTime) &&
   173  			this.Status == that.Status &&
   174  			this.LastTransition.Equal(that.LastTransition) &&
   175  			this.Finalized == that.Finalized
   176  }
   177  
   178  // deriveTeleportEqual_5 returns whether this and that are equal.
   179  func deriveTeleportEqual_5(this, that map[string]string) bool {
   180  	if this == nil || that == nil {
   181  		return this == nil && that == nil
   182  	}
   183  	if len(this) != len(that) {
   184  		return false
   185  	}
   186  	for k, v := range this {
   187  		thatv, ok := that[k]
   188  		if !ok {
   189  			return false
   190  		}
   191  		if !(v == thatv) {
   192  			return false
   193  		}
   194  	}
   195  	return true
   196  }
   197  
   198  // deriveTeleportEqual_6 returns whether this and that are equal.
   199  func deriveTeleportEqual_6(this, that *UserGroupSpecV1) bool {
   200  	return (this == nil && that == nil) ||
   201  		this != nil && that != nil &&
   202  			deriveTeleportEqual_10(this.Applications, that.Applications)
   203  }
   204  
   205  // deriveTeleportEqual_7 returns whether this and that are equal.
   206  func deriveTeleportEqual_7(this, that map[string]CommandLabelV2) bool {
   207  	if this == nil || that == nil {
   208  		return this == nil && that == nil
   209  	}
   210  	if len(this) != len(that) {
   211  		return false
   212  	}
   213  	for k, v := range this {
   214  		thatv, ok := that[k]
   215  		if !ok {
   216  			return false
   217  		}
   218  		if !(deriveTeleportEqual_26(&v, &thatv)) {
   219  			return false
   220  		}
   221  	}
   222  	return true
   223  }
   224  
   225  // deriveTeleportEqual_8 returns whether this and that are equal.
   226  func deriveTeleportEqual_8(this, that *Rewrite) bool {
   227  	return (this == nil && that == nil) ||
   228  		this != nil && that != nil &&
   229  			deriveTeleportEqual_10(this.Redirect, that.Redirect) &&
   230  			deriveTeleportEqual_27(this.Headers, that.Headers) &&
   231  			this.JWTClaims == that.JWTClaims
   232  }
   233  
   234  // deriveTeleportEqual_9 returns whether this and that are equal.
   235  func deriveTeleportEqual_9(this, that *AppAWS) bool {
   236  	return (this == nil && that == nil) ||
   237  		this != nil && that != nil &&
   238  			this.ExternalID == that.ExternalID
   239  }
   240  
   241  // deriveTeleportEqual_10 returns whether this and that are equal.
   242  func deriveTeleportEqual_10(this, that []string) bool {
   243  	if this == nil || that == nil {
   244  		return this == nil && that == nil
   245  	}
   246  	if len(this) != len(that) {
   247  		return false
   248  	}
   249  	for i := 0; i < len(this); i++ {
   250  		if !(this[i] == that[i]) {
   251  			return false
   252  		}
   253  	}
   254  	return true
   255  }
   256  
   257  // deriveTeleportEqual_11 returns whether this and that are equal.
   258  func deriveTeleportEqual_11(this, that *AWS) bool {
   259  	return (this == nil && that == nil) ||
   260  		this != nil && that != nil &&
   261  			this.Region == that.Region &&
   262  			deriveTeleportEqual_28(&this.Redshift, &that.Redshift) &&
   263  			deriveTeleportEqual_29(&this.RDS, &that.RDS) &&
   264  			this.AccountID == that.AccountID &&
   265  			deriveTeleportEqual_30(&this.ElastiCache, &that.ElastiCache) &&
   266  			deriveTeleportEqual_31(&this.SecretStore, &that.SecretStore) &&
   267  			deriveTeleportEqual_32(&this.MemoryDB, &that.MemoryDB) &&
   268  			deriveTeleportEqual_33(&this.RDSProxy, &that.RDSProxy) &&
   269  			deriveTeleportEqual_34(&this.RedshiftServerless, &that.RedshiftServerless) &&
   270  			this.ExternalID == that.ExternalID &&
   271  			this.AssumeRoleARN == that.AssumeRoleARN &&
   272  			deriveTeleportEqual_35(&this.OpenSearch, &that.OpenSearch) &&
   273  			this.IAMPolicyStatus == that.IAMPolicyStatus &&
   274  			deriveTeleportEqual_5(this.SessionTags, that.SessionTags)
   275  }
   276  
   277  // deriveTeleportEqual_12 returns whether this and that are equal.
   278  func deriveTeleportEqual_12(this, that *GCPCloudSQL) bool {
   279  	return (this == nil && that == nil) ||
   280  		this != nil && that != nil &&
   281  			this.ProjectID == that.ProjectID &&
   282  			this.InstanceID == that.InstanceID
   283  }
   284  
   285  // deriveTeleportEqual_13 returns whether this and that are equal.
   286  func deriveTeleportEqual_13(this, that *Azure) bool {
   287  	return (this == nil && that == nil) ||
   288  		this != nil && that != nil &&
   289  			this.Name == that.Name &&
   290  			this.ResourceID == that.ResourceID &&
   291  			deriveTeleportEqual_36(&this.Redis, &that.Redis) &&
   292  			this.IsFlexiServer == that.IsFlexiServer
   293  }
   294  
   295  // deriveTeleportEqual_14 returns whether this and that are equal.
   296  func deriveTeleportEqual_14(this, that *DatabaseTLS) bool {
   297  	return (this == nil && that == nil) ||
   298  		this != nil && that != nil &&
   299  			this.Mode == that.Mode &&
   300  			this.CACert == that.CACert &&
   301  			this.ServerName == that.ServerName
   302  }
   303  
   304  // deriveTeleportEqual_15 returns whether this and that are equal.
   305  func deriveTeleportEqual_15(this, that *AD) bool {
   306  	return (this == nil && that == nil) ||
   307  		this != nil && that != nil &&
   308  			this.KeytabFile == that.KeytabFile &&
   309  			this.Krb5File == that.Krb5File &&
   310  			this.Domain == that.Domain &&
   311  			this.SPN == that.SPN &&
   312  			this.LDAPCert == that.LDAPCert &&
   313  			this.KDCHostName == that.KDCHostName
   314  }
   315  
   316  // deriveTeleportEqual_16 returns whether this and that are equal.
   317  func deriveTeleportEqual_16(this, that *MySQLOptions) bool {
   318  	return (this == nil && that == nil) ||
   319  		this != nil && that != nil &&
   320  			this.ServerVersion == that.ServerVersion
   321  }
   322  
   323  // deriveTeleportEqual_17 returns whether this and that are equal.
   324  func deriveTeleportEqual_17(this, that *DatabaseAdminUser) bool {
   325  	return (this == nil && that == nil) ||
   326  		this != nil && that != nil &&
   327  			this.Name == that.Name &&
   328  			this.DefaultDatabase == that.DefaultDatabase
   329  }
   330  
   331  // deriveTeleportEqual_18 returns whether this and that are equal.
   332  func deriveTeleportEqual_18(this, that *MongoAtlas) bool {
   333  	return (this == nil && that == nil) ||
   334  		this != nil && that != nil &&
   335  			this.Name == that.Name
   336  }
   337  
   338  // deriveTeleportEqual_19 returns whether this and that are equal.
   339  func deriveTeleportEqual_19(this, that *OracleOptions) bool {
   340  	return (this == nil && that == nil) ||
   341  		this != nil && that != nil &&
   342  			this.AuditUser == that.AuditUser
   343  }
   344  
   345  // deriveTeleportEqual_20 returns whether this and that are equal.
   346  func deriveTeleportEqual_20(this, that *Resolution) bool {
   347  	return (this == nil && that == nil) ||
   348  		this != nil && that != nil &&
   349  			this.Width == that.Width &&
   350  			this.Height == that.Height
   351  }
   352  
   353  // deriveTeleportEqual_21 returns whether this and that are equal.
   354  func deriveTeleportEqual_21(this, that *KubeAzure) bool {
   355  	return (this == nil && that == nil) ||
   356  		this != nil && that != nil &&
   357  			this.ResourceName == that.ResourceName &&
   358  			this.ResourceGroup == that.ResourceGroup &&
   359  			this.TenantID == that.TenantID &&
   360  			this.SubscriptionID == that.SubscriptionID
   361  }
   362  
   363  // deriveTeleportEqual_22 returns whether this and that are equal.
   364  func deriveTeleportEqual_22(this, that *KubeAWS) bool {
   365  	return (this == nil && that == nil) ||
   366  		this != nil && that != nil &&
   367  			this.Region == that.Region &&
   368  			this.AccountID == that.AccountID &&
   369  			this.Name == that.Name
   370  }
   371  
   372  // deriveTeleportEqual_23 returns whether this and that are equal.
   373  func deriveTeleportEqual_23(this, that *KubeGCP) bool {
   374  	return (this == nil && that == nil) ||
   375  		this != nil && that != nil &&
   376  			this.Location == that.Location &&
   377  			this.ProjectID == that.ProjectID &&
   378  			this.Name == that.Name
   379  }
   380  
   381  // deriveTeleportEqual_24 returns whether this and that are equal.
   382  func deriveTeleportEqual_24(this, that *Rotation) bool {
   383  	return (this == nil && that == nil) ||
   384  		this != nil && that != nil &&
   385  			this.State == that.State &&
   386  			this.Phase == that.Phase &&
   387  			this.Mode == that.Mode &&
   388  			this.CurrentID == that.CurrentID &&
   389  			this.Started.Equal(that.Started) &&
   390  			this.GracePeriod == that.GracePeriod &&
   391  			this.LastRotated.Equal(that.LastRotated) &&
   392  			deriveTeleportEqual_37(&this.Schedule, &that.Schedule)
   393  }
   394  
   395  // deriveTeleportEqual_25 returns whether this and that are equal.
   396  func deriveTeleportEqual_25(this, that []*OktaAssignmentTargetV1) bool {
   397  	if this == nil || that == nil {
   398  		return this == nil && that == nil
   399  	}
   400  	if len(this) != len(that) {
   401  		return false
   402  	}
   403  	for i := 0; i < len(this); i++ {
   404  		if !(deriveTeleportEqual_38(this[i], that[i])) {
   405  			return false
   406  		}
   407  	}
   408  	return true
   409  }
   410  
   411  // deriveTeleportEqual_26 returns whether this and that are equal.
   412  func deriveTeleportEqual_26(this, that *CommandLabelV2) bool {
   413  	return (this == nil && that == nil) ||
   414  		this != nil && that != nil &&
   415  			this.Period == that.Period &&
   416  			deriveTeleportEqual_10(this.Command, that.Command) &&
   417  			this.Result == that.Result
   418  }
   419  
   420  // deriveTeleportEqual_27 returns whether this and that are equal.
   421  func deriveTeleportEqual_27(this, that []*Header) bool {
   422  	if this == nil || that == nil {
   423  		return this == nil && that == nil
   424  	}
   425  	if len(this) != len(that) {
   426  		return false
   427  	}
   428  	for i := 0; i < len(this); i++ {
   429  		if !(deriveTeleportEqual_39(this[i], that[i])) {
   430  			return false
   431  		}
   432  	}
   433  	return true
   434  }
   435  
   436  // deriveTeleportEqual_28 returns whether this and that are equal.
   437  func deriveTeleportEqual_28(this, that *Redshift) bool {
   438  	return (this == nil && that == nil) ||
   439  		this != nil && that != nil &&
   440  			this.ClusterID == that.ClusterID
   441  }
   442  
   443  // deriveTeleportEqual_29 returns whether this and that are equal.
   444  func deriveTeleportEqual_29(this, that *RDS) bool {
   445  	return (this == nil && that == nil) ||
   446  		this != nil && that != nil &&
   447  			this.InstanceID == that.InstanceID &&
   448  			this.ClusterID == that.ClusterID &&
   449  			this.ResourceID == that.ResourceID &&
   450  			this.IAMAuth == that.IAMAuth &&
   451  			deriveTeleportEqual_10(this.Subnets, that.Subnets) &&
   452  			this.VPCID == that.VPCID
   453  }
   454  
   455  // deriveTeleportEqual_30 returns whether this and that are equal.
   456  func deriveTeleportEqual_30(this, that *ElastiCache) bool {
   457  	return (this == nil && that == nil) ||
   458  		this != nil && that != nil &&
   459  			this.ReplicationGroupID == that.ReplicationGroupID &&
   460  			deriveTeleportEqual_10(this.UserGroupIDs, that.UserGroupIDs) &&
   461  			this.TransitEncryptionEnabled == that.TransitEncryptionEnabled &&
   462  			this.EndpointType == that.EndpointType
   463  }
   464  
   465  // deriveTeleportEqual_31 returns whether this and that are equal.
   466  func deriveTeleportEqual_31(this, that *SecretStore) bool {
   467  	return (this == nil && that == nil) ||
   468  		this != nil && that != nil &&
   469  			this.KeyPrefix == that.KeyPrefix &&
   470  			this.KMSKeyID == that.KMSKeyID
   471  }
   472  
   473  // deriveTeleportEqual_32 returns whether this and that are equal.
   474  func deriveTeleportEqual_32(this, that *MemoryDB) bool {
   475  	return (this == nil && that == nil) ||
   476  		this != nil && that != nil &&
   477  			this.ClusterName == that.ClusterName &&
   478  			this.ACLName == that.ACLName &&
   479  			this.TLSEnabled == that.TLSEnabled &&
   480  			this.EndpointType == that.EndpointType
   481  }
   482  
   483  // deriveTeleportEqual_33 returns whether this and that are equal.
   484  func deriveTeleportEqual_33(this, that *RDSProxy) bool {
   485  	return (this == nil && that == nil) ||
   486  		this != nil && that != nil &&
   487  			this.Name == that.Name &&
   488  			this.CustomEndpointName == that.CustomEndpointName &&
   489  			this.ResourceID == that.ResourceID
   490  }
   491  
   492  // deriveTeleportEqual_34 returns whether this and that are equal.
   493  func deriveTeleportEqual_34(this, that *RedshiftServerless) bool {
   494  	return (this == nil && that == nil) ||
   495  		this != nil && that != nil &&
   496  			this.WorkgroupName == that.WorkgroupName &&
   497  			this.EndpointName == that.EndpointName &&
   498  			this.WorkgroupID == that.WorkgroupID
   499  }
   500  
   501  // deriveTeleportEqual_35 returns whether this and that are equal.
   502  func deriveTeleportEqual_35(this, that *OpenSearch) bool {
   503  	return (this == nil && that == nil) ||
   504  		this != nil && that != nil &&
   505  			this.DomainName == that.DomainName &&
   506  			this.DomainID == that.DomainID &&
   507  			this.EndpointType == that.EndpointType
   508  }
   509  
   510  // deriveTeleportEqual_36 returns whether this and that are equal.
   511  func deriveTeleportEqual_36(this, that *AzureRedis) bool {
   512  	return (this == nil && that == nil) ||
   513  		this != nil && that != nil &&
   514  			this.ClusteringPolicy == that.ClusteringPolicy
   515  }
   516  
   517  // deriveTeleportEqual_37 returns whether this and that are equal.
   518  func deriveTeleportEqual_37(this, that *RotationSchedule) bool {
   519  	return (this == nil && that == nil) ||
   520  		this != nil && that != nil &&
   521  			this.UpdateClients.Equal(that.UpdateClients) &&
   522  			this.UpdateServers.Equal(that.UpdateServers) &&
   523  			this.Standby.Equal(that.Standby)
   524  }
   525  
   526  // deriveTeleportEqual_38 returns whether this and that are equal.
   527  func deriveTeleportEqual_38(this, that *OktaAssignmentTargetV1) bool {
   528  	return (this == nil && that == nil) ||
   529  		this != nil && that != nil &&
   530  			this.Type == that.Type &&
   531  			this.Id == that.Id
   532  }
   533  
   534  // deriveTeleportEqual_39 returns whether this and that are equal.
   535  func deriveTeleportEqual_39(this, that *Header) bool {
   536  	return (this == nil && that == nil) ||
   537  		this != nil && that != nil &&
   538  			this.Name == that.Name &&
   539  			this.Value == that.Value
   540  }