DataOrg constructor

DataOrg({
  1. String? orgId,
  2. AddOrgRequest? org,
  3. AddCustomOrgIAMPolicyRequest? iamPolicy,
  4. AddCustomLabelPolicyRequest? labelPolicy,
  5. AddCustomLockoutPolicyRequest? lockoutPolicy,
  6. AddCustomLoginPolicyRequest? loginPolicy,
  7. AddCustomPasswordComplexityPolicyRequest? passwordComplexityPolicy,
  8. AddCustomPrivacyPolicyRequest? privacyPolicy,
  9. Iterable<DataProject>? projects,
  10. Iterable<AddProjectRoleRequest>? projectRoles,
  11. Iterable<DataAPIApplication>? apiApps,
  12. Iterable<DataOIDCApplication>? oidcApps,
  13. Iterable<DataHumanUser>? humanUsers,
  14. Iterable<DataMachineUser>? machineUsers,
  15. Iterable<SetTriggerActionsRequest>? triggerActions,
  16. Iterable<DataAction>? actions,
  17. Iterable<DataProjectGrant>? projectGrants,
  18. Iterable<AddUserGrantRequest>? userGrants,
  19. Iterable<AddOrgMemberRequest>? orgMembers,
  20. Iterable<AddProjectMemberRequest>? projectMembers,
  21. Iterable<AddProjectGrantMemberRequest>? projectGrantMembers,
  22. Iterable<SetUserMetadataRequest>? userMetadata,
  23. Iterable<SetCustomLoginTextsRequest>? loginTexts,
  24. Iterable<SetCustomInitMessageTextRequest>? initMessages,
  25. Iterable<SetCustomPasswordResetMessageTextRequest>? passwordResetMessages,
  26. Iterable<SetCustomVerifyEmailMessageTextRequest>? verifyEmailMessages,
  27. Iterable<SetCustomVerifyPhoneMessageTextRequest>? verifyPhoneMessages,
  28. Iterable<SetCustomDomainClaimedMessageTextRequest>? domainClaimedMessages,
  29. Iterable<SetCustomPasswordlessRegistrationMessageTextRequest>? passwordlessRegistrationMessages,
  30. Iterable<DataOIDCIDP>? oidcIdps,
  31. Iterable<DataJWTIDP>? jwtIdps,
  32. Iterable<AddSecondFactorToLoginPolicyRequest>? secondFactors,
  33. Iterable<AddMultiFactorToLoginPolicyRequest>? multiFactors,
  34. Iterable<AddIDPToLoginPolicyRequest>? idps,
  35. Iterable<IDPUserLink>? userLinks,
  36. Iterable<Domain>? domains,
  37. Iterable<DataAppKey>? appKeys,
  38. Iterable<DataMachineKey>? machineKeys,
})

Implementation

