new PasswordField('secret_access_key', 'secretAccessKey'
))->
addFlags(new Required()),
new DateTimeField('last_usage_at', 'lastUsageAt'
),
new BoolField('admin', 'admin'
),
new CustomFields(),
new DateTimeField('deleted_at', 'deletedAt'
),
(new OneToOneAssociationField('app', 'id', 'integration_id', AppDefinition::
class, false
))->
addFlags(new RestrictDelete()),
new ManyToManyAssociationField('aclRoles', AclRoleDefinition::
class, IntegrationRoleDefinition::
class, 'integration_id', 'acl_role_id'
),
]);
if (!Feature::
isActive('v6.6.0.0'
)) { $collection->
add((new BoolField('write_access', 'writeAccess'
))->
addFlags(new Deprecated('v6.5.0.0', 'v6.6.0.0'
)));
} return $collection;
}}