factory DataOrg({
  $core.String? orgId,
  $0.AddOrgRequest? org,
  AddCustomOrgIAMPolicyRequest? iamPolicy,
  $0.AddCustomLabelPolicyRequest? labelPolicy,
  $0.AddCustomLockoutPolicyRequest? lockoutPolicy,
  $0.AddCustomLoginPolicyRequest? loginPolicy,
  $0.AddCustomPasswordComplexityPolicyRequest? passwordComplexityPolicy,
  $0.AddCustomPrivacyPolicyRequest? privacyPolicy,
  $core.Iterable<DataProject>? projects,
  $core.Iterable<$0.AddProjectRoleRequest>? projectRoles,
  $core.Iterable<DataAPIApplication>? apiApps,
  $core.Iterable<DataOIDCApplication>? oidcApps,
  $core.Iterable<DataHumanUser>? humanUsers,
  $core.Iterable<DataMachineUser>? machineUsers,
  $core.Iterable<SetTriggerActionsRequest>? triggerActions,
  $core.Iterable<DataAction>? actions,
  $core.Iterable<DataProjectGrant>? projectGrants,
  $core.Iterable<$0.AddUserGrantRequest>? userGrants,
  $core.Iterable<$0.AddOrgMemberRequest>? orgMembers,
  $core.Iterable<$0.AddProjectMemberRequest>? projectMembers,
  $core.Iterable<$0.AddProjectGrantMemberRequest>? projectGrantMembers,
  $core.Iterable<$0.SetUserMetadataRequest>? userMetadata,
  $core.Iterable<$0.SetCustomLoginTextsRequest>? loginTexts,
  $core.Iterable<$0.SetCustomInitMessageTextRequest>? initMessages,
  $core.Iterable<$0.SetCustomPasswordResetMessageTextRequest>? passwordResetMessages,
  $core.Iterable<$0.SetCustomVerifyEmailMessageTextRequest>? verifyEmailMessages,
  $core.Iterable<$0.SetCustomVerifyPhoneMessageTextRequest>? verifyPhoneMessages,
  $core.Iterable<$0.SetCustomDomainClaimedMessageTextRequest>? domainClaimedMessages,
  $core.Iterable<$0.SetCustomPasswordlessRegistrationMessageTextRequest>? passwordlessRegistrationMessages,
  $core.Iterable<DataOIDCIDP>? oidcIdps,
  $core.Iterable<DataJWTIDP>? jwtIdps,
  $core.Iterable<$0.AddSecondFactorToLoginPolicyRequest>? secondFactors,
  $core.Iterable<$0.AddMultiFactorToLoginPolicyRequest>? multiFactors,
  $core.Iterable<$0.AddIDPToLoginPolicyRequest>? idps,
  $core.Iterable<$10.IDPUserLink>? userLinks,
  $core.Iterable<$16.Domain>? domains,
  $core.Iterable<DataAppKey>? appKeys,
  $core.Iterable<DataMachineKey>? machineKeys,
}) {
  final $result = create();
  if (orgId != null) {
    $result.orgId = orgId;
  }
  if (org != null) {
    $result.org = org;
  }
  if (iamPolicy != null) {
    $result.iamPolicy = iamPolicy;
  }
  if (labelPolicy != null) {
    $result.labelPolicy = labelPolicy;
  }
  if (lockoutPolicy != null) {
    $result.lockoutPolicy = lockoutPolicy;
  }
  if (loginPolicy != null) {
    $result.loginPolicy = loginPolicy;
  }
  if (passwordComplexityPolicy != null) {
    $result.passwordComplexityPolicy = passwordComplexityPolicy;
  }
  if (privacyPolicy != null) {
    $result.privacyPolicy = privacyPolicy;
  }
  if (projects != null) {
    $result.projects.addAll(projects);
  }
  if (projectRoles != null) {
    $result.projectRoles.addAll(projectRoles);
  }
  if (apiApps != null) {
    $result.apiApps.addAll(apiApps);
  }
  if (oidcApps != null) {
    $result.oidcApps.addAll(oidcApps);
  }
  if (humanUsers != null) {
    $result.humanUsers.addAll(humanUsers);
  }
  if (machineUsers != null) {
    $result.machineUsers.addAll(machineUsers);
  }
  if (triggerActions != null) {
    $result.triggerActions.addAll(triggerActions);
  }
  if (actions != null) {
    $result.actions.addAll(actions);
  }
  if (projectGrants != null) {
    $result.projectGrants.addAll(projectGrants);
  }
  if (userGrants != null) {
    $result.userGrants.addAll(userGrants);
  }
  if (orgMembers != null) {
    $result.orgMembers.addAll(orgMembers);
  }
  if (projectMembers != null) {
    $result.projectMembers.addAll(projectMembers);
  }
  if (projectGrantMembers != null) {
    $result.projectGrantMembers.addAll(projectGrantMembers);
  }
  if (userMetadata != null) {
    $result.userMetadata.addAll(userMetadata);
  }
  if (loginTexts != null) {
    $result.loginTexts.addAll(loginTexts);
  }
  if (initMessages != null) {
    $result.initMessages.addAll(initMessages);
  }
  if (passwordResetMessages != null) {
    $result.passwordResetMessages.addAll(passwordResetMessages);
  }
  if (verifyEmailMessages != null) {
    $result.verifyEmailMessages.addAll(verifyEmailMessages);
  }
  if (verifyPhoneMessages != null) {
    $result.verifyPhoneMessages.addAll(verifyPhoneMessages);
  }
  if (domainClaimedMessages != null) {
    $result.domainClaimedMessages.addAll(domainClaimedMessages);
  }
  if (passwordlessRegistrationMessages != null) {
    $result.passwordlessRegistrationMessages.addAll(passwordlessRegistrationMessages);
  }
  if (oidcIdps != null) {
    $result.oidcIdps.addAll(oidcIdps);
  }
  if (jwtIdps != null) {
    $result.jwtIdps.addAll(jwtIdps);
  }
  if (secondFactors != null) {
    $result.secondFactors.addAll(secondFactors);
  }
  if (multiFactors != null) {
    $result.multiFactors.addAll(multiFactors);
  }
  if (idps != null) {
    $result.idps.addAll(idps);
  }
  if (userLinks != null) {
    $result.userLinks.addAll(userLinks);
  }
  if (domains != null) {
    $result.domains.addAll(domains);
  }
  if (appKeys != null) {
    $result.appKeys.addAll(appKeys);
  }
  if (machineKeys != null) {
    $result.machineKeys.addAll(machineKeys);
  }
  return $result;
}